@saas-ui/forms 1.0.0-rc.1 → 1.0.0-rc.12
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +129 -0
- package/README.md +29 -0
- package/ajv/package.json +18 -0
- package/dist/ajv/ajv-resolver.d.ts +11 -0
- package/dist/ajv/ajv-resolver.d.ts.map +1 -0
- package/dist/ajv/index.d.ts +2 -0
- package/dist/ajv/index.d.ts.map +1 -0
- package/dist/ajv/index.js +104 -0
- package/dist/ajv/index.js.map +1 -0
- package/dist/ajv/index.modern.mjs +104 -0
- package/dist/ajv/index.modern.mjs.map +1 -0
- package/dist/array-field.d.ts +14 -3
- package/dist/array-field.d.ts.map +1 -1
- package/dist/auto-form.d.ts +13 -1
- package/dist/auto-form.d.ts.map +1 -1
- package/dist/field.d.ts +82 -27
- package/dist/field.d.ts.map +1 -1
- package/dist/form.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/layout.d.ts +0 -1
- package/dist/layout.d.ts.map +1 -1
- package/dist/step-form.d.ts +4 -4
- package/dist/step-form.d.ts.map +1 -1
- package/dist/submit-button.d.ts +2 -1
- package/dist/submit-button.d.ts.map +1 -1
- package/dist/use-step-form.d.ts +7 -3
- package/dist/use-step-form.d.ts.map +1 -1
- package/dist/zod/index.js +1 -1
- package/dist/zod/index.js.map +1 -1
- package/dist/zod/index.modern.mjs +1 -1
- package/dist/zod/index.modern.mjs.map +1 -1
- package/dist/zod/zod-resolver.d.ts +2 -2
- package/dist/zod/zod-resolver.d.ts.map +1 -1
- package/package.json +32 -17
- package/src/array-field.tsx +21 -22
- package/src/auto-form.tsx +22 -3
- package/src/field-resolver.ts +2 -2
- package/src/field.tsx +184 -73
- package/src/form.tsx +0 -1
- package/src/object-field.tsx +3 -3
- package/src/step-form.tsx +27 -20
- package/src/submit-button.tsx +32 -24
- package/src/use-step-form.tsx +27 -12
- package/yup/package.json +2 -2
- package/zod/package.json +4 -4
@@ -0,0 +1,104 @@
|
|
1
|
+
import{ajvResolver as e}from"@hookform/resolvers/ajv";import{isFunction as t,getOwnerWindow as r,isBrowser as n,runIfFn as o,callAllHandlers as a,focus as i,getOwnerDocument as s,getActiveElement as l,contains as c,isTabbable as u,__DEV__ as d,objectKeys as p,mergeWith as f,isString as m,isObject as h,isNumber as v,isCssVar as g,memoizedGet as y,isArray as b,toMediaQueryString as x,omit as k,objectFilter as E,filterUndefined as w,cx as S,warn as C,dataAttr as _,ariaAttr as O,callAll as R,countDecimalPlaces as T,clampValue as I,toPrecision as N,minSafeInteger as A,maxSafeInteger as P,mapResponsive as L,isNull as M,isRightClick as j,normalizeEventKey as B,isHTMLElement as D,determineLazyBehavior as V,removeItem as F,addItem as z,getNextItemFromSearch as W,isActiveElement as $,split as U,isInputEvent as H,get as q}from"@chakra-ui/utils";import{useFieldArray as Y,useFormContext as G,get as Z,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(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})}),e}function ee(e){var t={exports:{}};return e(t,t.exports),t.exports}var te=Symbol.for("react.element"),re=Symbol.for("react.portal"),ne=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"),pe=Symbol.iterator,fe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},me=Object.assign,he={};function ve(e,t,r){this.props=e,this.context=t,this.refs=he,this.updater=r||fe}function ge(){}function ye(e,t,r){this.props=e,this.context=t,this.refs=he,this.updater=r||fe}ve.prototype.isReactComponent={},ve.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")},ve.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},ge.prototype=ve.prototype;var be=ye.prototype=new ge;be.constructor=ye,me(be,ve.prototype),be.isPureReactComponent=!0;var xe=Array.isArray,ke=Object.prototype.hasOwnProperty,Ee={current:null},we={key:!0,ref:!0,__self:!0,__source:!0};function Se(e,t,r){var n,o={},a=null,i=null;if(null!=t)for(n in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)ke.call(t,n)&&!we.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;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(n in s=e.defaultProps)void 0===o[n]&&(o[n]=s[n]);return{$$typeof:te,type:e,key:a,ref:i,props:o,_owner:Ee.current}}function Ce(e){return"object"==typeof e&&null!==e&&e.$$typeof===te}var _e=/\/+/g;function Oe(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 Re(e,t,r,n,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 re:i=!0}}if(i)return o=o(i=e),e=""===n?"."+Oe(i,0):n,xe(o)?(r="",null!=e&&(r=e.replace(_e,"$&/")+"/"),Re(o,t,r,"",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,r+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(_e,"$&/")+"/")+e)),t.push(o)),1;if(i=0,n=""===n?".":n+":",xe(e))for(var s=0;s<e.length;s++){var l=n+Oe(a=e[s],s);i+=Re(a,t,r,l,o)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=pe&&e[pe]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(a=e.next()).done;)i+=Re(a=a.value,t,r,l=n+Oe(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 Te(e,t,r){if(null==e)return e;var n=[],o=0;return Re(e,n,"","",function(e){return t.call(r,e,o++)}),n}function Ie(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 Ne={current:null},Ae={transition:null},Pe={map:Te,forEach:function(e,t,r){Te(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Te(e,function(){t++}),t},toArray:function(e){return Te(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:Pe,Component:ve,Fragment:ne,Profiler:ae,PureComponent:ye,StrictMode:oe,Suspense:ce,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:Ae,ReactCurrentOwner:Ee},cloneElement:function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=me({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=Ee.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)ke.call(t,l)&&!we.hasOwnProperty(l)&&(n[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)n.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}return{$$typeof:te,type:e.type,key:o,ref:a,props:n,_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:Ie}},memo:function(e,t){return{$$typeof:ue,type:e,compare:void 0===t?null:t}},startTransition:function(e){var t=Ae.transition;Ae.transition={};try{e()}finally{Ae.transition=t}},unstable_act:function(){throw Error("act(...) is not supported in production builds of React.")},useCallback:function(e,t){return Ne.current.useCallback(e,t)},useContext:function(e){return Ne.current.useContext(e)},useDebugValue:function(){},useDeferredValue:function(e){return Ne.current.useDeferredValue(e)},useEffect:function(e,t){return Ne.current.useEffect(e,t)},useId:function(){return Ne.current.useId()},useImperativeHandle:function(e,t,r){return Ne.current.useImperativeHandle(e,t,r)},useInsertionEffect:function(e,t){return Ne.current.useInsertionEffect(e,t)},useLayoutEffect:function(e,t){return Ne.current.useLayoutEffect(e,t)},useMemo:function(e,t){return Ne.current.useMemo(e,t)},useReducer:function(e,t,r){return Ne.current.useReducer(e,t,r)},useRef:function(e){return Ne.current.useRef(e)},useState:function(e){return Ne.current.useState(e)},useSyncExternalStore:function(e,t,r){return Ne.current.useSyncExternalStore(e,t,r)},useTransition:function(){return Ne.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 r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),h=Symbol.iterator;function v(e){if(null===e||"object"!=typeof e)return null;var t=h&&e[h]||e["@@iterator"];return"function"==typeof t?t:null}var g={current:null},y={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},x={current:null},k={},E=null;function w(e){E=e}k.setExtraStackFrame=function(e){E=e},k.getCurrentStack=null,k.getStackAddendum=function(){var e="";E&&(e+=E);var t=k.getCurrentStack;return t&&(e+=t()||""),e};var S={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:y,ReactCurrentOwner:x};function C(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];O("warn",e,r)}function _(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];O("error",e,r)}function O(e,t,r){var n=S.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map(function(e){return String(e)});o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}S.ReactDebugCurrentFrame=k,S.ReactCurrentActQueue=b;var R={};function T(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;R[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,n),R[o]=!0)}var I={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){T(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){T(e,"replaceState")},enqueueSetState:function(e,t,r,n){T(e,"setState")}},N=Object.assign,A={};function P(e,t,r){this.props=e,this.context=t,this.refs=A,this.updater=r||I}Object.freeze(A),P.prototype.isReactComponent={},P.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},P.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var L={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},M=function(e,t){Object.defineProperty(P.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 B(){}function D(e,t,r){this.props=e,this.context=t,this.refs=A,this.updater=r||I}B.prototype=P.prototype;var V=D.prototype=new B;V.constructor=D,N(V,P.prototype),V.isPureReactComponent=!0;var F=Array.isArray;function z(e){return F(e)}function W(e){return""+e}function $(e){if(function(e){try{return W(e),!1}catch(e){return!0}}(e))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),W(e)}function U(e){return e.displayName||"Context"}function H(e){if(null==e)return null;if("number"==typeof e.tag&&_("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 n: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 U(e)+".Consumer";case s:return U(e._context)+".Provider";case c:return function(e,t,r){var n=e.displayName;if(n)return n;var o=t.displayName||t.name||"";return""!==o?"ForwardRef("+o+")":"ForwardRef"}(e,e.render);case p:var t=e.displayName||null;return null!==t?t:H(e.type)||"Memo";case f:var r=e._payload,m=e._init;try{return H(m(r))}catch(e){return null}}return null}var q,Y,G,Z=Object.prototype.hasOwnProperty,X={key:!0,ref:!0,__self:!0,__source:!0};function K(e){if(Z.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function J(e){if(Z.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function Q(e,t){var r=function(){q||(q=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}function ee(e,t){var r=function(){Y||(Y=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}function te(e){if("string"==typeof e.ref&&x.current&&e.__self&&x.current.stateNode!==e.__self){var t=H(x.current.type);G[t]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),G[t]=!0)}}G={};var re=function(e,t,n,o,a,i,s){var l={$$typeof:r,type:e,key:t,ref:n,props:s,_owner:i,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ne(e,t,r){var n,o={},a=null,i=null,s=null,l=null;if(null!=t)for(n in K(t)&&(i=t.ref,te(t)),J(t)&&($(t.key),a=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)Z.call(t,n)&&!X.hasOwnProperty(n)&&(o[n]=t[n]);var c=arguments.length-2;if(1===c)o.children=r;else if(c>1){for(var u=Array(c),d=0;d<c;d++)u[d]=arguments[d+2];Object.freeze&&Object.freeze(u),o.children=u}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===o[n]&&(o[n]=p[n])}if(a||i){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&Q(o,f),i&&ee(o,f)}return re(e,a,i,s,l,x.current,o)}function oe(e,t,r){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,o,a=N({},e.props),i=e.key,s=e.ref,l=e._self,c=e._source,u=e._owner;if(null!=t)for(n in K(t)&&(s=t.ref,u=x.current),J(t)&&($(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)Z.call(t,n)&&!X.hasOwnProperty(n)&&(a[n]=void 0===t[n]&&void 0!==o?o[n]:t[n]);var d=arguments.length-2;if(1===d)a.children=r;else if(d>1){for(var p=Array(d),f=0;f<d;f++)p[f]=arguments[f+2];a.children=p}return re(e.type,i,s,l,c,u,a)}function ae(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var ie,se=!1,le=/\/+/g;function ce(e){return e.replace(le,"$&/")}function ue(e,t){return"object"==typeof e&&null!==e&&null!=e.key?($(e.key),r={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}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 r:case n:d=!0}}if(d){var p=e,f=i(p),m=""===a?"."+ue(p,0):a;if(z(f)){var h="";null!=m&&(h=ce(m)+"/"),de(f,t,h,"",function(e){return e})}else null!=f&&(ae(f)&&(!f.key||p&&p.key===f.key||$(f.key),l=f,c=o+(!f.key||p&&p.key===f.key?"":ce(""+f.key)+"/")+m,f=re(l.type,c,l.ref,l._self,l._source,l._owner,l.props)),t.push(f));return 1}var g=0,y=""===a?".":a+":";if(z(e))for(var b=0;b<e.length;b++)g+=de(u=e[b],t,o,y+ue(u,b),i);else{var x=v(e);if("function"==typeof x){var k=e;x===k.entries&&(se||C("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),se=!0);for(var E,w=x.call(k),S=0;!(E=w.next()).done;)g+=de(u=E.value,t,o,y+ue(u,S++),i)}else if("object"===s){var _=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===_?"object with keys {"+Object.keys(e).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}}return g}function pe(e,t,r){if(null==e)return e;var n=[],o=0;return de(e,n,"","",function(e){return t.call(r,e,o++)}),n}function fe(e){if(-1===e._status){var t=(0,e._result)();if(t.then(function(t){if(0===e._status||-1===e._status){var r=e;r._status=1,r._result=t}},function(t){if(0===e._status||-1===e._status){var r=e;r._status=2,r._result=t}}),-1===e._status){var r=e;r._status=0,r._result=t}}if(1===e._status){var n=e._result;return void 0===n&&_("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",n),"default"in n||_("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",n),n.default}throw e._result}function me(e){return"string"==typeof e||"function"==typeof e||e===o||e===i||e===a||e===u||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===ie||void 0!==e.getModuleId)}function he(){var e=g.current;return null===e&&_("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}ie=Symbol.for("react.module.reference");var ve,ge,ye,be,xe,ke,Ee,we=0;function Se(){}Se.__reactDisabledLog=!0;var Ce,_e=S.ReactCurrentDispatcher;function Oe(e,t,r){if(void 0===Ce)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);Ce=n&&n[1]||""}return"\n"+Ce+e}var Re,Te=!1,Ie="function"==typeof WeakMap?WeakMap:Map;function Ne(e,t){if(!e||Te)return"";var r,n=Re.get(e);if(void 0!==n)return n;Te=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=_e.current,_e.current=null,function(){if(0===we){ve=console.log,ge=console.info,ye=console.warn,be=console.error,xe=console.group,ke=console.groupCollapsed,Ee=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})}we++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){r=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){r=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=r.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&Re.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{Te=!1,_e.current=o,function(){if(0==--we){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:ve}),info:N({},e,{value:ge}),warn:N({},e,{value:ye}),error:N({},e,{value:be}),group:N({},e,{value:xe}),groupCollapsed:N({},e,{value:ke}),groupEnd:N({},e,{value:Ee})})}we<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var p=e?e.displayName||e.name:"",f=p?Oe(p):"";return"function"==typeof e&&Re.set(e,f),f}function Ae(e,t,r){if(null==e)return"";if("function"==typeof e)return Ne(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Oe(e);switch(e){case u:return Oe("Suspense");case d:return Oe("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return Ne(e.render,!1);case p:return Ae(e.type,t,r);case f:var n=e._payload,o=e._init;try{return Ae(o(n),t,r)}catch(e){}}return""}Re=new Ie;var Pe,Le={},Me=S.ReactDebugCurrentFrame;function je(e){if(e){var t=e._owner,r=Ae(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(r)}else Me.setExtraStackFrame(null)}function Be(e){if(e){var t=e._owner;w(Ae(e.type,e._source,t?t.type:null))}else w(null)}function De(){if(x.current){var e=H(x.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Ve(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Pe=!1;var Fe={};function ze(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=De();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Fe[r]){Fe[r]=!0;var n="";e&&e._owner&&e._owner!==x.current&&(n=" It was passed a child from "+H(e._owner.type)+"."),Be(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),Be(null)}}}function We(e,t){if("object"==typeof e)if(z(e))for(var r=0;r<e.length;r++){var n=e[r];ae(n)&&ze(n,t)}else if(ae(e))e._store&&(e._store.validated=!0);else if(e){var o=v(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ae(a.value)&&ze(a.value,t)}}function $e(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==c&&r.$$typeof!==p)return;t=r.propTypes}if(t){var n=H(r);!function(e,t,r,n,o){var a=Function.call.bind(Z);for(var i in e)if(a(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((n||"React class")+": prop type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[i](t,i,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(je(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).",n||"React class",r,i,typeof s),je(null)),s instanceof Error&&!(s.message in Le)&&(Le[s.message]=!0,je(o),_("Failed %s type: %s",r,s.message),je(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||Pe||(Pe=!0,_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ue(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Be(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Be(null);break}}null!==e.ref&&(Be(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),Be(null))}function He(e,t,n){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=Ve(t);i+=l||De(),null===e?s="null":z(e)?s="array":void 0!==e&&e.$$typeof===r?(s="<"+(H(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,_("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,i)}var c=ne.apply(this,arguments);if(null==c)return c;if(a)for(var u=2;u<arguments.length;u++)We(arguments[u],e);return e===o?Ue(c):$e(c),c}var qe=!1,Ye=!1,Ge=null,Ze=0,Xe=!1;function Ke(e){e!==Ze-1&&_("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ze=e}function Je(t,r,n){var o=b.current;if(null!==o)try{et(o),function(a){if(null===Ge)try{var i=("require"+Math.random()).slice(0,7);Ge=(e&&e[i]).call(e,"timers").setImmediate}catch(e){Ge=function(e){!1===Ye&&(Ye=!0,"undefined"==typeof MessageChannel&&_("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Ge(function(){0===o.length?(b.current=null,r(t)):Je(t,r,n)})}()}catch(e){n(e)}else r(t)}var Qe=!1;function et(e){if(!Qe){Qe=!0;var t=0;try{for(;t<e.length;t++){var r=e[t];do{r=r(!0)}while(null!==r)}e.length=0}catch(r){throw e=e.slice(t+1),r}finally{Qe=!1}}}var tt=He,rt={map:pe,forEach:function(e,t,r){pe(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return pe(e,function(){t++}),t},toArray:function(e){return pe(e,function(e){return e})||[]},only:function(e){if(!ae(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=rt,t.Component=P,t.Fragment=o,t.Profiler=i,t.PureComponent=D,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S,t.cloneElement=function(e,t,r){for(var n=oe.apply(this,arguments),o=2;o<arguments.length;o++)We(arguments[o],n.type);return $e(n),n},t.createContext=function(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:s,_context:t};var r=!1,n=!1,o=!1,a={$$typeof:l,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return n||(n=!0,_("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return r||(r=!0,_("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===p?_("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?_("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&_("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||_("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,r={$$typeof:c,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,e.name||e.displayName||(e.displayName=r)}}),r},t.isValidElement=ae,t.lazy=function(e){var t,r,n={$$typeof:f,_payload:{_status:-1,_result:e},_init:fe};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){_("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){_("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},t.memo=function(e,t){me(e)||_("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:p,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,e.name||e.displayName||(e.displayName=t)}}),n},t.startTransition=function(e,t){var r=y.transition;y.transition={};var n=y.transition;y.transition._updatedFibers=new Set;try{e()}finally{y.transition=r,null===r&&n._updatedFibers&&(n._updatedFibers.size>10&&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."),n._updatedFibers.clear())}},t.unstable_act=function(e){var t=Ze;Ze++,null===b.current&&(b.current=[]);var r,n=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,r=e(),!n&&b.didScheduleLegacyUpdate){var o=b.current;null!==o&&(b.didScheduleLegacyUpdate=!1,et(o))}}catch(e){throw Ke(t),e}finally{b.isBatchingLegacy=n}if(null!==r&&"object"==typeof r&&"function"==typeof r.then){var a=r,i=!1,s={then:function(e,r){i=!0,a.then(function(n){Ke(t),0===Ze?Je(n,e,r):e(n)},function(e){Ke(t),r(e)})}};return Xe||"undefined"==typeof Promise||Promise.resolve().then(function(){}).then(function(){i||(Xe=!0,_("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),s}var l=r;if(Ke(t),0===Ze){var c=b.current;return null!==c&&(et(c),b.current=null),{then:function(e,t){null===b.current?(b.current=[],Je(l,e,t)):e(l)}}}return{then:function(e,t){e(l)}}},t.useCallback=function(e,t){return he().useCallback(e,t)},t.useContext=function(e){var t=he();if(void 0!==e._context){var r=e._context;r.Consumer===e?_("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&_("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return he().useDebugValue(e,t)},t.useDeferredValue=function(e){return he().useDeferredValue(e)},t.useEffect=function(e,t){return he().useEffect(e,t)},t.useId=function(){return he().useId()},t.useImperativeHandle=function(e,t,r){return he().useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return he().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return he().useLayoutEffect(e,t)},t.useMemo=function(e,t){return he().useMemo(e,t)},t.useReducer=function(e,t,r){return he().useReducer(e,t,r)},t.useRef=function(e){return he().useRef(e)},t.useState=function(e){return he().useState(e)},t.useSyncExternalStore=function(e,t,r){return he().useSyncExternalStore(e,t,r)},t.useTransition=function(){return he().useTransition()},t.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}),je=ee(function(e){e.exports="production"===process.env.NODE_ENV?Le:Me}),Be=/*#__PURE__*/Q({__proto__:null,default:je},[je]),De=/*#__PURE__*/function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var r=64===e.charCodeAt(0)&&105===e.charCodeAt(1);r&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!r}if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Ve="-ms-",Fe="-webkit-",ze=Math.abs,We=String.fromCharCode,$e=Object.assign;function Ue(e){return e.trim()}function He(e,t,r){return e.replace(t,r)}function qe(e,t){return e.indexOf(t)}function Ye(e,t){return 0|e.charCodeAt(t)}function Ge(e,t,r){return e.slice(t,r)}function Ze(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,rt=0,nt="";function ot(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Je,column:Qe,length:i,return:""}}function at(e,t){return $e(ot("",null,null,"",null,null,0),e,{length:-e.length},t)}function it(){return rt=tt>0?Ye(nt,--tt):0,Qe--,10===rt&&(Qe=1,Je--),rt}function st(){return rt=tt<et?Ye(nt,tt++):0,Qe++,10===rt&&(Qe=1,Je++),rt}function lt(){return Ye(nt,tt)}function ct(){return tt}function ut(e,t){return Ge(nt,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 pt(e){return Je=Qe=1,et=Ze(nt=e),tt=0,[]}function ft(e){return nt="",e}function mt(e){return Ue(ut(tt-1,gt(91===e?e+2:40===e?e+1:e)))}function ht(e){for(;(rt=lt())&&rt<33;)st();return dt(e)>2||dt(rt)>3?"":" "}function vt(e,t){for(;--t&&st()&&!(rt<48||rt>102||rt>57&&rt<65||rt>70&&rt<97););return ut(e,ct()+(t<6&&32==lt()&&32==st()))}function gt(e){for(;st();)switch(rt){case e:return tt;case 34:case 39:34!==e&&39!==e&>(rt);break;case 40:41===e&>(e);break;case 92:st()}return tt}function yt(e,t){for(;st()&&e+rt!==57&&(e+rt!==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 ft(kt("",null,null,null,[""],e=pt(e),0,[0],e))}function kt(e,t,r,n,o,a,i,s,l){for(var c=0,u=0,d=i,p=0,f=0,m=0,h=1,v=1,g=1,y=0,b="",x=o,k=a,E=n,w=b;v;)switch(m=y,y=st()){case 40:if(108!=m&&58==w.charCodeAt(d-1)){-1!=qe(w+=He(mt(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:w+=mt(y);break;case 9:case 10:case 13:case 32:w+=ht(m);break;case 92:w+=vt(ct()-1,7);continue;case 47:switch(lt()){case 42:case 47:Ke(wt(yt(st(),ct()),t,r),l);break;default:w+="/"}break;case 123*h:s[c++]=Ze(w)*g;case 125*h:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:f>0&&Ze(w)-d&&Ke(f>32?St(w+";",n,r,d-1):St(He(w," ","")+";",n,r,d-2),l);break;case 59:w+=";";default:if(Ke(E=Et(w,t,r,c,u,o,s,b,x=[],k=[],d),a),123===y)if(0===u)kt(w,t,E,E,x,a,d,s,k);else switch(p){case 100:case 109:case 115:kt(e,E,E,n&&Ke(Et(e,E,E,0,0,o,s,b,o,x=[],d),k),o,k,d,s,n?x:k);break;default:kt(w,E,E,E,[""],k,0,s,k)}}c=u=f=0,h=g=1,b=w="",d=i;break;case 58:d=1+Ze(w),f=m;default:if(h<1)if(123==y)--h;else if(125==y&&0==h++&&125==it())continue;switch(w+=We(y),y*h){case 38:g=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Ze(w)-1)*g,g=1;break;case 64:45===lt()&&(w+=mt(st())),p=lt(),u=d=Ze(b=w+=bt(ct())),y++;break;case 45:45===m&&2==Ze(w)&&(h=0)}}return a}function Et(e,t,r,n,o,a,i,s,l,c,u){for(var d=o-1,p=0===o?a:[""],f=Xe(p),m=0,h=0,v=0;m<n;++m)for(var g=0,y=Ge(e,d+1,d=ze(h=i[m])),b=e;g<f;++g)(b=Ue(h>0?p[g]+" "+y:He(y,/&\f/g,p[g])))&&(l[v++]=b);return ot(e,t,r,0===o?"rule":s,l,c,u)}function wt(e,t,r){return ot(e,t,r,"comm",We(rt),Ge(e,2,-2),0)}function St(e,t,r,n){return ot(e,t,r,"decl",Ge(e,0,n),Ge(e,n+1,-1),n)}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+Ve+e+e;case 6828:case 4268:return Fe+e+Ve+e+e;case 6165:return Fe+e+Ve+"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+Ve+"flex-item-"+He(e,/flex-|-self/,"")+e;case 4675:return Fe+e+Ve+"flex-line-pack"+He(e,/align-content|flex-|-self/,"")+e;case 5548:return Fe+e+Ve+He(e,"shrink","negative")+e;case 5292:return Fe+e+Ve+He(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+He(e,"-grow","")+Fe+e+Ve+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(Ze(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,Ze(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"+Ve+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return Fe+e+Ve+He(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+Ve+He(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+Ve+He(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Fe+e+Ve+e+e}return e}function _t(e,t){for(var r="",n=Xe(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Ot(e,t,r,n){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+_t(e.children,n)+"}";case"rule":e.value=e.props.join(",")}return Ze(r=_t(e.children,n))?e.return=e.value+"{"+r+"}":""}function Rt(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Tt=function(e,t,r){for(var n=0,o=0;n=o,o=lt(),38===n&&12===o&&(t[r]=1),!dt(o);)st();return ut(e,tt)},It=/* #__PURE__ */new WeakMap,Nt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||It.get(r))&&!n){It.set(e,!0);for(var o=[],a=function(e,t){return ft(function(e,t){var r=-1,n=44;do{switch(dt(n)){case 0:38===n&&12===lt()&&(t[r]=1),e[r]+=Tt(tt-1,t,r);break;case 2:e[r]+=mt(n);break;case 4:if(44===n){e[++r]=58===lt()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=We(n)}}while(n=st());return e}(pt(e),t))}(t,o),i=r.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]}}},At=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Pt=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,r){Pt(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 r=e-1;r>=0;r--)if(!Pt(t[r]))return!0;return!1}(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Lt(e)))},jt=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Ct(e.value,e.length);break;case"@keyframes":return _t([at(e,{value:He(e.value,"@","@"+Fe)})],n);case"rule":if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return _t([at(e,{props:[He(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return _t([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+)/,Ve+"input-$1")]})],n)}return""})}}],Bt=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n=e.stylisPlugins||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(" "),r=1;r<t.length;r++)i[t[r]]=!0;s.push(e)});var l=[Nt,At];"production"!==process.env.NODE_ENV&&l.push(function(e){return function(t,r,n){if("rule"===t.type){var o,a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a&&!0!==e.compat){var i=r>0?n[r-1]:null;if(i&&function(e){return!!e&&"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1}((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 f.compat}}),Mt);var c,u,d=[Ot,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?c.insert(e.return):e.value&&"comm"!==e.type&&c.insert(e.value+"{}"))}:(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=function(e){var t=Xe(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}(l.concat(n,d));a=function(e,t,r,n){c=r,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(c={insert:function(e){r.insert(e+t.map)}}),_t(xt(e?e+"{"+t.styles+"}":t.styles),p),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new De({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return f.sheet.hydrate(s),f};function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dt.apply(this,arguments)}var Vt="function"==typeof Symbol&&Symbol.for,Ft=Vt?Symbol.for("react.element"):60103,zt=Vt?Symbol.for("react.portal"):60106,Wt=Vt?Symbol.for("react.fragment"):60107,$t=Vt?Symbol.for("react.strict_mode"):60108,Ut=Vt?Symbol.for("react.profiler"):60114,Ht=Vt?Symbol.for("react.provider"):60109,qt=Vt?Symbol.for("react.context"):60110,Yt=Vt?Symbol.for("react.async_mode"):60111,Gt=Vt?Symbol.for("react.concurrent_mode"):60111,Zt=Vt?Symbol.for("react.forward_ref"):60112,Xt=Vt?Symbol.for("react.suspense"):60113,Kt=Vt?Symbol.for("react.suspense_list"):60120,Jt=Vt?Symbol.for("react.memo"):60115,Qt=Vt?Symbol.for("react.lazy"):60116,er=Vt?Symbol.for("react.block"):60121,tr=Vt?Symbol.for("react.fundamental"):60117,rr=Vt?Symbol.for("react.responder"):60118,nr=Vt?Symbol.for("react.scope"):60119;function or(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ft:switch(e=e.type){case Yt:case Gt:case Wt:case Ut:case $t:case Xt:return e;default:switch(e=e&&e.$$typeof){case qt:case Zt:case Qt:case Jt:case Ht:return e;default:return t}}case zt:return t}}}function ar(e){return or(e)===Gt}var ir={AsyncMode:Yt,ConcurrentMode:Gt,ContextConsumer:qt,ContextProvider:Ht,Element:Ft,ForwardRef:Zt,Fragment:Wt,Lazy:Qt,Memo:Jt,Portal:zt,Profiler:Ut,StrictMode:$t,Suspense:Xt,isAsyncMode:function(e){return ar(e)||or(e)===Yt},isConcurrentMode:ar,isContextConsumer:function(e){return or(e)===qt},isContextProvider:function(e){return or(e)===Ht},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ft},isForwardRef:function(e){return or(e)===Zt},isFragment:function(e){return or(e)===Wt},isLazy:function(e){return or(e)===Qt},isMemo:function(e){return or(e)===Jt},isPortal:function(e){return or(e)===zt},isProfiler:function(e){return or(e)===Ut},isStrictMode:function(e){return or(e)===$t},isSuspense:function(e){return or(e)===Xt},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Wt||e===Gt||e===Ut||e===$t||e===Xt||e===Kt||"object"==typeof e&&null!==e&&(e.$$typeof===Qt||e.$$typeof===Jt||e.$$typeof===Ht||e.$$typeof===qt||e.$$typeof===Zt||e.$$typeof===tr||e.$$typeof===rr||e.$$typeof===nr||e.$$typeof===er)},typeOf:or},sr=ee(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:var f=e.type;switch(f){case c:case u:case o:case i:case a:case p:return f;default:var v=f&&f.$$typeof;switch(v){case l:case d:case h:case m:case s:return v;default:return t}}case n:return t}}}var k=u,E=l,w=s,S=r,C=d,_=o,O=h,R=m,T=n,I=i,N=a,A=p,P=!1;function L(e){return x(e)===u}t.AsyncMode=c,t.ConcurrentMode=k,t.ContextConsumer=E,t.ContextProvider=w,t.Element=S,t.ForwardRef=C,t.Fragment=_,t.Lazy=O,t.Memo=R,t.Portal=T,t.Profiler=I,t.StrictMode=N,t.Suspense=A,t.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||x(e)===c},t.isConcurrentMode=L,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===h},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===n},t.isProfiler=function(e){return x(e)===i},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===i||e===a||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===y||e.$$typeof===b||e.$$typeof===v)},t.typeOf=x}()});function lr(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}ee(function(e){e.exports="production"===process.env.NODE_ENV?ir:sr});var cr=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},ur=function(e,t,r){cr(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},dr={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},pr="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",fr=/[A-Z]|^ms/g,mr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hr=function(e){return 45===e.charCodeAt(1)},vr=function(e){return null!=e&&"boolean"!=typeof e},gr=/* #__PURE__ */Rt(function(e){return hr(e)?e:e.replace(fr,"-$&").toLowerCase()}),yr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(mr,function(e,t,r){return Rr={name:t,styles:r,next:Rr},t})}return 1===dr[e]||hr(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var br=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,xr=["normal","none","initial","inherit","unset"],kr=yr,Er=/^-ms-/,wr=/-(.)/g,Sr={};yr=function(e,t){if("content"===e&&("string"!=typeof t||-1===xr.indexOf(t)&&!br.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=kr(e,t);return""===r||hr(e)||-1===e.indexOf("-")||void 0!==Sr[e]||(Sr[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Er,"ms-").replace(wr,function(e,t){return t.toUpperCase()})+"?")),r}}var Cr="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function _r(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===r.toString())throw new Error(Cr);return r}switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return Rr={name:r.name,styles:r.styles,next:Rr},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)Rr={name:n.name,styles:n.styles,next:Rr},n=n.next;var o=r.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==r.map&&(o+=r.map),o}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=_r(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?n+=a+"{"+t[i]+"}":vr(i)&&(n+=gr(a)+":"+yr(a,i)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error(Cr);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=_r(e,t,i);switch(a){case"animation":case"animationName":n+=gr(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)."),n+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)vr(i[l])&&(n+=gr(a)+":"+yr(a,i[l])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var a=Rr,i=r(e);return Rr=a,_r(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var s=[],l=r.replace(mr,function(e,t,r){var n="animation"+s.length;return s.push("const "+n+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+n+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+l+"`")}}if(null==t)return r;var c=t[r];return void 0!==c?c:r}var Or,Rr,Tr=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Or=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Ir=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";Rr=void 0;var a,i=e[0];null==i||void 0===i.raw?(n=!1,o+=_r(r,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(pr),o+=i[0]);for(var s=1;s<e.length;s++)o+=_r(r,t,e[s]),n&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(pr),o+=i[s]);"production"!==process.env.NODE_ENV&&(o=o.replace(Or,function(e){return a=e,""})),Tr.lastIndex=0;for(var l,c="";null!==(l=Tr.exec(o));)c+="-"+l[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:o,map:a,next:Rr,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:Rr}},Nr={}.hasOwnProperty,Ar=/* #__PURE__ */je.createContext("undefined"!=typeof HTMLElement?/* #__PURE__ */Bt({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Ar.displayName="EmotionCacheContext");var Pr=function(e){/*#__PURE__*/
|
2
|
+
return je.forwardRef(function(t,r){var n=je.useContext(Ar);return e(t,n,r)})},Lr=/* #__PURE__ */je.createContext({});"production"!==process.env.NODE_ENV&&(Lr.displayName="EmotionThemeContext");var Mr=Be.useInsertionEffect?Be.useInsertionEffect:function(e){e()};function jr(e){Mr(e)}var Br=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return cr(t,r,n),jr(function(){return ur(t,r,n)}),null},Dr=/* #__PURE__ */Pr(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,a=[n],i="";"string"==typeof e.className?i=lr(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=Ir(a,void 0,je.useContext(Lr));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var l=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;l&&(s=Ir([s,"label:"+l+";"]))}i+=t.key+"-"+s.name;var c={};for(var u in e)!Nr.call(e,u)||"css"===u||"__EMOTION_TYPE_PLEASE_DO_NOT_USE__"===u||"production"!==process.env.NODE_ENV&&"__EMOTION_LABEL_PLEASE_DO_NOT_USE__"===u||(c[u]=e[u]);return c.ref=r,c.className=i,/*#__PURE__*/je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement(Br,{cache:t,serialized:s,isStringTag:"string"==typeof o}),/*#__PURE__*/je.createElement(o,c))});"production"!==process.env.NODE_ENV&&(Dr.displayName="EmotionCssPropInternal");var Vr=Be.useInsertionEffect?Be.useInsertionEffect:je.useLayoutEffect,Fr=!1,zr=/* #__PURE__ */Pr(function(e,t){"production"===process.env.NODE_ENV||Fr||!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?"),Fr=!0);var r=Ir([e.styles],void 0,je.useContext(Lr)),n=je.useRef();return Vr(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+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),o.hydrate([i])),n.current=[o,a],function(){o.flush()}},[t]),Vr(function(){var e=n.current,o=e[0];e[1]?e[1]=!1:(void 0!==r.next&&ur(t,r.next,!0),o.tags.length&&(o.before=o.tags[o.tags.length-1].nextElementSibling,o.flush()),t.insert("",r,o,!1))},[t,r.name]),null});function Wr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ir(t)}"production"!==process.env.NODE_ENV&&(zr.displayName="EmotionGlobal");var $r=function(){var e=Wr.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_"}}},Ur=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var a=t[n];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 Hr(e,t,r){var n=[],o=lr(e,n,r);return n.length<2?r:o+t(n)}var qr=function(e){var t=e.cache,r=e.serializedArr;return jr(function(){for(var e=0;e<r.length;e++)ur(t,r[e],!1)}),null},Yr=/* #__PURE__ */Pr(function(e,t){var r=!1,n=[],o=function(){if(r&&"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=Ir(o,t.registered);return n.push(i),cr(t,i,!1),t.key+"-"+i.name},a={css:o,cx:function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return Hr(t.registered,o,Ur(n))},theme:je.useContext(Lr)},i=e.children(a);return r=!0,/*#__PURE__*/je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement(qr,{cache:t,serializedArr:n}),i)});if("production"!==process.env.NODE_ENV&&(Yr.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV&&"undefined"==typeof jest){var Gr="undefined"!=typeof globalThis?globalThis:window,Zr="__EMOTION_REACT_"+"11.9.3".split(".")[0]+"__";Gr[Zr]&&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."),Gr[Zr]=!0}function Xr(e,r){if(null!=e)if(t(e))e(r);else try{e.current=r}catch(t){throw new Error("Cannot assign value '"+r+"' to ref '"+e+"'")}}function Kr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){t.forEach(function(t){return Xr(t,e)})}}function Jr(e){void 0===e&&(e={});var t=e.strict,r=void 0===t||t,n=e.errorMessage,o=void 0===n?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":n,a=e.name,i=/*#__PURE__*/je.createContext(void 0);return i.displayName=a,[i.Provider,function e(){var t=je.useContext(i);if(!t&&r){var n=new Error(o);throw n.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(n,e),n}return t},i]}function Qr(e){return je.Children.toArray(e).filter(function(e){/*#__PURE__*/
|
3
|
+
return je.isValidElement(e)})}var en=n?je.useLayoutEffect:je.useEffect;function tn(e,t){void 0===t&&(t=[]);var r=je.useRef(e);return en(function(){r.current=e}),je.useCallback(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return null==r.current?void 0:r.current.apply(r,t)},t)}function rn(e,t,r,n){var a=tn(t);return je.useEffect(function(){var i,s=null!=(i=o(r))?i:document;if(t)return s.addEventListener(e,a,n),function(){s.removeEventListener(e,a,n)}},[e,r,n,a,t]),function(){var t;(null!=(t=o(r))?t:document).removeEventListener(e,a,n)}}function nn(e){void 0===e&&(e=!1);var t=je.useState(e),r=t[0],n=t[1],o=je.useMemo(function(){return{on:function(){return n(!0)},off:function(){return n(!1)},toggle:function(){return n(function(e){return!e})}}},[]);return[r,o]}function on(e,t){var r=void 0!==e;return[r,r&&void 0!==e?e:t]}function an(e){var t=e.value,r=e.defaultValue,n=e.shouldUpdate,a=void 0===n?function(e,t){return e!==t}:n,i=tn(e.onChange),s=tn(a),l=je.useState(r),c=l[1],u=void 0!==t,d=u?t:l[0],p=je.useCallback(function(e){var t=o(e,d);s(d,t)&&(u||c(t),i(t))},[u,i,d,s]);return[d,p]}function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sn.apply(this,arguments)}function ln(e,t){var r=je.useId();return je.useMemo(function(){return e||[t,r].filter(Boolean).join("-")},[e,t,r])}var cn=function(e,t){var r=je.useRef(!1),n=je.useRef(!1);je.useEffect(function(){if(r.current&&n.current)return e();n.current=!0},t),je.useEffect(function(){return r.current=!0,function(){r.current=!1}},[])};function un(e,t){return void 0===t&&(t=[]),je.useEffect(function(){return function(){return e()}},t)}function dn(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(r){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}else e(t)}function pn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return je.useMemo(function(){return t.every(function(e){return null==e})?null:function(e){t.forEach(function(t){t&&dn(t,e)})}},t)}function fn(e,t){var r,n=e.target;return!(e.button>0||n&&!s(n).contains(n)||null!=(r=t.current)&&r.contains(n))}var mn=/*#__PURE__*/je.createContext({});d&&(mn.displayName="ColorModeContext");var hn="undefined"!=typeof Element,vn="function"==typeof Map,gn="function"==typeof Set,yn="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function bn(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var r,n,o,a;if(Array.isArray(e)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!bn(e[n],t[n]))return!1;return!0}if(vn&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!bn(n.value[1],t.get(n.value[0])))return!1;return!0}if(gn&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(yn&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(hn&&e instanceof Element)return!1;for(n=r;0!=n--;)if(("_owner"!==o[n]&&"__v"!==o[n]&&"__o"!==o[n]||!e.$$typeof)&&!bn(e[o[n]],t[o[n]]))return!1;return!0}return e!=e&&t!=t}var xn=function(e,t){try{return bn(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}},kn=/^((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)-.*))$/,En=/* #__PURE__ */Rt(function(e){return kn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),wn=function(e){return"theme"!==e},Sn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?En:wn},Cn=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},_n=Be.useInsertionEffect?Be.useInsertionEffect:function(e){e()},On="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",Rn=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return cr(t,r,n),_n(function(){return ur(t,r,n)}),null},Tn=function e(t,r){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var n,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var s=Cn(t,r,a),l=s||Sn(i),c=!l("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&d.push("label:"+n+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{"production"!==process.env.NODE_ENV&&void 0===u[0][0]&&console.error(On),d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)"production"!==process.env.NODE_ENV&&void 0===u[0][f]&&console.error(On),d.push(u[f],u[0][f])}var m=Pr(function(e,t,r){var n=c&&e.as||i,a="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=je.useContext(Lr)}"string"==typeof e.className?a=lr(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var m=Ir(d.concat(u),t.registered,p);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var h=c&&void 0===s?Sn(n):l,v={};for(var g in e)c&&"as"===g||h(g)&&(v[g]=e[g]);return v.className=a,v.ref=r,/*#__PURE__*/je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement(Rn,{cache:t,serialized:m,isStringTag:"string"==typeof n}),/*#__PURE__*/je.createElement(n,v))});return m.displayName=void 0!==n?n:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===o&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,n){return e(t,Dt({},r,n,{shouldForwardProp:Cn(m,n,!0)})).apply(void 0,d)},m}}.bind();function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},In.apply(this,arguments)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Tn[e]=Tn(e)});var Nn,An,Pn=function(e){return m(e)?e.replace(/!(important)?$/,"").trim():e},Ln=function(e,t){return function(r){var n=String(t),o=function(e){return/!(important)?$/.test(e)}(n),a=Pn(n),i=e?e+"."+a:a,s=h(r.__cssMap)&&i in r.__cssMap?r.__cssMap[i].varRef:t;return s=Pn(s),o?s+" !important":s}};function Mn(e){var t=e.scale,r=e.transform,n=e.compose;return function(e,o){var a,i=Ln(t,e)(o),s=null!=(a=null==r?void 0:r(i,o))?a:i;return n&&(s=n(s,o)),s}}function jn(e,t){return function(r){var n={property:r,scale:e};return n.transform=Mn({scale:e,transform:t}),n}}var Bn=["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))"],Dn={"--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(" ")},Vn={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,/*!*/ /*!*/)"},Fn={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},zn=((Nn={})["& > :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))"},Nn),Wn=((An={})["& > :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))"},An);function $n(e,t){return $n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$n(e,t)}function Un(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&&$n(e,t)}function Hn(){Hn=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,n,o){var a=new RegExp(e,n);return t.set(a,o||t.get(e)),$n(a,r.prototype)}function n(e,r){var n=t.get(r);return Object.keys(n).reduce(function(t,r){return t[r]=e[n[r]],t},Object.create(null))}return Un(r,RegExp),r.prototype.exec=function(t){var r=e.exec.call(this,t);return r&&(r.groups=n(r,this)),r},r.prototype[Symbol.replace]=function(r,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,r,o.replace(/\$<([^>]+)>/g,function(e,t){return"$"+a[t]}))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,r,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(n(e,i)),o.apply(this,e)})}return e[Symbol.replace].call(this,r,o)},Hn.apply(this,arguments)}var qn={"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"},Yn=new Set(Object.values(qn)),Gn=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Zn=function(e){return e.trim()},Xn=function(e){return m(e)&&e.includes("(")&&e.includes(")")},Kn=function(e){return function(t){return e+"("+t+")"}},Jn={filter:function(e){return"auto"!==e?e:Dn},backdropFilter:function(e){return"auto"!==e?e:Vn},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(", ")}}(Jn.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(Bn).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(Bn).join(" "):e},px:function(e){if(null==e)return e;var t=function(e){var t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return t.unitless||v(e)?e+"px":e},fraction:function(e){return!v(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if(g(e)||null==e)return e;var t=m(e)&&!e.endsWith("deg");return v(e)||t?e+"deg":e},gradient:function(e,t){return function(e,t){var r,n;if(null==e||Gn.has(e))return e;var o=null!=(r=null==(n=/*#__PURE__*/Hn(/(^[a-z-A-Z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:n.groups)?r:{},a=o.type,i=o.values;if(!a||!i)return e;var s=a.includes("-gradient")?a:a+"-gradient",l=i.split(",").map(Zn).filter(Boolean),c=l[0],u=l.slice(1);if(0===(null==u?void 0:u.length))return e;u.unshift(c in qn?qn[c]:c);var d=u.map(function(e){if(Yn.has(e))return e;var r=e.indexOf(" "),n=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],o=n[0],a=n[1],i=Xn(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:Kn("blur"),opacity:Kn("opacity"),brightness:Kn("brightness"),contrast:Kn("contrast"),dropShadow:Kn("drop-shadow"),grayscale:Kn("grayscale"),hueRotate:Kn("hue-rotate"),invert:Kn("invert"),saturate:Kn("saturate"),sepia:Kn("sepia"),bgImage:function(e){return null==e||Xn(e)||Gn.has(e)?e:"url("+e+")"},outline:function(e){var t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var t,r=null!=(t=Fn[e])?t:{},n=r.space,o=r.divide,a={flexDirection:e};return n&&(a[n]=1),o&&(a[o]=1),a}},Qn={borderWidths:jn("borderWidths"),borderStyles:jn("borderStyles"),colors:jn("colors"),borders:jn("borders"),radii:jn("radii",Jn.px),space:jn("space",Jn.px),spaceT:jn("space",Jn.px),degreeT:function(e){return{property:e,transform:Jn.degree}},prop:function(e,t,r){return In({property:e,scale:t},t&&{transform:Mn({scale:t,transform:r})})},propT:function(e,t){return{property:e,transform:t}},sizes:jn("sizes",Jn.px),sizesT:jn("sizes",Jn.fraction),shadows:jn("shadows"),logical:function(e){var t,r,n,o=e.scale,a=e.transform;return{scale:o,property:(t=e.property,r=t.rtl,n=t.ltr,function(e){return"rtl"===e.direction?r:n}),transform:o?Mn({scale:o,compose:a}):a}},blur:jn("blur",Jn.blur)},eo={background:Qn.colors("background"),backgroundColor:Qn.colors("backgroundColor"),backgroundImage:Qn.propT("backgroundImage",Jn.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Jn.bgClip},bgSize:Qn.prop("backgroundSize"),bgPosition:Qn.prop("backgroundPosition"),bg:Qn.colors("background"),bgColor:Qn.colors("backgroundColor"),bgPos:Qn.prop("backgroundPosition"),bgRepeat:Qn.prop("backgroundRepeat"),bgAttachment:Qn.prop("backgroundAttachment"),bgGradient:Qn.propT("backgroundImage",Jn.gradient),bgClip:{transform:Jn.bgClip}};Object.assign(eo,{bgImage:eo.backgroundImage,bgImg:eo.backgroundImage});var to={border:Qn.borders("border"),borderWidth:Qn.borderWidths("borderWidth"),borderStyle:Qn.borderStyles("borderStyle"),borderColor:Qn.colors("borderColor"),borderRadius:Qn.radii("borderRadius"),borderTop:Qn.borders("borderTop"),borderBlockStart:Qn.borders("borderBlockStart"),borderTopLeftRadius:Qn.radii("borderTopLeftRadius"),borderStartStartRadius:Qn.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Qn.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Qn.radii("borderTopRightRadius"),borderStartEndRadius:Qn.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Qn.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Qn.borders("borderRight"),borderInlineEnd:Qn.borders("borderInlineEnd"),borderBottom:Qn.borders("borderBottom"),borderBlockEnd:Qn.borders("borderBlockEnd"),borderBottomLeftRadius:Qn.radii("borderBottomLeftRadius"),borderBottomRightRadius:Qn.radii("borderBottomRightRadius"),borderLeft:Qn.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Qn.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Qn.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Qn.borders(["borderLeft","borderRight"]),borderInline:Qn.borders("borderInline"),borderY:Qn.borders(["borderTop","borderBottom"]),borderBlock:Qn.borders("borderBlock"),borderTopWidth:Qn.borderWidths("borderTopWidth"),borderBlockStartWidth:Qn.borderWidths("borderBlockStartWidth"),borderTopColor:Qn.colors("borderTopColor"),borderBlockStartColor:Qn.colors("borderBlockStartColor"),borderTopStyle:Qn.borderStyles("borderTopStyle"),borderBlockStartStyle:Qn.borderStyles("borderBlockStartStyle"),borderBottomWidth:Qn.borderWidths("borderBottomWidth"),borderBlockEndWidth:Qn.borderWidths("borderBlockEndWidth"),borderBottomColor:Qn.colors("borderBottomColor"),borderBlockEndColor:Qn.colors("borderBlockEndColor"),borderBottomStyle:Qn.borderStyles("borderBottomStyle"),borderBlockEndStyle:Qn.borderStyles("borderBlockEndStyle"),borderLeftWidth:Qn.borderWidths("borderLeftWidth"),borderInlineStartWidth:Qn.borderWidths("borderInlineStartWidth"),borderLeftColor:Qn.colors("borderLeftColor"),borderInlineStartColor:Qn.colors("borderInlineStartColor"),borderLeftStyle:Qn.borderStyles("borderLeftStyle"),borderInlineStartStyle:Qn.borderStyles("borderInlineStartStyle"),borderRightWidth:Qn.borderWidths("borderRightWidth"),borderInlineEndWidth:Qn.borderWidths("borderInlineEndWidth"),borderRightColor:Qn.colors("borderRightColor"),borderInlineEndColor:Qn.colors("borderInlineEndColor"),borderRightStyle:Qn.borderStyles("borderRightStyle"),borderInlineEndStyle:Qn.borderStyles("borderInlineEndStyle"),borderTopRadius:Qn.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Qn.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Qn.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Qn.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(to,{rounded:to.borderRadius,roundedTop:to.borderTopRadius,roundedTopLeft:to.borderTopLeftRadius,roundedTopRight:to.borderTopRightRadius,roundedTopStart:to.borderStartStartRadius,roundedTopEnd:to.borderStartEndRadius,roundedBottom:to.borderBottomRadius,roundedBottomLeft:to.borderBottomLeftRadius,roundedBottomRight:to.borderBottomRightRadius,roundedBottomStart:to.borderEndStartRadius,roundedBottomEnd:to.borderEndEndRadius,roundedLeft:to.borderLeftRadius,roundedRight:to.borderRightRadius,roundedStart:to.borderInlineStartRadius,roundedEnd:to.borderInlineEndRadius,borderStart:to.borderInlineStart,borderEnd:to.borderInlineEnd,borderTopStartRadius:to.borderStartStartRadius,borderTopEndRadius:to.borderStartEndRadius,borderBottomStartRadius:to.borderEndStartRadius,borderBottomEndRadius:to.borderEndEndRadius,borderStartRadius:to.borderInlineStartRadius,borderEndRadius:to.borderInlineEndRadius,borderStartWidth:to.borderInlineStartWidth,borderEndWidth:to.borderInlineEndWidth,borderStartColor:to.borderInlineStartColor,borderEndColor:to.borderInlineEndColor,borderStartStyle:to.borderInlineStartStyle,borderEndStyle:to.borderInlineEndStyle});var ro={color:Qn.colors("color"),textColor:Qn.colors("color"),fill:Qn.colors("fill"),stroke:Qn.colors("stroke")},no={boxShadow:Qn.shadows("boxShadow"),mixBlendMode:!0,blendMode:Qn.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Qn.prop("backgroundBlendMode"),opacity:!0};Object.assign(no,{shadow:no.boxShadow});var oo={filter:{transform:Jn.filter},blur:Qn.blur("--chakra-blur"),brightness:Qn.propT("--chakra-brightness",Jn.brightness),contrast:Qn.propT("--chakra-contrast",Jn.contrast),hueRotate:Qn.degreeT("--chakra-hue-rotate"),invert:Qn.propT("--chakra-invert",Jn.invert),saturate:Qn.propT("--chakra-saturate",Jn.saturate),dropShadow:Qn.propT("--chakra-drop-shadow",Jn.dropShadow),backdropFilter:{transform:Jn.backdropFilter},backdropBlur:Qn.blur("--chakra-backdrop-blur"),backdropBrightness:Qn.propT("--chakra-backdrop-brightness",Jn.brightness),backdropContrast:Qn.propT("--chakra-backdrop-contrast",Jn.contrast),backdropHueRotate:Qn.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Qn.propT("--chakra-backdrop-invert",Jn.invert),backdropSaturate:Qn.propT("--chakra-backdrop-saturate",Jn.saturate)},ao={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Jn.flexDirection},experimental_spaceX:{static:zn,transform:Mn({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:Wn,transform:Mn({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Qn.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Qn.space("gap"),rowGap:Qn.space("rowGap"),columnGap:Qn.space("columnGap")};Object.assign(ao,{flexDir:ao.flexDirection});var io={gridGap:Qn.space("gridGap"),gridColumnGap:Qn.space("gridColumnGap"),gridRowGap:Qn.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},so={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Jn.outline},outlineOffset:!0,outlineColor:Qn.colors("outlineColor")},lo={width:Qn.sizesT("width"),inlineSize:Qn.sizesT("inlineSize"),height:Qn.sizes("height"),blockSize:Qn.sizes("blockSize"),boxSize:Qn.sizes(["width","height"]),minWidth:Qn.sizes("minWidth"),minInlineSize:Qn.sizes("minInlineSize"),minHeight:Qn.sizes("minHeight"),minBlockSize:Qn.sizes("minBlockSize"),maxWidth:Qn.sizes("maxWidth"),maxInlineSize:Qn.sizes("maxInlineSize"),maxHeight:Qn.sizes("maxHeight"),maxBlockSize:Qn.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Qn.propT("float",Jn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(lo,{w:lo.width,h:lo.height,minW:lo.minWidth,maxW:lo.maxWidth,minH:lo.minHeight,maxH:lo.maxHeight,overscroll:lo.overscrollBehavior,overscrollX:lo.overscrollBehaviorX,overscrollY:lo.overscrollBehaviorY});var co={listStyleType:!0,listStylePosition:!0,listStylePos:Qn.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Qn.prop("listStyleImage")},uo={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},po={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},fo=function(e,t,r){var n={},o=y(e,t,{});for(var a in o)a in r&&null!=r[a]||(n[a]=o[a]);return n},mo={srOnly:{transform:function(e){return!0===e?uo:"focusable"===e?po:{}}},layerStyle:{processResult:!0,transform:function(e,t,r){return fo(t,"layerStyles."+e,r)}},textStyle:{processResult:!0,transform:function(e,t,r){return fo(t,"textStyles."+e,r)}},apply:{processResult:!0,transform:function(e,t,r){return fo(t,e,r)}}},ho={position:!0,pos:Qn.prop("position"),zIndex:Qn.prop("zIndex","zIndices"),inset:Qn.spaceT("inset"),insetX:Qn.spaceT(["left","right"]),insetInline:Qn.spaceT("insetInline"),insetY:Qn.spaceT(["top","bottom"]),insetBlock:Qn.spaceT("insetBlock"),top:Qn.spaceT("top"),insetBlockStart:Qn.spaceT("insetBlockStart"),bottom:Qn.spaceT("bottom"),insetBlockEnd:Qn.spaceT("insetBlockEnd"),left:Qn.spaceT("left"),insetInlineStart:Qn.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Qn.spaceT("right"),insetInlineEnd:Qn.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(ho,{insetStart:ho.insetInlineStart,insetEnd:ho.insetInlineEnd});var vo={ring:{transform:Jn.ring},ringColor:Qn.colors("--chakra-ring-color"),ringOffset:Qn.prop("--chakra-ring-offset-width"),ringOffsetColor:Qn.colors("--chakra-ring-offset-color"),ringInset:Qn.prop("--chakra-ring-inset")},go={margin:Qn.spaceT("margin"),marginTop:Qn.spaceT("marginTop"),marginBlockStart:Qn.spaceT("marginBlockStart"),marginRight:Qn.spaceT("marginRight"),marginInlineEnd:Qn.spaceT("marginInlineEnd"),marginBottom:Qn.spaceT("marginBottom"),marginBlockEnd:Qn.spaceT("marginBlockEnd"),marginLeft:Qn.spaceT("marginLeft"),marginInlineStart:Qn.spaceT("marginInlineStart"),marginX:Qn.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Qn.spaceT("marginInline"),marginY:Qn.spaceT(["marginTop","marginBottom"]),marginBlock:Qn.spaceT("marginBlock"),padding:Qn.space("padding"),paddingTop:Qn.space("paddingTop"),paddingBlockStart:Qn.space("paddingBlockStart"),paddingRight:Qn.space("paddingRight"),paddingBottom:Qn.space("paddingBottom"),paddingBlockEnd:Qn.space("paddingBlockEnd"),paddingLeft:Qn.space("paddingLeft"),paddingInlineStart:Qn.space("paddingInlineStart"),paddingInlineEnd:Qn.space("paddingInlineEnd"),paddingX:Qn.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Qn.space("paddingInline"),paddingY:Qn.space(["paddingTop","paddingBottom"]),paddingBlock:Qn.space("paddingBlock")};Object.assign(go,{m:go.margin,mt:go.marginTop,mr:go.marginRight,me:go.marginInlineEnd,marginEnd:go.marginInlineEnd,mb:go.marginBottom,ml:go.marginLeft,ms:go.marginInlineStart,marginStart:go.marginInlineStart,mx:go.marginX,my:go.marginY,p:go.padding,pt:go.paddingTop,py:go.paddingY,px:go.paddingX,pb:go.paddingBottom,pl:go.paddingLeft,ps:go.paddingInlineStart,paddingStart:go.paddingInlineStart,pr:go.paddingRight,pe:go.paddingInlineEnd,paddingEnd:go.paddingInlineEnd});var yo={textDecorationColor:Qn.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Qn.shadows("textShadow")},bo={clipPath:!0,transform:Qn.propT("transform",Jn.transform),transformOrigin:!0,translateX:Qn.spaceT("--chakra-translate-x"),translateY:Qn.spaceT("--chakra-translate-y"),skewX:Qn.degreeT("--chakra-skew-x"),skewY:Qn.degreeT("--chakra-skew-y"),scaleX:Qn.prop("--chakra-scale-x"),scaleY:Qn.prop("--chakra-scale-y"),scale:Qn.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Qn.degreeT("--chakra-rotate")},xo={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Qn.prop("transitionDuration","transition.duration"),transitionProperty:Qn.prop("transitionProperty","transition.property"),transitionTimingFunction:Qn.prop("transitionTimingFunction","transition.easing")},ko={fontFamily:Qn.prop("fontFamily","fonts"),fontSize:Qn.prop("fontSize","fontSizes",Jn.px),fontWeight:Qn.prop("fontWeight","fontWeights"),lineHeight:Qn.prop("lineHeight","lineHeights"),letterSpacing:Qn.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"}},Eo={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Qn.spaceT("scrollMargin"),scrollMarginTop:Qn.spaceT("scrollMarginTop"),scrollMarginBottom:Qn.spaceT("scrollMarginBottom"),scrollMarginLeft:Qn.spaceT("scrollMarginLeft"),scrollMarginRight:Qn.spaceT("scrollMarginRight"),scrollMarginX:Qn.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Qn.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Qn.spaceT("scrollPadding"),scrollPaddingTop:Qn.spaceT("scrollPaddingTop"),scrollPaddingBottom:Qn.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Qn.spaceT("scrollPaddingLeft"),scrollPaddingRight:Qn.spaceT("scrollPaddingRight"),scrollPaddingX:Qn.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Qn.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function wo(e){return h(e)&&e.reference?e.reference:String(e)}var So=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.map(wo).join(" "+e+" ").replace(/calc/g,"")},Co=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+So.apply(void 0,["+"].concat(t))+")"},_o=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+So.apply(void 0,["-"].concat(t))+")"},Oo=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+So.apply(void 0,["*"].concat(t))+")"},Ro=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+So.apply(void 0,["/"].concat(t))+")"},To=function(e){var t=wo(e);return null==t||Number.isNaN(parseFloat(t))?Oo(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},Io=Object.assign(function(e){return{add:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Io(Co.apply(void 0,[e].concat(r)))},subtract:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Io(_o.apply(void 0,[e].concat(r)))},multiply:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Io(Oo.apply(void 0,[e].concat(r)))},divide:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Io(Ro.apply(void 0,[e].concat(r)))},negate:function(){return Io(To(e))},toString:function(){return e.toString()}}},{add:Co,subtract:_o,multiply:Oo,divide:Ro,negate:To}),No=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},Ao=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},Po=function(e,t){return e+":focus-visible "+t},Lo=function(e,t){return e+":focus-within "+t},Mo=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},jo=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},Bo=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},Do=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},Vo=function(e){return zo(function(t){return e(t,"&")},"[role=group]","[data-group]",".group")},Fo=function(e){return zo(function(t){return e(t,"~ &")},"[data-peer]",".peer")},zo=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.map(e).join(", ")},Wo={_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:Vo(No),_peerHover:Fo(No),_groupFocus:Vo(Ao),_peerFocus:Fo(Ao),_groupFocusVisible:Vo(Po),_peerFocusVisible:Fo(Po),_groupActive:Vo(Mo),_peerActive:Fo(Mo),_groupDisabled:Vo(jo),_peerDisabled:Fo(jo),_groupInvalid:Vo(Bo),_peerInvalid:Fo(Bo),_groupChecked:Vo(Do),_peerChecked:Fo(Do),_groupFocusWithin:Vo(Lo),_peerFocusWithin:Fo(Lo),_peerPlaceholderShown:Fo(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(Wo);function Uo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ho(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Uo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Uo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var qo=f({},eo,to,ro,ao,lo,oo,vo,so,io,mo,ho,no,go,Eo,ko,yo,bo,co,xo),Yo=p(Object.assign({},go,lo,ao,io,ho)),Go=[].concat(p(qo),$o),Zo=In({},qo,Wo),Xo=function(e,t){return e.startsWith("--")&&m(t)&&!g(t)},Ko=function(e,t){var r,n;if(null==t)return t;var o=function(t){var r,n;return null==(r=e.__cssMap)||null==(n=r[t])?void 0:n.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!=(r=null!=(n=o(i[0]))?n:a(s))?r:a(t)};function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jo.apply(this,arguments)}function Qo(){var e=je.useContext(Lr);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}Jr({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var ea=function(e){return Jr({name:e+"StylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<'+e+' />" '})};function ta(e){return k(e,["styleConfig","size","variant","colorScheme"])}function ra(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}var na=new Set([].concat(Go,["textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),oa=new Set(["htmlWidth","htmlHeight","htmlSize"]),aa=function(e){return oa.has(e)||!na.has(e)},ia=["theme","css","__css","sx"],sa=["baseStyle"];function la(e,t){var r=null!=t?t:{},n=r.baseStyle,a=ra(r,sa);a.shouldForwardProp||(a.shouldForwardProp=aa);var i=function(e){var t=e.baseStyle;return function(e){var r,n=e.css,a=e.__css,i=e.sx,s=ra(e,ia),l=E(s,function(e,t){return function(e){return e in Zo}(t)}),c=o(t,e),u=Object.assign({},a,c,w(l),i),d=(r=u,function(e){return function(e){var t=e.configs,r=void 0===t?{}:t,n=e.pseudos,a=void 0===n?{}:n,i=e.theme;return function e(t,n){void 0===n&&(n=!1);var s=o(t,i),l=function(e){return function(t){if(!t.__breakpoints)return e;var r=t.__breakpoints,n=r.isResponsive,a=r.toArrayValue,i=r.media,s={};for(var l in e){var c=o(e[l],t);if(null!=c)if(c=h(c)&&n(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,m,v,g,y=o(l[u],i);u in a&&(u=a[u]),Xo(u,y)&&(y=Ko(i,y));var b=r[u];if(!0===b&&(b={property:u}),h(y)){var x;c[u]=null!=(x=c[u])?x:{},c[u]=f({},c[u],e(y,!0))}else{var k=null!=(d=null==(p=b)||null==p.transform?void 0:p.transform(y,i,s))?d:y;k=null!=(m=b)&&m.processResult?e(k,!0):k;var E=o(null==(v=b)?void 0:v.property,i);if(!n&&null!=(g=b)&&g.static){var w=o(b.static,i);c=f({},c,w)}if(E&&Array.isArray(E))for(var S,C=Ho(E);!(S=C()).done;)c[S.value]=k;else E?"&"===E&&h(k)?c=f({},c,k):c[E]=k:h(k)?c=f({},c,k):c[u]=k}}return c}}({theme:e,pseudos:Wo,configs:qo})(r)})(e.theme);return n?[d,n]:d}}({baseStyle:n});return Tn(e,a)(i)}function ca(e){/*#__PURE__*/
|
4
|
+
return je.forwardRef(e)}var ua=["styleConfig"];function da(e,t){var r;void 0===t&&(t={});var n,a=t.styleConfig,i=ra(t,ua),s=Jo({},function(){var e=je.useContext(mn);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}(),{theme:Qo()}),l=s.theme,c=s.colorMode,u=y(l,"components."+e),d=a||u,p=f({theme:l,colorMode:c},null!=(r=null==d?void 0:d.defaultProps)?r:{},w(k(i,["children"]))),m=je.useRef({});if(d){var v=(n=d,function(e){var t,r=e.variant,a=e.size,i=function(e){var t=e.__breakpoints;return function(e,r,n,a){if(t){var i={},s=function(e,t){return b(e)?e:h(e)?t(e):null!=e?[e]:void 0}(n,t.toArrayValue);if(!s)return i;for(var l=s.length,c=1===l,u=!!e.parts,d=function(n){var l,d,p=t.details[n],m=t.details[function(e,t){for(var r=t+1;r<e.length;r++)if(null!=e[r])return r;return-1}(s,n)],h=x(p.minW,null==m?void 0:m._minW),v=o(null==(l=e[r])?void 0:l[s[n]],a);return v?u?(null==(d=e.parts)||d.forEach(function(e){var t,r;f(i,((r={})[e]=c?v[e]:((t={})[h]=v[e],t),r))}),"continue"):u?void(i[h]=v):(c?f(i,v):i[h]=v,"continue"):"continue"},p=0;p<l;p++)d(p);return i}}}(e.theme);return f({},o(null!=(t=n.baseStyle)?t:{},e),i(n,"sizes",a,e),i(n,"variants",r,e))}),g=v(p);xn(m.current,g)||(m.current=g)}return m.current}function pa(e,t){return void 0===t&&(t={}),da(e,t)}function fa(e,t){return void 0===t&&(t={}),da(e,t)}var ma,ha=(ma=new Map,new Proxy(la,{apply:function(e,t,r){return la.apply(void 0,r)},get:function(e,t){return ma.has(t)||ma.set(t,la(t)),ma.get(t)}})),va=function(e,t){return va=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},va(e,t)};function ga(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}va(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ya=function(){return ya=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ya.apply(this,arguments)};function ba(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function xa(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function ka(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var Ea="undefined"==typeof process||void 0===process.env?"production":process.env.NODE_ENV||"production",wa=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},Sa={measureLayout:wa(["layout","layoutId","drag"]),animation:wa(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:wa(["exit"]),drag:wa(["drag","dragControls"]),focus:wa(["whileFocus"]),hover:wa(["whileHover","onHoverStart","onHoverEnd"]),tap:wa(["whileTap","onTap","onTapStart","onTapCancel"]),pan:wa(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:wa(["whileInView","onViewportEnter","onViewportLeave"])},Ca=function(){},_a=function(){};"production"!==process.env.NODE_ENV&&(Ca=function(e,t){e||"undefined"==typeof console||console.warn(t)},_a=function(e,t){if(!e)throw new Error(t)});var Oa=je.createContext({strict:!1}),Ra=Object.keys(Sa),Ta=Ra.length,Ia=je.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Na=je.createContext({}),Aa=je.createContext(null),Pa="undefined"!=typeof document,La=Pa?je.useLayoutEffect:je.useEffect,Ma={current:null},ja=!1;function Ba(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Da(e){return Array.isArray(e)}function Va(e){return"string"==typeof e||Da(e)}function Fa(e,t,r,n,o){var a;return void 0===n&&(n={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,o)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,o)),t}function za(e,t,r){var n=e.getProps();return Fa(n,t,null!=r?r:n.custom,function(e){var t={};return e.forEachValue(function(e,r){return t[r]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,r){return t[r]=e.getVelocity()}),t}(e))}function Wa(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Va(e.initial)||Va(e.animate)||Va(e.whileHover)||Va(e.whileDrag)||Va(e.whileTap)||Va(e.whileFocus)||Va(e.exit)}function $a(e){return Boolean(Wa(e)||e.variants)}function Ua(e){return Array.isArray(e)?e.join(" "):e}function Ha(e){var t=je.useRef(null);return null===t.current&&(t.current=e()),t.current}const qa="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Ya="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(qa()),16.666666666666668);let Ga=!0,Za=!1,Xa=!1;const Ka={delta:0,timestamp:0},Ja=["read","update","preRender","render","postRender"],Qa=Ja.reduce((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,c=l?t:r;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(n=t.length)),e},cancel:e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1),i.delete(e)},process:l=>{if(o)a=!0;else{if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let r=0;r<n;r++){const n=t[r];n(l),i.has(n)&&(s.schedule(n),e())}o=!1,a&&(a=!1,s.process(l))}}};return s}(()=>Za=!0),e),{}),ei=Ja.reduce((e,t)=>{const r=Qa[t];return e[t]=(e,t=!1,n=!1)=>(Za||ai(),r.schedule(e,t,n)),e},{}),ti=Ja.reduce((e,t)=>(e[t]=Qa[t].cancel,e),{}),ri=Ja.reduce((e,t)=>(e[t]=()=>Qa[t].process(Ka),e),{}),ni=e=>Qa[e].process(Ka),oi=e=>{Za=!1,Ka.delta=Ga?16.666666666666668:Math.max(Math.min(e-Ka.timestamp,40),1),Ka.timestamp=e,Xa=!0,Ja.forEach(ni),Xa=!1,Za&&(Ga=!1,Ya(oi))},ai=()=>{Za=!0,Ga=!0,Xa||Ya(oi)},ii=()=>Ka,si=(e,t,r)=>Math.min(Math.max(r,e),t);function li(e,t){return e*Math.sqrt(1-t*t)}const ci=["duration","bounce"],ui=["stiffness","damping","mass"];function di(e,t){return t.some(t=>void 0!==e[t])}function pi(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,a=ba(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!di(e,ui)&&di(e,ci)){const r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,a;Ca(e<=1e4,"Spring duration must be 10 seconds or less");let i=1-t;i=si(.05,1,i),e=si(.01,10,e/1e3),i<1?(o=t=>{const n=t*i,o=n*e;return.001-(n-r)/li(t,i)*Math.exp(-o)},a=t=>{const n=t*i*e,a=n*r+r,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-n),c=li(Math.pow(t,2),i);return(.001-o(t)>0?-1:1)*((a-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-r)*e+1)-.001,a=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(o,a,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*n;return{stiffness:t,damping:2*i*Math.sqrt(n*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(a),f=fi,m=fi;function h(){const e=u?-u/1e3:0,n=r-t,a=l/(2*Math.sqrt(s*c)),i=Math.sqrt(s/c)/1e3;if(void 0===o&&(o=Math.min(Math.abs(r-t)/100,.4)),a<1){const t=li(i,a);f=o=>{const s=Math.exp(-a*i*o);return r-s*((e+a*i*n)/t*Math.sin(t*o)+n*Math.cos(t*o))},m=r=>{const o=Math.exp(-a*i*r);return a*i*o*(Math.sin(t*r)*(e+a*i*n)/t+n*Math.cos(t*r))-o*(Math.cos(t*r)*(e+a*i*n)-t*n*Math.sin(t*r))}}else if(1===a)f=t=>r-Math.exp(-i*t)*(n+(e+i*n)*t);else{const t=i*Math.sqrt(a*a-1);f=o=>{const s=Math.exp(-a*i*o),l=Math.min(t*o,300);return r-s*((e+a*i*n)*Math.sinh(l)+t*n*Math.cosh(l))/t}}}return h(),{next:e=>{const t=f(e);if(p)i.done=e>=d;else{const a=1e3*m(e),s=Math.abs(a)<=n,l=Math.abs(r-t)<=o;i.done=s&&l}return i.value=i.done?r:t,i},flipTarget:()=>{u=-u,[t,r]=[r,t],h()}}}pi.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const fi=e=>0,mi=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n},hi=(e,t,r)=>-r*e+r*t+e,vi=(e,t)=>r=>Math.max(Math.min(r,t),e),gi=e=>e%1?Number(e.toFixed(5)):e,yi=/(-)?([\d]*\.?[\d])+/g,bi=/(#[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,xi=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function ki(e){return"string"==typeof e}const Ei={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},wi=Object.assign(Object.assign({},Ei),{transform:vi(0,1)}),Si=Object.assign(Object.assign({},Ei),{default:1}),Ci=e=>({test:t=>ki(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),_i=Ci("deg"),Oi=Ci("%"),Ri=Ci("px"),Ti=Ci("vh"),Ii=Ci("vw"),Ni=Object.assign(Object.assign({},Oi),{parse:e=>Oi.parse(e)/100,transform:e=>Oi.transform(100*e)}),Ai=(e,t)=>r=>Boolean(ki(r)&&xi.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Pi=(e,t,r)=>n=>{if(!ki(n))return n;const[o,a,i,s]=n.match(yi);return{[e]:parseFloat(o),[t]:parseFloat(a),[r]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Li={test:Ai("hsl","hue"),parse:Pi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Oi.transform(gi(t))+", "+Oi.transform(gi(r))+", "+gi(wi.transform(n))+")"},Mi=vi(0,255),ji=Object.assign(Object.assign({},Ei),{transform:e=>Math.round(Mi(e))}),Bi={test:Ai("rgb","red"),parse:Pi("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+ji.transform(e)+", "+ji.transform(t)+", "+ji.transform(r)+", "+gi(wi.transform(n))+")"},Di={test:Ai("#"),parse:function(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},transform:Bi.transform},Vi={test:e=>Bi.test(e)||Di.test(e)||Li.test(e),parse:e=>Bi.test(e)?Bi.parse(e):Li.test(e)?Li.parse(e):Di.parse(e),transform:e=>ki(e)?e:e.hasOwnProperty("red")?Bi.transform(e):Li.transform(e)};function Fi(e){"number"==typeof e&&(e=`${e}`);const t=[];let r=0;const n=e.match(bi);n&&(r=n.length,e=e.replace(bi,"${c}"),t.push(...n.map(Vi.parse)));const o=e.match(yi);return o&&(e=e.replace(yi,"${n}"),t.push(...o.map(Ei.parse))),{values:t,numColors:r,tokenised:e}}function zi(e){return Fi(e).values}function Wi(e){const{values:t,numColors:r,tokenised:n}=Fi(e),o=t.length;return e=>{let t=n;for(let n=0;n<o;n++)t=t.replace(n<r?"${c}":"${n}",n<r?Vi.transform(e[n]):gi(e[n]));return t}}const $i=e=>"number"==typeof e?0:e,Ui={test:function(e){var t,r,n,o;return isNaN(e)&&ki(e)&&(null!==(r=null===(t=e.match(yi))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(o=null===(n=e.match(bi))||void 0===n?void 0:n.length)&&void 0!==o?o:0)>0},parse:zi,createTransformer:Wi,getAnimatableNone:function(e){const t=zi(e);return Wi(e)(t.map($i))}},Hi=new Set(["brightness","contrast","saturate","opacity"]);function qi(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(yi)||[];if(!n)return e;const o=r.replace(n,"");let a=Hi.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+o+")"}const Yi=/([a-z-]*)\(.*?\)/g,Gi=Object.assign(Object.assign({},Ui),{getAnimatableNone:e=>{const t=e.match(Yi);return t?t.map(qi).join(" "):e}});function Zi(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Xi({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let o=0,a=0,i=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;o=Zi(s,n,e+1/3),a=Zi(s,n,e),i=Zi(s,n,e-1/3)}else o=a=i=r;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*i),alpha:n}}const Ki=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},Ji=[Di,Bi,Li],Qi=e=>Ji.find(t=>t.test(e)),es=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,ts=(e,t)=>{let r=Qi(e),n=Qi(t);_a(!!r,es(e)),_a(!!n,es(t));let o=r.parse(e),a=n.parse(t);r===Li&&(o=Xi(o),r=Bi),n===Li&&(a=Xi(a),n=Bi);const i=Object.assign({},o);return e=>{for(const t in i)"alpha"!==t&&(i[t]=Ki(o[t],a[t],e));return i.alpha=hi(o.alpha,a.alpha,e),r.transform(i)}},rs=e=>"number"==typeof e,ns=(e,t)=>r=>t(e(r)),os=(...e)=>e.reduce(ns);function as(e,t){return rs(e)?r=>hi(e,t,r):Vi.test(e)?ts(e,t):cs(e,t)}const is=(e,t)=>{const r=[...e],n=r.length,o=e.map((e,r)=>as(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=o[t](e);return r}},ss=(e,t)=>{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)void 0!==e[o]&&void 0!==t[o]&&(n[o]=as(e[o],t[o]));return e=>{for(const t in n)r[t]=n[t](e);return r}};function ls(e){const t=Ui.parse(e),r=t.length;let n=0,o=0,a=0;for(let e=0;e<r;e++)n||"number"==typeof t[e]?n++:void 0!==t[e].hue?a++:o++;return{parsed:t,numNumbers:n,numRGB:o,numHSL:a}}const cs=(e,t)=>{const r=Ui.createTransformer(t),n=ls(e),o=ls(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?os(is(n.parsed,o.parsed),r):(Ca(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),r=>`${r>0?t:e}`)},us=(e,t)=>r=>hi(e,t,r);function ds(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const a=e.length;_a(a===t.length,"Both input and output ranges must be the same length"),_a(!n||!Array.isArray(n)||n.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,r){const n=[],o=r||function(e){return"number"==typeof e?us:"string"==typeof e?Vi.test(e)?ts:cs:Array.isArray(e)?is:"object"==typeof e?ss:void 0}(e[0]),a=e.length-1;for(let r=0;r<a;r++){let a=o(e[r],e[r+1]);if(t){const e=Array.isArray(t)?t[r]:t;a=os(e,a)}n.push(a)}return n}(t,n,o),s=2===a?function([e,t],[r]){return n=>r(mi(e,t,n))}(e,i):function(e,t){const r=e.length,n=r-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[n]&&(a=n-1,i=!0),!i){let t=1;for(;t<r&&!(e[t]>o||t===n);t++);a=t-1}const s=mi(e[a],e[a+1],o);return t[a](s)}}(e,i);return r?t=>s(si(e[0],e[a-1],t)):s}const ps=e=>t=>1-e(1-t),fs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ms=e=>t=>t*t*((e+1)*t-e),hs=e=>e,vs=e=>Math.pow(e,2),gs=ps(vs),ys=fs(vs),bs=e=>1-Math.sin(Math.acos(e)),xs=ps(bs),ks=fs(xs),Es=ms(1.525),ws=ps(Es),Ss=fs(Es),Cs=(e=>{const t=ms(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),_s=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},Os=ps(_s);function Rs(e,t){return e.map(()=>t||ys).splice(0,e.length-1)}function Ts({from:e=0,to:t=1,ease:r,offset:n,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)}(n&&n.length===i.length?n:function(e){const t=e.length;return e.map((e,r)=>0!==r?r/(t-1):0)}(i),o);function l(){return ds(s,i,{ease:Array.isArray(r)?r:Rs(i,r)})}let c=l();return{next:e=>(a.value=c(e),a.done=e>=o,a),flipTarget:()=>{i.reverse(),c=l()}}}const Is={keyframes:Ts,spring:pi,decay:function({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=r*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/n);return i.done=!(t>o||t<-o),i.value=i.done?c:c+t,i},flipTarget:()=>{}}}};function Ns(e,t,r=0){return e-t-r}const As=e=>{const t=({delta:t})=>e(t);return{start:()=>ei.update(t,!0),stop:()=>ti.update(t)}};function Ps(e){var t,r,{from:n,autoplay:o=!0,driver:a=As,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:p,onRepeat:f,onUpdate:m}=e,h=ba(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,g,y,{to:b}=h,x=0,k=h.duration,E=!1,w=!0;const S=function(e){if(Array.isArray(e.to))return Ts;if(Is[e.type])return Is[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Ts:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?pi:Ts}(h);(null===(r=(t=S).needsInterpolation)||void 0===r?void 0:r.call(t,n,b))&&(y=ds([0,100],[n,b],{clamp:!1}),n=0,b=100);const C=S(Object.assign(Object.assign({},h),{from:n,to:b}));return o&&(null==u||u(),v=a(function(e){if(w||(e=-e),i+=e,!E){const e=C.next(Math.max(0,i));g=e.value,y&&(g=y(g)),E=w?e.done:i<=0}null==m||m(g),E&&(0===x&&(null!=k||(k=i)),x<s?function(e,t,r,n){return n?e>=t+r:e<=-r}(i,k,c,w)&&(x++,"reverse"===l?(w=x%2==0,i=function(e,t,r=0,n=!0){return n?Ns(t+-e,t,r):t-(e-t)+r}(i,k,c,w)):(i=Ns(i,k,c),"mirror"===l&&C.flipTarget()),E=!1,f&&f()):(v.stop(),p&&p()))}),v.start()),{stop:()=>{null==d||d(),v.stop()}}}function Ls(e,t){return t?e*(1e3/t):0}const Ms=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),js=e=>Ms(e)&&e.hasOwnProperty("z"),Bs=(e,t)=>Math.abs(e-t);function Ds(e,t){if(rs(e)&&rs(t))return Bs(e,t);if(Ms(e)&&Ms(t)){const r=Bs(e.x,t.x),n=Bs(e.y,t.y),o=js(e)&&js(t)?Bs(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}const Vs=(e,t)=>1-3*t+3*e,Fs=(e,t)=>3*t-6*e,zs=e=>3*e,Ws=(e,t,r)=>((Vs(t,r)*e+Fs(t,r))*e+zs(t))*e,$s=(e,t,r)=>3*Vs(t,r)*e*e+2*Fs(t,r)*e+zs(t);function Us(e,t){-1===e.indexOf(t)&&e.push(t)}function Hs(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var qs=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Us(this.subscriptions,e),function(){return Hs(t.subscriptions,e)}},e.prototype.notify=function(e,t,r){var n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(var o=0;o<n;o++){var a=this.subscriptions[o];a&&a(e,t,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Ys=function(){function e(e){var t=this;this.version="6.3.16",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new qs,this.velocityUpdateSubscribers=new qs,this.renderSubscribers=new qs,this.canTrackVelocity=!1,this.updateAndNotify=function(e,r){void 0===r&&(r=!0),t.prev=t.current,t.current=e;var n=ii(),o=n.timestamp;t.lastUpdated!==o&&(t.timeDelta=n.delta,t.lastUpdated=o,ei.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),r&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return ei.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?Ls(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(r){t.hasAnimated=!0,t.stopAnimation=e(r)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Gs(e){return new Ys(e)}var Zs=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Xs=function(e){return 1e3*e},Ks={linear:hs,easeIn:vs,easeInOut:ys,easeOut:gs,circIn:bs,circInOut:ks,circOut:xs,backIn:Es,backInOut:Ss,backOut:ws,anticipate:Cs,bounceIn:Os,bounceInOut:e=>e<.5?.5*(1-_s(1-2*e)):.5*_s(2*e-1)+.5,bounceOut:_s},Js=function(e){if(Array.isArray(e)){_a(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=xa(e,4);return function(e,t,r,n){if(e===t&&r===n)return hs;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=Ws(.1*t,e,r);return a=>0===a||1===a?a:Ws(function(t){let n=0,a=1;for(;10!==a&&o[a]<=t;++a)n+=.1;--a;const i=n+(t-o[a])/(o[a+1]-o[a])*.1,s=$s(i,e,r);return s>=.001?function(e,t,r,n){for(let o=0;o<8;++o){const o=$s(t,r,n);if(0===o)return t;t-=(Ws(t,r,n)-e)/o}return t}(t,i,e,r):0===s?i:function(e,t,r,n,o){let a,i,s=0;do{i=t+(r-t)/2,a=Ws(i,n,o)-e,a>0?r=i:t=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,n,n+.1,e,r)}(a),t,n)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(_a(void 0!==Ks[e],"Invalid easing type '".concat(e,"'")),Ks[e]):e},Qs=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Ui.test(t)||t.startsWith("url(")))},el=function(e){return Array.isArray(e)},tl=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},rl=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}},ol=function(e){return{type:"keyframes",duration:.8,values:e}},al={x:tl,y:tl,z:tl,rotate:tl,rotateX:tl,rotateY:tl,rotateZ:tl,scaleX:rl,scaleY:rl,scale:rl,opacity:nl,backgroundColor:nl,color:nl,default:rl},il=ya(ya({},Ei),{transform:Math.round}),sl={borderWidth:Ri,borderTopWidth:Ri,borderRightWidth:Ri,borderBottomWidth:Ri,borderLeftWidth:Ri,borderRadius:Ri,radius:Ri,borderTopLeftRadius:Ri,borderTopRightRadius:Ri,borderBottomRightRadius:Ri,borderBottomLeftRadius:Ri,width:Ri,maxWidth:Ri,height:Ri,maxHeight:Ri,size:Ri,top:Ri,right:Ri,bottom:Ri,left:Ri,padding:Ri,paddingTop:Ri,paddingRight:Ri,paddingBottom:Ri,paddingLeft:Ri,margin:Ri,marginTop:Ri,marginRight:Ri,marginBottom:Ri,marginLeft:Ri,rotate:_i,rotateX:_i,rotateY:_i,rotateZ:_i,scale:Si,scaleX:Si,scaleY:Si,scaleZ:Si,skew:_i,skewX:_i,skewY:_i,distance:Ri,translateX:Ri,translateY:Ri,translateZ:Ri,x:Ri,y:Ri,z:Ri,perspective:Ri,transformPerspective:Ri,opacity:wi,originX:Ni,originY:Ni,originZ:Ri,zIndex:il,fillOpacity:wi,strokeOpacity:wi,numOctaves:il},ll=ya(ya({},sl),{color:Vi,backgroundColor:Vi,outlineColor:Vi,fill:Vi,stroke:Vi,borderColor:Vi,borderTopColor:Vi,borderRightColor:Vi,borderBottomColor:Vi,borderLeftColor:Vi,filter:Gi,WebkitFilter:Gi}),cl=function(e){return ll[e]};function ul(e,t){var r,n=cl(e);return n!==Gi&&(n=Ui),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,t)}var dl=function(e){return el(e)?e[e.length-1]||0:e},pl=!1;function fl(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function ml(e){return"number"==typeof e?0:ul("",e)}function hl(e,t){return e[t]||e.default||e}function vl(e,t,r,n){return void 0===n&&(n={}),t.start(function(o){var a,i,s=function(e,t,r,n,o){var a,i=hl(n,e),s=null!==(a=i.from)&&void 0!==a?a:t.get(),l=Qs(e,r);"none"===s&&l&&"string"==typeof r?s=ul(e,r):fl(s)&&"string"==typeof r?s=ml(r):!Array.isArray(r)&&fl(r)&&"string"==typeof s&&(r=ml(s));var c=Qs(e,s);return Ca(c===l,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(r,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(r," via the `style` property.")),c&&l&&!1!==i.type?function(){var n={from:s,to:r,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:p,onStop:f}){let m;function h(e){return void 0!==r&&e<r||void 0!==n&&e>n}function v(e){return void 0===r?n:void 0===n||Math.abs(r-e)<Math.abs(n-e)?r:n}function g(e){null==m||m.stop(),m=Ps(Object.assign(Object.assign({},e),{driver:u,onUpdate:t=>{var r;null==d||d(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:p,onStop:f}))}function y(e){g(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(h(e))y({from:e,velocity:t,to:v(e)});else{let n=o*t+e;void 0!==c&&(n=c(n));const i=v(n),s=i===r?-1:1;let u,d;const p=e=>{u=d,d=e,t=Ls(e-u,ii().delta),(1===s&&e>i||-1===s&&e<i)&&y({from:e,to:i,velocity:t})};g({type:"decay",from:e,velocity:t,timeConstant:a,power:o,restDelta:l,modifyTarget:c,onUpdate:h(n)?p:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(ya(ya({},n),i)):Ps(ya(ya({},function(e,t,r){var n,o,a,i;return Array.isArray(t.to)&&(null!==(n=e.duration)&&void 0!==n||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=ka([],xa(e.to),!1),e.to[0]=e.from)}(t),function(e){var t=ba(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=ya(ya({},e),(o=r,i=el(a=t.to)?ol:al[o]||al.default,ya({to:a},i(a))))),ya(ya({},t),function(e){var t=e.ease,r=e.times,n=e.yoyo,o=e.flip,a=e.loop,i=ba(e,["ease","times","yoyo","flip","loop"]),s=ya({},i);return r&&(s.offset=r),i.duration&&(s.duration=Xs(i.duration)),i.repeatDelay&&(s.repeatDelay=Xs(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Js):Js(t)),"tween"===i.type&&(s.type="keyframes"),(n||a||o)&&(Ca(!pl,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),pl=!0,n?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||n||o||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}(i,n,e)),{onUpdate:function(e){var t;n.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;n.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,n,a=dl(r);return t.set(a),o(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,a),null===(n=null==i?void 0:i.onComplete)||void 0===n||n.call(i),{stop:function(){}}}}(e,t,r,n,o),l=function(e,t){var r,n;return null!==(n=null!==(r=(hl(e,t)||{}).delay)&&void 0!==r?r:e.delay)&&void 0!==n?n:0}(n,e),c=function(){return i=s()};return l?a=window.setTimeout(c,Xs(l)):c(),function(){clearTimeout(a),null==i||i.stop()}})}var gl=["TopLeft","TopRight","BottomLeft","BottomRight"],yl=gl.length,bl=function(e){return"string"==typeof e?parseFloat(e):e},xl=function(e){return"number"==typeof e||Ri.test(e)};function kl(e,t){var r;return null!==(r=e[t])&&void 0!==r?r:e.borderRadius}var El=Sl(0,.5,xs),wl=Sl(.5,.95,hs);function Sl(e,t,r){return function(n){return n<e?0:n>t?1:r(mi(e,t,n))}}function Cl(e,t){e.min=t.min,e.max=t.max}function _l(e,t){Cl(e.x,t.x),Cl(e.y,t.y)}function Ol(e){return void 0===e||1===e}function Rl(e){var t=e.scaleX,r=e.scaleY;return!Ol(e.scale)||!Ol(t)||!Ol(r)}function Tl(e){return Rl(e)||Il(e.x)||Il(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Il(e){return e&&"0%"!==e}function Nl(e,t,r){return r+t*(e-r)}function Al(e,t,r,n,o){return void 0!==o&&(e=Nl(e,o,n)),Nl(e,r,n)+t}function Pl(e,t,r,n,o){void 0===t&&(t=0),void 0===r&&(r=1),e.min=Al(e.min,t,r,n,o),e.max=Al(e.max,t,r,n,o)}function Ll(e,t){var r=t.x,n=t.y;Pl(e.x,r.translate,r.scale,r.originPoint),Pl(e.y,n.translate,n.scale,n.originPoint)}function Ml(e,t){e.min=e.min+t,e.max=e.max+t}function jl(e,t,r){var n=xa(r,3),o=n[0],a=n[1],i=n[2],s=hi(e.min,e.max,void 0!==t[i]?t[i]:.5);Pl(e,t[o],t[a],s,t.scale)}var Bl=["x","scaleX","originX"],Dl=["y","scaleY","originY"];function Vl(e,t){jl(e.x,t,Bl),jl(e.y,t,Dl)}function Fl(e){return e.max-e.min}function zl(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=.01),Ds(e,t)<r}function Wl(e,t,r,n){void 0===n&&(n=.5),e.origin=n,e.originPoint=hi(t.min,t.max,e.origin),e.scale=Fl(r)/Fl(t),(zl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=hi(r.min,r.max,e.origin)-e.originPoint,(zl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function $l(e,t,r,n){Wl(e.x,t.x,r.x,null==n?void 0:n.originX),Wl(e.y,t.y,r.y,null==n?void 0:n.originY)}function Ul(e,t,r){e.min=r.min+t.min,e.max=e.min+Fl(t)}function Hl(e,t,r){e.min=t.min-r.min,e.max=e.min+Fl(t)}function ql(e,t,r){Hl(e.x,t.x,r.x),Hl(e.y,t.y,r.y)}function Yl(e,t,r,n,o){return e=Nl(e-=t,1/r,n),void 0!==o&&(e=Nl(e,1/o,n)),e}function Gl(e,t,r,n,o){var a=xa(r,3);!function(e,t,r,n,o,a,i){if(void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=.5),void 0===a&&(a=e),void 0===i&&(i=e),Oi.test(t)&&(t=parseFloat(t),t=hi(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=hi(a.min,a.max,n);e===a&&(s-=t),e.min=Yl(e.min,t,r,s,o),e.max=Yl(e.max,t,r,s,o)}}(e,t[a[0]],t[a[1]],t[a[2]],t.scale,n,o)}var Zl=["x","scaleX","originX"],Xl=["y","scaleY","originY"];function Kl(e,t,r,n){Gl(e.x,t,Zl,null==r?void 0:r.x,null==n?void 0:n.x),Gl(e.y,t,Xl,null==r?void 0:r.y,null==n?void 0:n.y)}function Jl(e){return 0===e.translate&&1===e.scale}function Ql(e){return Jl(e.x)&&Jl(e.y)}function ec(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 tc=function(){function e(){this.members=[]}return e.prototype.add=function(e){Us(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Hs(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,r=this.members.findIndex(function(t){return e===t});if(0===r)return!1;for(var n=r;n>=0;n--){var o=this.members[n];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var r,n=this.lead;e!==n&&(this.prevLead=n,this.lead=e,e.show(),n&&(n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues,e.snapshot.isShared=!0),(null===(r=e.root)||void 0===r?void 0:r.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&n.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,r,n,o,a;null===(r=(t=e.options).onExitComplete)||void 0===r||r.call(t),null===(a=null===(n=e.resumingFrom)||void 0===n?void 0:(o=n.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}(),rc={};function nc(e,t,r){var n=e.y.translate/t.y,o="translate3d(".concat(e.x.translate/t.x,"px, ").concat(n,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),r){var a=r.rotate,i=r.rotateX,s=r.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 oc(e){return[e("x"),e("y")]}var ac=["","X","Y","Z"],ic=["transformPerspective","x","y","z"];function sc(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 lc=new Set(ic);function cc(e){return lc.has(e)}var uc=new Set(["originX","originY","originZ"]);function dc(e){return uc.has(e)}var pc=function(e,t){return e.depth-t.depth},fc=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Us(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Hs(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(pc),this.isDirty=!1,this.children.forEach(e)},e}();function mc(e){var t=Zs(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}var hc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vc(e){var t=e.attachResizeListener,r=e.defaultParent,n=e.measureScroll,o=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,n){var o=this;void 0===t&&(t={}),void 0===n&&(n=null==r?void 0:r()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(wc),o.nodes.forEach(Sc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?ka(ka([],xa(n.path),!1),[n],!1):[],this.parent=n,this.depth=n?n.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 fc)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new qs),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this.eventHandlers.get(e);null==n||n.notify.apply(n,ka([],xa(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,r){var n,o=this;if(void 0===r&&(r=!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===(n=this.parent)||void 0===n||n.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),r&&(s||i)&&(this.isLayoutDirty=!0),t){var c,u=function(){return o.root.updateBlockedByResize=!1};t(e,function(){o.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(u,250),hc.hasAnimatedSinceResize&&(hc.hasAnimatedSinceResize=!1,o.nodes.forEach(Ec))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",function(e){var t,r,n,a,i,s=e.delta,c=e.hasLayoutChanged,u=e.hasRelativeTargetChanged,d=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var p=null!==(r=null!==(t=o.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==r?r:Ic,f=l.getProps(),m=f.onLayoutAnimationStart,h=f.onLayoutAnimationComplete,v=!o.targetLayout||!ec(o.targetLayout,d)||u,g=!c&&u;if((null===(n=o.resumeFrom)||void 0===n?void 0:n.instance)||g||c&&(v||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,g);var y=ya(ya({},hl(p,"layout")),{onPlay:m,onComplete:h});l.shouldReduceMotion&&(y.delay=0,y.type=!1),o.startAnimation(y)}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,ti.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Cc))},e.prototype.willUpdate=function(e){var t,r,n;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(r=(t=this.options).onExitComplete)||void 0===r||r.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var 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===(n=this.options.visualElement)||void 0===n?void 0:n.getProps().transformTemplate;this.prevTransformTemplateValue=null==s?void 0:s(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(xc);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Nc),this.potentialNodes.clear()),this.nodes.forEach(kc),this.nodes.forEach(gc),this.nodes.forEach(yc),this.clearAllSnapshots(),ri.update(),ri.preRender(),ri.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(bc),this.sharedNodes.forEach(_c)},e.prototype.scheduleUpdateProjection=function(){ei.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;ei.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));Pc(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var r=this.measure();Pc(r);var n=this.layout;this.layout={measured:r,actual:this.removeElementScroll(r)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==n?void 0:n.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=o(this.instance),this.scroll=n(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,r=this.projectionDelta&&!Ql(this.projectionDelta),n=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null==n?void 0:n(this.latestValues,""),i=o!==this.prevTransformTemplateValue;t&&(r||Tl(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(),r=this.root.scroll;return r&&(Ml(t.x,r.x),Ml(t.y,r.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};_l(t,e);for(var r=0;r<this.path.length;r++){var n=this.path[r],o=n.scroll;if(n!==this.root&&o&&n.options.layoutScroll){if(n.isScrollRoot){_l(t,e);var a=this.root.scroll;a&&(Ml(t.x,-a.x),Ml(t.y,-a.y))}Ml(t.x,o.x),Ml(t.y,o.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var r={x:{min:0,max:0},y:{min:0,max:0}};_l(r,e);for(var n=0;n<this.path.length;n++){var o=this.path[n];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Vl(r,{x:-o.scroll.x,y:-o.scroll.y}),Tl(o.latestValues)&&Vl(r,o.latestValues)}return Tl(this.latestValues)&&Vl(r,this.latestValues),r},e.prototype.removeTransform=function(e){var t,r={x:{min:0,max:0},y:{min:0,max:0}};_l(r,e);for(var n=0;n<this.path.length;n++){var o=this.path[n];if(o.instance&&Tl(o.latestValues)){Rl(o.latestValues)&&o.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};_l(a,o.measure()),Kl(r,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,a)}}return Tl(this.latestValues)&&Kl(r,this.latestValues),r},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=ya(ya(ya({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,r,n,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}},ql(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),_l(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)?(Ul((t=this.target).x,(r=this.relativeTarget).x,(n=this.relativeParent.target).x),Ul(t.y,r.y,n.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):_l(this.target,this.layout.actual),Ll(this.target,this.targetDelta)):_l(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}},ql(this.relativeTargetOrigin,this.target,this.relativeParent.target),_l(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Tl(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,r=t.layout,n=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(r||n)){var o=this.getLead();_l(this.layoutCorrected,this.layout.actual),function(e,t,r,n){var o,a;void 0===n&&(n=!1);var i=r.length;if(i){var s,l;t.x=t.y=1;for(var c=0;c<i;c++)l=(s=r[c]).projectionDelta,"contents"!==(null===(a=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===a?void 0:a.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Vl(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Ll(e,l)),n&&Tl(s.latestValues)&&Vl(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;$l(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,r,n;void 0===e&&(e=!0),null===(r=(t=this.options).scheduleRender)||void 0===r||r.call(t),e&&(null===(n=this.getStack())||void 0===n||n.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var r,n=this;void 0===t&&(t=!1);var o=this.snapshot,a=(null==o?void 0:o.latestValues)||{},i=ya({},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===(r=this.getStack())||void 0===r?void 0:r.members.length)||0)<=1,d=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some(Tc));this.animationProgress=0,this.mixTargetDelta=function(t){var r,o=t/1e3;Oc(s.x,e.x,o),Oc(s.y,e.y,o),n.setTargetDelta(s),n.relativeTarget&&n.relativeTargetOrigin&&n.layout&&(null===(r=n.relativeParent)||void 0===r?void 0:r.layout)&&(ql(l,n.layout.actual,n.relativeParent.layout.actual),function(e,t,r,n){Rc(e.x,t.x,r.x,n),Rc(e.y,t.y,r.y,n)}(n.relativeTarget,n.relativeTargetOrigin,l,o)),c&&(n.animationValues=i,function(e,t,r,n,o,a){var i,s,l,c;o?(e.opacity=hi(0,null!==(i=r.opacity)&&void 0!==i?i:1,El(n)),e.opacityExit=hi(null!==(s=t.opacity)&&void 0!==s?s:1,0,wl(n))):a&&(e.opacity=hi(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=r.opacity)&&void 0!==c?c:1,n));for(var u=0;u<yl;u++){var d="border".concat(gl[u],"Radius"),p=kl(t,d),f=kl(r,d);void 0===p&&void 0===f||(p||(p=0),f||(f=0),0===p||0===f||xl(p)===xl(f)?(e[d]=Math.max(hi(bl(p),bl(f),n),0),(Oi.test(f)||Oi.test(p))&&(e[d]+="%")):e[d]=f)}(t.rotate||r.rotate)&&(e.rotate=hi(t.rotate||0,r.rotate||0,n))}(i,a,n.latestValues,o,d,u)),n.root.scheduleUpdateProjection(),n.scheduleRender(),n.animationProgress=o},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,r,n=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(r=this.resumingFrom.currentAnimation)||void 0===r||r.stop()),this.pendingAnimation&&(ti.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ei.update(function(){hc.hasAnimatedSinceResize=!0,n.currentAnimation=function(e,t,r){void 0===r&&(r={});var n=Zs(0)?0:Gs(0);return vl("",n,1e3,r),{stop:function(){return n.stop()},isAnimating:function(){return n.isAnimating()}}}(0,0,ya(ya({},e),{onUpdate:function(t){var r;n.mixTargetDelta(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),n.completeAnimation()}})),n.resumingFrom&&(n.resumingFrom.currentAnimation=n.currentAnimation),n.pendingAnimation=void 0})},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,r=e.target,n=e.latestValues;t&&r&&e.layout&&(_l(t,r),Vl(t,n),$l(this.projectionDeltaWithTransform,this.layoutCorrected,t,n))},e.prototype.registerSharedNode=function(e,t){var r,n,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new tc),this.sharedNodes.get(e).add(t),t.promote({transition:null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.transition,preserveFollowOpacity:null===(o=null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(n,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,r=t.needsReset,n=t.transition,o=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,o),r&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,r={},n=0;n<ac.length;n++)e.getStaticValue(o="rotate"+ac[n])&&(t=!0,r[o]=e.getStaticValue(o),e.setStaticValue(o,0));if(t){for(var o in null==e||e.syncRender(),r)e.setStaticValue(o,r[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,r,n,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=mc(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var u={};return this.options.layoutId&&(u.opacity=null!==(r=this.latestValues.opacity)&&void 0!==r?r:1,u.pointerEvents=mc(e.pointerEvents)||""),this.hasProjected&&!Tl(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 p=this.projectionDelta,f=p.x,m=p.y;for(var h in s.transformOrigin="".concat(100*f.origin,"% ").concat(100*m.origin,"% 0"),s.opacity=c.animationValues?c===this?null!==(o=null!==(n=d.opacity)&&void 0!==n?n: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,rc)if(void 0!==d[h]){var v=rc[h],g=v.applyTo,y=(0,v.correct)(d[h],c);if(g)for(var b=g.length,x=0;x<b;x++)s[g[x]]=y;else s[h]=y}return this.options.layoutId&&(s.pointerEvents=c===this?mc(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(xc),this.root.sharedNodes.clear()},e}()}function gc(e){e.updateLayout()}function yc(e){var t,r,n,o,a=null!==(r=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==r?r: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?oc(function(e){var t=a.isShared?a.measured[e]:a.layout[e],r=Fl(t);t.min=s[e].min,t.max=t.min+r}):"position"===e.options.animationType&&oc(function(e){var t=a.isShared?a.measured[e]:a.layout[e],r=Fl(s[e]);t.max=t.min+r});var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};$l(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?$l(u,e.applyTransform(l,!0),a.measured):$l(u,s,a.layout);var d=!Ql(c),p=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var f=e.relativeParent,m=f.snapshot,h=f.layout;if(m&&h){var v={x:{min:0,max:0},y:{min:0,max:0}};ql(v,a.layout,m.layout);var g={x:{min:0,max:0},y:{min:0,max:0}};ql(g,s,h.actual),ec(v,g)||(p=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else e.isLead()&&(null===(o=(n=e.options).onExitComplete)||void 0===o||o.call(n));e.options.transition=void 0}function bc(e){e.clearSnapshot()}function xc(e){e.clearMeasurements()}function kc(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Ec(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function wc(e){e.resolveTargetDelta()}function Sc(e){e.calcProjection()}function Cc(e){e.resetRotation()}function _c(e){e.removeLeadSnapshot()}function Oc(e,t,r){e.translate=hi(t.translate,0,r),e.scale=hi(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Rc(e,t,r,n){e.min=hi(t.min,r.min,n),e.max=hi(t.max,r.max,n)}function Tc(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Ic={duration:.45,ease:[.4,0,.1,1]};function Nc(e,t){for(var r=e.root,n=e.path.length-1;n>=0;n--)if(Boolean(e.path[n].instance)){r=e.path[n];break}var o=(r&&r!==e.root?r.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function Ac(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Pc(e){Ac(e.x),Ac(e.y)}var Lc=1,Mc=je.createContext({}),jc=je.createContext({}),Bc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ga(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 Dc(e){function t(t,r){return void 0===r&&(r={}),function(e){var t=e.preloadedFeatures,r=e.createVisualElement,n=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?Sa.projectionNodeConstructor=e[t]:Sa[t].Component=e[t])}(t),je.forwardRef(function(e,s){var l=function(e){var t,r=e.layoutId,n=null===(t=je.useContext(Mc))||void 0===t?void 0:t.id;return n&&void 0!==r?n+"-"+r:r}(e);e=ya(ya({},e),{layoutId:l});var c=je.useContext(Ia),u=null,d=function(e){var t=function(e,t){if(Wa(e)){var r=e.initial,n=e.animate;return{initial:!1===r||Va(r)?r:void 0,animate:Va(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,je.useContext(Na)),r=t.initial,n=t.animate;return je.useMemo(function(){return{initial:r,animate:n}},[Ua(r),Ua(n)])}(e),p=c.isStatic?void 0:Ha(function(){if(hc.hasEverUpdated)return Lc++}),f=a(e,c.isStatic);return!c.isStatic&&Pa&&(d.visualElement=function(e,t,r,n){var o,a,i=je.useContext(Oa),s=je.useContext(Na).visualElement,l=je.useContext(Aa),c=(!ja&&function(){if(ja=!0,Pa)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Ma.current=e.matches};e.addListener(t),t()}else Ma.current=!1}(),o=xa(je.useState(Ma.current),1)[0],"never"!==(a=je.useContext(Ia).reducedMotion)&&("always"===a||o)),u=je.useRef(void 0);n||(n=i.renderer),!u.current&&n&&(u.current=n(e,{visualState:t,parent:s,props:r,presenceId:null==l?void 0:l.id,blockInitialAnimation:!1===(null==l?void 0:l.initial),shouldReduceMotion:c}));var d=u.current;return La(function(){null==d||d.syncRender()}),je.useEffect(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),La(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(i,f,ya(ya({},c),e),r),function(e,t,r,n){var o,a=t.layoutId,i=t.layout,s=t.drag,l=t.dragConstraints,c=t.layoutScroll,u=je.useContext(jc);n&&r&&!(null==r?void 0:r.projection)&&(r.projection=new n(e,r.getLatestValues(),null===(o=r.parent)||void 0===o?void 0:o.projection),r.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:Boolean(s)||l&&Ba(l),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:u,layoutScroll:c}))}(p,e,d.visualElement,n||Sa.projectionNodeConstructor),u=function(e,t,r){var n=[],o=je.useContext(Oa);if(!t)return null;"production"!==Ea&&r&&o.strict&&_a(!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<Ta;a++){var i=Ra[a],s=Sa[i],l=s.Component;(0,s.isEnabled)(e)&&l&&n.push(je.createElement(l,ya({key:i},e,{visualElement:t})))}return n}(e,d.visualElement,t)),je.createElement(Bc,{visualElement:d.visualElement,props:ya(ya({},c),e)},u,je.createElement(Na.Provider,{value:d},o(i,e,p,function(e,t,r){return je.useCallback(function(n){var o;n&&(null===(o=e.mount)||void 0===o||o.call(e,n)),t&&(n?t.mount(n):t.unmount()),r&&("function"==typeof r?r(n):Ba(r)&&(r.current=n))},[t])}(f,d.visualElement,s),f,c.isStatic,d.visualElement)))})}(e(t,r))}if("undefined"==typeof Proxy)return t;var r=new Map;return new Proxy(t,{get:function(e,n){return r.has(n)||r.set(n,t(n)),r.get(n)}})}var Vc=["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 Fc(e){return"string"==typeof e&&!e.includes("-")&&!!(Vc.indexOf(e)>-1||/[A-Z]/.test(e))}function zc(e,t){var r=t.layout,n=t.layoutId;return cc(e)||dc(e)||(r||void 0!==n)&&(!!rc[e]||"opacity"===e)}var Wc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function $c(e){return e.startsWith("--")}var Uc=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function Hc(e,t,r,n){var o,a=e.style,i=e.vars,s=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,d=!1,p=!0;for(var f in t){var m=t[f];if($c(f))i[f]=m;else{var h=sl[f],v=Uc(m,h);if(cc(f)){if(u=!0,s[f]=v,l.push(f),!p)continue;m!==(null!==(o=h.default)&&void 0!==o?o:0)&&(p=!1)}else dc(f)?(c[f]=v,d=!0):a[f]=v}}u?a.transform=function(e,t,r,n){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(sc);for(var d=!1,p=a.length,f=0;f<p;f++){var m=a[f];u+="".concat(Wc[m]||m,"(").concat(o[m],") "),"z"===m&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),n?u=n(o,r?"":u):c&&r&&(u="none"),u}(e,r,p,n):n?a.transform=n({},""):!t.transform&&a.transform&&(a.transform="none"),d&&(a.transformOrigin=function(e){var t=e.originX,r=e.originY,n=void 0===r?"50%":r,o=e.originZ,a=void 0===o?0:o;return"".concat(void 0===t?"50%":t," ").concat(n," ").concat(a)}(c))}function qc(e,t,r){for(var n in t)Zs(t[n])||zc(n,r)||(e[n]=t[n])}function Yc(e,t,r){var n={},o=function(e,t,r){var n={};return qc(n,e.style||{},e),Object.assign(n,function(e,t,r){var n=e.transformTemplate;return je.useMemo(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Hc(e,t,{enableHardwareAcceleration:!r},n);var o=e.style;return ya(ya({},e.vars),o)},[t])}(e,t,r)),e.transformValues&&(n=e.transformValues(n)),n}(e,t,r);return Boolean(e.drag)&&!1!==e.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),n.style=o,n}var Gc=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 Zc(e){return Gc.has(e)}var Xc,Kc=function(e){return!Zc(e)};try{(Xc=require("@emotion/is-prop-valid").default)&&(Kc=function(e){return e.startsWith("on")?!Zc(e):Xc(e)})}catch(e){}function Jc(e,t,r){return"string"==typeof e?e:Ri.transform(t+r*e)}var Qc={offset:"stroke-dashoffset",array:"stroke-dasharray"},eu={offset:"strokeDashoffset",array:"strokeDasharray"};function tu(e,t,r,n){var o=t.attrX,a=t.attrY,i=t.originX,s=t.originY,l=t.pathLength,c=t.pathSpacing,u=void 0===c?1:c,d=t.pathOffset,p=void 0===d?0:d;Hc(e,ba(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),r,n),e.attrs=e.style,e.style={};var f=e.attrs,m=e.style,h=e.dimensions;f.transform&&(h&&(m.transform=f.transform),delete f.transform),h&&(void 0!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,r){var n=Jc(t,e.x,e.width),o=Jc(r,e.y,e.height);return"".concat(n," ").concat(o)}(h,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==o&&(f.x=o),void 0!==a&&(f.y=a),void 0!==l&&function(e,t,r,n,o){void 0===r&&(r=1),void 0===n&&(n=0),void 0===o&&(o=!0),e.pathLength=1;var a=o?Qc:eu;e[a.offset]=Ri.transform(-n);var i=Ri.transform(t),s=Ri.transform(r);e[a.array]="".concat(i," ").concat(s)}(f,l,u,p,!1)}var ru=function(){return ya(ya({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function nu(e,t){var r=je.useMemo(function(){var r=ru();return tu(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),ya(ya({},r.attrs),{style:ya({},r.style)})},[t]);if(e.style){var n={};qc(n,e.style,e),r.style=ya(ya({},n),r.style)}return r}function ou(e){return void 0===e&&(e=!1),function(t,r,n,o,a,i){var s=a.latestValues,l=(Fc(t)?nu:Yc)(r,s,i),c=function(e,t,r){var n={};for(var o in e)(Kc(o)||!0===r&&Zc(o)||!t&&!Zc(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}(r,"string"==typeof t,e),u=ya(ya(ya({},c),l),{ref:o});return n&&(u["data-projection-id"]=n),je.createElement(t,u)}}var au=/([a-z])([A-Z])/g,iu=function(e){return e.replace(au,"$1-$2").toLowerCase()};function su(e,t,r,n){var o=t.style,a=t.vars;for(var i in Object.assign(e.style,o,n&&n.getProjectionStyles(r)),a)e.style.setProperty(i,a[i])}var lu=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function cu(e,t,r,n){for(var o in su(e,t,void 0,n),t.attrs)e.setAttribute(lu.has(o)?o:iu(o),t.attrs[o])}function uu(e){var t=e.style,r={};for(var n in t)(Zs(t[n])||zc(n,e))&&(r[n]=t[n]);return r}function du(e){var t=uu(e);for(var r in e)Zs(e[r])&&(t["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]);return t}function pu(e){return"object"==typeof e&&"function"==typeof e.start}function fu(e,t,r,n){var o=e.createRenderState,a=e.onMount,i={latestValues:hu(t,r,n,e.scrapeMotionValuesFromProps),renderState:o()};return a&&(i.mount=function(e){return a(t,e,i)}),i}var mu=function(e){return function(t,r){var n=je.useContext(Na),o=je.useContext(Aa);return r?fu(e,t,n,o):Ha(function(){return fu(e,t,n,o)})}};function hu(e,t,r,n){var o={},a=!1===(null==r?void 0:r.initial),i=n(e);for(var s in i)o[s]=mc(i[s]);var l=e.initial,c=e.animate,u=Wa(e),d=$a(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var p=a||!1===l,f=p?c:l;return f&&"boolean"!=typeof f&&!pu(f)&&(Array.isArray(f)?f:[f]).forEach(function(t){var r=Fa(e,t);if(r){var n=r.transitionEnd,a=ba(r,["transitionEnd","transition"]);for(var i in a){var s=a[i];Array.isArray(s)&&(s=s[p?s.length-1:0]),null!==s&&(o[i]=s)}for(var i in n)o[i]=n[i]}}),o}var vu,gu={useVisualState:mu({scrapeMotionValuesFromProps:du,createRenderState:ru,onMount:function(e,t,r){var n=r.renderState,o=r.latestValues;try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}tu(n,o,{enableHardwareAcceleration:!1},e.transformTemplate),cu(t,n)}})},yu={useVisualState:mu({scrapeMotionValuesFromProps:uu,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function bu(e,t,r,n){return void 0===n&&(n={passive:!0}),e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r)}}function xu(e,t,r,n){je.useEffect(function(){var o=e.current;if(r&&o)return bu(o,t,r,n)},[e,t,r,n])}function ku(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Eu(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"}(vu||(vu={}));var wu={pageX:0,pageY:0};function Su(e,t){void 0===t&&(t="page");var r=e.touches[0]||e.changedTouches[0]||wu;return{x:r[t+"X"],y:r[t+"Y"]}}function Cu(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function _u(e,t){return void 0===t&&(t="page"),{point:Eu(e)?Su(e,t):Cu(e,t)}}var Ou=function(e,t){void 0===t&&(t=!1);var r,n=function(t){return e(t,_u(t))};return t?(r=n,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&r(e)}):n},Ru={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Tu={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Iu(e){return Pa&&null===window.onpointerdown?e:Pa&&null===window.ontouchstart?Tu[e]:Pa&&null===window.onmousedown?Ru[e]:e}function Nu(e,t,r,n){return bu(e,Iu(t),Ou(r,"pointerdown"===t),n)}function Au(e,t,r,n){return xu(e,Iu(t),r&&Ou(r,"pointerdown"===t),n)}function Pu(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Lu=Pu("dragHorizontal"),Mu=Pu("dragVertical");function ju(e){var t=!1;if("y"===e)t=Mu();else if("x"===e)t=Lu();else{var r=Lu(),n=Mu();r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function Bu(){var e=ju(!0);return!e||(e(),!1)}function Du(e,t,r){return function(n,o){var a;ku(n)&&!Bu()&&(null===(a=e.animationState)||void 0===a||a.setActive(vu.Hover,t),null==r||r(n,o))}}var Vu=function(e,t){return!!t&&(e===t||Vu(e,t.parentElement))};function Fu(e){return je.useEffect(function(){return function(){return e()}},[])}var zu=new Set;function Wu(e,t,r){e||zu.has(t)||(console.warn(t),r&&console.warn(r),zu.add(t))}var $u=new WeakMap,Uu=new WeakMap,Hu=function(e){var t;null===(t=$u.get(e.target))||void 0===t||t(e)},qu=function(e){e.forEach(Hu)},Yu={some:0,all:1};function Gu(e,t,r,n){var o=n.root,a=n.margin,i=n.amount,s=void 0===i?"some":i,l=n.once;je.useEffect(function(){if(e){var n={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof s?s:Yu[s]};return function(e,n,o){var a=function(e){var t=e.root,r=ba(e,["root"]),n=t||document;Uu.has(n)||Uu.set(n,{});var o=Uu.get(n),a=JSON.stringify(r);return o[a]||(o[a]=new IntersectionObserver(qu,ya({root:t},r))),o[a]}(n);return $u.set(e,function(e){var n,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!l||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(n=r.animationState)||void 0===n||n.setActive(vu.InView,o);var a=r.getProps(),i=o?a.onViewportEnter:a.onViewportLeave;null==i||i(e)}}),a.observe(e),function(){$u.delete(e),a.unobserve(e)}}(r.getInstance(),n)}},[e,o,a,s])}function Zu(e,t,r,n){var o=n.fallback,a=void 0===o||o;je.useEffect(function(){e&&a&&("production"!==Ea&&Wu(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var e;t.hasEnteredView=!0;var n=r.getProps().onViewportEnter;null==n||n(null),null===(e=r.animationState)||void 0===e||e.setActive(vu.InView,!0)}))},[e])}var Xu=function(e){return function(t){return e(t),null}},Ku={inView:Xu(function(e){var t=e.visualElement,r=e.whileInView,n=e.onViewportEnter,o=e.onViewportLeave,a=e.viewport,i=void 0===a?{}:a,s=je.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(r||n||o);i.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?Zu:Gu)(l,s.current,t,i)}),tap:Xu(function(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,o=e.visualElement,a=t||r||n||e.whileTap,i=je.useRef(!1),s=je.useRef(null),l={passive:!(r||t||n||f)};function c(){var e;null===(e=s.current)||void 0===e||e.call(s),s.current=null}function u(){var e;return c(),i.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(vu.Tap,!1),!Bu()}function d(e,r){u()&&(Vu(o.getInstance(),e.target)?null==t||t(e,r):null==n||n(e,r))}function p(e,t){u()&&(null==n||n(e,t))}function f(e,t){var n;c(),i.current||(i.current=!0,s.current=os(Nu(window,"pointerup",d,l),Nu(window,"pointercancel",p,l)),null===(n=o.animationState)||void 0===n||n.setActive(vu.Tap,!0),null==r||r(e,t))}Au(o,"pointerdown",a?f:void 0,l),Fu(c)}),focus:Xu(function(e){var t=e.whileFocus,r=e.visualElement;xu(r,"focus",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(vu.Focus,!0)}:void 0),xu(r,"blur",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(vu.Focus,!1)}:void 0)}),hover:Xu(function(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,o=e.visualElement;Au(o,"pointerenter",t||n?Du(o,!0,t):void 0,{passive:!t}),Au(o,"pointerleave",r||n?Du(o,!1,r):void 0,{passive:!r})})},Ju=0,Qu=function(){return Ju++},ed=function(){return Ha(Qu)};function td(){var e=je.useContext(Aa);if(null===e)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,o=ed();return je.useEffect(function(){return n(o)},[]),!t&&r?[!1,function(){return null==r?void 0:r(o)}]:[!0]}function rd(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}var nd=function(e){return/^\-?\d*\.?\d+$/.test(e)},od=function(e){return/^0[^.\s]+$/.test(e)},ad=function(e){return function(t){return t.test(e)}},id=[Ei,Ri,Oi,_i,Ii,Ti,{test:function(e){return"auto"===e},parse:function(e){return e}}],sd=function(e){return id.find(ad(e))},ld=ka(ka([],xa(id),!1),[Vi,Ui],!1),cd=function(e){return ld.find(ad(e))};function ud(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Gs(r))}function dd(e,t){if(t)return(t[e]||t.default||t).from}function pd(e,t,r){var n;void 0===r&&(r={});var o=za(e,t,r.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;r.transitionOverride&&(i=r.transitionOverride);var s=o?function(){return fd(e,o,r)}:function(){return Promise.resolve()},l=(null===(n=e.variantChildren)||void 0===n?void 0:n.size)?function(n){void 0===n&&(n=0);var o=i.delayChildren;return function(e,t,r,n,o,a){void 0===r&&(r=0),void 0===n&&(n=0),void 0===o&&(o=1);var i=[],s=(e.variantChildren.size-1)*n,l=1===o?function(e){return void 0===e&&(e=0),e*n}:function(e){return void 0===e&&(e=0),s-e*n};return Array.from(e.variantChildren).sort(md).forEach(function(e,n){i.push(pd(e,t,ya(ya({},a),{delay:r+l(n)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(i)}(e,t,(void 0===o?0:o)+n,i.staggerChildren,i.staggerDirection,r)}:function(){return Promise.resolve()},c=i.when;if(c){var u=xa("beforeChildren"===c?[s,l]:[l,s],2),d=u[1];return(0,u[0])().then(d)}return Promise.all([s(),l(r.delay)])}function fd(e,t,r){var n,o=void 0===r?{}:r,a=o.delay,i=void 0===a?0:a,s=o.transitionOverride,l=o.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,p=c.transitionEnd,f=ba(c,["transition","transitionEnd"]);s&&(d=s);var m=[],h=l&&(null===(n=e.animationState)||void 0===n?void 0:n.getState()[l]);for(var v in f){var g=e.getValue(v),y=f[v];if(!(!g||void 0===y||h&&hd(h,v))){var b=ya({delay:i},d);e.shouldReduceMotion&&cc(v)&&(b=ya(ya({},b),{type:!1,delay:0}));var x=vl(v,g,y,b);m.push(x)}}return Promise.all(m).then(function(){p&&function(e,t){var r=za(e,t),n=r?e.makeTargetAnimatable(r,!1):{},o=n.transitionEnd,a=void 0===o?{}:o,i=ba(n,["transitionEnd","transition"]);for(var s in i=ya(ya({},i),a))ud(e,s,dl(i[s]))}(e,p)})}function md(e,t){return e.sortNodePosition(t)}function hd(e,t){var r=e.needsAnimating,n=e.protectedKeys.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,n}var vd=[vu.Animate,vu.InView,vu.Focus,vu.Hover,vu.Tap,vu.Drag,vu.Exit],gd=ka([],xa(vd),!1).reverse(),yd=vd.length;function bd(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var xd={animation:Xu(function(e){var t=e.visualElement,r=e.animate;t.animationState||(t.animationState=function(e){var t,r=function(e){return function(t){return Promise.all(t.map(function(t){return function(e,t,r){var n;if(void 0===r&&(r={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map(function(t){return pd(e,t,r)});n=Promise.all(o)}else if("string"==typeof t)n=pd(e,t,r);else{var a="function"==typeof t?za(e,t,r.custom):t;n=fd(e,a,r)}return n.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))}}(e),n=((t={})[vu.Animate]=bd(!0),t[vu.InView]=bd(),t[vu.Hover]=bd(),t[vu.Tap]=bd(),t[vu.Drag]=bd(),t[vu.Focus]=bd(),t[vu.Exit]=bd(),t),o={},a=!0,i=function(t,r){var n=za(e,r);if(n){var o=n.transitionEnd,a=ba(n,["transition","transitionEnd"]);t=ya(ya(ya({},t),a),o)}return t};function s(t,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],p=new Set,f={},m=Infinity,h=function(r){var o=gd[r],h=n[o],v=null!==(l=c[o])&&void 0!==l?l:u[o],g=Va(v),y=o===s?h.isActive:null;!1===y&&(m=r);var b=v===u[o]&&v!==c[o]&&g;if(b&&a&&e.manuallyAnimateOnMount&&(b=!1),h.protectedKeys=ya({},f),!h.isActive&&null===y||!v&&!h.prevProp||pu(v)||"boolean"==typeof v)return"continue";var x=function(e,t){return"string"==typeof t?t!==e:!!Da(t)&&!rd(t,e)}(h.prevProp,v),k=x||o===s&&h.isActive&&!b&&g||r>m&&g,E=Array.isArray(v)?v:[v],w=E.reduce(i,{});!1===y&&(w={});var S=h.prevResolvedValues,C=void 0===S?{}:S,_=ya(ya({},C),w),O=function(e){k=!0,p.delete(e),h.needsAnimating[e]=!0};for(var R in _){var T=w[R],I=C[R];f.hasOwnProperty(R)||(T!==I?el(T)&&el(I)?!rd(T,I)||x?O(R):h.protectedKeys[R]=!0:void 0!==T?O(R):p.add(R):void 0!==T&&p.has(R)?O(R):h.protectedKeys[R]=!0)}h.prevProp=v,h.prevResolvedValues=w,h.isActive&&(f=ya(ya({},f),w)),a&&e.blockInitialAnimation&&(k=!1),k&&!b&&d.push.apply(d,ka([],xa(E.map(function(e){return{animation:e,options:ya({type:o},t)}})),!1))},v=0;v<yd;v++)h(v);if(o=ya({},f),p.size){var g={};p.forEach(function(t){var r=e.getBaseTarget(t);void 0!==r&&(g[t]=r)}),d.push({animation:g})}var y=Boolean(d.length);return a&&!1===c.initial&&!e.manuallyAnimateOnMount&&(y=!1),a=!1,y?r(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;var i=s(o,t);for(var l in n)n[l].protectedKeys={};return i},setAnimateFunction:function(t){r=t(e)},getState:function(){return n}}}(t)),pu(r)&&je.useEffect(function(){return r.subscribe(t)},[r])}),exit:Xu(function(e){var t=e.custom,r=e.visualElement,n=xa(td(),2),o=n[0],a=n[1],i=je.useContext(Aa);je.useEffect(function(){var e,n;r.isPresent=o;var s=null===(e=r.animationState)||void 0===e?void 0:e.setActive(vu.Exit,!o,{custom:null!==(n=null==i?void 0:i.custom)&&void 0!==n?n:t});!o&&(null==s||s.then(a))},[o])})},kd=function(){function e(e,t,r){var n=this,o=(void 0===r?{}:r).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(n.lastMoveEvent&&n.lastMoveEventInfo){var e=Sd(n.lastMoveEventInfo,n.history),t=null!==n.startEvent,r=Ds(e.offset,{x:0,y:0})>=3;if(t||r){var o=e.point,a=ii().timestamp;n.history.push(ya(ya({},o),{timestamp:a}));var i=n.handlers,s=i.onStart,l=i.onMove;t||(s&&s(n.lastMoveEvent,e),n.startEvent=n.lastMoveEvent),l&&l(n.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){n.lastMoveEvent=e,n.lastMoveEventInfo=Ed(t,n.transformPagePoint),ku(e)&&0===e.buttons?n.handlePointerUp(e,t):ei.update(n.updatePoint,!0)},this.handlePointerUp=function(e,t){n.end();var r=n.handlers,o=r.onEnd,a=r.onSessionEnd,i=Sd(Ed(t,n.transformPagePoint),n.history);n.startEvent&&o&&o(e,i),a&&a(e,i)},!(Eu(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Ed(_u(e),this.transformPagePoint),i=a.point,s=ii().timestamp;this.history=[ya(ya({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Sd(a,this.history)),this.removeListeners=os(Nu(window,"pointermove",this.handlePointerMove),Nu(window,"pointerup",this.handlePointerUp),Nu(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),ti.update(this.updatePoint)},e}();function Ed(e,t){return t?{point:t(e.point)}:e}function wd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Sd(e,t){var r=e.point;return{point:r,delta:wd(r,_d(t)),offset:wd(r,Cd(t)),velocity:Od(t,.1)}}function Cd(e){return e[0]}function _d(e){return e[e.length-1]}function Od(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,o=_d(e);r>=0&&!(o.timestamp-(n=e[r]).timestamp>Xs(t));)r--;if(!n)return{x:0,y:0};var a=(o.timestamp-n.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-n.x)/a,y:(o.y-n.y)/a};return Infinity===i.x&&(i.x=0),Infinity===i.y&&(i.y=0),i}function Rd(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function Td(e,t){var r,n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=(r=xa([o,n],2))[0],o=r[1]),{min:n,max:o}}function Id(e,t,r){return{min:Nd(e,t),max:Nd(e,r)}}function Nd(e,t){var r;return"number"==typeof e?e:null!==(r=e[t])&&void 0!==r?r:0}function Ad(e){return{x:{min:e.left,max:e.right},y:{min:e.top,max:e.bottom}}}function Pd(e,t){return Ad(function(e,t){if(!t)return e;var r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}var Ld=new WeakMap,Md=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var r=this,n=(void 0===t?{}:t).snapToCursor,o=void 0!==n&&n;!1!==this.visualElement.isPresent&&(this.panSession=new kd(e,{onSessionStart:function(e){r.stopAnimation(),o&&r.snapToCursor(_u(e,"page").point)},onStart:function(e,t){var n,o=r.getProps(),a=o.drag,i=o.onDragStart;(!a||o.dragPropagation||(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=ju(a),r.openGlobalLock))&&(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),oc(function(e){var t,n,o=r.getAxisMotionValue(e).get()||0;if(Oi.test(o)){var a=null===(n=null===(t=r.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];a&&(o=Fl(a)*(parseFloat(o)/100))}r.originPoint[e]=o}),null==i||i(e,t),null===(n=r.visualElement.animationState)||void 0===n||n.setActive(vu.Drag,!0))},onMove:function(e,t){var n=r.getProps(),o=n.onDirectionLock,a=n.onDrag;if(n.dragPropagation||r.openGlobalLock){var i=t.offset;if(n.dragDirectionLock&&null===r.currentDirection)return r.currentDirection=function(e,t){void 0===t&&(t=10);var r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(i),void(null!==r.currentDirection&&(null==o||o(r.currentDirection)));r.updateAxis("x",t.point,i),r.updateAxis("y",t.point,i),r.visualElement.syncRender(),null==a||a(e,t)}},onSessionEnd:function(e,t){return r.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var r=this.isDragging;if(this.cancel(),r){this.startAnimation(t.velocity);var n=this.getProps().onDragEnd;null==n||n(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(vu.Drag,!1)},e.prototype.updateAxis=function(e,t,r){var n=this.getProps().drag;if(r&&jd(e,n,this.currentDirection)){var o=this.getAxisMotionValue(e),a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=function(e,t,r){var n=t.min,o=t.max;return void 0!==n&&e<n?e=r?hi(n,e,r.min):Math.max(e,n):void 0!==o&&e>o&&(e=r?hi(o,e,r.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(),r=t.dragConstraints,n=t.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;r&&Ba(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!r||!o)&&function(e,t){var r=t.top,n=t.bottom;return{x:Rd(e.x,t.left,t.right),y:Rd(e.y,r,n)}}(o.actual,r),this.elastic=function(e){return void 0===e&&(e=.35),!1===e?e=0:!0===e&&(e=.35),{x:Id(e,"left","right"),y:Id(e,"top","bottom")}}(n),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&oc(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(o.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,r=e.onMeasureDragConstraints;if(!t||!Ba(t))return!1;var n=t.current;_a(null!==n,"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,r){var n=Pd(e,r),o=t.scroll;return o&&(Ml(n.x,o.x),Ml(n.y,o.y)),n}(n,o.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:Td(e.x,t.x),y:Td(e.y,t.y)}}(o.layout.actual,a);if(r){var s=r(function(e){var t=e.x,r=e.y;return{top:r.min,right:t.max,bottom:r.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=Ad(s))}return i},e.prototype.startAnimation=function(e){var t=this,r=this.getProps(),n=r.drag,o=r.dragMomentum,a=r.dragElastic,i=r.dragTransition,s=r.dragSnapToOrigin,l=r.onDragTransitionEnd,c=this.constraints||{},u=oc(function(r){var l;if(jd(r,n,t.currentDirection)){var u=null!==(l=null==c?void 0:c[r])&&void 0!==l?l:{};s&&(u={min:0,max:0});var d=ya(ya({type:"inertia",velocity:o?e[r]:0,bounceStiffness:a?200:1e6,bounceDamping:a?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},i),u);return t.startAxisValueAnimation(r,d)}});return Promise.all(u).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return vl(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;oc(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,r,n="_drag"+e.toUpperCase();return this.visualElement.getProps()[n]||this.visualElement.getValue(e,null!==(r=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==r?r:0)},e.prototype.snapToCursor=function(e){var t=this;oc(function(r){if(jd(r,t.getProps().drag,t.currentDirection)){var n=t.visualElement.projection,o=t.getAxisMotionValue(r);if(n&&n.layout){var a=n.layout.actual[r];o.set(e[r]-hi(a.min,a.max,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,r=this.getProps(),n=r.drag,o=this.visualElement.projection;if(Ba(r.dragConstraints)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};oc(function(e){var r,n,o,i,s,l=t.getAxisMotionValue(e);if(l){var c=l.get();a[e]=(n=t.constraints[e],o=.5,i=Fl(r={min:c,max:c}),(s=Fl(n))>i?o=mi(n.min,n.max-i,r.min):i>s&&(o=mi(r.min,r.max-s,n.min)),si(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(),oc(function(e){if(jd(e,n,null)){var r=t.getAxisMotionValue(e),o=t.constraints[e];r.set(hi(o.min,o.max,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;Ld.set(this.visualElement,this);var r=Nu(this.visualElement.getInstance(),"pointerdown",function(e){var r=t.getProps(),n=r.dragListener;r.drag&&(void 0===n||n)&&t.start(e)}),n=function(){Ba(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,a=o.addEventListener("measure",n);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),n();var i=bu(window,"resize",function(){return t.scalePositionWithinConstraints()});return o.addEventListener("didUpdate",function(e){var r=e.delta;t.isDragging&&e.hasLayoutChanged&&(oc(function(e){var n=t.getAxisMotionValue(e);n&&(t.originPoint[e]+=r[e].translate,n.set(n.get()+r[e].translate))}),t.visualElement.syncRender())}),function(){i(),r(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,r=void 0!==t&&t,n=e.dragDirectionLock,o=void 0!==n&&n,a=e.dragPropagation,i=void 0!==a&&a,s=e.dragConstraints,l=void 0!==s&&s,c=e.dragElastic,u=void 0===c?.35:c,d=e.dragMomentum,p=void 0===d||d;return ya(ya({},e),{drag:r,dragDirectionLock:o,dragPropagation:i,dragConstraints:l,dragElastic:u,dragMomentum:p})},e}();function jd(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}var Bd={pan:Xu(function(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||r||n||o,s=je.useRef(null),l=je.useContext(Ia).transformPagePoint,c={onSessionStart:o,onStart:r,onMove:t,onEnd:function(e,t){s.current=null,n&&n(e,t)}};je.useEffect(function(){null!==s.current&&s.current.updateHandlers(c)}),Au(a,"pointerdown",i&&function(e){s.current=new kd(e,c,{transformPagePoint:l})}),Fu(function(){return s.current&&s.current.end()})}),drag:Xu(function(e){var t=e.dragControls,r=e.visualElement,n=Ha(function(){return new Md(r)});je.useEffect(function(){return t&&t.subscribe(n)},[n,t]),je.useEffect(function(){return n.addListeners()},[n])})},Dd=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Vd=function(e){var t=e.treeType,r=void 0===t?"":t,n=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var p=e.parent,f=e.props,m=e.presenceId,h=e.blockInitialAnimation,v=e.visualState,g=e.shouldReduceMotion;void 0===t&&(t={});var y,b,x=!1,k=v.latestValues,E=v.renderState,w=function(){var e=Dd.map(function(){return new qs}),t={},r={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){Dd.forEach(function(n){var o,a="on"+n,i=e[a];null===(o=t[n])||void 0===o||o.call(t),i&&(t[n]=r[a](i))})}};return e.forEach(function(e,t){r["on"+Dd[t]]=function(t){return e.add(t)},r["notify"+Dd[t]]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.notify.apply(e,ka([],xa(t),!1))}}),r}(),S=new Map,C=new Map,_={},O=ya({},k);function R(){y&&x&&(T(),s(y,E,f.style,B.projection))}function T(){n(B,E,k,t,f)}function I(){w.notifyUpdate(k)}function N(e,t){var r=t.onChange(function(t){k[e]=t,f.onUpdate&&ei.update(I,!1,!0)}),n=t.onRenderRequest(B.scheduleRender);C.set(e,function(){r(),n()})}var A=d(f);for(var P in A){var L=A[P];void 0!==k[P]&&Zs(L)&&L.set(k[P],!1)}var M=Wa(f),j=$a(f),B=ya(ya({treeType:r,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:m,shouldReduceMotion:g,variantChildren:j?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==p?void 0:p.isMounted()),blockInitialAnimation:h,isMounted:function(){return Boolean(y)},mount:function(e){x=!0,y=B.current=e,B.projection&&B.projection.mount(e),j&&p&&!M&&(b=null==p?void 0:p.addVariantChild(B)),S.forEach(function(e,t){return N(t,e)}),null==p||p.children.add(B),B.setProps(f)},unmount:function(){var e;null===(e=B.projection)||void 0===e||e.unmount(),ti.update(I),ti.render(R),C.forEach(function(e){return e()}),null==b||b(),null==p||p.children.delete(B),w.clearAllListeners(),y=void 0,x=!1},addVariantChild:function(e){var t,r=B.getClosestVariantNode();if(r)return null===(t=r.variantChildren)||void 0===t||t.add(e),function(){return r.variantChildren.delete(e)}},sortNodePosition:function(e){return u&&r===e.treeType?u(B.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return j?B:null==p?void 0:p.getClosestVariantNode()},getLayoutId:function(){return f.layoutId},getInstance:function(){return y},getStaticValue:function(e){return k[e]},setStaticValue:function(e,t){return k[e]=t},getLatestValues:function(){return k},setVisibility:function(e){B.isVisible!==e&&(B.isVisible=e,B.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(B,e,f,t)},measureViewportBox:function(){return i(y,f)},addValue:function(e,t){B.hasValue(e)&&B.removeValue(e),S.set(e,t),k[e]=t.get(),N(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=C.get(e))||void 0===t||t(),C.delete(e),delete k[e],c(e,E)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var r=S.get(e);return void 0===r&&void 0!==t&&(r=Gs(t),B.addValue(e,r)),r},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var r;return null!==(r=k[e])&&void 0!==r?r:l(y,e,t)},setBaseTarget:function(e,t){O[e]=t},getBaseTarget:function(e){if(o){var t=o(f,e);if(void 0!==t&&!Zs(t))return t}return O[e]}},w),{build:function(){return T(),E},scheduleRender:function(){ei.render(R,!1,!0)},syncRender:R,setProps:function(e){(e.transformTemplate||f.transformTemplate)&&B.scheduleRender(),f=e,w.updatePropListeners(e),_=function(e,t,r){var n;for(var o in t){var a=t[o],i=r[o];if(Zs(a))e.addValue(o,a),"development"===process.env.NODE_ENV&&Wu("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(Zs(i))e.addValue(o,Gs(a));else if(i!==a)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(a)}else e.addValue(o,Gs(null!==(n=e.getStaticValue(o))&&void 0!==n?n:a))}for(var o in r)void 0===t[o]&&e.removeValue(o);return t}(B,d(f),_)},getProps:function(){return f},getVariant:function(e){var t;return null===(t=f.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return f.transition},getTransformPagePoint:function(){return f.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==p?void 0:p.getVariantContext();if(!M){var t=(null==p?void 0:p.getVariantContext())||{};return void 0!==f.initial&&(t.initial=f.initial),t}for(var r={},n=0;n<zd;n++){var o=Fd[n],a=f[o];(Va(a)||!1===a)&&(r[o]=a)}return r}});return B}},Fd=ka(["initial"],xa(vd),!1),zd=Fd.length;function Wd(e){return"string"==typeof e&&e.startsWith("var(--")}var $d=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ud(e,t,r){void 0===r&&(r=1),_a(r<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var n=xa(function(e){var t=$d.exec(e);if(!t)return[,];var r=xa(t,3);return[r[1],r[2]]}(e),2),o=n[0],a=n[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():Wd(a)?Ud(a,t,r+1):a}}var Hd,qd=new Set(["width","height","top","left","right","bottom","x","y"]),Yd=function(e){return qd.has(e)},Gd=function(e,t){e.set(t,!1),e.set(t)},Zd=function(e){return e===Ei||e===Ri};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Hd||(Hd={}));var Xd=function(e,t){return parseFloat(e.split(", ")[t])},Kd=function(e,t){return function(r,n){var o=n.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return Xd(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?Xd(i[1],e):0}},Jd=new Set(["x","y","z"]),Qd=ic.filter(function(e){return!Jd.has(e)}),ep={width:function(e,t){var r=e.x,n=t.paddingLeft,o=t.paddingRight,a=void 0===o?"0":o;return r.max-r.min-parseFloat(void 0===n?"0":n)-parseFloat(a)},height:function(e,t){var r=e.y,n=t.paddingTop,o=t.paddingBottom,a=void 0===o?"0":o;return r.max-r.min-parseFloat(void 0===n?"0":n)-parseFloat(a)},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var r=e.y;return parseFloat(t.top)+(r.max-r.min)},right:function(e,t){var r=e.x;return parseFloat(t.left)+(r.max-r.min)},x:Kd(4,13),y:Kd(5,14)},tp={treeType:"dom",readValueFromInstance:function(e,t){if(cc(t)){var r=cl(t);return r&&r.default||0}var n=window.getComputedStyle(e);return($c(t)?n.getPropertyValue(t):n[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]},measureViewportBox:function(e,t){return Pd(e,t.transformPagePoint)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.style;delete t.vars[e],delete r[e]},makeTargetAnimatable:function(e,t,r,n){var o=r.transformValues;void 0===n&&(n=!0);var a=t.transition,i=t.transitionEnd,s=ba(t,["transition","transitionEnd"]),l=function(e,t,r){var n,o,a={};for(var i in e)a[i]=null!==(n=dd(i,t))&&void 0!==n?n:null===(o=r.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))),n){!function(e,t,r){var n,o,a,i,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],p=null;Array.isArray(d)&&(p=d[0]),null===p&&(p=null!==(o=null!==(n=r[u])&&void 0!==n?n:e.readValue(u))&&void 0!==o?o:t[u]),null!=p&&("string"==typeof p&&(nd(p)||od(p))?p=parseFloat(p):!cd(p)&&Ui.test(d)&&(p=ul(u,d)),e.addValue(u,Gs(p)),null!==(a=(i=r)[u])&&void 0!==a||(i[u]=p),e.setBaseTarget(u,p))}}(e,s,l);var c=function(e,t,r,n){var o=function(e,t,r){var n,o=ba(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:o,transitionEnd:r};for(var i in r&&(r=ya({},r)),e.forEachValue(function(e){var t=e.get();if(Wd(t)){var r=Ud(t,a);r&&e.set(r)}}),o){var s=o[i];if(Wd(s)){var l=Ud(s,a);l&&(o[i]=l,r&&(null!==(n=r[i])&&void 0!==n||(r[i]=s)))}}return{target:o,transitionEnd:r}}(e,t,n);return function(e,t,r,n){return function(e){return Object.keys(e).some(Yd)}(t)?function(e,t,r,n){void 0===r&&(r={}),void 0===n&&(n={}),t=ya({},t),n=ya({},n);var o=Object.keys(t).filter(Yd),a=[],i=!1,s=[];if(o.forEach(function(o){var l=e.getValue(o);if(e.hasValue(o)){var c,u=r[o],d=sd(u),p=t[o];if(el(p)){var f=p.length,m=null===p[0]?1:0;d=sd(u=p[m]);for(var h=m;h<f;h++)c?_a(sd(p[h])===c,"All keyframes must be of the same type"):(c=sd(p[h]),_a(c===d||Zd(d)&&Zd(c),"Keyframes must be of the same dimension as the current value"))}else c=sd(p);if(d!==c)if(Zd(d)&&Zd(c)){var v=l.get();"string"==typeof v&&l.set(parseFloat(v)),"string"==typeof p?t[o]=parseFloat(p):Array.isArray(p)&&c===Ri&&(t[o]=p.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==c?void 0:c.transform)&&(0===u||0===p)?0===u?l.set(c.transform(u)):t[o]=d.transform(p):(i||(a=function(e){var t=[];return Qd.forEach(function(r){var n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),i=!0),s.push(o),n[o]=void 0!==n[o]?n[o]:t[o],Gd(l,p))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,r){var n=t.measureViewportBox(),o=t.getInstance(),a=getComputedStyle(o),i={};"none"===a.display&&t.setStaticValue("display",e.display||"block"),r.forEach(function(e){i[e]=ep[e](n,a)}),t.syncRender();var s=t.measureViewportBox();return r.forEach(function(r){var n=t.getValue(r);Gd(n,i[r]),e[r]=ep[r](s,a)}),e}(t,e,s);return a.length&&a.forEach(function(t){var r=xa(t,2),n=r[1];e.getValue(r[0]).set(n)}),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}return{target:t,transitionEnd:n}}(e,t,r,n):{target:t,transitionEnd:n}}(e,t=o.target,r,n=o.transitionEnd)}(e,s,l,i);i=c.transitionEnd,s=c.target}return ya({transition:a,transitionEnd:i},s)},scrapeMotionValuesFromProps:uu,build:function(e,t,r,n,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Hc(t,r,n,o.transformTemplate)},render:su},rp=Vd(tp),np=Vd(ya(ya({},tp),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return cc(t)?(null===(r=cl(t))||void 0===r?void 0:r.default)||0:(t=lu.has(t)?t:iu(t),e.getAttribute(t))},scrapeMotionValuesFromProps:du,build:function(e,t,r,n,o){tu(t,r,n,o.transformTemplate)},render:cu})),op=function(e,t){return Fc(e)?np(t,{enableHardwareAcceleration:!1}):rp(t,{enableHardwareAcceleration:!0})};function ap(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ip={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Ri.test(e))return e;e=parseFloat(e)}var r=ap(e,t.target.x),n=ap(e,t.target.y);return"".concat(r,"% ").concat(n,"%")}},sp={correct:function(e,t){var r=t.treeScale,n=t.projectionDelta,o=e,a=e.includes("var("),i=[];a&&(e=e.replace($d,function(e){return i.push(e),"_$css"}));var s=Ui.parse(e);if(s.length>5)return o;var l=Ui.createTransformer(e),c="number"!=typeof s[0]?1:0,u=n.x.scale*r.x,d=n.y.scale*r.y;s[0+c]/=u,s[1+c]/=d;var p=hi(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=p),"number"==typeof s[3+c]&&(s[3+c]/=p);var f=l(s);if(a){var m=0;f=f.replace("_$css",function(){var e=i[m];return m++,e})}return f}},lp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ga(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,r=t.layoutGroup,n=t.switchLayoutGroup,o=t.layoutId,a=t.visualElement.projection;Object.assign(rc,cp),a&&((null==r?void 0:r.group)&&r.group.add(a),(null==n?void 0:n.register)&&o&&n.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",function(){e.safeToRemove()}),a.setOptions(ya(ya({},a.options),{onExitComplete:function(){return e.safeToRemove()}}))),hc.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,r=this.props,n=r.layoutDependency,o=r.drag,a=r.isPresent,i=r.visualElement.projection;return i?(i.isPresent=a,o||e.layoutDependency!==n||void 0===n?i.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?i.promote():i.relegate()||ei.postRender(function(){var e;(null===(e=i.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()})),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.layoutGroup,r=e.switchLayoutGroup,n=e.visualElement.projection;n&&(n.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(n),(null==r?void 0:r.deregister)&&r.deregister(n))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(je.Component),cp={borderRadius:ya(ya({},ip),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ip,borderTopRightRadius:ip,borderBottomLeftRadius:ip,borderBottomRightRadius:ip,boxShadow:sp},up={measureLayout:function(e){var t=xa(td(),2),r=t[0],n=t[1],o=je.useContext(Mc);return je.createElement(lp,ya({},e,{layoutGroup:o,switchLayoutGroup:je.useContext(jc),isPresent:r,safeToRemove:n}))}},dp=vc({attachResizeListener:function(e,t){return bu(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),pp={current:void 0},fp=vc({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!pp.current){var e=new dp(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),pp.current=e}return pp.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),mp=ya(ya(ya(ya({},xd),Ku),Bd),up),hp=/*@__PURE__*/Dc(function(e,t){return function(e,t,r,n,o){var a=t.forwardMotionProps,i=void 0!==a&&a,s=Fc(e)?gu:yu;return ya(ya({},s),{preloadedFeatures:r,useRender:ou(i),createVisualElement:n,projectionNodeConstructor:o,Component:e})}(e,t,mp,op,fp)});function vp(){var e=je.useRef(!1);return La(function(){return e.current=!0,function(){e.current=!1}},[]),e}var gp=function(e){var t=e.children,r=e.initial,n=e.isPresent,o=e.onExitComplete,a=e.custom,i=e.presenceAffectsLayout,s=Ha(yp),l=ed(),c=je.useMemo(function(){return{id:l,initial:r,isPresent:n,custom:a,onExitComplete:function(e){var t,r;s.set(e,!0);try{for(var n=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s.values()),a=n.next();!a.done;a=n.next())if(!a.value)return}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}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:[n]);return je.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[n]),je.useEffect(function(){!n&&!s.size&&(null==o||o())},[n]),je.createElement(Aa.Provider,{value:c},t)};function yp(){return new Map}var bp=function(e){return e.key||""},xp=function(e){var t=e.children,r=e.custom,n=e.initial,o=void 0===n||n,a=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,c=xa(function(){var e=vp(),t=xa(je.useState(0),2),r=t[0],n=t[1],o=je.useCallback(function(){e.current&&n(r+1)},[r]);return[je.useCallback(function(){return ei.postRender(o)},[o]),r]}(),1),u=c[0],d=je.useContext(Mc).forceRender;d&&(u=d);var p=vp(),f=function(e){var t=[];return je.Children.forEach(e,function(e){je.isValidElement(e)&&t.push(e)}),t}(t),m=f,h=new Set,v=je.useRef(m),g=je.useRef(new Map).current,y=je.useRef(!0);if(La(function(){y.current=!1,function(e,t){e.forEach(function(e){var r=bp(e);t.set(r,e)})}(f,g),v.current=m}),Fu(function(){y.current=!0,g.clear(),h.clear()}),y.current)return je.createElement(je.Fragment,null,m.map(function(e){return je.createElement(gp,{key:bp(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:l},e)}));m=ka([],xa(m),!1);for(var b=v.current.map(bp),x=f.map(bp),k=b.length,E=0;E<k;E++){var w=b[E];-1===x.indexOf(w)&&h.add(w)}return i&&h.size&&(m=[]),h.forEach(function(e){if(-1===x.indexOf(e)){var t=g.get(e);if(t){var n=b.indexOf(e);m.splice(n,0,je.createElement(gp,{key:bp(t),isPresent:!1,onExitComplete:function(){g.delete(e),h.delete(e);var t=v.current.findIndex(function(t){return t.key===e});if(v.current.splice(t,1),!h.size){if(v.current=f,!1===p.current)return;u(),a&&a()}},custom:r,presenceAffectsLayout:l},t))}}}),m=m.map(function(e){return h.has(e.key)?e:je.createElement(gp,{key:bp(e),isPresent:!0,presenceAffectsLayout:l},e)}),"production"!==Ea&&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,h.size?m:m.map(function(e){return je.cloneElement(e)}))};function kp(){return kp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kp.apply(this,arguments)}var Ep=["as","viewBox","color","focusable","children","className","__css"],wp={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"},Sp=/*#__PURE__*/ca(function(e,t){var r=e.as,n=e.viewBox,o=e.color,a=void 0===o?"currentColor":o,i=e.focusable,s=void 0!==i&&i,l=e.children,c=e.className,u=e.__css,d=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(e,Ep),p={ref:t,focusable:s,className:S("chakra-icon",c),__css:kp({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a},u)},f=null!=n?n:wp.viewBox;if(r&&"string"!=typeof r)/*#__PURE__*/
|
5
|
+
return je.createElement(ha.svg,kp({as:r},p,d));var m=null!=l?l:wp.path;/*#__PURE__*/
|
6
|
+
return je.createElement(ha.svg,kp({verticalAlign:"middle",viewBox:f},p,d),m)});d&&(Sp.displayName="Icon");var Cp=Sp;function _p(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Op.apply(this,arguments)}var Rp={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Tp={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},Ip={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},Np={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},Ap={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function Pp(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return Ip;case"left":return Tp;case"bottom":return Ap;case"top":return Np}}var Lp={enter:{duration:.2,ease:Rp.easeOut},exit:{duration:.1,ease:Rp.easeIn}},Mp=function(e,t){return Op({},e,{delay:v(t)?t:null==t?void 0:t.enter})},jp=function(e,t){return Op({},e,{delay:v(t)?t:null==t?void 0:t.exit})},Bp=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],Dp={exit:{height:{duration:.2,ease:Rp.ease},opacity:{duration:.3,ease:Rp.ease}},enter:{height:{duration:.3,ease:Rp.ease},opacity:{duration:.4,ease:Rp.ease}}},Vp={exit:function(e){var t,r,n=e.startingHeight,o=e.transition,a=e.transitionEnd,i=e.delay;return Op({},e.animateOpacity&&{opacity:(r=n,null!=r&&parseInt(r.toString(),10)>0?1:0)},{height:n,transitionEnd:null==a?void 0:a.exit,transition:null!=(t=null==o?void 0:o.exit)?t:jp(Dp.exit,i)})},enter:function(e){var t,r=e.transition,n=e.transitionEnd;return Op({},e.animateOpacity&&{opacity:1},{height:e.endingHeight,transitionEnd:null==n?void 0:n.enter,transition:null!=(t=null==r?void 0:r.enter)?t:Mp(Dp.enter,e.delay)})}},Fp=/*#__PURE__*/je.forwardRef(function(e,t){var r=e.in,n=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,p=e.transition,m=e.transitionEnd,h=_p(e,Bp),v=je.useState(!1),g=v[0],y=v[1];je.useEffect(function(){var e=setTimeout(function(){y(!0)});return function(){return clearTimeout(e)}},[]),C({condition:Boolean(s>0&&n),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:g?p:{enter:{duration:0}},transitionEnd:f(m,{exit:n?void 0:{display:b?"block":"none"}})},k=r||n?"enter":"exit";/*#__PURE__*/
|
7
|
+
return je.createElement(xp,{initial:!1,custom:x},(!n||r)&&/*#__PURE__*/je.createElement(hp.div,Op({ref:t},h,{className:S("chakra-collapse",d),style:Op({overflow:"hidden",display:"block"},u),custom:x,variants:Vp,initial:!!n&&"exit",animate:k,exit:"exit"})))});d&&(Fp.displayName="Collapse");var zp=["unmountOnExit","in","className","transition","transitionEnd","delay"],Wp={enter:function(e){var t,r=void 0===e?{}:e,n=r.transition,o=r.transitionEnd;return{opacity:1,transition:null!=(t=null==n?void 0:n.enter)?t:Mp(Lp.enter,r.delay),transitionEnd:null==o?void 0:o.enter}},exit:function(e){var t,r=void 0===e?{}:e,n=r.transition,o=r.transitionEnd;return{opacity:0,transition:null!=(t=null==n?void 0:n.exit)?t:jp(Lp.exit,r.delay),transitionEnd:null==o?void 0:o.exit}}},$p={initial:"exit",animate:"enter",exit:"exit",variants:Wp},Up=/*#__PURE__*/je.forwardRef(function(e,t){var r=e.unmountOnExit,n=e.in,o=e.className,a=e.transition,i=e.transitionEnd,s=e.delay,l=_p(e,zp),c=n||r?"enter":"exit",u={transition:a,transitionEnd:i,delay:s};/*#__PURE__*/
|
8
|
+
return je.createElement(xp,{custom:u},(!r||n&&r)&&/*#__PURE__*/je.createElement(hp.div,Op({ref:t,className:S("chakra-fade",o),custom:u},$p,{animate:c},l)))});d&&(Up.displayName="Fade");var Hp=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],qp={exit:function(e){var t,r=e.initialScale,n=e.transition,o=e.transitionEnd,a=e.delay;return Op({opacity:0},e.reverse?{scale:r,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:Op({scale:r},null==o?void 0:o.exit)},{transition:null!=(t=null==n?void 0:n.exit)?t:jp(Lp.exit,a)})},enter:function(e){var t,r=e.transitionEnd,n=e.transition;return{opacity:1,scale:1,transition:null!=(t=null==n?void 0:n.enter)?t:Mp(Lp.enter,e.delay),transitionEnd:null==r?void 0:r.enter}}},Yp={initial:"exit",animate:"enter",exit:"exit",variants:qp},Gp=/*#__PURE__*/je.forwardRef(function(e,t){var r=e.unmountOnExit,n=e.in,o=e.reverse,a=void 0===o||o,i=e.initialScale,s=void 0===i?.95:i,l=e.className,c=e.transition,u=e.transitionEnd,d=e.delay,p=_p(e,Hp),f=n||r?"enter":"exit",m={initialScale:s,reverse:a,transition:c,transitionEnd:u,delay:d};/*#__PURE__*/
|
9
|
+
return je.createElement(xp,{custom:m},(!r||n&&r)&&/*#__PURE__*/je.createElement(hp.div,Op({ref:t,className:S("chakra-offset-slide",l)},Yp,{animate:f,custom:m},p)))});d&&(Gp.displayName="ScaleFade");var Zp=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],Xp={exit:{duration:.15,ease:Rp.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},Kp={exit:function(e){var t,r=e.transition,n=e.transitionEnd,o=e.delay;return Op({},Pp({direction:e.direction}).exit,{transition:null!=(t=null==r?void 0:r.exit)?t:jp(Xp.exit,o),transitionEnd:null==n?void 0:n.exit})},enter:function(e){var t,r=e.transitionEnd,n=e.transition,o=e.delay;return Op({},Pp({direction:e.direction}).enter,{transition:null!=(t=null==n?void 0:n.enter)?t:Mp(Xp.enter,o),transitionEnd:null==r?void 0:r.enter})}},Jp=/*#__PURE__*/je.forwardRef(function(e,t){var r=e.direction,n=void 0===r?"right":r,o=e.style,a=e.unmountOnExit,i=e.in,s=e.className,l=e.transition,c=e.transitionEnd,u=e.delay,d=_p(e,Zp),p=Pp({direction:n}),f=Object.assign({position:"fixed"},p.position,o),m=i||a?"enter":"exit",h={transitionEnd:c,transition:l,direction:n,delay:u};/*#__PURE__*/
|
10
|
+
return je.createElement(xp,{custom:h},(!a||i&&a)&&/*#__PURE__*/je.createElement(hp.div,Op({},d,{ref:t,initial:"exit",className:S("chakra-slide",s),animate:m,exit:"exit",custom:h,variants:Kp,style:f})))});d&&(Jp.displayName="Slide");var Qp=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],ef={initial:function(e){var t,r=e.transition,n=e.transitionEnd;return{opacity:0,x:e.offsetX,y:e.offsetY,transition:null!=(t=null==r?void 0:r.exit)?t:jp(Lp.exit,e.delay),transitionEnd:null==n?void 0:n.exit}},enter:function(e){var t,r=e.transition,n=e.transitionEnd;return{opacity:1,x:0,y:0,transition:null!=(t=null==r?void 0:r.enter)?t:Mp(Lp.enter,e.delay),transitionEnd:null==n?void 0:n.enter}},exit:function(e){var t,r=e.transition,n=e.transitionEnd,o=e.reverse,a={x:e.offsetX,y:e.offsetY};return Op({opacity:0,transition:null!=(t=null==r?void 0:r.exit)?t:jp(Lp.exit,e.delay)},o?Op({},a,{transitionEnd:null==n?void 0:n.exit}):{transitionEnd:Op({},a,null==n?void 0:n.exit)})}},tf={initial:"initial",animate:"enter",exit:"exit",variants:ef},rf=/*#__PURE__*/je.forwardRef(function(e,t){var r=e.unmountOnExit,n=e.in,o=e.reverse,a=void 0===o||o,i=e.className,s=e.offsetX,l=void 0===s?0:s,c=e.offsetY,u=void 0===c?8:c,d=e.transition,p=e.transitionEnd,f=e.delay,m=_p(e,Qp),h=n||r?"enter":"exit",v={offsetX:l,offsetY:u,reverse:a,transition:d,transitionEnd:p,delay:f};/*#__PURE__*/
|
11
|
+
return je.createElement(xp,{custom:v},(!r||n&&r)&&/*#__PURE__*/je.createElement(hp.div,Op({ref:t,className:S("chakra-offset-slide",i),custom:v},tf,{animate:h},m)))});function nf(){return nf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nf.apply(this,arguments)}function of(e){return e.sort(function(e,t){var r=e.compareDocumentPosition(t);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}function af(e,t,r){var n=e+1;return r&&n>=t&&(n=0),n}function sf(e,t,r){var n=e-1;return r&&n<0&&(n=t),n}d&&(rf.displayName="SlideFade");var lf="undefined"!=typeof window?je.useLayoutEffect:je.useEffect,cf=function(){var e=this;this.descendants=new Map,this.register=function(t){var r;if(null!=t)return"object"==typeof(r=t)&&"nodeType"in r&&r.nodeType===Node.ELEMENT_NODE?e.registerNode(t):function(r){e.registerNode(r,t)}},this.unregister=function(t){e.descendants.delete(t);var r=of(Array.from(e.descendants.keys()));e.assignIndex(r)},this.destroy=function(){e.descendants.clear()},this.assignIndex=function(t){e.descendants.forEach(function(e){var r=t.indexOf(e.node);e.index=r,e.node.dataset.index=e.index.toString()})},this.count=function(){return e.descendants.size},this.enabledCount=function(){return e.enabledValues().length},this.values=function(){return Array.from(e.descendants.values()).sort(function(e,t){return e.index-t.index})},this.enabledValues=function(){return e.values().filter(function(e){return!e.disabled})},this.item=function(t){if(0!==e.count())return e.values()[t]},this.enabledItem=function(t){if(0!==e.enabledCount())return e.enabledValues()[t]},this.first=function(){return e.item(0)},this.firstEnabled=function(){return e.enabledItem(0)},this.last=function(){return e.item(e.descendants.size-1)},this.lastEnabled=function(){var t=e.enabledValues().length-1;return e.enabledItem(t)},this.indexOf=function(t){var r,n;return t&&null!=(r=null==(n=e.descendants.get(t))?void 0:n.index)?r:-1},this.enabledIndexOf=function(t){return null==t?-1:e.enabledValues().findIndex(function(e){return e.node.isSameNode(t)})},this.next=function(t,r){void 0===r&&(r=!0);var n=af(t,e.count(),r);return e.item(n)},this.nextEnabled=function(t,r){void 0===r&&(r=!0);var n=e.item(t);if(n){var o=af(e.enabledIndexOf(n.node),e.enabledCount(),r);return e.enabledItem(o)}},this.prev=function(t,r){void 0===r&&(r=!0);var n=sf(t,e.count()-1,r);return e.item(n)},this.prevEnabled=function(t,r){void 0===r&&(r=!0);var n=e.item(t);if(n){var o=sf(e.enabledIndexOf(n.node),e.enabledCount()-1,r);return e.enabledItem(o)}},this.registerNode=function(t,r){if(t&&!e.descendants.has(t)){var n=of(Array.from(e.descendants.keys()).concat(t));null!=r&&r.disabled&&(r.disabled=!!r.disabled);var o=nf({node:t,index:-1},r);e.descendants.set(t,o),e.assignIndex(n)}}},uf=Jr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),df=uf[0],pf=uf[1];function ff(){return[df,function(){return pf()},function(){return e=je.useRef(new cf),lf(function(){return function(){return e.current.destroy()}}),e.current;var e},function(e){return function(e){var t=pf(),r=je.useState(-1),n=r[0],o=r[1],a=je.useRef(null);lf(function(){return function(){a.current&&t.unregister(a.current)}},[]),lf(function(){if(a.current){var e=Number(a.current.dataset.index);n==e||Number.isNaN(e)||o(e)}});var i=e?t.register(e):t.register;return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(a.current),register:Kr(i,a)}}(e)}]}var mf={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},hf=ha("span",{baseStyle:mf});d&&(hf.displayName="VisuallyHidden");var vf=ha("input",{baseStyle:mf});function gf(){return gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gf.apply(this,arguments)}d&&(vf.displayName="VisuallyHiddenInput");var yf=["label","thickness","speed","emptyColor","className"],bf=$r({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),xf=/*#__PURE__*/ca(function(e,t){var r=pa("Spinner",e),n=ta(e),o=n.label,a=void 0===o?"Loading...":o,i=n.thickness,s=void 0===i?"2px":i,l=n.speed,c=void 0===l?"0.45s":l,u=n.emptyColor,d=void 0===u?"transparent":u,p=n.className,f=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(n,yf),m=S("chakra-spinner",p),h=gf({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:s,borderBottomColor:d,borderLeftColor:d,animation:bf+" "+c+" linear infinite"},r);/*#__PURE__*/
|
12
|
+
return je.createElement(ha.div,gf({ref:t,__css:h,className:m},f),a&&/*#__PURE__*/je.createElement(hf,null,a))});function kf(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}function Ef(){return Ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ef.apply(this,arguments)}d&&(xf.displayName="Spinner");var wf=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],Sf=Jr({strict:!1,name:"ButtonGroupContext"}),Cf=Sf[0],_f=Sf[1];d&&(/*#__PURE__*/ca(function(e,t){var r=e.size,n=e.colorScheme,o=e.variant,a=e.className,i=e.spacing,s=void 0===i?"0.5rem":i,l=e.isAttached,c=e.isDisabled,u=kf(e,wf),d=S("chakra-button__group",a),p=je.useMemo(function(){return{size:r,colorScheme:n,variant:o,isDisabled:c}},[r,n,o,c]),f={display:"inline-flex"};return f=Ef({},f,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(Cf,{value:p},/*#__PURE__*/je.createElement(ha.div,Ef({ref:t,role:"group",__css:f,className:d,"data-attached":l?"":void 0},u)))}).displayName="ButtonGroup");var Of=["label","placement","spacing","children","className","__css"],Rf=function(e){var t=e.label,r=e.placement,n=e.spacing,o=void 0===n?"0.5rem":n,a=e.children,i=void 0===a?/*#__PURE__*/je.createElement(xf,{color:"currentColor",width:"1em",height:"1em"}):a,s=e.className,l=e.__css,c=kf(e,Of),u=S("chakra-button__spinner",s),d="start"===r?"marginEnd":"marginStart",p=je.useMemo(function(){var e;return Ef(((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(ha.div,Ef({className:u},c,{__css:p}),i)};d&&(Rf.displayName="ButtonSpinner");var Tf=["children","className"],If=function(e){var t=e.children,r=e.className,n=kf(e,Tf),o=/*#__PURE__*/je.isValidElement(t)?/*#__PURE__*/je.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=S("chakra-button__icon",r);/*#__PURE__*/
|
14
|
+
return je.createElement(ha.span,Ef({display:"inline-flex",alignSelf:"center",flexShrink:0},n,{className:a}),o)};d&&(If.displayName="ButtonIcon");var Nf=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],Af=/*#__PURE__*/ca(function(e,t){var r,n,o,a,i=_f(),s=pa("Button",Ef({},i,e)),l=ta(e),c=l.isDisabled,u=void 0===c?null==i?void 0:i.isDisabled:c,d=l.isLoading,p=l.isActive,m=l.children,h=l.leftIcon,v=l.rightIcon,g=l.loadingText,y=l.iconSpacing,b=void 0===y?"0.5rem":y,x=l.type,k=l.spinner,E=l.spinnerPlacement,w=void 0===E?"start":E,C=l.className,O=l.as,R=kf(l,Nf),T=je.useMemo(function(){var e,t=f({},null!=(e=null==s?void 0:s._focus)?e:{},{zIndex:1});return Ef({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]),I=(n=(r=je.useState(!O))[0],o=r[1],a=je.useCallback(function(e){e&&o("BUTTON"===e.tagName)},[]),{ref:a,type:n?"button":void 0}),N=I.type,A={rightIcon:v,leftIcon:h,iconSpacing:b,children:m};/*#__PURE__*/
|
15
|
+
return je.createElement(ha.button,Ef({disabled:u||d,ref:pn(t,I.ref),as:O,type:null!=x?x:N,"data-active":_(p),"data-loading":_(d),__css:T,className:S("chakra-button",C)},R),d&&"start"===w&&/*#__PURE__*/je.createElement(Rf,{className:"chakra-button__spinner--start",label:g,placement:"start",spacing:b},k),d?g||/*#__PURE__*/je.createElement(ha.span,{opacity:0},/*#__PURE__*/je.createElement(Pf,A)):/*#__PURE__*/je.createElement(Pf,A),d&&"end"===w&&/*#__PURE__*/je.createElement(Rf,{className:"chakra-button__spinner--end",label:g,placement:"end",spacing:b},k))});function Pf(e){var t=e.leftIcon,r=e.rightIcon,n=e.children,o=e.iconSpacing;/*#__PURE__*/
|
16
|
+
return je.createElement(je.Fragment,null,t&&/*#__PURE__*/je.createElement(If,{marginEnd:o},t),n,r&&/*#__PURE__*/je.createElement(If,{marginStart:o},r))}d&&(Af.displayName="Button");var Lf=["icon","children","isRound","aria-label"];function Mf(){return Mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mf.apply(this,arguments)}function jf(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}d&&(/*#__PURE__*/ca(function(e,t){var r=e.icon,n=e.children,o=e.isRound,a=e["aria-label"],i=kf(e,Lf),s=r||n,l=/*#__PURE__*/je.isValidElement(s)?/*#__PURE__*/je.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;/*#__PURE__*/
|
17
|
+
return je.createElement(Af,Ef({padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a},i),l)}).displayName="IconButton");var Bf=["id","isRequired","isInvalid","isDisabled","isReadOnly"],Df=["getRootProps","htmlProps"],Vf=ea("FormControl"),Ff=Vf[0],zf=Vf[1],Wf=zf,$f=Jr({strict:!1,name:"FormControlContext"}),Uf=$f[0],Hf=$f[1],qf=/*#__PURE__*/ca(function(e,t){var r=fa("Form",e),n=function(e){var t=e.id,r=e.isRequired,n=e.isInvalid,o=e.isDisabled,a=e.isReadOnly,i=jf(e,Bf),s=ln(),l=t||"field-"+s,c=l+"-label",u=l+"-feedback",d=l+"-helptext",p=je.useState(!1),f=p[0],m=p[1],h=je.useState(!1),v=h[0],g=h[1],y=nn(),b=y[0],x=y[1],k=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Mf({id:d},e,{ref:Kr(t,function(e){e&&g(!0)})})},[d]),E=je.useCallback(function(e,t){var r,i;return void 0===e&&(e={}),void 0===t&&(t=null),Mf({},e,{ref:t,"data-focus":_(b),"data-disabled":_(o),"data-invalid":_(n),"data-readonly":_(a),id:null!=(r=e.id)?r:c,htmlFor:null!=(i=e.htmlFor)?i:l})},[l,o,b,n,a,c]),w=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Mf({id:u},e,{ref:Kr(t,function(e){e&&m(!0)}),"aria-live":"polite"})},[u]),S=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Mf({},e,i,{ref:t,role:"group"})},[i]),C=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Mf({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})},[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!a,isDisabled:!!o,isFocused:!!b,onFocus:x.on,onBlur:x.off,hasFeedbackText:f,setHasFeedbackText:m,hasHelpText:v,setHasHelpText:g,id:l,labelId:c,feedbackId:u,helpTextId:d,htmlProps:i,getHelpTextProps:k,getErrorMessageProps:w,getRootProps:S,getLabelProps:E,getRequiredIndicatorProps:C}}(ta(e)),o=n.getRootProps,a=jf(n,Df),i=S("chakra-form-control",e.className);/*#__PURE__*/
|
18
|
+
return je.createElement(Uf,{value:a},/*#__PURE__*/je.createElement(Ff,{value:r},/*#__PURE__*/je.createElement(ha.div,Mf({},o({},t),{className:i,__css:r.container}))))});d&&(qf.displayName="FormControl");var Yf=/*#__PURE__*/ca(function(e,t){var r=Hf(),n=zf(),o=S("chakra-form__helper-text",e.className);/*#__PURE__*/
|
19
|
+
return je.createElement(ha.div,Mf({},null==r?void 0:r.getHelpTextProps(e,t),{__css:n.helperText,className:o}))});d&&(Yf.displayName="FormHelperText");var Gf=["isDisabled","isInvalid","isReadOnly","isRequired"],Zf=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function Xf(e){var t=Kf(e),r=t.isDisabled,n=t.isInvalid,o=t.isReadOnly,a=t.isRequired;return Mf({},jf(t,Gf),{disabled:r,readOnly:o,required:a,"aria-invalid":O(n),"aria-required":O(a),"aria-readonly":O(o)})}function Kf(e){var t,r,n,o=Hf(),i=e.id,s=e.disabled,l=e.readOnly,c=e.required,u=e.isRequired,d=e.isInvalid,p=e.isReadOnly,f=e.isDisabled,m=e.onFocus,h=e.onBlur,v=jf(e,Zf),g=e["aria-describedby"]?[e["aria-describedby"]]:[];return null!=o&&o.hasFeedbackText&&null!=o&&o.isInvalid&&g.push(o.feedbackId),null!=o&&o.hasHelpText&&g.push(o.helpTextId),Mf({},v,{"aria-describedby":g.join(" ")||void 0,id:null!=i?i:null==o?void 0:o.id,isDisabled:null!=(t=null!=s?s:f)?t:null==o?void 0:o.isDisabled,isReadOnly:null!=(r=null!=l?l:p)?r:null==o?void 0:o.isReadOnly,isRequired:null!=(n=null!=c?c:u)?n: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,h)})}var Jf=ea("FormError"),Qf=Jf[0],em=Jf[1],tm=/*#__PURE__*/ca(function(e,t){var r=fa("FormError",e),n=ta(e),o=Hf();return null!=o&&o.isInvalid?/*#__PURE__*/je.createElement(Qf,{value:r},/*#__PURE__*/je.createElement(ha.div,Mf({},null==o?void 0:o.getErrorMessageProps(n,t),{className:S("chakra-form__error-message",e.className),__css:Mf({display:"flex",alignItems:"center"},r.text)}))):null});d&&(tm.displayName="FormErrorMessage"),d&&(/*#__PURE__*/ca(function(e,t){var r=em(),n=Hf();if(null==n||!n.isInvalid)return null;var o=S("chakra-form__error-icon",e.className);/*#__PURE__*/
|
20
|
+
return je.createElement(Cp,Mf({ref:t,"aria-hidden":!0},e,{__css:r.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 rm=["className","children","requiredIndicator","optionalIndicator"],nm=/*#__PURE__*/ca(function(e,t){var r,n=pa("FormLabel",e),o=ta(e),a=o.children,i=o.requiredIndicator,s=void 0===i?/*#__PURE__*/je.createElement(om,null):i,l=o.optionalIndicator,c=void 0===l?null:l,u=jf(o,rm),d=Hf(),p=null!=(r=null==d?void 0:d.getLabelProps(u,t))?r:Mf({ref:t},u);/*#__PURE__*/
|
21
|
+
return je.createElement(ha.label,Mf({},p,{className:S("chakra-form__label",o.className),__css:Mf({display:"block",textAlign:"start"},n)}),a,null!=d&&d.isRequired?s:c)});d&&(nm.displayName="FormLabel");var om=/*#__PURE__*/ca(function(e,t){var r=Hf(),n=Wf();if(null==r||!r.isRequired)return null;var o=S("chakra-form__required-indicator",e.className);/*#__PURE__*/
|
22
|
+
return je.createElement(ha.span,Mf({},null==r?void 0:r.getRequiredIndicatorProps(e,t),{__css:n.requiredIndicator,className:o}))});d&&(om.displayName="RequiredIndicator");var am=!1,im=null,sm=!1,lm=/* @__PURE__ */new Set,cm="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function um(e,t){lm.forEach(r=>r(e,t))}function dm(e){sm=!0,function(e){return!(e.metaKey||!cm&&e.altKey||e.ctrlKey)}(e)&&(im="keyboard",um("keyboard",e))}function pm(e){im="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(sm=!0,um("pointer",e))}function fm(e){e.target!==window&&e.target!==document&&(sm||(im="keyboard",um("keyboard",e)),sm=!1)}function mm(){sm=!1}function hm(){return"pointer"!==im}function vm(e){!function(){if("undefined"==typeof window||am)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){sm=!0,e.apply(this,t)},document.addEventListener("keydown",dm,!0),document.addEventListener("keyup",dm,!0),window.addEventListener("focus",fm,!0),window.addEventListener("blur",mm,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",pm,!0),document.addEventListener("pointermove",pm,!0),document.addEventListener("pointerup",pm,!0)):(document.addEventListener("mousedown",pm,!0),document.addEventListener("mousemove",pm,!0),document.addEventListener("mouseup",pm,!0)),am=!0}(),e(hm());const t=()=>e(hm());return lm.add(t),()=>{lm.delete(t)}}function gm(){return gm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gm.apply(this,arguments)}var ym=Jr({name:"CheckboxGroupContext",strict:!1})[1];function bm(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}var xm=["isIndeterminate","isChecked"],km=function(e){var t=hp;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(ha.svg),Em=function(e){/*#__PURE__*/
|
23
|
+
return je.createElement(km,gm({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"}))},wm=function(e){/*#__PURE__*/
|
24
|
+
return je.createElement(km,gm({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"}))},Sm=function(e){/*#__PURE__*/
|
25
|
+
return je.createElement(xp,{initial:!1},e.open&&/*#__PURE__*/je.createElement(hp.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))},Cm=function(e){var t=e.isIndeterminate,r=e.isChecked,n=bm(e,xm);/*#__PURE__*/
|
26
|
+
return je.createElement(Sm,{open:r||t},/*#__PURE__*/je.createElement(t?wm:Em,n))},_m=["defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"];function Om(e){void 0===e&&(e={});var t=Kf(e),r=t.isDisabled,n=t.isReadOnly,o=t.isRequired,s=t.isInvalid,l=t.id,c=t.onBlur,u=t.onFocus,d=t["aria-describedby"],p=e.defaultChecked,f=e.isChecked,m=e.isFocusable,h=e.onChange,v=e.isIndeterminate,g=e.name,y=e.value,b=e.tabIndex,x=void 0===b?void 0:b,E=e["aria-label"],w=e["aria-labelledby"],S=e["aria-invalid"],C=bm(e,_m),O=k(C,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),R=tn(h),T=tn(c),I=tn(u),N=je.useState(!1),A=N[0],P=N[1],L=nn(),M=L[0],j=L[1],B=nn(),D=B[0],V=B[1],F=nn(),z=F[0],W=F[1];je.useEffect(function(){return vm(P)},[]);var $=je.useRef(null),U=je.useState(!0),H=U[0],q=U[1],Y=je.useState(!!p),G=Y[1],Z=on(f,Y[0]),X=Z[0],K=Z[1],J=je.useCallback(function(e){n||r?e.preventDefault():(X||G(K?e.target.checked:!!v||e.target.checked),null==R||R(e))},[n,r,K,X,v,R]);en(function(){$.current&&($.current.indeterminate=Boolean(v))},[v]),cn(function(){r&&j.off()},[r,j]),en(function(){var e=$.current;null!=e&&e.form&&(e.form.onreset=function(){G(!!p)})},[]);var Q=r&&!m,ee=je.useCallback(function(e){" "===e.key&&W.on()},[W]),te=je.useCallback(function(e){" "===e.key&&W.off()},[W]);en(function(){$.current&&$.current.checked!==K&&G($.current.checked)},[$.current]);var re=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),gm({},e,{ref:t,"data-active":_(z),"data-hover":_(D),"data-checked":_(K),"data-focus":_(M),"data-focus-visible":_(M&&A),"data-indeterminate":_(v),"data-disabled":_(r),"data-invalid":_(s),"data-readonly":_(n),"aria-hidden":!0,onMouseDown:a(e.onMouseDown,function(e){e.preventDefault(),W.on()}),onMouseUp:a(e.onMouseUp,W.off),onMouseEnter:a(e.onMouseEnter,V.on),onMouseLeave:a(e.onMouseLeave,V.off)})},[z,K,r,M,A,D,v,s,n,W,V.off,V.on]),ne=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),gm({},O,e,{ref:Kr(t,function(e){e&&q("LABEL"===e.tagName)}),onClick:a(e.onClick,function(){var e;H||(null==(e=$.current)||e.click(),i($.current,{nextTick:!0}))}),"data-disabled":_(r),"data-checked":_(K),"data-invalid":_(s)})},[O,r,K,s,H]),oe=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),gm({},e,{ref:Kr($,t),type:"checkbox",name:g,value:y,id:l,tabIndex:x,onChange:a(e.onChange,J),onBlur:a(e.onBlur,T,j.off),onFocus:a(e.onFocus,I,j.on),onKeyDown:a(e.onKeyDown,ee),onKeyUp:a(e.onKeyUp,te),required:o,checked:K,disabled:Q,readOnly:n,"aria-label":E,"aria-labelledby":w,"aria-invalid":S?Boolean(S):s,"aria-describedby":d,"aria-disabled":r,style:mf})},[g,y,l,J,j.off,j.on,T,I,ee,te,o,K,Q,n,E,w,S,s,d,r,x]),ae=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),gm({},e,{ref:t,onMouseDown:a(e.onMouseDown,Rm),onTouchStart:a(e.onTouchStart,Rm),"data-disabled":_(r),"data-checked":_(K),"data-invalid":_(s)})},[K,r,s]);return{state:{isInvalid:s,isFocused:M,isChecked:K,isActive:z,isHovered:D,isIndeterminate:v,isDisabled:r,isReadOnly:n,isRequired:o},getRootProps:ne,getCheckboxProps:re,getInputProps:oe,getLabelProps:ae,htmlProps:O}}function Rm(e){e.preventDefault(),e.stopPropagation()}var Tm=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],Im=ha("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),Nm=ha("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),Am=/*#__PURE__*/ca(function(e,t){var r=ym(),n=fa("Checkbox",gm({},r,e)),o=ta(e),a=o.spacing,i=void 0===a?"0.5rem":a,s=o.className,l=o.children,c=o.iconColor,u=o.iconSize,d=o.icon,p=void 0===d?/*#__PURE__*/je.createElement(Cm,null):d,f=o.isChecked,m=o.isDisabled,h=void 0===m?null==r?void 0:r.isDisabled:m,v=o.onChange,g=o.inputProps,y=bm(o,Tm),b=f;null!=r&&r.value&&o.value&&(b=r.value.includes(o.value));var x=v;null!=r&&r.onChange&&o.value&&(x=R(r.onChange,v));var k=Om(gm({},y,{isDisabled:h,isChecked:b,onChange:x})),E=k.state,w=k.getInputProps,C=k.getCheckboxProps,_=k.getLabelProps,O=k.getRootProps,T=je.useMemo(function(){return gm({opacity:E.isChecked||E.isIndeterminate?1:0,transform:E.isChecked||E.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:u,color:c},n.icon)},[c,u,E.isChecked,E.isIndeterminate,n.icon]),I=/*#__PURE__*/je.cloneElement(p,{__css:T,isIndeterminate:E.isIndeterminate,isChecked:E.isChecked});/*#__PURE__*/
|
27
|
+
return je.createElement(Nm,gm({__css:n.container,className:S("chakra-checkbox",s)},O()),/*#__PURE__*/je.createElement("input",gm({className:"chakra-checkbox__input"},w(g,t))),/*#__PURE__*/je.createElement(Im,gm({__css:n.control,className:"chakra-checkbox__control"},C()),I),l&&/*#__PURE__*/je.createElement(ha.span,gm({className:"chakra-checkbox__label"},_(),{__css:gm({marginStart:i},n.label)}),l))});function Pm(e){void 0===e&&(e={});var t=e.precision,r=e.defaultValue,n=e.value,o=e.step,a=void 0===o?1:o,i=e.min,s=void 0===i?A:i,l=e.max,c=void 0===l?P:l,u=e.keepWithinRange,d=void 0===u||u,p=tn(e.onChange),f=je.useState(function(){var e;return null==r?"":null!=(e=jm(r,a,t))?e:""}),m=f[1],h=on(n,f[0]),v=h[0],g=h[1],y=Mm(Lm(g),a),b=null!=t?t:y,x=je.useCallback(function(e){e!==g&&(v||m(e.toString()),null==p||p(e.toString(),Lm(e)))},[p,v,g]),k=je.useCallback(function(e){var t=e;return d&&(t=I(t,s,c)),N(t,b)},[b,d,c,s]),E=je.useCallback(function(e){var t;void 0===e&&(e=a),t=""===g?Lm(e):Lm(g)+e,t=k(t),x(t)},[k,a,x,g]),w=je.useCallback(function(e){var t;void 0===e&&(e=a),t=""===g?Lm(-e):Lm(g)-e,t=k(t),x(t)},[k,a,x,g]),S=je.useCallback(function(){var e,n;e=null==r?"":null!=(n=jm(r,a,t))?n:s,x(e)},[r,t,a,x,s]),C=je.useCallback(function(e){var t,r=null!=(t=jm(e,a,b))?t:s;x(r)},[b,a,x,s]),_=Lm(g);return{isOutOfRange:_>c||_<s,isAtMax:_===c,isAtMin:_===s,precision:b,value:g,valueAsNumber:_,update:x,reset:S,increment:E,decrement:w,clamp:k,cast:C,setValue:m}}function Lm(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function Mm(e,t){return Math.max(T(t),T(e))}function jm(e,t,r){var n=Lm(e);if(!Number.isNaN(n)){var o=Mm(n,t);return N(n,null!=r?r:o)}}function Bm(){return Bm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bm.apply(this,arguments)}function Dm(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}d&&(Am.displayName="Checkbox");var Vm=["htmlSize"],Fm=/*#__PURE__*/ca(function(e,t){var r=e.htmlSize,n=Dm(e,Vm),o=fa("Input",n),a=Xf(ta(n)),i=S("chakra-input",e.className);/*#__PURE__*/
|
28
|
+
return je.createElement(ha.input,Bm({size:r},a,{__css:o.field,ref:t,className:i}))});d&&(Fm.displayName="Input"),Fm.id="Input";var zm=["children","className"],Wm=ea("InputGroup"),$m=Wm[0],Um=Wm[1],Hm=/*#__PURE__*/ca(function(e,t){var r=fa("Input",e),n=ta(e),o=n.children,a=n.className,i=Dm(n,zm),s=S("chakra-input__group",a),l={},c=Qr(o),u=r.field;c.forEach(function(e){var t,n;r&&(u&&"InputLeftElement"===e.type.id&&(l.paddingStart=null!=(t=u.height)?t:u.h),u&&"InputRightElement"===e.type.id&&(l.paddingEnd=null!=(n=u.height)?n:u.h),"InputRightAddon"===e.type.id&&(l.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(l.borderStartRadius=0))});var d=c.map(function(t){var r,n,o=w({size:(null==(r=t.props)?void 0:r.size)||e.size,variant:(null==(n=t.props)?void 0:n.variant)||e.variant});/*#__PURE__*/
|
29
|
+
return je.cloneElement(t,"Input"!==t.type.id?o:Object.assign(o,l,t.props))});/*#__PURE__*/
|
30
|
+
return je.createElement(ha.div,Bm({className:s,ref:t,__css:{width:"100%",display:"flex",position:"relative"}},i),/*#__PURE__*/je.createElement($m,{value:r},d))});d&&(Hm.displayName="InputGroup");var qm=["placement"],Ym={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},Gm=ha("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),Zm=/*#__PURE__*/ca(function(e,t){var r,n=e.placement,o=void 0===n?"left":n,a=Dm(e,qm),i=null!=(r=Ym[o])?r:{},s=Um();/*#__PURE__*/
|
31
|
+
return je.createElement(Gm,Bm({ref:t},a,{__css:Bm({},s.addon,i)}))});d&&(Zm.displayName="InputAddon");var Xm=/*#__PURE__*/ca(function(e,t){/*#__PURE__*/
|
32
|
+
return je.createElement(Zm,Bm({ref:t,placement:"left"},e,{className:S("chakra-input__left-addon",e.className)}))});d&&(Xm.displayName="InputLeftAddon"),Xm.id="InputLeftAddon";var Km=/*#__PURE__*/ca(function(e,t){/*#__PURE__*/
|
33
|
+
return je.createElement(Zm,Bm({ref:t,placement:"right"},e,{className:S("chakra-input__right-addon",e.className)}))});d&&(Km.displayName="InputRightAddon"),Km.id="InputRightAddon";var Jm=["placement"],Qm=["className"],eh=["className"],th=ha("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),rh=/*#__PURE__*/ca(function(e,t){var r,n,o,a=e.placement,i=void 0===a?"left":a,s=Dm(e,Jm),l=Um(),c=l.field,u=Bm(((o={})["left"===i?"insetStart":"insetEnd"]="0",o.width=null!=(r=null==c?void 0:c.height)?r:null==c?void 0:c.h,o.height=null!=(n=null==c?void 0:c.height)?n:null==c?void 0:c.h,o.fontSize=null==c?void 0:c.fontSize,o),l.element);/*#__PURE__*/
|
34
|
+
return je.createElement(th,Bm({ref:t,__css:u},s))});rh.id="InputElement",d&&(rh.displayName="InputElement");var nh=/*#__PURE__*/ca(function(e,t){var r=e.className,n=Dm(e,Qm),o=S("chakra-input__left-element",r);/*#__PURE__*/
|
35
|
+
return je.createElement(rh,Bm({ref:t,placement:"left",className:o},n))});nh.id="InputLeftElement",d&&(nh.displayName="InputLeftElement");var oh=/*#__PURE__*/ca(function(e,t){var r=e.className,n=Dm(e,eh),o=S("chakra-input__right-element",r);/*#__PURE__*/
|
36
|
+
return je.createElement(rh,Bm({ref:t,placement:"right",className:o},n))});function ah(){return ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ah.apply(this,arguments)}function ih(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}oh.id="InputRightElement",d&&(oh.displayName="InputRightElement");var sh=["ratio","children","className"],lh=/*#__PURE__*/ca(function(e,t){var r=e.ratio,n=void 0===r?4/3:r,o=e.children,a=e.className,i=ih(e,sh),s=je.Children.only(o),l=S("chakra-aspect-ratio",a);/*#__PURE__*/
|
37
|
+
return je.createElement(ha.div,ah({ref:t,position:"relative",className:l,_before:{height:0,content:'""',display:"block",paddingBottom:L(n,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&&(lh.displayName="AspectRatio");var ch=["className"];d&&(/*#__PURE__*/ca(function(e,t){var r=pa("Badge",e),n=ih(ta(e),ch);/*#__PURE__*/
|
38
|
+
return je.createElement(ha.span,ah({ref:t,className:S("chakra-badge",e.className)},n,{__css:ah({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},r)}))}).displayName="Badge");var uh=["size","centerContent"],dh=["size"],ph=ha("div");d&&(ph.displayName="Box");var fh=/*#__PURE__*/ca(function(e,t){var r=e.size,n=e.centerContent,o=void 0===n||n,a=ih(e,uh);/*#__PURE__*/
|
39
|
+
return je.createElement(ph,ah({ref:t,boxSize:r,__css:ah({},o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},{flexShrink:0,flexGrow:0})},a))});d&&(fh.displayName="Square"),d&&(/*#__PURE__*/ca(function(e,t){var r=e.size,n=ih(e,dh);/*#__PURE__*/
|
40
|
+
return je.createElement(fh,ah({size:r,ref:t,borderRadius:"9999px"},n))}).displayName="Circle");var mh=ha("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});d&&(mh.displayName="Center");var hh=["className"];d&&(/*#__PURE__*/ca(function(e,t){var r=pa("Code",e),n=ih(ta(e),hh);/*#__PURE__*/
|
41
|
+
return je.createElement(ha.code,ah({ref:t,className:S("chakra-code",e.className)},n,{__css:ah({display:"inline-block"},r)}))}).displayName="Code");var vh=["className","centerContent"];d&&(/*#__PURE__*/ca(function(e,t){var r=ta(e),n=r.className,o=r.centerContent,a=ih(r,vh),i=pa("Container",e);/*#__PURE__*/
|
42
|
+
return je.createElement(ha.div,ah({ref:t,className:S("chakra-container",n)},a,{__css:ah({},i,o&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}).displayName="Container");var gh=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],yh=["className","orientation","__css"];d&&(/*#__PURE__*/ca(function(e,t){var r=pa("Divider",e),n=r.borderLeftWidth,o=r.borderBottomWidth,a=r.borderTopWidth,i=r.borderRightWidth,s=r.borderWidth,l=r.borderStyle,c=r.borderColor,u=ih(r,gh),d=ta(e),p=d.className,f=d.orientation,m=void 0===f?"horizontal":f,h=d.__css,v=ih(d,yh);/*#__PURE__*/
|
43
|
+
return je.createElement(ha.hr,ah({ref:t,"aria-orientation":m},v,{__css:ah({},u,{border:"0",borderColor:c,borderStyle:l},{vertical:{borderLeftWidth:n||i||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||a||s||"1px",width:"100%"}}[m],h),className:S("chakra-divider",p)}))}).displayName="Divider");var bh=["direction","align","justify","wrap","basis","grow","shrink"],xh=/*#__PURE__*/ca(function(e,t){var r=e.direction,n=e.align,o=e.justify,a=e.wrap,i=e.basis,s=e.grow,l=e.shrink,c=ih(e,bh);/*#__PURE__*/
|
44
|
+
return je.createElement(ha.div,ah({ref:t,__css:{display:"flex",flexDirection:r,alignItems:n,justifyContent:o,flexWrap:a,flexBasis:i,flexGrow:s,flexShrink:l}},c))});d&&(xh.displayName="Flex");var kh=["templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],Eh=/*#__PURE__*/ca(function(e,t){var r=e.templateAreas,n=e.gap,o=e.rowGap,a=e.columnGap,i=e.column,s=e.row,l=e.autoFlow,c=e.autoRows,u=e.templateRows,d=e.autoColumns,p=e.templateColumns,f=ih(e,kh);/*#__PURE__*/
|
45
|
+
return je.createElement(ha.div,ah({ref:t,__css:{display:"grid",gridTemplateAreas:r,gridGap:n,gridRowGap:o,gridColumnGap:a,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:u,gridTemplateColumns:p}},f))});d&&(Eh.displayName="Grid");var wh=["className"];d&&(/*#__PURE__*/ca(function(e,t){var r=pa("Heading",e),n=ih(ta(e),wh);/*#__PURE__*/
|
46
|
+
return je.createElement(ha.h2,ah({ref:t,className:S("chakra-heading",e.className)},n,{__css:r}))}).displayName="Heading");var Sh=["className"];d&&(/*#__PURE__*/ca(function(e,t){var r=pa("Kbd",e),n=ta(e),o=n.className,a=ih(n,Sh);/*#__PURE__*/
|
47
|
+
return je.createElement(ha.kbd,ah({ref:t,className:S("chakra-kbd",o)},a,{__css:ah({fontFamily:"mono"},r)}))}).displayName="Kbd");var Ch=["className","isExternal"];d&&(/*#__PURE__*/ca(function(e,t){var r=pa("Link",e),n=ta(e),o=n.className,a=n.isExternal,i=ih(n,Ch);/*#__PURE__*/
|
48
|
+
return je.createElement(ha.a,ah({target:a?"_blank":void 0,rel:a?"noopener":void 0,ref:t,className:S("chakra-link",o)},i,{__css:r}))}).displayName="Link");var _h=["children","styleType","stylePosition","spacing"],Oh=["as"],Rh=["as"],Th=ea("List"),Ih=Th[0],Nh=Th[1],Ah=/*#__PURE__*/ca(function(e,t){var r,n=fa("List",e),o=ta(e),a=o.children,i=o.styleType,s=void 0===i?"none":i,l=o.stylePosition,c=o.spacing,u=ih(o,_h),d=Qr(a),p=c?((r={})["& > *:not(style) ~ *:not(style)"]={mt:c},r):{};/*#__PURE__*/
|
49
|
+
return je.createElement(Ih,{value:n},/*#__PURE__*/je.createElement(ha.ul,ah({ref:t,listStyleType:s,listStylePosition:l,role:"list",__css:ah({},n.container,p)},u),d))});d&&(Ah.displayName="List"),d&&(/*#__PURE__*/ca(function(e,t){var r=ih(e,Oh);/*#__PURE__*/
|
50
|
+
return je.createElement(Ah,ah({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},r))}).displayName="OrderedList"),d&&(/*#__PURE__*/ca(function(e,t){var r=ih(e,Rh);/*#__PURE__*/
|
51
|
+
return je.createElement(Ah,ah({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},r))}).displayName="UnorderedList"),d&&(/*#__PURE__*/ca(function(e,t){var r=Nh();/*#__PURE__*/
|
52
|
+
return je.createElement(ha.li,ah({ref:t},e,{__css:r.item}))}).displayName="ListItem"),d&&(/*#__PURE__*/ca(function(e,t){var r=Nh();/*#__PURE__*/
|
53
|
+
return je.createElement(Sp,ah({ref:t,role:"presentation"},e,{__css:r.icon}))}).displayName="ListIcon");var Ph=["columns","spacingX","spacingY","spacing","minChildWidth"],Lh=/*#__PURE__*/ca(function(e,t){var r=e.columns,n=e.spacingX,o=e.spacingY,a=e.spacing,i=e.minChildWidth,s=ih(e,Ph),l=i?L(i,function(e){return M(e)?null:"repeat(auto-fit, minmax("+function(e){return v(e)?e+"px":e}(e)+", 1fr))"}):L(r,function(e){return M(e)?null:"repeat("+e+", minmax(0, 1fr))"});/*#__PURE__*/
|
54
|
+
return je.createElement(Eh,ah({ref:t,gap:a,columnGap:n,rowGap:o,templateColumns:l},s))});d&&(Lh.displayName="SimpleGrid");var Mh=ha("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});d&&(Mh.displayName="Spacer");var jh="& > *:not(style) ~ *:not(style)",Bh=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],Dh=function(e){/*#__PURE__*/
|
55
|
+
return je.createElement(ha.div,ah({className:"chakra-stack__item"},e,{__css:ah({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},Vh=/*#__PURE__*/ca(function(e,t){var r,n=e.isInline,o=e.direction,a=e.align,i=e.justify,s=e.spacing,l=void 0===s?"0.5rem":s,c=e.wrap,u=e.children,d=e.divider,p=e.className,f=e.shouldWrapChildren,m=ih(e,Bh),h=n?"row":null!=o?o:"column",v=je.useMemo(function(){return function(e){var t,r=e.spacing,n=e.direction,o={column:{marginTop:r,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:r},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:r,marginStart:0},"row-reverse":{marginTop:0,marginEnd:r,marginBottom:0,marginStart:0}};return(t={flexDirection:n})[jh]=L(n,function(e){return o[e]}),t}({direction:h,spacing:l})},[h,l]),g=je.useMemo(function(){return function(e){var t=e.spacing,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":L(e.direction,function(e){return r[e]})}}({spacing:l,direction:h})},[l,h]),y=!!d,b=!f&&!y,x=Qr(u),k=b?x:x.map(function(e,t){var r=void 0!==e.key?e.key:t,n=t+1===x.length,o=f?/*#__PURE__*/je.createElement(Dh,{key:r},e):e;return y?/*#__PURE__*/je.createElement(je.Fragment,{key:r},o,n?null:/*#__PURE__*/je.cloneElement(d,{__css:g})):o}),E=S("chakra-stack",p);/*#__PURE__*/
|
56
|
+
return je.createElement(ha.div,ah({ref:t,display:"flex",alignItems:a,justifyContent:i,flexDirection:v.flexDirection,flexWrap:c,className:E,__css:y?{}:(r={},r[jh]=v[jh],r)},m),k)});d&&(Vh.displayName="Stack");var Fh=/*#__PURE__*/ca(function(e,t){/*#__PURE__*/
|
57
|
+
return je.createElement(Vh,ah({align:"center"},e,{direction:"row",ref:t}))});d&&(Fh.displayName="HStack"),d&&(/*#__PURE__*/ca(function(e,t){/*#__PURE__*/
|
58
|
+
return je.createElement(Vh,ah({align:"center"},e,{direction:"column",ref:t}))}).displayName="VStack");var zh=["className","align","decoration","casing"];d&&(/*#__PURE__*/ca(function(e,t){var r=pa("Text",e),n=ih(ta(e),zh),o=w({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});/*#__PURE__*/
|
59
|
+
return je.createElement(ha.p,ah({ref:t,className:S("chakra-text",e.className)},o,n,{__css:r}))}).displayName="Text");var Wh=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],$h=["className"];function Uh(e){return"number"==typeof e?e+"px":e}var Hh=/*#__PURE__*/ca(function(e,t){var r=e.spacing,n=void 0===r?"0.5rem":r,o=e.spacingX,a=e.spacingY,i=e.children,s=e.justify,l=e.direction,c=e.align,u=e.className,d=e.shouldWrapChildren,p=ih(e,Wh),f=je.useMemo(function(){var e={spacingX:o,spacingY:a},t=e.spacingX,r=void 0===t?n:t,i=e.spacingY,u=void 0===i?n:i;return{"--chakra-wrap-x-spacing":function(e){return L(r,function(t){return Uh(Ln("space",t)(e))})},"--chakra-wrap-y-spacing":function(e){return L(u,function(t){return Uh(Ln("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:c,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)"}}},[n,o,a,s,c,l]),m=d?je.Children.map(i,function(e,t){/*#__PURE__*/
|
60
|
+
return je.createElement(qh,{key:t},e)}):i;/*#__PURE__*/
|
61
|
+
return je.createElement(ha.div,ah({ref:t,className:S("chakra-wrap",u),overflow:"hidden"},p),/*#__PURE__*/je.createElement(ha.ul,{className:"chakra-wrap__list",__css:f},m))});d&&(Hh.displayName="Wrap");var qh=/*#__PURE__*/ca(function(e,t){var r=e.className,n=ih(e,$h);/*#__PURE__*/
|
62
|
+
return je.createElement(ha.li,ah({ref:t,__css:{display:"flex",alignItems:"flex-start"},className:S("chakra-wrap__listitem",r)},n))});function Yh(){return Yh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yh.apply(this,arguments)}d&&(qh.displayName="WrapItem");var Gh=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"];function Zh(e){var t=e.target,r=t.tagName;return"INPUT"!==r&&"TEXTAREA"!==r&&!0!==t.isContentEditable}var Xh="top",Kh="bottom",Jh="right",Qh="left",ev=[Xh,Kh,Jh,Qh],tv=/*#__PURE__*/ev.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),rv=/*#__PURE__*/[].concat(ev,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),nv=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ov(e){return e?(e.nodeName||"").toLowerCase():null}function av(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function iv(e){return e instanceof av(e).Element||e instanceof Element}function sv(e){return e instanceof av(e).HTMLElement||e instanceof HTMLElement}function lv(e){return"undefined"!=typeof ShadowRoot&&(e instanceof av(e).ShadowRoot||e instanceof ShadowRoot)}function cv(e){return e.split("-")[0]}var uv=Math.max,dv=Math.min,pv=Math.round;function fv(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect(),n=1,o=1;if(sv(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(n=pv(r.width)/i||1),a>0&&(o=pv(r.height)/a||1)}return{width:r.width/n,height:r.height/o,top:r.top/o,right:r.right/n,bottom:r.bottom/o,left:r.left/n,x:r.left/n,y:r.top/o}}function mv(e){var t=fv(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function hv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&lv(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function vv(e){return av(e).getComputedStyle(e)}function gv(e){return["table","td","th"].indexOf(ov(e))>=0}function yv(e){return((iv(e)?e.ownerDocument:e.document)||window.document).documentElement}function bv(e){return"html"===ov(e)?e:e.assignedSlot||e.parentNode||(lv(e)?e.host:null)||yv(e)}function xv(e){return sv(e)&&"fixed"!==vv(e).position?e.offsetParent:null}function kv(e){for(var t=av(e),r=xv(e);r&&gv(r)&&"static"===vv(r).position;)r=xv(r);return r&&("html"===ov(r)||"body"===ov(r)&&"static"===vv(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&sv(e)&&"fixed"===vv(e).position)return null;var r=bv(e);for(lv(r)&&(r=r.host);sv(r)&&["html","body"].indexOf(ov(r))<0;){var n=vv(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function Ev(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wv(e,t,r){return uv(e,dv(t,r))}function Sv(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Cv(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function _v(e){return e.split("-")[1]}var Ov={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Rv(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,h=void 0===m?0:m,v="function"==typeof u?u({x:f,y:h}):{x:f,y:h};f=v.x,h=v.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=Qh,x=Xh,k=window;if(c){var E=kv(r),w="clientHeight",S="clientWidth";E===av(r)&&"static"!==vv(E=yv(r)).position&&"absolute"===s&&(w="scrollHeight",S="scrollWidth"),(o===Xh||(o===Qh||o===Jh)&&"end"===a)&&(x=Kh,h-=(d&&E===k&&k.visualViewport?k.visualViewport.height:E[w])-n.height,h*=l?1:-1),o!==Qh&&(o!==Xh&&o!==Kh||"end"!==a)||(b=Jh,f-=(d&&E===k&&k.visualViewport?k.visualViewport.width:E[S])-n.width,f*=l?1:-1)}var C,_=Object.assign({position:s},c&&Ov),O=!0===u?function(e){var t=e.y,r=window.devicePixelRatio||1;return{x:pv(e.x*r)/r||0,y:pv(t*r)/r||0}}({x:f,y:h}):{x:f,y:h};return f=O.x,h=O.y,Object.assign({},_,l?((C={})[x]=y?"0":"",C[b]=g?"0":"",C.transform=(k.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",C):((t={})[x]=y?h+"px":"",t[b]=g?f+"px":"",t.transform="",t))}var Tv={passive:!0},Iv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=void 0===o||o,i=n.resize,s=void 0===i||i,l=av(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",r.update,Tv)}),s&&l.addEventListener("resize",r.update,Tv),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",r.update,Tv)}),s&&l.removeEventListener("resize",r.update,Tv)}},data:{}},Nv={left:"right",right:"left",bottom:"top",top:"bottom"};function Av(e){return e.replace(/left|right|bottom|top/g,function(e){return Nv[e]})}var Pv={start:"end",end:"start"};function Lv(e){return e.replace(/start|end/g,function(e){return Pv[e]})}function Mv(e){var t=av(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function jv(e){return fv(yv(e)).left+Mv(e).scrollLeft}function Bv(e){var t=vv(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function Dv(e){return["html","body","#document"].indexOf(ov(e))>=0?e.ownerDocument.body:sv(e)&&Bv(e)?e:Dv(bv(e))}function Vv(e,t){var r;void 0===t&&(t=[]);var n=Dv(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),a=av(n),i=o?[a].concat(a.visualViewport||[],Bv(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(Vv(bv(i)))}function Fv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zv(e,t){return"viewport"===t?Fv(function(e){var t=av(e),r=yv(e),n=t.visualViewport,o=r.clientWidth,a=r.clientHeight,i=0,s=0;return n&&(o=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=n.offsetLeft,s=n.offsetTop)),{width:o,height:a,x:i+jv(e),y:s}}(e)):iv(t)?function(e){var t=fv(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):Fv(function(e){var t,r=yv(e),n=Mv(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=uv(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=uv(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+jv(e),l=-n.scrollTop;return"rtl"===vv(o||r).direction&&(s+=uv(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(yv(e)))}function Wv(e){var t,r=e.reference,n=e.element,o=e.placement,a=o?cv(o):null,i=o?_v(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(a){case Xh:t={x:s,y:r.y-n.height};break;case Kh:t={x:s,y:r.y+r.height};break;case Jh:t={x:r.x+r.width,y:l};break;case Qh:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=a?Ev(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case"start":t[c]=t[c]-(r[u]/2-n[u]/2);break;case"end":t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}function $v(e,t){void 0===t&&(t={});var r=t.placement,n=void 0===r?e.placement:r,o=t.boundary,a=void 0===o?"clippingParents":o,i=t.rootBoundary,s=void 0===i?"viewport":i,l=t.elementContext,c=void 0===l?"popper":l,u=t.altBoundary,d=void 0!==u&&u,p=t.padding,f=void 0===p?0:p,m=Sv("number"!=typeof f?f:Cv(f,ev)),h=e.rects.popper,v=e.elements[d?"popper"===c?"reference":"popper":c],g=function(e,t,r){var n="clippingParents"===t?function(e){var t=Vv(bv(e)),r=["absolute","fixed"].indexOf(vv(e).position)>=0&&sv(e)?kv(e):e;return iv(r)?t.filter(function(e){return iv(e)&&hv(e,r)&&"body"!==ov(e)}):[]}(e):[].concat(t),o=[].concat(n,[r]),a=o.reduce(function(t,r){var n=zv(e,r);return t.top=uv(n.top,t.top),t.right=dv(n.right,t.right),t.bottom=dv(n.bottom,t.bottom),t.left=uv(n.left,t.left),t},zv(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}(iv(v)?v:v.contextElement||yv(e.elements.popper),a,s),y=fv(e.elements.reference),b=Wv({reference:y,element:h,strategy:"absolute",placement:n}),x=Fv(Object.assign({},h,b)),k="popper"===c?x:y,E={top:g.top-k.top+m.top,bottom:k.bottom-g.bottom+m.bottom,left:g.left-k.left+m.left,right:k.right-g.right+m.right},w=e.modifiersData.offset;if("popper"===c&&w){var S=w[n];Object.keys(E).forEach(function(e){var t=[Jh,Kh].indexOf(e)>=0?1:-1,r=[Xh,Kh].indexOf(e)>=0?"y":"x";E[e]+=S[r]*t})}return E}function Uv(e,t){void 0===t&&(t={});var r=t.boundary,n=t.rootBoundary,o=t.padding,a=t.flipVariations,i=t.allowedAutoPlacements,s=void 0===i?rv:i,l=_v(t.placement),c=l?a?tv:tv.filter(function(e){return _v(e)===l}):ev,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]=$v(e,{placement:a,boundary:r,rootBoundary:n,padding:o})[cv(a)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}var Hv={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=void 0===o||o,i=r.altAxis,s=void 0===i||i,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,m=void 0===f||f,h=r.allowedAutoPlacements,v=t.options.placement,g=cv(v),y=l||(g!==v&&m?function(e){if("auto"===cv(e))return[];var t=Av(e);return[Lv(e),t,Lv(t)]}(v):[Av(v)]),b=[v].concat(y).reduce(function(e,r){return e.concat("auto"===cv(r)?Uv(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):r)},[]),x=t.rects.reference,k=t.rects.popper,E=new Map,w=!0,S=b[0],C=0;C<b.length;C++){var _=b[C],O=cv(_),R="start"===_v(_),T=[Xh,Kh].indexOf(O)>=0,I=T?"width":"height",N=$v(t,{placement:_,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),A=T?R?Jh:Qh:R?Kh:Xh;x[I]>k[I]&&(A=Av(A));var P=Av(A),L=[];if(a&&L.push(N[O]<=0),s&&L.push(N[A]<=0,N[P]<=0),L.every(function(e){return e})){S=_,w=!1;break}E.set(_,L)}if(w)for(var M=function(e){var t=b.find(function(t){var r=E.get(t);if(r)return r.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[n]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qv(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Yv(e){return[Xh,Jh,Kh,Qh].some(function(t){return e[t]>=0})}var Gv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.name,n=e.options.offset,o=void 0===n?[0,0]:n,a=rv.reduce(function(e,r){return e[r]=function(e,t,r){var n=cv(e),o=[Qh,Xh].indexOf(n)>=0?-1:1,a="function"==typeof r?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Qh,Jh].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}(r,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[r]=a}},Zv={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=void 0===o||o,i=r.altAxis,s=void 0!==i&&i,l=r.tether,c=void 0===l||l,u=r.tetherOffset,d=void 0===u?0:u,p=$v(t,{boundary:r.boundary,rootBoundary:r.rootBoundary,padding:r.padding,altBoundary:r.altBoundary}),f=cv(t.placement),m=_v(t.placement),h=!m,v=Ev(f),g="x"===v?"y":"x",y=t.modifiersData.popperOffsets,b=t.rects.reference,x=t.rects.popper,k="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,E="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(y){if(a){var C,_="y"===v?Xh:Qh,O="y"===v?Kh:Jh,R="y"===v?"height":"width",T=y[v],I=T+p[_],N=T-p[O],A=c?-x[R]/2:0,P="start"===m?b[R]:x[R],L="start"===m?-x[R]:-b[R],M=t.elements.arrow,j=c&&M?mv(M):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},D=B[_],V=B[O],F=wv(0,b[R],j[R]),z=h?b[R]/2-A-F-D-E.mainAxis:P-F-D-E.mainAxis,W=h?-b[R]/2+A+F+V+E.mainAxis:L+F+V+E.mainAxis,$=t.elements.arrow&&kv(t.elements.arrow),U=null!=(C=null==w?void 0:w[v])?C:0,H=T+W-U,q=wv(c?dv(I,T+z-U-($?"y"===v?$.clientTop||0:$.clientLeft||0:0)):I,T,c?uv(N,H):N);y[v]=q,S[v]=q-T}if(s){var Y,G=y[g],Z="y"===g?"height":"width",X=G+p["x"===v?Xh:Qh],K=G-p["x"===v?Kh:Jh],J=-1!==[Xh,Qh].indexOf(f),Q=null!=(Y=null==w?void 0:w[g])?Y:0,ee=J?X:G-b[Z]-x[Z]-Q+E.altAxis,te=J?G+b[Z]+x[Z]-Q-E.altAxis:K,re=c&&J?function(e,t,r){var n=wv(e,t,r);return n>r?r:n}(ee,G,te):wv(c?ee:X,G,c?te:K);y[g]=re,S[g]=re-G}t.modifiersData[n]=S}},requiresIfExists:["offset"]};function Xv(e,t,r){void 0===r&&(r=!1);var n=sv(t),o=sv(t)&&function(e){var t=e.getBoundingClientRect(),r=pv(t.width)/e.offsetWidth||1,n=pv(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),a=yv(t),i=fv(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(("body"!==ov(t)||Bv(a))&&(s=function(e){return e!==av(e)&&sv(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Mv(e);var t}(t)),sv(t)?((l=fv(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=jv(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Kv(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||o(e)}),n}function Jv(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return[].concat(r).reduce(function(e,t){return e.replace(/%s/,t)},e)}var Qv='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',eg=["name","enabled","phase","fn","effect","requires","options"],tg="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",rg={placement:"bottom",modifiers:[],strategy:"absolute"};function ng(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function og(e){void 0===e&&(e={});var t=e.defaultModifiers,r=void 0===t?[]:t,n=e.defaultOptions,o=void 0===n?rg:n;return function(e,t,n){void 0===n&&(n=o);var a,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},rg,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var a="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},o,s.options,a),s.scrollParents={reference:iv(e)?Vv(e):e.contextElement?Vv(e.contextElement):[],popper:Vv(t)};var i,c,p,f=function(e){var t=Kv(e);return nv.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}(function(e){var t=e.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(r,s.options.modifiers)));if(s.orderedModifiers=f.filter(function(e){return e.enabled}),"production"!==process.env.NODE_ENV){var m=(i=[].concat(f,s.options.modifiers),c=function(e){return e.name},p=new Set,i.filter(function(e){var t=c(e);if(!p.has(t))return p.add(t),!0}));(function(e){e.forEach(function(t){[].concat(Object.keys(t),eg).filter(function(e,t,r){return r.indexOf(e)===t}).forEach(function(r){switch(r){case"name":"string"!=typeof t.name&&console.error(Jv(Qv,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(Jv(Qv,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":nv.indexOf(t.phase)<0&&console.error(Jv(Qv,t.name,'"phase"',"either "+nv.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(Jv(Qv,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(Jv(Qv,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(Jv(Qv,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Jv(Qv,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 '+eg.map(function(e){return'"'+e+'"'}).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach(function(r){null==e.find(function(e){return e.name===r})&&console.error(Jv('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),r,r))})})})})(m),"auto"===cv(s.options.placement)&&(s.orderedModifiers.find(function(e){return"flip"===e.name})||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var h=vv(t);[h.marginTop,h.marginRight,h.marginBottom,h.marginLeft].some(function(e){return parseFloat(e)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach(function(e){var t=e.options,r=e.effect;if("function"==typeof r){var n=r({state:s,name:e.name,instance:u,options:void 0===t?{}:t});l.push(n||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,r=e.popper;if(ng(t,r)){s.rects={reference:Xv(t,kv(r),"fixed"===s.options.strategy),popper:mv(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0,o=0;o<s.orderedModifiers.length;o++){if("production"!==process.env.NODE_ENV&&(n+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var 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(tg)}},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(!ng(e,t))return"production"!==process.env.NODE_ENV&&console.error(tg),u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var ag=/*#__PURE__*/og({defaultModifiers:[Iv,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=Wv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,a=r.adaptive,i=void 0===a||a,s=r.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var c=vv(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:cv(t.placement),variation:_v(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,Rv(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,Rv(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];sv(o)&&ov(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});sv(n)&&ov(n)&&(Object.assign(n.style,a),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},Gv,Hv,Zv,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=cv(r.placement),l=Ev(s),c=[Qh,Jh].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return Sv("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Cv(e,ev))}(o.padding,r),d=mv(a),p="y"===l?Xh:Qh,f="y"===l?Kh:Jh,m=r.rects.reference[c]+r.rects.reference[l]-i[l]-r.rects.popper[c],h=i[l]-r.rects.reference[l],v=kv(a),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=g/2-d[c]/2+(m/2-h/2),b=wv(u[p],y,g-d[c]-u[f]);r.modifiersData[n]=((t={})[l]=b,t.centerOffset=b-y,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&("production"!==process.env.NODE_ENV&&(sv(n)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),hv(t.elements.popper,n)?t.elements.arrow=n:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=$v(t,{elementContext:"reference"}),s=$v(t,{altBoundary:!0}),l=qv(i,n),c=qv(s,o,a),u=Yv(l),d=Yv(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function ig(){return ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ig.apply(this,arguments)}var sg=function(e,t){return{var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}},lg={arrowShadowColor:sg("--popper-arrow-shadow-color"),arrowSize:sg("--popper-arrow-size","8px"),arrowSizeHalf:sg("--popper-arrow-size-half"),arrowBg:sg("--popper-arrow-bg"),transformOrigin:sg("--popper-transform-origin"),arrowOffset:sg("--popper-arrow-offset")},cg={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"},ug={scroll:!0,resize:!0},dg={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"}}},pg={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){fg(e.state)},effect:function(e){var t=e.state;return function(){fg(t)}}},fg=function(e){e.elements.popper.style.setProperty(lg.transformOrigin.var,cg[e.placement])},mg={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){hg(e.state)}},hg=function(e){var t;if(e.placement){var r=vg(e.placement);if(null!=(t=e.elements)&&t.arrow&&r){var n,o;Object.assign(e.elements.arrow.style,((n={})[r.property]=r.value,n.width=lg.arrowSize.varRef,n.height=lg.arrowSize.varRef,n.zIndex=-1,n));var a=((o={})[lg.arrowSizeHalf.var]="calc("+lg.arrowSize.varRef+" / 2)",o[lg.arrowOffset.var]="calc("+lg.arrowSizeHalf.varRef+" * -1)",o);for(var i in a)e.elements.arrow.style.setProperty(i,a[i])}}},vg=function(e){return e.startsWith("top")?{property:"bottom",value:lg.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:lg.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:lg.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:lg.arrowOffset.varRef}:void 0},gg={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){yg(e.state)},effect:function(e){var t=e.state;return function(){yg(t)}}},yg=function(e){if(e.elements.arrow){var t,r=e.elements.arrow.querySelector("[data-popper-arrow-inner]");r&&Object.assign(r.style,{transform:"rotate(45deg)",background:lg.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)})}},bg={"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"}},xg={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},kg=["size","shadowColor","bg","style"];function Eg(e){var t=e.size,r=e.shadowColor,n=e.bg,o=ig({},e.style,{position:"absolute"});return t&&(o["--popper-arrow-size"]=t),r&&(o["--popper-arrow-shadow-color"]=r),n&&(o["--popper-arrow-bg"]=n),o}function wg(){return wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wg.apply(this,arguments)}function Sg(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}var Cg=["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","direction","computePositionOnMount"],_g=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect","type"],Og=["type","isChecked"],Rg=["children","type","value","defaultValue","onChange"],Tg=ff(),Ig=Tg[0],Ng=Tg[1],Ag=Tg[2],Pg=Tg[3],Lg=Jr({strict:!1,name:"MenuContext"}),Mg=Lg[0],jg=Lg[1];function Bg(e){var t;return D(e)&&!(null==(t=e.getAttribute("role"))||!t.startsWith("menuitem"))}function Dg(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=e.onMouseEnter,n=e.onMouseMove,o=e.onMouseLeave,a=e.onClick,s=e.isDisabled,l=e.isFocusable,c=e.closeOnSelect,u=e.type,d=Sg(e,_g),p=jg(),f=p.setFocusedIndex,m=p.focusedIndex,h=p.closeOnSelect,v=p.onClose,g=p.menuRef,y=p.isOpen,b=p.menuId,x=je.useRef(null),k=b+"-menuitem-"+ln(),E=Pg({disabled:s&&!l}),w=E.index,S=E.register,C=je.useCallback(function(e){null==r||r(e),s||f(w)},[f,w,s,r]),O=je.useCallback(function(e){null==n||n(e),x.current&&!$(x.current)&&C(e)},[C,n]),R=je.useCallback(function(e){null==o||o(e),s||f(-1)},[f,s,o]),T=je.useCallback(function(e){null==a||a(e),Bg(e.currentTarget)&&(null!=c?c:h)&&v()},[v,a,h,c]),I=w===m,N=s&&!l;cn(function(){y&&(I&&!N&&x.current?i(x.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):g.current&&!$(g.current)&&i(g.current,{preventScroll:!1}))},[I,N,g,y]);var A=function(e){void 0===e&&(e={});var t=e.ref,r=e.isDisabled,n=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,p=e.onKeyUp,f=e.tabIndex,m=e.onMouseOver,h=e.onMouseLeave,v=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(e,Gh),g=je.useState(!0),y=g[0],b=g[1],x=je.useState(!1),k=x[0],E=x[1],w=function(){var e=je.useRef(new Map),t=e.current,r=je.useCallback(function(t,r,n,o){e.current.set(n,{type:r,el:t,options:o}),t.addEventListener(r,n,o)},[]),n=je.useCallback(function(t,r,n,o){t.removeEventListener(r,n,o),e.current.delete(n)},[]);return je.useEffect(function(){return function(){t.forEach(function(e,t){n(e.el,e.type,t,e.options)})}},[n,t]),{add:r,remove:n}}(),S=y?f:f||0,C=r&&!n,O=je.useCallback(function(e){if(r)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==u||u(e)},[r,u]),R=je.useCallback(function(e){k&&Zh(e)&&(e.preventDefault(),e.stopPropagation(),E(!1),w.remove(document,"keyup",R,!1))},[k,w]),T=je.useCallback(function(e){if(null==d||d(e),!(r||e.defaultPrevented||e.metaKey)&&Zh(e.nativeEvent)&&!y){var t=a&&"Enter"===e.key;s&&" "===e.key&&(e.preventDefault(),E(!0)),t&&(e.preventDefault(),e.currentTarget.click()),w.add(document,"keyup",R,!1)}},[r,y,d,a,s,w,R]),I=je.useCallback(function(e){null==p||p(e),r||e.defaultPrevented||e.metaKey||Zh(e.nativeEvent)&&!y&&s&&" "===e.key&&(e.preventDefault(),E(!1),e.currentTarget.click())},[s,y,r,p]),N=je.useCallback(function(e){0===e.button&&(E(!1),w.remove(document,"mouseup",N,!1))},[w]),A=je.useCallback(function(e){if(!j(e)){if(r)return e.stopPropagation(),void e.preventDefault();y||E(!0),e.currentTarget.focus({preventScroll:!0}),w.add(document,"mouseup",N,!1),null==l||l(e)}},[r,y,l,w,N]),P=je.useCallback(function(e){j(e)||(y||E(!1),null==c||c(e))},[c,y]),L=je.useCallback(function(e){r?e.preventDefault():null==m||m(e)},[r,m]),M=je.useCallback(function(e){k&&(e.preventDefault(),E(!1)),null==h||h(e)},[k,h]),B=Kr(t,function(e){e&&"BUTTON"!==e.tagName&&b(!1)});return Yh({},v,y?{ref:B,type:"button","aria-disabled":C?void 0:r,disabled:C,onClick:O,onMouseDown:l,onMouseUp:c,onKeyUp:p,onKeyDown:d,onMouseOver:m,onMouseLeave:h}:{ref:B,role:"button","data-active":_(k),"aria-disabled":r?"true":void 0,tabIndex:C?void 0:S,onClick:O,onMouseDown:A,onMouseUp:P,onKeyUp:I,onKeyDown:T,onMouseOver:L,onMouseLeave:M})}({onClick:T,onMouseEnter:C,onMouseMove:O,onMouseLeave:R,ref:Kr(S,x,t),isDisabled:s,isFocusable:l});return wg({},d,A,{type:null!=u?u:A.type,id:k,role:"menuitem",tabIndex:I?0:-1})}var Vg=["descendants"],Fg=["children","as"],zg=["rootProps"],Wg=["type"],$g=["icon","iconSpacing","command","commandSpacing","children"],Ug=["icon","iconSpacing"],Hg=["className","title"],qg=["title","children","className"],Yg=["className","children"],Gg=ea("Menu"),Zg=Gg[0],Xg=Gg[1],Kg=function(e){var t=e.children,n=fa("Menu",e),d=function(e){void 0===e&&(e={});var t=e.id,n=e.closeOnSelect,o=void 0===n||n,d=e.closeOnBlur,p=void 0===d||d,f=e.autoSelect,m=void 0===f||f,h=e.isLazy,v=e.isOpen,g=e.defaultIsOpen,y=e.onClose,b=e.onOpen,x=e.placement,k=void 0===x?"bottom-start":x,E=e.lazyBehavior,w=void 0===E?"unmount":E,S=e.direction,C=e.computePositionOnMount,_=void 0!==C&&C,O=Sg(e,Cg),R=je.useRef(null),T=je.useRef(null),I=Ag(),N=je.useCallback(function(){i(R.current,{nextTick:!0,selectTextIfInput:!1})},[]),A=je.useCallback(function(){var e=setTimeout(function(){var e=I.firstEnabled();e&&q(e.index)});J.current.add(e)},[I]),P=je.useCallback(function(){var e=setTimeout(function(){var e=I.lastEnabled();e&&q(e.index)});J.current.add(e)},[I]),L=function(e){void 0===e&&(e={});var t=e.onClose,r=e.isOpen,n=e.id,o=tn(e.onOpen),i=tn(t),s=je.useState(e.defaultIsOpen||!1),l=s[1],c=on(r,s[0]),u=c[0],d=c[1],p=ln(n,"disclosure"),f=je.useCallback(function(){u||l(!1),null==i||i()},[u,i]),m=je.useCallback(function(){u||l(!0),null==o||o()},[u,o]),h=je.useCallback(function(){(d?f:m)()},[d,m,f]);return{isOpen:!!d,onOpen:m,onClose:f,onToggle:h,isControlled:u,getButtonProps:function(e){return void 0===e&&(e={}),sn({},e,{"aria-expanded":d,"aria-controls":p,onClick:a(e.onClick,h)})},getDisclosureProps:function(e){return void 0===e&&(e={}),sn({},e,{hidden:!d,id:p})}}}({isOpen:v,defaultIsOpen:g,onClose:y,onOpen:je.useCallback(function(){null==b||b(),m?A():N()},[m,A,N,b])}),M=L.isOpen,j=L.onOpen,B=L.onClose,D=L.onToggle;!function(e){var t=e.ref,r=e.handler,n=e.enabled,o=void 0===n||n,a=tn(r),i=je.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;je.useEffect(function(){if(o){var e=function(e){fn(e,t)&&(i.isPointerDown=!0)},n=function(e){i.ignoreEmulatedMouseEvents?i.ignoreEmulatedMouseEvents=!1:i.isPointerDown&&r&&fn(e,t)&&(i.isPointerDown=!1,a(e))},l=function(e){i.ignoreEmulatedMouseEvents=!0,r&&i.isPointerDown&&fn(e,t)&&(i.isPointerDown=!1,a(e))},c=s(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",n,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",l,!0),function(){c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",n,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",l,!0)}}},[r,t,a,i,o])}({enabled:M&&p,ref:R,handler:function(e){var t;null!=(t=T.current)&&t.contains(e.target)||B()}});var V,F,z,W,$=function(e){void 0===e&&(e={});var t=e.enabled,r=void 0===t||t,n=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,p=e.offset,f=e.gutter,m=void 0===f?8:f,h=e.flip,v=void 0===h||h,g=e.boundary,y=void 0===g?"clippingParents":g,b=e.preventOverflow,x=void 0===b||b,k=e.matchWidth,E=e.direction,w=void 0===E?"ltr":E,S=je.useRef(null),C=je.useRef(null),_=je.useRef(null),O=function(e,t){var r,n;void 0===t&&(t="ltr");var o=(null==(r=bg[e])?void 0:r[t])||e;return"ltr"===t?o:null!=(n=xg[e])?n:o}(a,w),R=je.useRef(function(){}),T=je.useCallback(function(){var e;r&&S.current&&C.current&&(null==R.current||R.current(),_.current=ag(S.current,C.current,{placement:O,modifiers:[gg,mg,pg,ig({},dg,{enabled:!!k}),ig({name:"eventListeners"},(e=d,"object"==typeof e?{enabled:!0,options:ig({},ug,e)}:{enabled:e,options:ug})),{name:"arrow",options:{padding:c}},{name:"offset",options:{offset:null!=p?p:[0,m]}},{name:"flip",enabled:!!v,options:{padding:8}},{name:"preventOverflow",enabled:!!x,options:{boundary:y}}].concat(null!=n?n:[]),strategy:s}),_.current.forceUpdate(),R.current=_.current.destroy)},[O,r,n,k,d,c,p,m,v,x,y,s]);je.useEffect(function(){return function(){var e;S.current||C.current||(null==(e=_.current)||e.destroy(),_.current=null)}},[]);var I=je.useCallback(function(e){S.current=e,T()},[T]),N=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ig({},e,{ref:Kr(I,t)})},[I]),A=je.useCallback(function(e){C.current=e,T()},[T]),P=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ig({},e,{ref:Kr(A,t),style:ig({},e.style,{position:s,minWidth:k?void 0:"max-content",inset:"0 auto auto 0"})})},[s,A,k]),L=je.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(e,kg);return ig({},r,{ref:t,"data-popper-arrow":"",style:Eg(e)})},[]),M=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ig({},e,{ref:t,"data-popper-arrow-inner":""})},[]);return{update:function(){var e;null==(e=_.current)||e.update()},forceUpdate:function(){var e;null==(e=_.current)||e.forceUpdate()},transformOrigin:lg.transformOrigin.varRef,referenceRef:I,popperRef:A,getPopperProps:P,getArrowProps:L,getArrowInnerProps:M,getReferenceProps:N}}(wg({},O,{enabled:M||_,placement:k,direction:S})),U=je.useState(-1),H=U[0],q=U[1];cn(function(){M||q(-1)},[M]),cn(function(){if(W&&!function(e){var t=e.current;if(!t)return!1;var r=l(t);return!!r&&!c(t,r)&&!!u(r)}(V)){var e=(null==z?void 0:z.current)||V.current;e&&i(e,{nextTick:!0})}},[W=(F={focusRef:T,visible:M,shouldFocus:!0}).shouldFocus&&!F.visible,V=R,z=F.focusRef]);var Y=function(e){var t=e.isOpen,n=e.ref,o=je.useState(t),a=o[0],i=o[1],s=je.useState(!1),l=s[0],c=s[1];return je.useEffect(function(){l||(i(t),c(!0))},[t,l,a]),rn("animationend",function(){i(t)},function(){return n.current}),{present:!(!t&&!a),onComplete:function(){var e,t=new(r(n.current).CustomEvent)("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(t)}}}({isOpen:M,ref:R}),G=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=ln(e);return je.useMemo(function(){return r.map(function(e){return e+"-"+o})},[o,r])}(t,"menu-button","menu-list"),Z=G[0],X=G[1],K=je.useCallback(function(){j(),N()},[j,N]),J=je.useRef(new Set([]));un(function(){J.current.forEach(function(e){return clearTimeout(e)}),J.current.clear()});var Q=je.useCallback(function(){j(),A()},[A,j]),ee=je.useCallback(function(){j(),P()},[j,P]),te=je.useCallback(function(){var e,t,r=s(R.current),n=null==(e=R.current)?void 0:e.contains(r.activeElement);if(M&&!n){var o=null==(t=I.item(H))?void 0:t.node;o&&i(o,{selectTextIfInput:!1,preventScroll:!1})}},[M,H,I]);return{openAndFocusMenu:K,openAndFocusFirstItem:Q,openAndFocusLastItem:ee,onTransitionEnd:te,unstable__animationState:Y,descendants:I,popper:$,buttonId:Z,menuId:X,forceUpdate:$.forceUpdate,orientation:"vertical",isOpen:M,onToggle:D,onOpen:j,onClose:B,menuRef:R,buttonRef:T,focusedIndex:H,closeOnSelect:o,closeOnBlur:p,autoSelect:m,setFocusedIndex:q,isLazy:h,lazyBehavior:w}}(wg({},ta(e),{direction:Qo().direction})),p=d.descendants,f=Sg(d,Vg),m=je.useMemo(function(){return f},[f]);/*#__PURE__*/
|
63
|
+
return je.createElement(Ig,{value:p},/*#__PURE__*/je.createElement(Mg,{value:m},/*#__PURE__*/je.createElement(Zg,{value:n},o(t,{isOpen:m.isOpen,onClose:m.onClose,forceUpdate:m.forceUpdate}))))};d&&(Kg.displayName="Menu");var Jg=/*#__PURE__*/ca(function(e,t){var r=Xg();/*#__PURE__*/
|
64
|
+
return je.createElement(ha.button,wg({ref:t},e,{__css:wg({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},r.button)}))}),Qg=/*#__PURE__*/ca(function(e,t){var r=e.as,n=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=jg(),n=r.onToggle,o=r.popper,i=r.openAndFocusFirstItem,s=r.openAndFocusLastItem,l=je.useCallback(function(e){var t=B(e),r={Enter:i,ArrowDown:i,ArrowUp:s}[t];r&&(e.preventDefault(),e.stopPropagation(),r(e))},[i,s]);return wg({},e,{ref:Kr(r.buttonRef,t,o.referenceRef),id:r.buttonId,"data-active":_(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:a(e.onClick,n),onKeyDown:a(e.onKeyDown,l)})}(Sg(e,Fg),t);/*#__PURE__*/
|
65
|
+
return je.createElement(r||Jg,wg({},n,{className:S("chakra-menu__menu-button",e.className)}),/*#__PURE__*/je.createElement(ha.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))});d&&(Qg.displayName="MenuButton");var ey={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"}}},ty=function(e){var t=hp;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(ha.div),ry=/*#__PURE__*/ca(function(e,t){var r,n,o=e.rootProps,i=Sg(e,zg),s=jg(),l=s.isOpen,c=s.onTransitionEnd,u=s.unstable__animationState,d=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=jg();if(!r)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");var n=r.focusedIndex,o=r.setFocusedIndex,i=r.menuRef,s=r.isOpen,l=r.onClose,c=r.menuId,u=r.isLazy,d=r.lazyBehavior,p=r.unstable__animationState,f=Ng(),m=function(e){void 0===e&&(e={});var t=e.timeout,r=void 0===t?300:t,n=e.preventDefault,o=void 0===n?function(){return!0}:n,a=je.useState([]),i=a[0],s=a[1],l=je.useRef(),c=function(){l.current&&(clearTimeout(l.current),l.current=null)};return je.useEffect(function(){return c},[]),function(e){return function(t){if("Backspace"===t.key){var n=[].concat(i);return n.pop(),void s(n)}if(function(e){var t=e.key;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){var a=i.concat(t.key);o(t)&&(t.preventDefault(),t.stopPropagation()),s(a),e(a.join("")),c(),l.current=setTimeout(function(){s([]),l.current=null},r)}}}}({preventDefault:function(e){return" "!==e.key&&Bg(e.target)}}),h=je.useCallback(function(e){var t=B(e),r={Tab:function(e){return e.preventDefault()},Escape:l,ArrowDown:function(){var e=f.nextEnabled(n);e&&o(e.index)},ArrowUp:function(){var e=f.prevEnabled(n);e&&o(e.index)}},a=r[t];if(a)return e.preventDefault(),void a(e);var i=m(function(e){var t=W(f.values(),e,function(e){var t,r;return null!=(t=null==e||null==(r=e.node)?void 0:r.textContent)?t:""},f.item(n));if(t){var r=f.indexOf(t.node);o(r)}});Bg(e.target)&&i(e)},[f,n,m,l,o]),v=je.useRef(!1);s&&(v.current=!0);var g=V({hasBeenSelected:v.current,isLazy:u,lazyBehavior:d,isSelected:p.present});return wg({},e,{ref:Kr(i,t),children:g?e.children:null,tabIndex:-1,role:"menu",id:c,style:wg({},e.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:a(e.onKeyDown,h)})}(i,t),p=function(e){void 0===e&&(e={});var t=jg();return t.popper.getPopperProps(wg({},e,{style:wg({visibility:t.isOpen?"visible":"hidden"},e.style)}))}(o),f=Xg();/*#__PURE__*/
|
66
|
+
return je.createElement(ha.div,wg({},p,{__css:{zIndex:null!=(r=e.zIndex)?r:null==(n=f.list)?void 0:n.zIndex}}),/*#__PURE__*/je.createElement(ty,wg({},d,{onUpdate:c,onAnimationComplete:R(u.onComplete,d.onAnimationComplete),className:S("chakra-menu__menu-list",d.className),variants:ey,initial:!1,animate:l?"enter":"exit",__css:wg({outline:0},f.list)})))});d&&(ry.displayName="MenuList");var ny=/*#__PURE__*/ca(function(e,t){var r=e.type,n=Sg(e,Wg),o=Xg(),a=n.as||r?null!=r?r:void 0:"button",i=je.useMemo(function(){return wg({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(ha.button,wg({ref:t,type:a},n,{__css:i}))});d&&(/*#__PURE__*/ca(function(e,t){var r=e.icon,n=e.iconSpacing,o=void 0===n?"0.75rem":n,a=e.command,i=e.commandSpacing,s=void 0===i?"0.75rem":i,l=e.children,c=Dg(Sg(e,$g),t),u=r||a?/*#__PURE__*/je.createElement("span",{style:{pointerEvents:"none",flex:1}},l):l;/*#__PURE__*/
|
68
|
+
return je.createElement(ny,wg({},c,{className:S("chakra-menu__menuitem",c.className)}),r&&/*#__PURE__*/je.createElement(cy,{fontSize:"0.8em",marginEnd:o},r),u,a&&/*#__PURE__*/je.createElement(ly,{marginStart:s},a))}).displayName="MenuItem");var oy=function(e){/*#__PURE__*/
|
69
|
+
return je.createElement("svg",wg({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"}))},ay=/*#__PURE__*/ca(function(e,t){var r=e.icon,n=e.iconSpacing,o=void 0===n?"0.75rem":n,a=Sg(e,Ug),i=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=e.type,n=void 0===r?"radio":r,o=e.isChecked;return wg({},Dg(Sg(e,Og),t),{role:"menuitem"+n,"aria-checked":o})}(a,t);/*#__PURE__*/
|
70
|
+
return je.createElement(ny,wg({},i,{className:S("chakra-menu__menuitem-option",a.className)}),null!==r&&/*#__PURE__*/je.createElement(cy,{fontSize:"0.8em",marginEnd:o,opacity:e.isChecked?1:0},r||/*#__PURE__*/je.createElement(oy,null)),/*#__PURE__*/je.createElement("span",{style:{flex:1}},i.children))});ay.id="MenuItemOption",d&&(ay.displayName="MenuItemOption");var iy=function(e){var t=e.className,r=e.title,n=function(e){void 0===e&&(e={});var t=e.children,r=e.type,n=void 0===r?"radio":r,o=e.value,a=e.defaultValue,i=e.onChange,s=Sg(e,Rg),l=an({defaultValue:null!=a?a:"radio"===n?"":[],value:o,onChange:i}),c=l[0],u=l[1],d=je.useCallback(function(e){if("radio"===n&&m(c)&&u(e),"checkbox"===n&&b(c)){var t=c.includes(e)?F(c,e):z(c,e);u(t)}},[c,u,n]);return wg({},s,{children:Qr(t).map(function(e){if("MenuItemOption"!==e.type.id)return e;var t="radio"===n?e.props.value===c:c.includes(e.props.value);/*#__PURE__*/
|
71
|
+
return je.cloneElement(e,{type:n,onClick:function(t){d(e.props.value),null==e.props.onClick||e.props.onClick(t)},isChecked:t})})})}(Sg(e,Hg));/*#__PURE__*/
|
72
|
+
return je.createElement(sy,wg({title:r,className:S("chakra-menu__option-group",t)},n))};d&&(iy.displayName="MenuOptionGroup");var sy=/*#__PURE__*/ca(function(e,t){var r=e.title,n=e.children,o=e.className,a=Sg(e,qg),i=S("chakra-menu__group__title",o),s=Xg();/*#__PURE__*/
|
73
|
+
return je.createElement("div",{ref:t,className:"chakra-menu__group",role:"group"},r&&/*#__PURE__*/je.createElement(ha.p,wg({className:i},a,{__css:s.groupTitle}),r),n)});d&&(sy.displayName="MenuGroup");var ly=/*#__PURE__*/ca(function(e,t){var r=Xg();/*#__PURE__*/
|
74
|
+
return je.createElement(ha.span,wg({ref:t},e,{__css:r.command,className:"chakra-menu__command"}))});d&&(ly.displayName="MenuCommand");var cy=function(e){var t=e.className,r=e.children,n=Sg(e,Yg),o=je.Children.only(r),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
|
+
return je.createElement(ha.span,wg({className:i},n,{__css:{flexShrink:0}}),a)};function uy(){return uy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uy.apply(this,arguments)}function dy(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}d&&(cy.displayName="MenuIcon");var py=function(e){/*#__PURE__*/
|
76
|
+
return je.createElement(Sp,uy({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"}))},fy=function(e){/*#__PURE__*/
|
77
|
+
return je.createElement(Sp,uy({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 my(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hy(e,t,n,o){je.useEffect(function(){if(e.current&&o){var a=r(e.current),i=Array.isArray(t)?t:[t],s=new a.MutationObserver(function(e){for(var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return my(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?my(e,t):void 0}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(t=r()).done;){var 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 vy=["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"],gy=/^[Ee0-9+\-.]$/;function yy(e){return gy.test(e)}var by=["htmlProps"],xy=ea("NumberInput"),ky=xy[0],Ey=xy[1],wy=Jr({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),Sy=wy[0],Cy=wy[1],_y=/*#__PURE__*/ca(function(e,t){var r=fa("NumberInput",e),n=function(e){void 0===e&&(e={});var t=e.focusInputOnChange,r=void 0===t||t,n=e.clampValueOnBlur,o=void 0===n||n,l=e.keepWithinRange,c=void 0===l||l,u=e.min,d=void 0===u?A:u,p=e.max,f=void 0===p?P:p,m=e.step,h=void 0===m?1:m,v=e.isReadOnly,g=e.isDisabled,y=e.isRequired,b=e.isInvalid,x=e.pattern,k=void 0===x?"[0-9]*(.[0-9]+)?":x,E=e.inputMode,w=void 0===E?"decimal":E,S=e.allowMouseWheel,C=e.id,_=e.name,R=e["aria-describedby"],T=e["aria-label"],I=e["aria-labelledby"],N=e.onFocus,L=e.onBlur,j=e.onInvalid,D=e.getAriaValueText,V=e.isValidCharacter,F=e.format,z=e.parse,W=dy(e,vy),$=tn(N),U=tn(L),H=tn(j),q=tn(null!=V?V:yy),Y=tn(D),G=Pm(e),Z=G.update,X=G.increment,K=G.decrement,J=nn(),Q=J[0],ee=J[1],te=!(v||g),re=je.useRef(null),ne=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]);cn(function(){(G.valueAsNumber>f||G.valueAsNumber<d)&&(null==H||H("rangeOverflow",le(G.value),G.valueAsNumber))},[G.valueAsNumber,G.value,le,H]),en(function(){if(re.current&&re.current.value!=G.value){var e=se(re.current.value);G.setValue(ie(e))}},[se,ie]);var ce=je.useCallback(function(e){void 0===e&&(e=h),te&&X(e)},[X,te,h]),ue=je.useCallback(function(e){void 0===e&&(e=h),te&&K(e)},[K,te,h]),de=function(e,t){var r,n,o=je.useState(!1),a=o[0],i=o[1],s=je.useState(null),l=s[0],c=s[1],u=je.useState(!0),d=u[0],p=u[1],f=je.useRef(null),m=function(){return clearTimeout(f.current)};r=a?50:null,n=tn(function(){"increment"===l&&e(),"decrement"===l&&t()}),je.useEffect(function(){var e=null;return null!==r&&(e=window.setInterval(function(){return n()},r)),function(){e&&window.clearInterval(e)}},[r,n]);var h=je.useCallback(function(){d&&e(),f.current=setTimeout(function(){p(!1),i(!0),c("increment")},300)},[e,d]),v=je.useCallback(function(){d&&t(),f.current=setTimeout(function(){p(!1),i(!0),c("decrement")},300)},[t,d]),g=je.useCallback(function(){p(!0),i(!1),m()},[]);return un(m),{up:h,down:v,stop:g,isSpinning:a}}(ce,ue);hy(oe,"disabled",de.stop,de.isSpinning),hy(ae,"disabled",de.stop,de.isSpinning);var pe=je.useCallback(function(e){if(!e.nativeEvent.isComposing){var t=se(e.currentTarget.value);Z(ie(t)),ne.current={start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd}}},[Z,ie,se]),fe=je.useCallback(function(e){var t,r,n;null==$||$(e),ne.current&&(e.target.selectionStart=null!=(t=ne.current.start)?t:null==(r=e.currentTarget.value)?void 0:r.length,e.currentTarget.selectionEnd=null!=(n=ne.current.end)?n:e.currentTarget.selectionStart)},[$]),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=he(e)*h,r={ArrowUp:function(){return ce(t)},ArrowDown:function(){return ue(t)},Home:function(){return Z(d)},End:function(){return Z(f)}}[B(e)];r&&(e.preventDefault(),r(e))}},[q,h,ce,ue,Z,d,f]),he=function(e){var t=1;return(e.metaKey||e.ctrlKey)&&(t=.1),e.shiftKey&&(t=10),t},ve=je.useMemo(function(){var e=null==Y?void 0:Y(G.value);return M(e)?G.value.toString()||void 0:e},[G.value,Y]),ge=je.useCallback(function(){var e=G.value;""!==e&&(G.valueAsNumber<d&&(e=d),G.valueAsNumber>f&&(e=f),G.cast(e))},[G,f,d]),ye=je.useCallback(function(){ee.off(),o&&ge()},[o,ee,ge]),be=je.useCallback(function(){r&&i(re.current,{nextTick:!0})},[r]),xe=je.useCallback(function(e){e.preventDefault(),de.up(),be()},[be,de]),ke=je.useCallback(function(e){e.preventDefault(),de.down(),be()},[be,de]);rn("wheel",function(e){var t=s(re.current);if(S&&t.activeElement===re.current){e.preventDefault();var r=he(e)*h,n=Math.sign(e.deltaY);-1===n?ce(r):1===n&&ue(r)}},re.current,{passive:!1});var Ee=je.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=g||c&&G.isAtMax;return uy({},e,{ref:Kr(t,oe),role:"button",tabIndex:-1,onPointerDown:a(e.onPointerDown,function(e){r||xe(e)}),onPointerLeave:a(e.onPointerLeave,de.stop),onPointerUp:a(e.onPointerUp,de.stop),disabled:r,"aria-disabled":O(r)})},[G.isAtMax,c,xe,de.stop,g]),we=je.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=g||c&&G.isAtMin;return uy({},e,{ref:Kr(t,ae),role:"button",tabIndex:-1,onPointerDown:a(e.onPointerDown,function(e){r||ke(e)}),onPointerLeave:a(e.onPointerLeave,de.stop),onPointerUp:a(e.onPointerUp,de.stop),disabled:r,"aria-disabled":O(r)})},[G.isAtMin,c,ke,de.stop,g]),Se=je.useCallback(function(e,t){var r,n,o,i;return void 0===e&&(e={}),void 0===t&&(t=null),uy({name:_,inputMode:w,type:"text",pattern:k,"aria-labelledby":I,"aria-label":T,"aria-describedby":R,id:C,disabled:g},e,{readOnly:null!=(r=e.readOnly)?r:v,"aria-readonly":null!=(n=e.readOnly)?n:v,"aria-required":null!=(o=e.required)?o:y,required:null!=(i=e.required)?i:y,ref:Kr(re,t),value:le(G.value),role:"spinbutton","aria-valuemin":d,"aria-valuemax":f,"aria-valuenow":Number.isNaN(G.valueAsNumber)?void 0:G.valueAsNumber,"aria-invalid":O(null!=b?b:G.isOutOfRange),"aria-valuetext":ve,autoComplete:"off",autoCorrect:"off",onChange:a(e.onChange,pe),onKeyDown:a(e.onKeyDown,me),onFocus:a(e.onFocus,fe,ee.on),onBlur:a(e.onBlur,U,ye)})},[_,w,k,I,T,le,R,C,g,y,v,b,G.value,G.valueAsNumber,G.isOutOfRange,d,f,ve,pe,me,fe,ee.on,U,ye]);return{value:le(G.value),valueAsNumber:G.valueAsNumber,isFocused:Q,isDisabled:g,isReadOnly:v,getIncrementButtonProps:Ee,getDecrementButtonProps:we,getInputProps:Se,htmlProps:W}}(Kf(ta(e))),o=n.htmlProps,l=dy(n,by),c=je.useMemo(function(){return l},[l]);/*#__PURE__*/
|
78
|
+
return je.createElement(Sy,{value:c},/*#__PURE__*/je.createElement(ky,{value:r},/*#__PURE__*/je.createElement(ha.div,uy({},o,{ref:t,className:S("chakra-numberinput",e.className),__css:uy({position:"relative",zIndex:0},r.root)}))))});d&&(_y.displayName="NumberInput");var Oy=/*#__PURE__*/ca(function(e,t){var r=Ey();/*#__PURE__*/
|
79
|
+
return je.createElement(ha.div,uy({"aria-hidden":!0,ref:t},e,{__css:uy({display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1},r.stepperGroup)}))});d&&(Oy.displayName="NumberInputStepper");var Ry=/*#__PURE__*/ca(function(e,t){var r=(0,Cy().getInputProps)(e,t),n=Ey();/*#__PURE__*/
|
80
|
+
return je.createElement(ha.input,uy({},r,{className:S("chakra-numberinput__field",e.className),__css:uy({width:"100%"},n.field)}))});d&&(Ry.displayName="NumberInputField");var Ty=ha("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Iy=/*#__PURE__*/ca(function(e,t){var r,n=Ey(),o=(0,Cy().getDecrementButtonProps)(e,t);/*#__PURE__*/
|
81
|
+
return je.createElement(Ty,uy({},o,{__css:n.stepper}),null!=(r=e.children)?r:/*#__PURE__*/je.createElement(py,null))});d&&(Iy.displayName="NumberDecrementStepper");var Ny=/*#__PURE__*/ca(function(e,t){var r,n=(0,Cy().getIncrementButtonProps)(e,t),o=Ey();/*#__PURE__*/
|
82
|
+
return je.createElement(Ty,uy({},n,{__css:o.stepper}),null!=(r=e.children)?r:/*#__PURE__*/je.createElement(fy,null))});function Ay(){return Ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ay.apply(this,arguments)}function Py(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}d&&(Ny.displayName="NumberIncrementStepper");var Ly=["index"],My=ff(),jy=My[0],By=My[2],Dy=My[3],Vy=Jr({name:"PinInputContext",errorMessage:"usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within `<PinInput />`"}),Fy=Vy[0],zy=Vy[1],Wy=function(e){return null==e?void 0:e.split("")};function $y(e,t){return("alphanumeric"===t?/^[a-zA-Z0-9]+$/i:/^[0-9]+$/).test(e)}var Uy=["children"],Hy=["descendants"],qy=function(e){var t=pa("PinInput",e),r=ta(e),n=r.children,o=function(e){void 0===e&&(e={});var t=e.autoFocus,r=e.value,n=e.defaultValue,o=e.onChange,s=e.onComplete,l=e.placeholder,c=void 0===l?"○":l,u=e.manageFocus,d=void 0===u||u,p=e.otp,f=void 0!==p&&p,m=e.id,h=e.isDisabled,v=e.isInvalid,g=e.type,y=void 0===g?"number":g,b=e.mask,x=ln(),k=null!=m?m:"pin-input-"+x,E=By(),w=je.useState(!0),S=w[0],C=w[1],_=je.useState(-1),R=_[0],T=_[1],I=an({defaultValue:Wy(n)||[],value:Wy(r),onChange:function(e){return null==o?void 0:o(e.join(""))}}),N=I[0],A=I[1];je.useEffect(function(){if(t){var e=E.first();e&&i(e.node,{nextTick:!0})}},[E]);var P=je.useCallback(function(e){if(S&&d){var t=E.next(e,!1);t&&i(t.node,{nextTick:!0})}},[E,S,d]),L=je.useCallback(function(e,t){var r=[].concat(N);r[t]=e,A(r),""!==e&&r.length===E.count()&&r.every(function(e){return null!=e&&""!==e})?null==s||s(r.join("")):P(t)},[N,A,P,s,E]),M=je.useCallback(function(){var e=Array(E.count()).fill("");A(e);var t=E.first();t&&i(t.node)},[E,A]),j=je.useCallback(function(e,t){var r=t;return(null==e?void 0:e.length)>0&&(e[0]===t.charAt(0)?r=t.charAt(1):e[0]===t.charAt(1)&&(r=t.charAt(0))),r},[]),B=je.useCallback(function(e){var t=e.index,r=Py(e,Ly),n=R===t;return Ay({"aria-label":"Please enter your pin code",inputMode:"number"===y?"numeric":"text",type:b?"password":"number"===y?"tel":"text"},r,{id:k+"-"+t,disabled:h,"aria-invalid":O(v),onChange:a(r.onChange,function(e){var r=e.target.value,n=j(N[t],r);if(""!==n)if(r.length>2){if($y(r,y)){var o=r.split("").filter(function(e,t){return t<E.count()});A(o),o.length===E.count()&&(null==s||s(o.join("")))}}else $y(n,y)&&L(n,t),C(!0);else L("",t)}),onKeyDown:a(r.onKeyDown,function(e){if("Backspace"===e.key&&d)if(""===e.target.value){var r=E.prev(t,!1);r&&(L("",t-1),i(r.node),C(!0))}else C(!1)}),onFocus:a(r.onFocus,function(){T(t)}),onBlur:a(r.onBlur,function(){T(-1)}),value:N[t]||"",autoComplete:f?"one-time-code":"off",placeholder:n?"":c})},[E,R,j,k,h,b,v,d,s,f,c,L,A,y,N]);return{getInputProps:B,id:k,descendants:E,values:N,setValue:L,setValues:A,clear:M}}(Py(r,Uy)),s=o.descendants,l=Py(o,Hy),c=Qr(n).map(function(e){/*#__PURE__*/
|
83
|
+
return je.cloneElement(e,{__css:t})});/*#__PURE__*/
|
84
|
+
return je.createElement(jy,{value:s},/*#__PURE__*/je.createElement(Fy,{value:l},c))};d&&(qy.displayName="PinInput");var Yy=/*#__PURE__*/ca(function(e,t){var r=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=zy().getInputProps,n=Dy(),o=n.index;return r(Ay({},e,{ref:Kr(n.register,t),index:o}))}(e,t);/*#__PURE__*/
|
85
|
+
return je.createElement(ha.input,Ay({},r,{className:S("chakra-pin-input",e.className)}))});function Gy(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zy.apply(this,arguments)}d&&(Yy.displayName="PinInputField");var Xy=["onChange","value","defaultValue","name","isDisabled","isFocusable","isNative"],Ky=["colorScheme","size","variant","children","className","isDisabled","isFocusable"],Jy=Jr({name:"RadioGroupContext",strict:!1}),Qy=Jy[0],eb=Jy[1],tb=/*#__PURE__*/ca(function(e,t){var r=e.colorScheme,n=e.size,o=e.variant,a=e.children,i=e.className,s=e.isDisabled,l=e.isFocusable,c=function(e){void 0===e&&(e={});var t=e.onChange,r=e.value,n=e.defaultValue,o=e.name,a=e.isDisabled,i=e.isFocusable,s=e.isNative,l=Gy(e,Xy),c=je.useState(n||""),u=c[1],d=on(r,c[0]),p=d[0],f=d[1],m=je.useRef(null),h=je.useCallback(function(){var e=m.current;if(e){var t="input:not(:disabled):checked",r=e.querySelector(t);if(r)r.focus();else{var n=e.querySelector(t="input:not(:disabled)");null==n||n.focus()}}},[]),v=ln(void 0,"radio"),g=o||v,y=je.useCallback(function(e){var r=H(e)?e.target.value:e;p||u(r),null==t||t(String(r))},[t,p]),b=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Zy({},e,{ref:Kr(t,m),role:"radiogroup"})},[]),x=je.useCallback(function(e,t){var r;return void 0===e&&(e={}),void 0===t&&(t=null),Zy({},e,((r={ref:t,name:g})[s?"checked":"isChecked"]=null!=f?e.value===f:void 0,r.onChange=y,r["data-radiogroup"]=!0,r))},[s,g,y,f]);return{getRootProps:b,getRadioProps:x,name:g,ref:m,focus:h,setValue:u,value:f,onChange:y,isDisabled:a,isFocusable:i,htmlProps:l}}(Gy(e,Ky)),u=c.value,d=c.onChange,p=c.getRootProps,f=c.name,m=c.htmlProps,h=je.useMemo(function(){return{name:f,size:n,onChange:d,colorScheme:r,value:u,variant:o,isDisabled:s,isFocusable:l}},[f,n,d,r,u,o,s,l]),v=p(m,t),g=S("chakra-radio-group",i);/*#__PURE__*/
|
86
|
+
return je.createElement(Qy,{value:h},/*#__PURE__*/je.createElement(ha.div,Zy({},v,{className:g}),a))});d&&(tb.displayName="RadioGroup");var rb=["defaultChecked","isChecked","isFocusable","isDisabled","isReadOnly","isRequired","onChange","isInvalid","name","value","id","data-radiogroup","aria-describedby"];function nb(e){e.preventDefault(),e.stopPropagation()}var ob=["spacing","children","isDisabled","isFocusable","inputProps"],ab=/*#__PURE__*/ca(function(e,t){var r,n=eb(),o=e.onChange,i=e.value,s=fa("Radio",Zy({},n,e)),l=ta(e),c=l.spacing,u=void 0===c?"0.5rem":c,d=l.children,p=l.isDisabled,f=void 0===p?null==n?void 0:n.isDisabled:p,m=l.isFocusable,h=void 0===m?null==n?void 0:n.isFocusable:m,v=l.inputProps,g=Gy(l,ob),y=e.isChecked;null!=(null==n?void 0:n.value)&&null!=i&&(y=n.value===i);var b=o;null!=n&&n.onChange&&null!=i&&(b=R(n.onChange,o));var x=function(e){void 0===e&&(e={});var t=e.defaultChecked,r=e.isChecked,n=e.isFocusable,o=e.isDisabled,i=e.isReadOnly,s=e.isRequired,l=e.onChange,c=e.isInvalid,u=e.name,d=e.value,p=e.id,f=e["data-radiogroup"],m=e["aria-describedby"],h=Gy(e,rb),v=ln(void 0,"radio"),g=Hf(),y=eb(),b=!g||y||f?v:g.id;b=null!=p?p:b;var x=null!=o?o:null==g?void 0:g.isDisabled,k=null!=i?i:null==g?void 0:g.isReadOnly,E=null!=s?s:null==g?void 0:g.isRequired,w=null!=c?c:null==g?void 0:g.isInvalid,S=nn(),C=S[0],R=S[1],T=nn(),I=T[0],N=T[1],A=nn(),P=A[0],L=A[1],M=je.useState(Boolean(t)),j=M[1],B=on(r,M[0]),D=B[0],V=B[1],F=je.useCallback(function(e){k||x?e.preventDefault():(D||j(e.target.checked),null==l||l(e))},[D,x,k,l]),z=je.useCallback(function(e){" "===e.key&&L.on()},[L]),W=je.useCallback(function(e){" "===e.key&&L.off()},[L]),$=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Zy({},e,{ref:t,"data-active":_(P),"data-hover":_(I),"data-disabled":_(x),"data-invalid":_(w),"data-checked":_(V),"data-focus":_(C),"data-readonly":_(k),"aria-hidden":!0,onMouseDown:a(e.onMouseDown,L.on),onMouseUp:a(e.onMouseUp,L.off),onMouseEnter:a(e.onMouseEnter,N.on),onMouseLeave:a(e.onMouseLeave,N.off)})},[P,I,x,w,V,C,k,L.on,L.off,N.on,N.off]),U=null!=g?g:{},H=U.onFocus,q=U.onBlur,Y=je.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=x&&!n;return Zy({},e,{id:b,ref:t,type:"radio",name:u,value:d,onChange:a(e.onChange,F),onBlur:a(q,e.onBlur,R.off),onFocus:a(H,e.onFocus,R.on),onKeyDown:a(e.onKeyDown,z),onKeyUp:a(e.onKeyUp,W),checked:V,disabled:r,readOnly:k,required:E,"aria-invalid":O(w),"aria-disabled":O(r),"aria-required":O(E),"data-readonly":_(k),"aria-describedby":m,style:mf})},[x,n,b,u,d,F,q,R,H,z,W,V,k,E,w,m]);return{state:{isInvalid:w,isFocused:C,isChecked:V,isActive:P,isHovered:I,isDisabled:x,isReadOnly:k,isRequired:E},getCheckboxProps:$,getInputProps:Y,getLabelProps:function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Zy({},e,{ref:t,onMouseDown:a(e.onMouseDown,nb),onTouchStart:a(e.onTouchStart,nb),"data-disabled":_(x),"data-checked":_(V),"data-invalid":_(w)})},getRootProps:function(e,t){return void 0===t&&(t=null),Zy({},e,{ref:t,"data-disabled":_(x),"data-checked":_(V),"data-invalid":_(w)})},htmlProps:h}}(Zy({},g,{isChecked:y,isFocusable:h,isDisabled:f,onChange:b,name:null!=(r=null==e?void 0:e.name)?r:null==n?void 0:n.name})),k=x.getInputProps,E=x.getCheckboxProps,w=x.getLabelProps,S=x.getRootProps,C=U(x.htmlProps,Yo),T=C[0],I=E(C[1]),N=k(v,t),A=w(),P=Object.assign({},T,S()),L=Zy({display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative"},s.container),M=Zy({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},s.control),j=Zy({userSelect:"none",marginStart:u},s.label);/*#__PURE__*/
|
87
|
+
return je.createElement(ha.label,Zy({className:"chakra-radio"},P,{__css:L}),/*#__PURE__*/je.createElement("input",Zy({className:"chakra-radio__input"},N)),/*#__PURE__*/je.createElement(ha.span,Zy({className:"chakra-radio__control"},I,{__css:M})),d&&/*#__PURE__*/je.createElement(ha.span,Zy({className:"chakra-radio__label"},A,{__css:j}),d))});function ib(){return ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ib.apply(this,arguments)}function sb(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}d&&(ab.displayName="Radio");var lb=["children","placeholder","className"],cb=["rootProps","placeholder","icon","color","height","h","minH","minHeight","iconColor","iconSize"],ub=["children"],db=/*#__PURE__*/ca(function(e,t){var r=e.children,n=e.placeholder,o=e.className,a=sb(e,lb);/*#__PURE__*/
|
88
|
+
return je.createElement(ha.select,ib({},a,{ref:t,className:S("chakra-select",o)}),n&&/*#__PURE__*/je.createElement("option",{value:""},n),r)});d&&(db.displayName="SelectField");var pb=/*#__PURE__*/ca(function(e,t){var r=fa("Select",e),n=ta(e),o=n.rootProps,a=n.placeholder,i=n.icon,s=n.color,l=n.height,c=n.h,u=n.minH,d=n.minHeight,p=n.iconColor,m=n.iconSize,h=sb(n,cb),v=U(h,Yo),g=v[0],y=Xf(v[1]),b={width:"100%",height:"fit-content",position:"relative",color:s},x=f({paddingEnd:"2rem"},r.field,{_focus:{zIndex:"unset"}});/*#__PURE__*/
|
89
|
+
return je.createElement(ha.div,ib({className:"chakra-select__wrapper",__css:b},g,o),/*#__PURE__*/je.createElement(db,ib({ref:t,height:null!=c?c:l,minH:null!=u?u:d,placeholder:a},y,{__css:x}),e.children),/*#__PURE__*/je.createElement(hb,ib({"data-disabled":_(y.disabled)},(p||s)&&{color:p||s},{__css:r.icon},m&&{fontSize:m}),i))});d&&(pb.displayName="Select");var fb=function(e){/*#__PURE__*/
|
90
|
+
return je.createElement("svg",ib({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"}))},mb=ha("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),hb=function(e){var t=e.children,r=void 0===t?/*#__PURE__*/je.createElement(fb,null):t,n=sb(e,ub),o=/*#__PURE__*/je.cloneElement(r,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});/*#__PURE__*/
|
91
|
+
return je.createElement(mb,ib({},n,{className:"chakra-select__icon-wrapper"}),/*#__PURE__*/je.isValidElement(r)?o:null)};function vb(){return vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vb.apply(this,arguments)}d&&(hb.displayName="SelectIcon");var gb=["spacing","children"],yb=/*#__PURE__*/ca(function(e,t){var r=fa("Switch",e),n=ta(e),o=n.spacing,a=void 0===o?"0.5rem":o,i=n.children,s=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(n,gb),l=Om(s),c=l.state,u=l.getInputProps,d=l.getCheckboxProps,p=l.getRootProps,f=l.getLabelProps,m=je.useMemo(function(){return vb({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0},r.container)},[r.container]),h=je.useMemo(function(){return vb({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer"},r.track)},[r.track]),v=je.useMemo(function(){return vb({userSelect:"none",marginStart:a},r.label)},[a,r.label]);/*#__PURE__*/
|
92
|
+
return je.createElement(ha.label,vb({},p(),{className:S("chakra-switch",e.className),__css:m}),/*#__PURE__*/je.createElement("input",vb({className:"chakra-switch__input"},u({},t))),/*#__PURE__*/je.createElement(ha.span,vb({},d(),{className:"chakra-switch__track",__css:h}),/*#__PURE__*/je.createElement(ha.span,{__css:r.thumb,className:"chakra-switch__thumb","data-checked":_(c.isChecked),"data-hover":_(c.isHovered)})),i&&/*#__PURE__*/je.createElement(ha.span,vb({className:"chakra-switch__label"},f(),{__css:v}),i))});function bb(){return bb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bb.apply(this,arguments)}d&&(yb.displayName="Switch");var xb=["className","rows"],kb=["h","minH","height","minHeight"],Eb=/*#__PURE__*/ca(function(e,t){var r=pa("Textarea",e),n=ta(e),o=n.className,a=n.rows,i=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(n,xb),s=Xf(i),l=a?k(r,kb):r;/*#__PURE__*/
|
93
|
+
return je.createElement(ha.textarea,bb({ref:t,rows:a},s,{className:S("chakra-textarea",o),__css:l}))});function wb(){return wb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wb.apply(this,arguments)}d&&(Eb.displayName="Textarea");const Sb=["hideStepper","incrementIcon","decrementIcon"],Cb=ca((e,t)=>{const{hideStepper:r,incrementIcon:n,decrementIcon:o}=e,a=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(e,Sb);return je.createElement(_y,wb({},a,{ref:t}),/*#__PURE__*/je.createElement(Ry,null),!r&&/*#__PURE__*/je.createElement(Oy,null,/*#__PURE__*/je.createElement(Ny,{children:n}),/*#__PURE__*/je.createElement(Iy,{children:o})))});Cb.defaultProps={hideStepper:!1},d&&(Cb.displayName="NumberInput");var _b=/*#__PURE__*/je.createContext({});function Ob(){return Ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ob.apply(this,arguments)}d&&(_b.displayName="ColorModeContext");var Rb,Tb,Ib=function(e){return m(e)?e.replace(/!(important)?$/,"").trim():e};function Nb(e){var t=e.scale,r=e.transform,n=e.compose;return function(e,o){var a,i=function(e,t){return function(r){var n=String(t),o=function(e){return/!(important)?$/.test(e)}(n),a=Ib(n),i=e?e+"."+a:a,s=h(r.__cssMap)&&i in r.__cssMap?r.__cssMap[i].varRef:t;return s=Ib(s),o?s+" !important":s}}(t,e)(o),s=null!=(a=null==r?void 0:r(i,o))?a:i;return n&&(s=n(s,o)),s}}function Ab(e,t){return function(r){var n={property:r,scale:e};return n.transform=Nb({scale:e,transform:t}),n}}var Pb=["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))"],Lb={"--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(" ")},Mb={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,/*!*/ /*!*/)"},jb={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Bb=((Rb={})["& > :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))"},Rb),Db=((Tb={})["& > :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))"},Tb);function Vb(e,t){return Vb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vb(e,t)}function Fb(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&&Vb(e,t)}function zb(){zb=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,n,o){var a=new RegExp(e,n);return t.set(a,o||t.get(e)),Vb(a,r.prototype)}function n(e,r){var n=t.get(r);return Object.keys(n).reduce(function(t,r){return t[r]=e[n[r]],t},Object.create(null))}return Fb(r,RegExp),r.prototype.exec=function(t){var r=e.exec.call(this,t);return r&&(r.groups=n(r,this)),r},r.prototype[Symbol.replace]=function(r,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,r,o.replace(/\$<([^>]+)>/g,function(e,t){return"$"+a[t]}))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,r,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(n(e,i)),o.apply(this,e)})}return e[Symbol.replace].call(this,r,o)},zb.apply(this,arguments)}var Wb={"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"},$b=new Set(Object.values(Wb)),Ub=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Hb=function(e){return e.trim()},qb=function(e){return m(e)&&e.includes("(")&&e.includes(")")},Yb=function(e){return function(t){return e+"("+t+")"}},Gb={filter:function(e){return"auto"!==e?e:Lb},backdropFilter:function(e){return"auto"!==e?e:Mb},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(", ")}}(Gb.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(Pb).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(Pb).join(" "):e},px:function(e){if(null==e)return e;var t=function(e){var t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return t.unitless||v(e)?e+"px":e},fraction:function(e){return!v(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if(g(e)||null==e)return e;var t=m(e)&&!e.endsWith("deg");return v(e)||t?e+"deg":e},gradient:function(e,t){return function(e,t){var r,n;if(null==e||Ub.has(e))return e;var o=null!=(r=null==(n=/*#__PURE__*/zb(/(^[a-z-A-Z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:n.groups)?r:{},a=o.type,i=o.values;if(!a||!i)return e;var s=a.includes("-gradient")?a:a+"-gradient",l=i.split(",").map(Hb).filter(Boolean),c=l[0],u=l.slice(1);if(0===(null==u?void 0:u.length))return e;u.unshift(c in Wb?Wb[c]:c);var d=u.map(function(e){if($b.has(e))return e;var r=e.indexOf(" "),n=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],o=n[0],a=n[1],i=qb(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:Yb("blur"),opacity:Yb("opacity"),brightness:Yb("brightness"),contrast:Yb("contrast"),dropShadow:Yb("drop-shadow"),grayscale:Yb("grayscale"),hueRotate:Yb("hue-rotate"),invert:Yb("invert"),saturate:Yb("saturate"),sepia:Yb("sepia"),bgImage:function(e){return null==e||qb(e)||Ub.has(e)?e:"url("+e+")"},outline:function(e){var t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var t,r=null!=(t=jb[e])?t:{},n=r.space,o=r.divide,a={flexDirection:e};return n&&(a[n]=1),o&&(a[o]=1),a}},Zb={borderWidths:Ab("borderWidths"),borderStyles:Ab("borderStyles"),colors:Ab("colors"),borders:Ab("borders"),radii:Ab("radii",Gb.px),space:Ab("space",Gb.px),spaceT:Ab("space",Gb.px),degreeT:function(e){return{property:e,transform:Gb.degree}},prop:function(e,t,r){return Ob({property:e,scale:t},t&&{transform:Nb({scale:t,transform:r})})},propT:function(e,t){return{property:e,transform:t}},sizes:Ab("sizes",Gb.px),sizesT:Ab("sizes",Gb.fraction),shadows:Ab("shadows"),logical:function(e){var t,r,n,o=e.scale,a=e.transform;return{scale:o,property:(t=e.property,r=t.rtl,n=t.ltr,function(e){return"rtl"===e.direction?r:n}),transform:o?Nb({scale:o,compose:a}):a}},blur:Ab("blur",Gb.blur)},Xb={background:Zb.colors("background"),backgroundColor:Zb.colors("backgroundColor"),backgroundImage:Zb.propT("backgroundImage",Gb.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Gb.bgClip},bgSize:Zb.prop("backgroundSize"),bgPosition:Zb.prop("backgroundPosition"),bg:Zb.colors("background"),bgColor:Zb.colors("backgroundColor"),bgPos:Zb.prop("backgroundPosition"),bgRepeat:Zb.prop("backgroundRepeat"),bgAttachment:Zb.prop("backgroundAttachment"),bgGradient:Zb.propT("backgroundImage",Gb.gradient),bgClip:{transform:Gb.bgClip}};Object.assign(Xb,{bgImage:Xb.backgroundImage,bgImg:Xb.backgroundImage});var Kb={border:Zb.borders("border"),borderWidth:Zb.borderWidths("borderWidth"),borderStyle:Zb.borderStyles("borderStyle"),borderColor:Zb.colors("borderColor"),borderRadius:Zb.radii("borderRadius"),borderTop:Zb.borders("borderTop"),borderBlockStart:Zb.borders("borderBlockStart"),borderTopLeftRadius:Zb.radii("borderTopLeftRadius"),borderStartStartRadius:Zb.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Zb.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Zb.radii("borderTopRightRadius"),borderStartEndRadius:Zb.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Zb.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Zb.borders("borderRight"),borderInlineEnd:Zb.borders("borderInlineEnd"),borderBottom:Zb.borders("borderBottom"),borderBlockEnd:Zb.borders("borderBlockEnd"),borderBottomLeftRadius:Zb.radii("borderBottomLeftRadius"),borderBottomRightRadius:Zb.radii("borderBottomRightRadius"),borderLeft:Zb.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Zb.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Zb.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Zb.borders(["borderLeft","borderRight"]),borderInline:Zb.borders("borderInline"),borderY:Zb.borders(["borderTop","borderBottom"]),borderBlock:Zb.borders("borderBlock"),borderTopWidth:Zb.borderWidths("borderTopWidth"),borderBlockStartWidth:Zb.borderWidths("borderBlockStartWidth"),borderTopColor:Zb.colors("borderTopColor"),borderBlockStartColor:Zb.colors("borderBlockStartColor"),borderTopStyle:Zb.borderStyles("borderTopStyle"),borderBlockStartStyle:Zb.borderStyles("borderBlockStartStyle"),borderBottomWidth:Zb.borderWidths("borderBottomWidth"),borderBlockEndWidth:Zb.borderWidths("borderBlockEndWidth"),borderBottomColor:Zb.colors("borderBottomColor"),borderBlockEndColor:Zb.colors("borderBlockEndColor"),borderBottomStyle:Zb.borderStyles("borderBottomStyle"),borderBlockEndStyle:Zb.borderStyles("borderBlockEndStyle"),borderLeftWidth:Zb.borderWidths("borderLeftWidth"),borderInlineStartWidth:Zb.borderWidths("borderInlineStartWidth"),borderLeftColor:Zb.colors("borderLeftColor"),borderInlineStartColor:Zb.colors("borderInlineStartColor"),borderLeftStyle:Zb.borderStyles("borderLeftStyle"),borderInlineStartStyle:Zb.borderStyles("borderInlineStartStyle"),borderRightWidth:Zb.borderWidths("borderRightWidth"),borderInlineEndWidth:Zb.borderWidths("borderInlineEndWidth"),borderRightColor:Zb.colors("borderRightColor"),borderInlineEndColor:Zb.colors("borderInlineEndColor"),borderRightStyle:Zb.borderStyles("borderRightStyle"),borderInlineEndStyle:Zb.borderStyles("borderInlineEndStyle"),borderTopRadius:Zb.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Zb.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Zb.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Zb.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Kb,{rounded:Kb.borderRadius,roundedTop:Kb.borderTopRadius,roundedTopLeft:Kb.borderTopLeftRadius,roundedTopRight:Kb.borderTopRightRadius,roundedTopStart:Kb.borderStartStartRadius,roundedTopEnd:Kb.borderStartEndRadius,roundedBottom:Kb.borderBottomRadius,roundedBottomLeft:Kb.borderBottomLeftRadius,roundedBottomRight:Kb.borderBottomRightRadius,roundedBottomStart:Kb.borderEndStartRadius,roundedBottomEnd:Kb.borderEndEndRadius,roundedLeft:Kb.borderLeftRadius,roundedRight:Kb.borderRightRadius,roundedStart:Kb.borderInlineStartRadius,roundedEnd:Kb.borderInlineEndRadius,borderStart:Kb.borderInlineStart,borderEnd:Kb.borderInlineEnd,borderTopStartRadius:Kb.borderStartStartRadius,borderTopEndRadius:Kb.borderStartEndRadius,borderBottomStartRadius:Kb.borderEndStartRadius,borderBottomEndRadius:Kb.borderEndEndRadius,borderStartRadius:Kb.borderInlineStartRadius,borderEndRadius:Kb.borderInlineEndRadius,borderStartWidth:Kb.borderInlineStartWidth,borderEndWidth:Kb.borderInlineEndWidth,borderStartColor:Kb.borderInlineStartColor,borderEndColor:Kb.borderInlineEndColor,borderStartStyle:Kb.borderInlineStartStyle,borderEndStyle:Kb.borderInlineEndStyle});var Jb={color:Zb.colors("color"),textColor:Zb.colors("color"),fill:Zb.colors("fill"),stroke:Zb.colors("stroke")},Qb={boxShadow:Zb.shadows("boxShadow"),mixBlendMode:!0,blendMode:Zb.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Zb.prop("backgroundBlendMode"),opacity:!0};Object.assign(Qb,{shadow:Qb.boxShadow});var ex={filter:{transform:Gb.filter},blur:Zb.blur("--chakra-blur"),brightness:Zb.propT("--chakra-brightness",Gb.brightness),contrast:Zb.propT("--chakra-contrast",Gb.contrast),hueRotate:Zb.degreeT("--chakra-hue-rotate"),invert:Zb.propT("--chakra-invert",Gb.invert),saturate:Zb.propT("--chakra-saturate",Gb.saturate),dropShadow:Zb.propT("--chakra-drop-shadow",Gb.dropShadow),backdropFilter:{transform:Gb.backdropFilter},backdropBlur:Zb.blur("--chakra-backdrop-blur"),backdropBrightness:Zb.propT("--chakra-backdrop-brightness",Gb.brightness),backdropContrast:Zb.propT("--chakra-backdrop-contrast",Gb.contrast),backdropHueRotate:Zb.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Zb.propT("--chakra-backdrop-invert",Gb.invert),backdropSaturate:Zb.propT("--chakra-backdrop-saturate",Gb.saturate)},tx={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Gb.flexDirection},experimental_spaceX:{static:Bb,transform:Nb({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:Db,transform:Nb({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Zb.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Zb.space("gap"),rowGap:Zb.space("rowGap"),columnGap:Zb.space("columnGap")};Object.assign(tx,{flexDir:tx.flexDirection});var rx={gridGap:Zb.space("gridGap"),gridColumnGap:Zb.space("gridColumnGap"),gridRowGap:Zb.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},nx={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Gb.outline},outlineOffset:!0,outlineColor:Zb.colors("outlineColor")},ox={width:Zb.sizesT("width"),inlineSize:Zb.sizesT("inlineSize"),height:Zb.sizes("height"),blockSize:Zb.sizes("blockSize"),boxSize:Zb.sizes(["width","height"]),minWidth:Zb.sizes("minWidth"),minInlineSize:Zb.sizes("minInlineSize"),minHeight:Zb.sizes("minHeight"),minBlockSize:Zb.sizes("minBlockSize"),maxWidth:Zb.sizes("maxWidth"),maxInlineSize:Zb.sizes("maxInlineSize"),maxHeight:Zb.sizes("maxHeight"),maxBlockSize:Zb.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Zb.propT("float",Gb.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(ox,{w:ox.width,h:ox.height,minW:ox.minWidth,maxW:ox.maxWidth,minH:ox.minHeight,maxH:ox.maxHeight,overscroll:ox.overscrollBehavior,overscrollX:ox.overscrollBehaviorX,overscrollY:ox.overscrollBehaviorY});var ax={listStyleType:!0,listStylePosition:!0,listStylePos:Zb.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Zb.prop("listStyleImage")},ix={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},sx={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},lx=function(e,t,r){var n={},o=y(e,t,{});for(var a in o)a in r&&null!=r[a]||(n[a]=o[a]);return n},cx={srOnly:{transform:function(e){return!0===e?ix:"focusable"===e?sx:{}}},layerStyle:{processResult:!0,transform:function(e,t,r){return lx(t,"layerStyles."+e,r)}},textStyle:{processResult:!0,transform:function(e,t,r){return lx(t,"textStyles."+e,r)}},apply:{processResult:!0,transform:function(e,t,r){return lx(t,e,r)}}},ux={position:!0,pos:Zb.prop("position"),zIndex:Zb.prop("zIndex","zIndices"),inset:Zb.spaceT("inset"),insetX:Zb.spaceT(["left","right"]),insetInline:Zb.spaceT("insetInline"),insetY:Zb.spaceT(["top","bottom"]),insetBlock:Zb.spaceT("insetBlock"),top:Zb.spaceT("top"),insetBlockStart:Zb.spaceT("insetBlockStart"),bottom:Zb.spaceT("bottom"),insetBlockEnd:Zb.spaceT("insetBlockEnd"),left:Zb.spaceT("left"),insetInlineStart:Zb.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Zb.spaceT("right"),insetInlineEnd:Zb.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(ux,{insetStart:ux.insetInlineStart,insetEnd:ux.insetInlineEnd});var dx={ring:{transform:Gb.ring},ringColor:Zb.colors("--chakra-ring-color"),ringOffset:Zb.prop("--chakra-ring-offset-width"),ringOffsetColor:Zb.colors("--chakra-ring-offset-color"),ringInset:Zb.prop("--chakra-ring-inset")},px={margin:Zb.spaceT("margin"),marginTop:Zb.spaceT("marginTop"),marginBlockStart:Zb.spaceT("marginBlockStart"),marginRight:Zb.spaceT("marginRight"),marginInlineEnd:Zb.spaceT("marginInlineEnd"),marginBottom:Zb.spaceT("marginBottom"),marginBlockEnd:Zb.spaceT("marginBlockEnd"),marginLeft:Zb.spaceT("marginLeft"),marginInlineStart:Zb.spaceT("marginInlineStart"),marginX:Zb.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Zb.spaceT("marginInline"),marginY:Zb.spaceT(["marginTop","marginBottom"]),marginBlock:Zb.spaceT("marginBlock"),padding:Zb.space("padding"),paddingTop:Zb.space("paddingTop"),paddingBlockStart:Zb.space("paddingBlockStart"),paddingRight:Zb.space("paddingRight"),paddingBottom:Zb.space("paddingBottom"),paddingBlockEnd:Zb.space("paddingBlockEnd"),paddingLeft:Zb.space("paddingLeft"),paddingInlineStart:Zb.space("paddingInlineStart"),paddingInlineEnd:Zb.space("paddingInlineEnd"),paddingX:Zb.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Zb.space("paddingInline"),paddingY:Zb.space(["paddingTop","paddingBottom"]),paddingBlock:Zb.space("paddingBlock")};Object.assign(px,{m:px.margin,mt:px.marginTop,mr:px.marginRight,me:px.marginInlineEnd,marginEnd:px.marginInlineEnd,mb:px.marginBottom,ml:px.marginLeft,ms:px.marginInlineStart,marginStart:px.marginInlineStart,mx:px.marginX,my:px.marginY,p:px.padding,pt:px.paddingTop,py:px.paddingY,px:px.paddingX,pb:px.paddingBottom,pl:px.paddingLeft,ps:px.paddingInlineStart,paddingStart:px.paddingInlineStart,pr:px.paddingRight,pe:px.paddingInlineEnd,paddingEnd:px.paddingInlineEnd});var fx={textDecorationColor:Zb.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Zb.shadows("textShadow")},mx={clipPath:!0,transform:Zb.propT("transform",Gb.transform),transformOrigin:!0,translateX:Zb.spaceT("--chakra-translate-x"),translateY:Zb.spaceT("--chakra-translate-y"),skewX:Zb.degreeT("--chakra-skew-x"),skewY:Zb.degreeT("--chakra-skew-y"),scaleX:Zb.prop("--chakra-scale-x"),scaleY:Zb.prop("--chakra-scale-y"),scale:Zb.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Zb.degreeT("--chakra-rotate")},hx={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Zb.prop("transitionDuration","transition.duration"),transitionProperty:Zb.prop("transitionProperty","transition.property"),transitionTimingFunction:Zb.prop("transitionTimingFunction","transition.easing")},vx={fontFamily:Zb.prop("fontFamily","fonts"),fontSize:Zb.prop("fontSize","fontSizes",Gb.px),fontWeight:Zb.prop("fontWeight","fontWeights"),lineHeight:Zb.prop("lineHeight","lineHeights"),letterSpacing:Zb.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"}},gx={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Zb.spaceT("scrollMargin"),scrollMarginTop:Zb.spaceT("scrollMarginTop"),scrollMarginBottom:Zb.spaceT("scrollMarginBottom"),scrollMarginLeft:Zb.spaceT("scrollMarginLeft"),scrollMarginRight:Zb.spaceT("scrollMarginRight"),scrollMarginX:Zb.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Zb.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Zb.spaceT("scrollPadding"),scrollPaddingTop:Zb.spaceT("scrollPaddingTop"),scrollPaddingBottom:Zb.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Zb.spaceT("scrollPaddingLeft"),scrollPaddingRight:Zb.spaceT("scrollPaddingRight"),scrollPaddingX:Zb.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Zb.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function yx(e){return h(e)&&e.reference?e.reference:String(e)}var bx=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.map(yx).join(" "+e+" ").replace(/calc/g,"")},xx=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+bx.apply(void 0,["+"].concat(t))+")"},kx=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+bx.apply(void 0,["-"].concat(t))+")"},Ex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+bx.apply(void 0,["*"].concat(t))+")"},wx=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+bx.apply(void 0,["/"].concat(t))+")"},Sx=function(e){var t=yx(e);return null==t||Number.isNaN(parseFloat(t))?Ex(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},Cx=Object.assign(function(e){return{add:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Cx(xx.apply(void 0,[e].concat(r)))},subtract:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Cx(kx.apply(void 0,[e].concat(r)))},multiply:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Cx(Ex.apply(void 0,[e].concat(r)))},divide:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Cx(wx.apply(void 0,[e].concat(r)))},negate:function(){return Cx(Sx(e))},toString:function(){return e.toString()}}},{add:xx,subtract:kx,multiply:Ex,divide:wx,negate:Sx}),_x=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},Ox=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},Rx=function(e,t){return e+":focus-visible "+t},Tx=function(e,t){return e+":focus-within "+t},Ix=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},Nx=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},Ax=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},Px=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},Lx=function(e){return jx(function(t){return e(t,"&")},"[role=group]","[data-group]",".group")},Mx=function(e){return jx(function(t){return e(t,"~ &")},"[data-peer]",".peer")},jx=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.map(e).join(", ")},Bx={_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:Lx(_x),_peerHover:Mx(_x),_groupFocus:Lx(Ox),_peerFocus:Mx(Ox),_groupFocusVisible:Lx(Rx),_peerFocusVisible:Mx(Rx),_groupActive:Lx(Ix),_peerActive:Mx(Ix),_groupDisabled:Lx(Nx),_peerDisabled:Mx(Nx),_groupInvalid:Lx(Ax),_peerInvalid:Mx(Ax),_groupChecked:Lx(Px),_peerChecked:Mx(Px),_groupFocusWithin:Lx(Tx),_peerFocusWithin:Mx(Tx),_peerPlaceholderShown:Mx(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]"},Dx=p(Bx);function Vx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Fx(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Vx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vx(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var zx=f({},Xb,Kb,Jb,tx,ox,ex,dx,nx,rx,cx,ux,Qb,px,gx,vx,fx,mx,ax,hx);p(Object.assign({},px,ox,tx,rx,ux));var Wx=[].concat(p(zx),Dx),$x=Ob({},zx,Bx),Ux=function(e){return e in $x},Hx=function(e,t){return e.startsWith("--")&&m(t)&&!g(t)},qx=function(e,t){var r,n;if(null==t)return t;var o=function(t){var r,n;return null==(r=e.__cssMap)||null==(n=r[t])?void 0:n.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!=(r=null!=(n=o(i[0]))?n:a(s))?r:a(t)};function Yx(){return Yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yx.apply(this,arguments)}function Gx(e){return k(e,["styleConfig","size","variant","colorScheme"])}function Zx(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}Jr({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var Xx=new Set([].concat(Wx,["textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),Kx=new Set(["htmlWidth","htmlHeight","htmlSize"]),Jx=function(e){return Kx.has(e)||!Xx.has(e)},Qx=["theme","css","__css","sx"],ek=["baseStyle"];function tk(e,t){var r=null!=t?t:{},n=r.baseStyle,a=Zx(r,ek);a.shouldForwardProp||(a.shouldForwardProp=Jx);var i=function(e){var t=e.baseStyle;return function(e){var r,n=e.css,a=e.__css,i=e.sx,s=Zx(e,Qx),l=E(s,function(e,t){return Ux(t)}),c=o(t,e),u=Object.assign({},a,c,w(l),i),d=(r=u,function(e){return function(e){var t=e.configs,r=void 0===t?{}:t,n=e.pseudos,a=void 0===n?{}:n,i=e.theme;return function e(t,n){void 0===n&&(n=!1);var s=o(t,i),l=function(e){return function(t){if(!t.__breakpoints)return e;var r=t.__breakpoints,n=r.isResponsive,a=r.toArrayValue,i=r.media,s={};for(var l in e){var c=o(e[l],t);if(null!=c)if(c=h(c)&&n(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,m,v,g,y=o(l[u],i);u in a&&(u=a[u]),Hx(u,y)&&(y=qx(i,y));var b=r[u];if(!0===b&&(b={property:u}),h(y)){var x;c[u]=null!=(x=c[u])?x:{},c[u]=f({},c[u],e(y,!0))}else{var k=null!=(d=null==(p=b)||null==p.transform?void 0:p.transform(y,i,s))?d:y;k=null!=(m=b)&&m.processResult?e(k,!0):k;var E=o(null==(v=b)?void 0:v.property,i);if(!n&&null!=(g=b)&&g.static){var w=o(b.static,i);c=f({},c,w)}if(E&&Array.isArray(E))for(var S,C=Fx(E);!(S=C()).done;)c[S.value]=k;else E?"&"===E&&h(k)?c=f({},c,k):c[E]=k:h(k)?c=f({},c,k):c[u]=k}}return c}}({theme:e,pseudos:Bx,configs:zx})(r)})(e.theme);return n?[d,n]:d}}({baseStyle:n});return Tn(e,a)(i)}function rk(e){/*#__PURE__*/
|
94
|
+
return je.forwardRef(e)}var nk=["styleConfig"];function ok(e,t){var r;void 0===t&&(t={});var n,a=t.styleConfig,i=Zx(t,nk),s=Yx({},function(){var e=je.useContext(_b);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}(),{theme:function(){var e=je.useContext(Lr);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}()}),l=s.theme,c=s.colorMode,u=y(l,"components."+e),d=a||u,p=f({theme:l,colorMode:c},null!=(r=null==d?void 0:d.defaultProps)?r:{},w(k(i,["children"]))),m=je.useRef({});if(d){var v=(n=d,function(e){var t,r=e.variant,a=e.size,i=function(e){var t=e.__breakpoints;return function(e,r,n,a){if(t){var i={},s=function(e,t){return b(e)?e:h(e)?t(e):null!=e?[e]:void 0}(n,t.toArrayValue);if(!s)return i;for(var l=s.length,c=1===l,u=!!e.parts,d=function(n){var l,d,p=t.details[n],m=t.details[function(e,t){for(var r=t+1;r<e.length;r++)if(null!=e[r])return r;return-1}(s,n)],h=x(p.minW,null==m?void 0:m._minW),v=o(null==(l=e[r])?void 0:l[s[n]],a);return v?u?(null==(d=e.parts)||d.forEach(function(e){var t,r;f(i,((r={})[e]=c?v[e]:((t={})[h]=v[e],t),r))}),"continue"):u?void(i[h]=v):(c?f(i,v):i[h]=v,"continue"):"continue"},p=0;p<l;p++)d(p);return i}}}(e.theme);return f({},o(null!=(t=n.baseStyle)?t:{},e),i(n,"sizes",a,e),i(n,"variants",r,e))}),g=v(p);xn(m.current,g)||(m.current=g)}return m.current}function ak(e,t){return void 0===t&&(t={}),ok(e,t)}var ik=function(){var e=new Map;return new Proxy(tk,{apply:function(e,t,r){return tk.apply(void 0,r)},get:function(t,r){return e.has(r)||e.set(r,tk(r)),e.get(r)}})}();function sk(){return sk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sk.apply(this,arguments)}var lk=["as","viewBox","color","focusable","children","className","__css"],ck={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"},uk=/*#__PURE__*/rk(function(e,t){var r=e.as,n=e.viewBox,o=e.color,a=void 0===o?"currentColor":o,i=e.focusable,s=void 0!==i&&i,l=e.children,c=e.className,u=e.__css,d=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(e,lk),p={ref:t,focusable:s,className:S("chakra-icon",c),__css:sk({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a},u)},f=null!=n?n:ck.viewBox;if(r&&"string"!=typeof r)/*#__PURE__*/
|
95
|
+
return je.createElement(ik.svg,sk({as:r},p,d));var m=null!=l?l:ck.path;/*#__PURE__*/
|
96
|
+
return je.createElement(ik.svg,sk({verticalAlign:"middle",viewBox:f},p,d),m)});function dk(e){var t=e.viewBox,r=void 0===t?"0 0 24 24":t,n=e.d,o=e.displayName,a=e.defaultProps,i=void 0===a?{}:a,s=je.Children.toArray(e.path),l=/*#__PURE__*/rk(function(e,t){/*#__PURE__*/
|
97
|
+
return je.createElement(uk,sk({ref:t,viewBox:r},i,e),s.length?s:/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:n}))});return d&&(l.displayName=o),l}d&&(uk.displayName="Icon"),dk({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"}),dk({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"}),dk({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"}),dk({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"}),dk({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 pk=dk({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"});dk({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"})}),dk({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"}),dk({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"}),dk({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"}),dk({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 fk=dk({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"}))}),mk=dk({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"}))});dk({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"}),dk({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"}))}),dk({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"}))}),dk({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"}))}),dk({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"}))}),dk({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),dk({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var hk=dk({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});dk({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),dk({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),dk({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),dk({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),dk({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"}),dk({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),dk({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"}))}),dk({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"}))}),dk({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"}))}),dk({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"}),dk({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"}),dk({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"}))}),dk({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"}))}),dk({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"}))}),dk({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"}),dk({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"}),dk({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"}),dk({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"}),dk({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"}))}),dk({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"}),dk({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"}),dk({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"})))}),dk({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"}),dk({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"})}),dk({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"}),dk({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"}),dk({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"}),dk({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"}))}),dk({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"}),dk({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"}),dk({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"}),dk({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"}))}),dk({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"}),dk({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 vk=dk({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"}))}),gk=dk({displayName:"MinusIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});dk({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});var yk={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},bk=ik("span",{baseStyle:yk});d&&(bk.displayName="VisuallyHidden");var xk=ik("input",{baseStyle:yk});function kk(){return kk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kk.apply(this,arguments)}d&&(xk.displayName="VisuallyHiddenInput");var Ek=["label","thickness","speed","emptyColor","className"],wk=$r({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Sk=/*#__PURE__*/rk(function(e,t){var r=ak("Spinner",e),n=Gx(e),o=n.label,a=void 0===o?"Loading...":o,i=n.thickness,s=void 0===i?"2px":i,l=n.speed,c=void 0===l?"0.45s":l,u=n.emptyColor,d=void 0===u?"transparent":u,p=n.className,f=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(n,Ek),m=S("chakra-spinner",p),h=kk({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:s,borderBottomColor:d,borderLeftColor:d,animation:wk+" "+c+" linear infinite"},r);/*#__PURE__*/
|
98
|
+
return je.createElement(ik.div,kk({ref:t,__css:h,className:m},f),a&&/*#__PURE__*/je.createElement(bk,null,a))});function Ck(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}function _k(){return _k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_k.apply(this,arguments)}d&&(Sk.displayName="Spinner");var Ok=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],Rk=Jr({strict:!1,name:"ButtonGroupContext"}),Tk=Rk[0],Ik=Rk[1];d&&(/*#__PURE__*/rk(function(e,t){var r=e.size,n=e.colorScheme,o=e.variant,a=e.className,i=e.spacing,s=void 0===i?"0.5rem":i,l=e.isAttached,c=e.isDisabled,u=Ck(e,Ok),d=S("chakra-button__group",a),p=je.useMemo(function(){return{size:r,colorScheme:n,variant:o,isDisabled:c}},[r,n,o,c]),f={display:"inline-flex"};return f=_k({},f,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(Tk,{value:p},/*#__PURE__*/je.createElement(ik.div,_k({ref:t,role:"group",__css:f,className:d,"data-attached":l?"":void 0},u)))}).displayName="ButtonGroup");var Nk=["label","placement","spacing","children","className","__css"],Ak=function(e){var t=e.label,r=e.placement,n=e.spacing,o=void 0===n?"0.5rem":n,a=e.children,i=void 0===a?/*#__PURE__*/je.createElement(Sk,{color:"currentColor",width:"1em",height:"1em"}):a,s=e.className,l=e.__css,c=Ck(e,Nk),u=S("chakra-button__spinner",s),d="start"===r?"marginEnd":"marginStart",p=je.useMemo(function(){var e;return _k(((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__*/
|
99
|
+
return je.createElement(ik.div,_k({className:u},c,{__css:p}),i)};d&&(Ak.displayName="ButtonSpinner");var Pk=["children","className"],Lk=function(e){var t=e.children,r=e.className,n=Ck(e,Pk),o=/*#__PURE__*/je.isValidElement(t)?/*#__PURE__*/je.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=S("chakra-button__icon",r);/*#__PURE__*/
|
100
|
+
return je.createElement(ik.span,_k({display:"inline-flex",alignSelf:"center",flexShrink:0},n,{className:a}),o)};d&&(Lk.displayName="ButtonIcon");var Mk=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],jk=/*#__PURE__*/rk(function(e,t){var r,n,o,a,i=Ik(),s=ak("Button",_k({},i,e)),l=Gx(e),c=l.isDisabled,u=void 0===c?null==i?void 0:i.isDisabled:c,d=l.isLoading,p=l.isActive,m=l.children,h=l.leftIcon,v=l.rightIcon,g=l.loadingText,y=l.iconSpacing,b=void 0===y?"0.5rem":y,x=l.type,k=l.spinner,E=l.spinnerPlacement,w=void 0===E?"start":E,C=l.className,O=l.as,R=Ck(l,Mk),T=je.useMemo(function(){var e,t=f({},null!=(e=null==s?void 0:s._focus)?e:{},{zIndex:1});return _k({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]),I=(n=(r=je.useState(!O))[0],o=r[1],a=je.useCallback(function(e){e&&o("BUTTON"===e.tagName)},[]),{ref:a,type:n?"button":void 0}),N=I.type,A={rightIcon:v,leftIcon:h,iconSpacing:b,children:m};/*#__PURE__*/
|
101
|
+
return je.createElement(ik.button,_k({disabled:u||d,ref:pn(t,I.ref),as:O,type:null!=x?x:N,"data-active":_(p),"data-loading":_(d),__css:T,className:S("chakra-button",C)},R),d&&"start"===w&&/*#__PURE__*/je.createElement(Ak,{className:"chakra-button__spinner--start",label:g,placement:"start",spacing:b},k),d?g||/*#__PURE__*/je.createElement(ik.span,{opacity:0},/*#__PURE__*/je.createElement(Bk,A)):/*#__PURE__*/je.createElement(Bk,A),d&&"end"===w&&/*#__PURE__*/je.createElement(Ak,{className:"chakra-button__spinner--end",label:g,placement:"end",spacing:b},k))});function Bk(e){var t=e.leftIcon,r=e.rightIcon,n=e.children,o=e.iconSpacing;/*#__PURE__*/
|
102
|
+
return je.createElement(je.Fragment,null,t&&/*#__PURE__*/je.createElement(Lk,{marginEnd:o},t),n,r&&/*#__PURE__*/je.createElement(Lk,{marginStart:o},r))}d&&(jk.displayName="Button");var Dk=["icon","children","isRound","aria-label"],Vk=/*#__PURE__*/rk(function(e,t){var r=e.icon,n=e.children,o=e.isRound,a=e["aria-label"],i=Ck(e,Dk),s=r||n,l=/*#__PURE__*/je.isValidElement(s)?/*#__PURE__*/je.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;/*#__PURE__*/
|
103
|
+
return je.createElement(jk,_k({padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a},i),l)});function Fk(){return Fk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fk.apply(this,arguments)}d&&(Vk.displayName="IconButton");const zk=["label","children"],Wk=rk((e,t)=>{let{label:r,children:n}=e,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(e,zk);return je.createElement(jk,Fk({ref:t},o),n||r)});function $k(){return $k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$k.apply(this,arguments)}d&&(Wk.displayName="Button");const Uk=ca((e,t)=>/*#__PURE__*/je.createElement(oh,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/je.createElement(Wk,$k({ref:t,height:"auto"},e))));function Hk(){return Hk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hk.apply(this,arguments)}Uk.id="InputRightElement",d&&(Uk.displayName="InputRightButton");const qk=["viewIcon","viewOffIcon","autoComplete"],Yk=ca((e,t)=>{let{viewIcon:r,viewOffIcon:n,autoComplete:o}=e,a=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(e,qk);const[i,s]=je.useState(!1),l=i?"Hide password":"Show password";let c;return c=i?r||/*#__PURE__*/je.createElement(fk,null):n||/*#__PURE__*/je.createElement(mk,null),/*#__PURE__*/je.createElement(Hm,null,/*#__PURE__*/je.createElement(Fm,Hk({},a,{ref:t,type:i?"text":"password",autoComplete:i?"off":o})),/*#__PURE__*/je.createElement(Uk,{onClick:()=>s(!i),"aria-label":l,variant:"ghost"},c))});function Gk(){return Gk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gk.apply(this,arguments)}function Zk(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}d&&(Yk.displayName="PasswordInput");const Xk=["options","spacing","direction"],Kk=["onBlur","onChange"],Jk=["value","label"],Qk=ca((e,t)=>{let{options:r,spacing:n,direction:o}=e,a=Zk(e,Xk);const{onBlur:i,onChange:s}=a,l=Zk(a,Kk);return je.createElement(tb,Gk({onChange:s},l),/*#__PURE__*/je.createElement(Vh,{spacing:n,direction:o},r.map((e,r)=>{let{value:n,label:o}=e,a=Zk(e,Jk);return je.createElement(ab,Gk({key:r,onBlur:i,value:n,ref:t},a),o||n)})))});function eE(){return eE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eE.apply(this,arguments)}function tE(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}d&&(Qk.displayName="RadioInput");const rE=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],nE=["value","label"],oE=ca((e,t)=>{const r=fa("Input",e),n=eE({fontWeight:"normal",textAlign:"left",color:"inherit",_active:{bg:"transparent"},minH:r.field.h||r.field.height},r.field,{h:"auto"});return je.createElement(Qg,eE({as:Af},e,{ref:t,sx:n}))});d&&(oE.displayName="SelectButton");const aE=ca((e,t)=>{const{name:r,options:n,children:o,onChange:a,defaultValue:i,value:s,placeholder:l,isDisabled:c,leftIcon:u,rightIcon:d=/*#__PURE__*/je.createElement(hk,null),multiple:p,size:f,variant:m,menuListProps:h,renderValue:v=(e=>null==e?void 0:e.join(", "))}=e,g=ta(tE(e,rE)),[y,b]=je.useState(s||i),x=Xf({name:r}),k={isDisabled:c,leftIcon:u,rightIcon:d,size:f,variant:m},E=je.useCallback(e=>{if(!n)return e;for(const t of n)if(t.label&&t.value===e)return t.label;return e},[n]),w=y?(Array.isArray(y)?y:[y]).map(E):[];return je.createElement(Kg,eE({},g,{closeOnSelect:!p}),/*#__PURE__*/je.createElement(ha.div,{className:S("saas-select")},/*#__PURE__*/je.createElement(oE,eE({ref:t},k),v(w)||l),/*#__PURE__*/je.createElement(ry,eE({maxH:"60vh",overflowY:"auto"},h),/*#__PURE__*/je.createElement(iy,{defaultValue:i||s,onChange:e=>{b(e),null==a||a(e)},type:p?"checkbox":"radio"},n?n.map((e,t)=>{let{value:r,label:n}=e,o=tE(e,nE);return je.createElement(ay,eE({key:t,value:r},o),n||r)}):o)),/*#__PURE__*/je.createElement(ha.input,eE({},x,{name:r,type:"hidden",value:y,className:"saas-select__input"}))))});d&&(aE.displayName="Select");const iE=["options","children"],sE=ca((e,t)=>{let{options:r,children:n}=e,o=tE(e,iE);return je.createElement(pb,eE({ref:t},o),n||(null==r?void 0:r.map(({value:e,label:t})=>/*#__PURE__*/je.createElement("option",{key:e,value:e},t||e))))});function lE(){return lE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lE.apply(this,arguments)}function cE(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}d&&(sE.displayName="NativeSelect");const[uE,dE]=Jr({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"});function pE(e){const{step:t,onChange:r}=e,[n,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===n&&o(0)},[t]),je.useEffect(()=>{null==r||r(n)},[n,r]),{stepsRef:a,activeStep:a.current[n],activeIndex:n,isFirstStep:0===n,isLastStep:n===a.current.length-1,isCompleted:n>=a.current.length,setIndex:o,setStep:l,nextStep:()=>{o(n+1)},prevStep:()=>{o(n-1)},registerStep:s,unregisterStep:e=>{a.current=a.current.slice(a.current.indexOf(e),1)}}}const fE=["orientation","children"],mE=["children","orientation","step","onChange"],hE=["children","orientation","stepComponent"],vE=["children","isOpen"],gE=["icon","isActive","isCompleted","className"],yE=["name","title","icon","isActive","isCompleted"],bE=["isActive"],[xE,kE]=Jr({name:"StepperStylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<Stepper />" '}),EE=rk((e,t)=>{const{orientation:r,children:n}=e,o=cE(e,fE);return je.createElement(wE,lE({ref:t,orientation:r},o),/*#__PURE__*/je.createElement(SE,{orientation:r},n))});d&&(EE.displayName="Stepper");const wE=rk((e,t)=>{const{children:r,orientation:n="horizontal"}=e,o=cE(e,mE),a=(void 0===(c=lE({},o,{orientation:n}))&&(c={}),ok("Stepper",c)),i=Gx(o),s=pE(e),l=lE({display:"flex",flexDirection:"column"},a.container);var c;return je.createElement(xE,{value:a},/*#__PURE__*/je.createElement(uE,{value:s},/*#__PURE__*/je.createElement(ik.div,lE({ref:t,__css:l},i,{className:S("saas-stepper",e.className)}),r)))});d&&(wE.displayName="StepperContainer");const SE=e=>{var t,r;const{children:n,orientation:o="horizontal",stepComponent:a}=e,i=cE(e,hE),s=kE(),{activeIndex:l}=dE(),c=lE({display:"flex",flexDirection:"row",alignItems:"center"},s.steps),u="vertical"===o,d=a||OE,p=(v=d,je.Children.toArray(n).filter(e=>Array.isArray(v)?v.some(t=>t===e.type):e.type===v)),f=p.reduce((e,t,r,n)=>(e.push(/*#__PURE__*/je.createElement(d,lE({key:r},t.props,{icon:t.props.icon||r+1,isActive:l===r,isCompleted:t.props.isCompleted||l>r}))),u&&e.push(/*#__PURE__*/je.createElement(CE,{key:`content-${r}`,isOpen:l===r},t.props.children)),r<n.length-1&&e.push(/*#__PURE__*/je.createElement(RE,{key:`separator-${r}`,isActive:r<l})),e),[]),m=function(e,t){return je.Children.toArray(e).find(e=>e.type===t)}(n,IE),h=l>=p.length?m:u?null:/*#__PURE__*/je.createElement(CE,null,null==(t=p[l])||null==(r=t.props)?void 0:r.children);var v;return je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement(ik.div,lE({__css:c},i,{className:S("saas-stepper__steps",e.className)}),f),h)};d&&(SE.displayName="StepperSteps");const CE=e=>{const{children:t,isOpen:r=!0}=e,n=cE(e,vE),o=kE();return je.createElement(ik.div,lE({__css:o.content},n,{className:S("saas-stepper__content",e.className)}),/*#__PURE__*/je.createElement(Fp,{in:r},t))};d&&(CE.displayName="StepperContent");const _E=e=>{const{icon:t,isCompleted:r,className:n}=e,o=cE(e,gE),a=lE({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},kE().icon);let i;return i=r?/*#__PURE__*/je.createElement(uk,{as:vk}):t,/*#__PURE__*/je.createElement(ik.div,lE({__css:a},o,{className:S("saas-stepper__icon",n)}),i)};d&&(_E.displayName="StepperIcon");const OE=e=>{const{title:t,icon:r,isActive:n,isCompleted:o}=e,a=cE(e,yE),i=function(e){const{name:t,isActive:r,isCompleted:n}=e,{registerStep:o,unregisterStep:a,activeStep:i}=dE();return je.useEffect(()=>{if(t)return o(t),()=>{a(t)}},[]),{isActive:t?i===t:r,isCompleted:n}}(e),s=lE({display:"flex",alignItems:"center",flexDirection:"row"},kE().step);return je.createElement(ik.div,lE({},a,{__css:s,"data-active":_(i.isActive),"data-completed":_(i.isCompleted),className:S("saas-stepper__step",e.className)}),/*#__PURE__*/je.createElement(_E,{icon:r,isActive:n,isCompleted:o}),t&&/*#__PURE__*/je.createElement(TE,null,t))};d&&(OE.displayName="StepperStep");const RE=e=>{const{isActive:t}=e,r=cE(e,bE),n=lE({flex:1,mx:2},kE().separator);return je.createElement(ik.div,lE({},r,{"data-active":_(t),className:S("saas-stepper__separator",e.className),__css:n}))};d&&(RE.displayName="StepperSeparator");const TE=e=>{const t=kE();return je.createElement(ik.p,lE({},e,{__css:t.title,className:S("saas-stepper__title",e.className)}))};d&&(TE.displayName="StepperStepTitle");const IE=e=>{const t=kE();return je.createElement(ik.div,lE({__css:t.completed},e,{className:S("saas-stepper__completed",e.className)}))};function NE(){return NE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},NE.apply(this,arguments)}function AE(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}d&&(IE.displayName="StepperCompleted");const PE=["name","label","help","variant","hideLabel","children"],LE=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","rules","variant"],ME=["name","rules"],jE=["ref"],BE=["name","rules"],DE=["ref"],VE=["type","leftAddon","rightAddon","size"],FE=["type"],zE=["label","type"],WE=["pinLength","pinType","spacing"],$E={},UE="text",HE=e=>{const{name:t,label:r,help:n,variant:o,hideLabel:a,children:i}=e,s=AE(e,PE),{formState:l}=G(),c=((e,t)=>Z(t.errors,e))(t,l);return je.createElement(qf,NE({variant:o},s,{isInvalid:!!c}),r&&!a?/*#__PURE__*/je.createElement(nm,{variant:o},r):null,/*#__PURE__*/je.createElement(ph,null,i,!n||null!=c&&c.message?null:/*#__PURE__*/je.createElement(Yf,null,n),(null==c?void 0:c.message)&&/*#__PURE__*/je.createElement(tm,null,null==c?void 0:c.message)))};d&&(HE.displayName="BaseField");const qE=je.forwardRef((e,t)=>{const{type:r=UE}=e;return je.createElement($E[r]||$E[UE],NE({ref:t},e))}),YE=(e,t,r)=>{let n;n=null!=r&&r.isControlled?(e=>ca((t,r)=>{let{name:n,rules:o}=t,a=AE(t,ME);const{control:i}=G();return je.createElement(J,{name:n,control:i,rules:o,render:t=>{let{field:{ref:n}}=t,o=AE(t.field,jE);return je.createElement(e,NE({},o,a,{ref:pn(r,n)}))}})}))(t):(e=>ca((t,r)=>{let{name:n,rules:o}=t,a=AE(t,BE);const{register:i}=G(),s=i(n,o),{ref:l}=s,c=AE(s,DE);return je.createElement(e,NE({},c,a,{ref:pn(r,l)}))}))(t);const o=((e,{displayName:t,hideLabel:r,BaseField:n})=>{const o=ca((t,o)=>{const{id:a,name:i,label:s,help:l,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:p,rules:f,variant:m}=t,h=AE(t,LE),v=NE({required:p},f);return je.createElement(n,{id:a,name:i,label:s,help:l,hideLabel:r,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:p,variant:m},/*#__PURE__*/je.createElement(e,NE({ref:o,id:a,name:i,label:r?s:void 0,rules:v},h)))});return o.displayName=t,o})(n,{displayName:`${e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}Field`,hideLabel:null==r?void 0:r.hideLabel,BaseField:(null==r?void 0:r.BaseField)||HE});return $E[e]=o,o};YE("text",ca((e,t)=>{let{type:r="text",leftAddon:n,rightAddon:o,size:a}=e,i=AE(e,VE);const s=/*#__PURE__*/je.createElement(Fm,NE({type:r,size:a},i,{ref:t}));return n||o?/*#__PURE__*/je.createElement(Hm,{size:a},n,s,o):s})),YE("number",Cb,{isControlled:!0}),YE("password",ca((e,t)=>/*#__PURE__*/je.createElement(Yk,NE({ref:t},e)))),YE("textarea",Eb),YE("switch",ca((e,t)=>{let r=AE(e,FE);return je.createElement(yb,NE({},r,{ref:t}))}),{isControlled:!0}),YE("select",aE,{isControlled:!0}),YE("checkbox",ca((e,t)=>{let{label:r}=e,n=AE(e,zE);return je.createElement(Am,NE({ref:t},n),r)}),{hideLabel:!0}),YE("radio",Qk,{isControlled:!0}),YE("native-select",sE,{isControlled:!0}),YE("pin",ca((e,t)=>{const{pinLength:r=4,pinType:n,spacing:o}=e,a=AE(e,WE),i=[];for(let e=0;e<r;e++)i.push(/*#__PURE__*/je.createElement(Yy,{key:e,ref:t}));return je.createElement(Fh,{spacing:o},/*#__PURE__*/je.createElement(qy,NE({},a,{type:n}),i))}),{isControlled:!0});const GE=["items"],ZE=e=>e&&Object.entries(e).map(([e,t])=>NE({},AE(t,GE),{name:e})),XE=e=>({getFields:()=>ZE(e),getNestedFields:t=>{var r;const n=q(e,t);return n?"object"===(null==(r=n.items)?void 0:r.type)?ZE(n.items.properties):"object"===n.type?ZE(n.properties):[n.items]:[]}}),KE=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onSubmit","onError","formRef","children"],JE=ca((e,t)=>{const{mode:r="all",resolver:n,reValidateMode:o,shouldFocusError:a,shouldUnregister:i,shouldUseNativeValidation:s,criteriaMode:l,delayError:c,schema:u,defaultValues:d,onSubmit:p,onError:f,formRef:m,children:h}=e,v=AE(e,KE),g={mode:r,resolver:n,defaultValues:d,reValidateMode:o,shouldFocusError:a,shouldUnregister:i,shouldUseNativeValidation:s,criteriaMode:l,delayError:c};u&&!n&&(g.resolver=null==JE.getResolver?void 0:JE.getResolver(u));const y=X(g),{handleSubmit:b}=y;return je.useImperativeHandle(t,()=>y,[t,y]),/*#__PURE__*/je.createElement(K,y,/*#__PURE__*/je.createElement(ha.form,NE({ref:m,onSubmit:b(p,f)},v,{className:S("saas-form",e.className)}),h))});JE.getFieldResolver=XE,d&&(JE.displayName="Form");const QE=["children"],ew=({children:e})=>/*#__PURE__*/je.createElement(ha.div,null,e);d&&(ew.displayName="FormLayoutItem");const tw=e=>{var t,r,n;let{children:o}=e,a=AE(e,QE);const i=NE({},null!=(t=null==(r=Qo().components)||null==(n=r.FormLayout)?void 0:n.defaultProps)?t:{spacing:4},a);return je.createElement(Lh,NE({},i,{className:S("saas-form__layout",a.className)}),je.Children.map(o,e=>je.isValidElement(e)?/*#__PURE__*/je.createElement(ew,null,e):e))};d&&(tw.displayName="FormLayout");const rw=(e,t)=>je.Children.map(t,t=>je.isValidElement(t)&&t.props.name?je.cloneElement(t,NE({},t.props,{name:`${e}.${t.props.name}`})):t),[nw,ow]=Jr({name:"ArrayFieldContext"}),[aw,iw]=Jr({name:"ArrayFieldRowContext"}),sw=["children","index"],lw=["children"],cw=["children"],uw=["name","defaultValue","keyName","min","max","children"],dw=e=>{let{children:t,index:r}=e,n=AE(e,sw);return je.createElement(fw,{index:r},/*#__PURE__*/je.createElement(pw,n,t),/*#__PURE__*/je.createElement(mw,null))};d&&(dw.displayName="ArrayFieldRow");const pw=e=>{let{children:t}=e,r=AE(e,lw);const{name:n}=iw();return je.createElement(tw,NE({flex:"1",mr:"2"},r),rw(n,t))};d&&(pw.displayName="ArrayFieldRowFields");const fw=({children:e,index:t})=>{const r=(({index:e})=>{const{clearErrors:t}=G(),{name:r,remove:n,fields:o}=ow();return je.useEffect(()=>{t(r)},[]),{index:e,isFirst:0===e,isLast:e===o.length-1,name:`${r}.${e}`,remove:je.useCallback(()=>{t(r),n(e)},[e])}})({index:t});return je.createElement(aw,{value:r},/*#__PURE__*/je.createElement(ik.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},e))};d&&(fw.displayName="ArrayFieldRowContainer");const mw=e=>/*#__PURE__*/je.createElement(Vk,NE({icon:/*#__PURE__*/je.createElement(gk,null),"aria-label":"Remove row"},(()=>{const{isFirst:e,remove:t}=iw(),{min:r,fields:n}=ow();return{onClick:()=>t(),isDisabled:e&&!!(r&&n.length<=r)}})(),e));d&&(mw.displayName="ArrayFieldRemoveButton");const hw=e=>/*#__PURE__*/je.createElement(Vk,NE({icon:/*#__PURE__*/je.createElement(pk,null),"aria-label":"Add row",float:"right"},(()=>{const{append:e,defaultValue:t,max:r,fields:n}=ow();return{onClick:()=>e(t,{shouldFocus:!1}),isDisabled:!!(r&&n.length>=r)}})(),e));d&&(hw.displayName="ArrayFieldAddButton");const vw=rk((e,t)=>{const{children:r}=e,n=AE(e,cw);return je.createElement(yw,NE({ref:t},n),/*#__PURE__*/je.createElement(gw,null,e=>/*#__PURE__*/je.createElement(je.Fragment,null,e.map(({id:e},t)=>/*#__PURE__*/je.createElement(dw,{key:e,index:t},r)))),/*#__PURE__*/je.createElement(hw,null))});d&&(vw.displayName="ArrayField");const gw=({children:e})=>{const{fields:t}=ow();return e(t)};d&&(gw.displayName="ArrayFieldRows");const yw=je.forwardRef((e,t)=>{let{name:r,defaultValue:n,keyName:o,min:a,max:i,children:s}=e,l=AE(e,uw);const c=(({name:e,defaultValue:t={},keyName:r,min:n,max:o})=>{const{control:a}=G();return NE({},Y({control:a,name:e,keyName:r}),{name:e,defaultValue:t,min:n,max:o})})({name:r,defaultValue:n,keyName:o,min:a,max:i});return je.useImperativeHandle(t,()=>c,[t,c]),/*#__PURE__*/je.createElement(nw,{value:c},/*#__PURE__*/je.createElement(HE,NE({name:r},l),s))});d&&(yw.displayName="ArrayFieldContainer");const bw=["name","label","hideLabel","children","columns","spacing"],xw=e=>{const t=pa("FormLegend");return je.createElement(nm,NE({as:"legend",sx:t},e))},kw=e=>{const{name:t,label:r,hideLabel:n,children:o,columns:a,spacing:i}=e,s=AE(e,bw);return je.createElement(qf,NE({name:t,as:"fieldset"},s),/*#__PURE__*/je.createElement(xw,{display:n?"none":"block"},r),/*#__PURE__*/je.createElement(tw,{columns:a,gridGap:i},rw(t,o)))};d&&(kw.displayName="ObjectField");const Ew=["name","type"],ww=["schema","fieldResolver"],Sw=["name","type","defaultValue"],Cw=(e,t)=>{var r;return null==(r=e.getNestedFields(t))?void 0:r.map((e,t)=>{let{name:r,type:n}=e,o=AE(e,Ew);return je.createElement(qE,NE({key:r||t,name:r,type:n},o))})},_w=e=>{let{schema:t,fieldResolver:r}=e,n=AE(e,ww);const o=je.useMemo(()=>r||JE.getFieldResolver(t),[t,r]);return je.createElement(tw,n,o.getFields().map(e=>{let{name:t,type:r}=e,n=AE(e,Sw);return"array"===r?/*#__PURE__*/je.createElement(vw,NE({key:t,name:t},n),Cw(o,t)):"object"===r?/*#__PURE__*/je.createElement(kw,NE({key:t,name:t},n),Cw(o,t)):/*#__PURE__*/je.createElement(qE,NE({key:t,name:t,type:r},n))}))};d&&(_w.displayName="Fields");const Ow=["children","disableIfUntouched","disableIfInvalid","isDisabled","isLoading"],Rw=je.forwardRef((e,t)=>{const{children:r,disableIfUntouched:n,disableIfInvalid:o,isDisabled:a,isLoading:i}=e,s=AE(e,Ow),{formState:l}=G();return je.createElement(Wk,NE({},s,{ref:t,variant:"primary",type:"submit",isLoading:l.isSubmitting||i,isDisabled:n&&!l.isDirty||o&&!l.isValid||a}),r)});Rw.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},d&&(Rw.displayName="SubmitButton");const Tw=["schema","submitLabel","fieldResolver","children"],Iw=ca((e,t)=>{const{schema:r,submitLabel:n="Submit",fieldResolver:o,children:a}=e,i=AE(e,Tw);return je.createElement(JE,NE({},i,{schema:r,ref:t}),/*#__PURE__*/je.createElement(tw,null,/*#__PURE__*/je.createElement(_w,{schema:r,fieldResolver:o}),n&&/*#__PURE__*/je.createElement(Rw,null,n),a))});d&&(Iw.displayName="AutoForm");const Nw=["onChange"],[Aw,Pw]=Jr({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"}),Lw=["children"],Mw=["getFormProps"];je.forwardRef((e,t)=>{const{children:r}=e,n=AE(e,Lw),a=function(e){const t=pE(AE(e,Nw)),{activeStep:r,isLastStep:n,nextStep:o}=t,[a,i]=je.useState({}),s=je.useCallback(async i=>{const s=a[r];if(n)return null==e.onSubmit?void 0:e.onSubmit(i).then(()=>{c(NE({},s,{isCompleted:!0}))}).then(o);try{await(null==s.onSubmit?void 0:s.onSubmit(i,t)),o()}catch(i){}},[a,r,n]),l=je.useCallback(()=>{const e=a[r];return{onSubmit:s,schema:null==e?void 0:e.schema,resolver:null==e?void 0:e.resolver}},[a,s,r]),c=je.useCallback(e=>{i(t=>NE({},t,{[e.name]:e}))},[a]);return NE({getFormProps:l,updateStep:c,steps:a},t)}(e),{getFormProps:i}=a,s=AE(a,Mw),l=je.useMemo(()=>s,[s]);return je.createElement(uE,{value:l},/*#__PURE__*/je.createElement(Aw,{value:l},/*#__PURE__*/je.createElement(JE,NE({ref:t},n,i()),o(r,a))))});const jw=e=>XE(e.properties),Bw=t=>({schema:t,fieldResolver:jw(t),resolver:e(t)});export{Bw as jsonSchemaForm};
|
104
|
+
//# sourceMappingURL=index.modern.mjs.map
|