ymy-components 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react"),ti=require("react-dom");function ri(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const It=ri(x);var Qe={exports:{}},we={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),ea=require("react-dom");function ta(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Xr=ta(P);var Dt={exports:{}},ct={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var gr;function ni(){if(gr)return we;gr=1;var e=x,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(u,d,l){var m,p={},v=null,g=null;l!==void 0&&(v=""+l),d.key!==void 0&&(v=""+d.key),d.ref!==void 0&&(g=d.ref);for(m in d)n.call(d,m)&&!a.hasOwnProperty(m)&&(p[m]=d[m]);if(u&&u.defaultProps)for(m in d=u.defaultProps,d)p[m]===void 0&&(p[m]=d[m]);return{$$typeof:t,type:u,key:v,ref:g,props:p,_owner:s.current}}return we.Fragment=r,we.jsx=o,we.jsxs=o,we}var Re={};/**
9
+ */var In;function ra(){if(In)return ct;In=1;var e=P,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(c,u,l){var h,d={},p=null,m=null;l!==void 0&&(p=""+l),u.key!==void 0&&(p=""+u.key),u.ref!==void 0&&(m=u.ref);for(h in u)n.call(u,h)&&!s.hasOwnProperty(h)&&(d[h]=u[h]);if(c&&c.defaultProps)for(h in u=c.defaultProps,u)d[h]===void 0&&(d[h]=u[h]);return{$$typeof:t,type:c,key:p,ref:m,props:d,_owner:i.current}}return ct.Fragment=r,ct.jsx=o,ct.jsxs=o,ct}var ut={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,17 +14,120 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var yr;function ii(){return yr||(yr=1,process.env.NODE_ENV!=="production"&&function(){var e=x,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),_=Symbol.iterator,R="@@iterator";function P(i){if(i===null||typeof i!="object")return null;var c=_&&i[_]||i[R];return typeof c=="function"?c:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(i){{for(var c=arguments.length,h=new Array(c>1?c-1:0),w=1;w<c;w++)h[w-1]=arguments[w];S("error",i,h)}}function S(i,c,h){{var w=y.ReactDebugCurrentFrame,C=w.getStackAddendum();C!==""&&(c+="%s",h=h.concat([C]));var k=h.map(function(T){return String(T)});k.unshift("Warning: "+c),Function.prototype.apply.call(console[i],console,k)}}var j=!1,V=!1,Z=!1,U=!1,fe=!1,D;D=Symbol.for("react.module.reference");function oe(i){return!!(typeof i=="string"||typeof i=="function"||i===n||i===a||fe||i===s||i===l||i===m||U||i===g||j||V||Z||typeof i=="object"&&i!==null&&(i.$$typeof===v||i.$$typeof===p||i.$$typeof===o||i.$$typeof===u||i.$$typeof===d||i.$$typeof===D||i.getModuleId!==void 0))}function z(i,c,h){var w=i.displayName;if(w)return w;var C=c.displayName||c.name||"";return C!==""?h+"("+C+")":h}function ee(i){return i.displayName||"Context"}function $(i){if(i==null)return null;if(typeof i.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case s:return"StrictMode";case l:return"Suspense";case m:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case u:var c=i;return ee(c)+".Consumer";case o:var h=i;return ee(h._context)+".Provider";case d:return z(i,i.render,"ForwardRef");case p:var w=i.displayName||null;return w!==null?w:$(i.type)||"Memo";case v:{var C=i,k=C._payload,T=C._init;try{return $(T(k))}catch{return null}}}return null}var te=Object.assign,be=0,Gt,Ht,Jt,Kt,Xt,Zt,er;function tr(){}tr.__reactDisabledLog=!0;function An(){{if(be===0){Gt=console.log,Ht=console.info,Jt=console.warn,Kt=console.error,Xt=console.group,Zt=console.groupCollapsed,er=console.groupEnd;var i={configurable:!0,enumerable:!0,value:tr,writable:!0};Object.defineProperties(console,{info:i,log:i,warn:i,error:i,group:i,groupCollapsed:i,groupEnd:i})}be++}}function Tn(){{if(be--,be===0){var i={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:te({},i,{value:Gt}),info:te({},i,{value:Ht}),warn:te({},i,{value:Jt}),error:te({},i,{value:Kt}),group:te({},i,{value:Xt}),groupCollapsed:te({},i,{value:Zt}),groupEnd:te({},i,{value:er})})}be<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ft=y.ReactCurrentDispatcher,dt;function Le(i,c,h){{if(dt===void 0)try{throw Error()}catch(C){var w=C.stack.trim().match(/\n( *(at )?)/);dt=w&&w[1]||""}return`
18
- `+dt+i}}var ht=!1,We;{var Cn=typeof WeakMap=="function"?WeakMap:Map;We=new Cn}function rr(i,c){if(!i||ht)return"";{var h=We.get(i);if(h!==void 0)return h}var w;ht=!0;var C=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var k;k=ft.current,ft.current=null,An();try{if(c){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(q){w=q}Reflect.construct(i,[],T)}else{try{T.call()}catch(q){w=q}i.call(T.prototype)}}else{try{throw Error()}catch(q){w=q}i()}}catch(q){if(q&&w&&typeof q.stack=="string"){for(var O=q.stack.split(`
19
- `),N=w.stack.split(`
20
- `),I=O.length-1,F=N.length-1;I>=1&&F>=0&&O[I]!==N[F];)F--;for(;I>=1&&F>=0;I--,F--)if(O[I]!==N[F]){if(I!==1||F!==1)do if(I--,F--,F<0||O[I]!==N[F]){var W=`
21
- `+O[I].replace(" at new "," at ");return i.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",i.displayName)),typeof i=="function"&&We.set(i,W),W}while(I>=1&&F>=0);break}}}finally{ht=!1,ft.current=k,Tn(),Error.prepareStackTrace=C}var he=i?i.displayName||i.name:"",ue=he?Le(he):"";return typeof i=="function"&&We.set(i,ue),ue}function jn(i,c,h){return rr(i,!1)}function kn(i){var c=i.prototype;return!!(c&&c.isReactComponent)}function Be(i,c,h){if(i==null)return"";if(typeof i=="function")return rr(i,kn(i));if(typeof i=="string")return Le(i);switch(i){case l:return Le("Suspense");case m:return Le("SuspenseList")}if(typeof i=="object")switch(i.$$typeof){case d:return jn(i.render);case p:return Be(i.type,c,h);case v:{var w=i,C=w._payload,k=w._init;try{return Be(k(C),c,h)}catch{}}}return""}var _e=Object.prototype.hasOwnProperty,nr={},ir=y.ReactDebugCurrentFrame;function Ye(i){if(i){var c=i._owner,h=Be(i.type,i._source,c?c.type:null);ir.setExtraStackFrame(h)}else ir.setExtraStackFrame(null)}function In(i,c,h,w,C){{var k=Function.call.bind(_e);for(var T in i)if(k(i,T)){var O=void 0;try{if(typeof i[T]!="function"){var N=Error((w||"React class")+": "+h+" type `"+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[T]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw N.name="Invariant Violation",N}O=i[T](c,T,w,h,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(I){O=I}O&&!(O instanceof Error)&&(Ye(C),b("%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).",w||"React class",h,T,typeof O),Ye(null)),O instanceof Error&&!(O.message in nr)&&(nr[O.message]=!0,Ye(C),b("Failed %s type: %s",h,O.message),Ye(null))}}}var Fn=Array.isArray;function mt(i){return Fn(i)}function Vn(i){{var c=typeof Symbol=="function"&&Symbol.toStringTag,h=c&&i[Symbol.toStringTag]||i.constructor.name||"Object";return h}}function Dn(i){try{return sr(i),!1}catch{return!0}}function sr(i){return""+i}function ar(i){if(Dn(i))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Vn(i)),sr(i)}var or=y.ReactCurrentOwner,$n={key:!0,ref:!0,__self:!0,__source:!0},ur,lr;function Nn(i){if(_e.call(i,"ref")){var c=Object.getOwnPropertyDescriptor(i,"ref").get;if(c&&c.isReactWarning)return!1}return i.ref!==void 0}function Un(i){if(_e.call(i,"key")){var c=Object.getOwnPropertyDescriptor(i,"key").get;if(c&&c.isReactWarning)return!1}return i.key!==void 0}function qn(i,c){typeof i.ref=="string"&&or.current}function Mn(i,c){{var h=function(){ur||(ur=!0,b("%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)",c))};h.isReactWarning=!0,Object.defineProperty(i,"key",{get:h,configurable:!0})}}function zn(i,c){{var h=function(){lr||(lr=!0,b("%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)",c))};h.isReactWarning=!0,Object.defineProperty(i,"ref",{get:h,configurable:!0})}}var Ln=function(i,c,h,w,C,k,T){var O={$$typeof:t,type:i,key:c,ref:h,props:T,_owner:k};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:w}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function Wn(i,c,h,w,C){{var k,T={},O=null,N=null;h!==void 0&&(ar(h),O=""+h),Un(c)&&(ar(c.key),O=""+c.key),Nn(c)&&(N=c.ref,qn(c,C));for(k in c)_e.call(c,k)&&!$n.hasOwnProperty(k)&&(T[k]=c[k]);if(i&&i.defaultProps){var I=i.defaultProps;for(k in I)T[k]===void 0&&(T[k]=I[k])}if(O||N){var F=typeof i=="function"?i.displayName||i.name||"Unknown":i;O&&Mn(T,F),N&&zn(T,F)}return Ln(i,O,N,C,w,or.current,T)}}var pt=y.ReactCurrentOwner,cr=y.ReactDebugCurrentFrame;function de(i){if(i){var c=i._owner,h=Be(i.type,i._source,c?c.type:null);cr.setExtraStackFrame(h)}else cr.setExtraStackFrame(null)}var vt;vt=!1;function gt(i){return typeof i=="object"&&i!==null&&i.$$typeof===t}function fr(){{if(pt.current){var i=$(pt.current.type);if(i)return`
17
+ */var jn;function na(){return jn||(jn=1,process.env.NODE_ENV!=="production"&&function(){var e=P,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=Symbol.iterator,S="@@iterator";function x(a){if(a===null||typeof a!="object")return null;var f=b&&a[b]||a[S];return typeof f=="function"?f:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(a){{for(var f=arguments.length,_=new Array(f>1?f-1:0),k=1;k<f;k++)_[k-1]=arguments[k];w("error",a,_)}}function w(a,f,_){{var k=v.ReactDebugCurrentFrame,D=k.getStackAddendum();D!==""&&(f+="%s",_=_.concat([D]));var $=_.map(function(N){return String(N)});$.unshift("Warning: "+f),Function.prototype.apply.call(console[a],console,$)}}var R=!1,O=!1,A=!1,E=!1,W=!1,M;M=Symbol.for("react.module.reference");function ve(a){return!!(typeof a=="string"||typeof a=="function"||a===n||a===s||W||a===i||a===l||a===h||E||a===m||R||O||A||typeof a=="object"&&a!==null&&(a.$$typeof===p||a.$$typeof===d||a.$$typeof===o||a.$$typeof===c||a.$$typeof===u||a.$$typeof===M||a.getModuleId!==void 0))}function Y(a,f,_){var k=a.displayName;if(k)return k;var D=f.displayName||f.name||"";return D!==""?_+"("+D+")":_}function se(a){return a.displayName||"Context"}function q(a){if(a==null)return null;if(typeof a.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case h:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case c:var f=a;return se(f)+".Consumer";case o:var _=a;return se(_._context)+".Provider";case u:return Y(a,a.render,"ForwardRef");case d:var k=a.displayName||null;return k!==null?k:q(a.type)||"Memo";case p:{var D=a,$=D._payload,N=D._init;try{return q(N($))}catch{return null}}}return null}var ae=Object.assign,Oe=0,It,ze,st,Z,_e,Se,G;function Le(){}Le.__reactDisabledLog=!0;function at(){{if(Oe===0){It=console.log,ze=console.info,st=console.warn,Z=console.error,_e=console.group,Se=console.groupCollapsed,G=console.groupEnd;var a={configurable:!0,enumerable:!0,value:Le,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}Oe++}}function Ue(){{if(Oe--,Oe===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ae({},a,{value:It}),info:ae({},a,{value:ze}),warn:ae({},a,{value:st}),error:ae({},a,{value:Z}),group:ae({},a,{value:_e}),groupCollapsed:ae({},a,{value:Se}),groupEnd:ae({},a,{value:G})})}Oe<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=v.ReactCurrentDispatcher,Ee;function oe(a,f,_){{if(Ee===void 0)try{throw Error()}catch(D){var k=D.stack.trim().match(/\n( *(at )?)/);Ee=k&&k[1]||""}return`
18
+ `+Ee+a}}var ce=!1,xe;{var qe=typeof WeakMap=="function"?WeakMap:Map;xe=new qe}function ue(a,f){if(!a||ce)return"";{var _=xe.get(a);if(_!==void 0)return _}var k;ce=!0;var D=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $;$=ye.current,ye.current=null,at();try{if(f){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(Q){k=Q}Reflect.construct(a,[],N)}else{try{N.call()}catch(Q){k=Q}a.call(N.prototype)}}else{try{throw Error()}catch(Q){k=Q}a()}}catch(Q){if(Q&&k&&typeof Q.stack=="string"){for(var I=Q.stack.split(`
19
+ `),H=k.stack.split(`
20
+ `),z=I.length-1,L=H.length-1;z>=1&&L>=0&&I[z]!==H[L];)L--;for(;z>=1&&L>=0;z--,L--)if(I[z]!==H[L]){if(z!==1||L!==1)do if(z--,L--,L<0||I[z]!==H[L]){var ee=`
21
+ `+I[z].replace(" at new "," at ");return a.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",a.displayName)),typeof a=="function"&&xe.set(a,ee),ee}while(z>=1&&L>=0);break}}}finally{ce=!1,ye.current=$,Ue(),Error.prepareStackTrace=D}var We=a?a.displayName||a.name:"",Te=We?oe(We):"";return typeof a=="function"&&xe.set(a,Te),Te}function Os(a,f,_){return ue(a,!1)}function Ts(a){var f=a.prototype;return!!(f&&f.isReactComponent)}function jt(a,f,_){if(a==null)return"";if(typeof a=="function")return ue(a,Ts(a));if(typeof a=="string")return oe(a);switch(a){case l:return oe("Suspense");case h:return oe("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case u:return Os(a.render);case d:return jt(a.type,f,_);case p:{var k=a,D=k._payload,$=k._init;try{return jt($(D),f,_)}catch{}}}return""}var ot=Object.prototype.hasOwnProperty,yn={},bn=v.ReactDebugCurrentFrame;function Nt(a){if(a){var f=a._owner,_=jt(a.type,a._source,f?f.type:null);bn.setExtraStackFrame(_)}else bn.setExtraStackFrame(null)}function Is(a,f,_,k,D){{var $=Function.call.bind(ot);for(var N in a)if($(a,N)){var I=void 0;try{if(typeof a[N]!="function"){var H=Error((k||"React class")+": "+_+" type `"+N+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[N]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw H.name="Invariant Violation",H}I=a[N](f,N,k,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(z){I=z}I&&!(I instanceof Error)&&(Nt(D),y("%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).",k||"React class",_,N,typeof I),Nt(null)),I instanceof Error&&!(I.message in yn)&&(yn[I.message]=!0,Nt(D),y("Failed %s type: %s",_,I.message),Nt(null))}}}var js=Array.isArray;function yr(a){return js(a)}function Ns(a){{var f=typeof Symbol=="function"&&Symbol.toStringTag,_=f&&a[Symbol.toStringTag]||a.constructor.name||"Object";return _}}function Ds(a){try{return wn(a),!1}catch{return!0}}function wn(a){return""+a}function _n(a){if(Ds(a))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ns(a)),wn(a)}var Sn=v.ReactCurrentOwner,Fs={key:!0,ref:!0,__self:!0,__source:!0},En,xn;function $s(a){if(ot.call(a,"ref")){var f=Object.getOwnPropertyDescriptor(a,"ref").get;if(f&&f.isReactWarning)return!1}return a.ref!==void 0}function Vs(a){if(ot.call(a,"key")){var f=Object.getOwnPropertyDescriptor(a,"key").get;if(f&&f.isReactWarning)return!1}return a.key!==void 0}function Ms(a,f){typeof a.ref=="string"&&Sn.current}function zs(a,f){{var _=function(){En||(En=!0,y("%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)",f))};_.isReactWarning=!0,Object.defineProperty(a,"key",{get:_,configurable:!0})}}function Ls(a,f){{var _=function(){xn||(xn=!0,y("%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)",f))};_.isReactWarning=!0,Object.defineProperty(a,"ref",{get:_,configurable:!0})}}var Us=function(a,f,_,k,D,$,N){var I={$$typeof:t,type:a,key:f,ref:_,props:N,_owner:$};return I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(I,"_self",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.defineProperty(I,"_source",{configurable:!1,enumerable:!1,writable:!1,value:D}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I};function qs(a,f,_,k,D){{var $,N={},I=null,H=null;_!==void 0&&(_n(_),I=""+_),Vs(f)&&(_n(f.key),I=""+f.key),$s(f)&&(H=f.ref,Ms(f,D));for($ in f)ot.call(f,$)&&!Fs.hasOwnProperty($)&&(N[$]=f[$]);if(a&&a.defaultProps){var z=a.defaultProps;for($ in z)N[$]===void 0&&(N[$]=z[$])}if(I||H){var L=typeof a=="function"?a.displayName||a.name||"Unknown":a;I&&zs(N,L),H&&Ls(N,L)}return Us(a,I,H,D,k,Sn.current,N)}}var br=v.ReactCurrentOwner,Rn=v.ReactDebugCurrentFrame;function Be(a){if(a){var f=a._owner,_=jt(a.type,a._source,f?f.type:null);Rn.setExtraStackFrame(_)}else Rn.setExtraStackFrame(null)}var wr;wr=!1;function _r(a){return typeof a=="object"&&a!==null&&a.$$typeof===t}function Pn(){{if(br.current){var a=q(br.current.type);if(a)return`
22
22
 
23
- Check the render method of \``+i+"`."}return""}}function Bn(i){return""}var dr={};function Yn(i){{var c=fr();if(!c){var h=typeof i=="string"?i:i.displayName||i.name;h&&(c=`
23
+ Check the render method of \``+a+"`."}return""}}function Bs(a){return""}var kn={};function Ws(a){{var f=Pn();if(!f){var _=typeof a=="string"?a:a.displayName||a.name;_&&(f=`
24
24
 
25
- Check the top-level render call using <`+h+">.")}return c}}function hr(i,c){{if(!i._store||i._store.validated||i.key!=null)return;i._store.validated=!0;var h=Yn(c);if(dr[h])return;dr[h]=!0;var w="";i&&i._owner&&i._owner!==pt.current&&(w=" It was passed a child from "+$(i._owner.type)+"."),de(i),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',h,w),de(null)}}function mr(i,c){{if(typeof i!="object")return;if(mt(i))for(var h=0;h<i.length;h++){var w=i[h];gt(w)&&hr(w,c)}else if(gt(i))i._store&&(i._store.validated=!0);else if(i){var C=P(i);if(typeof C=="function"&&C!==i.entries)for(var k=C.call(i),T;!(T=k.next()).done;)gt(T.value)&&hr(T.value,c)}}}function Qn(i){{var c=i.type;if(c==null||typeof c=="string")return;var h;if(typeof c=="function")h=c.propTypes;else if(typeof c=="object"&&(c.$$typeof===d||c.$$typeof===p))h=c.propTypes;else return;if(h){var w=$(c);In(h,i.props,"prop",w,i)}else if(c.PropTypes!==void 0&&!vt){vt=!0;var C=$(c);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",C||"Unknown")}typeof c.getDefaultProps=="function"&&!c.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Gn(i){{for(var c=Object.keys(i.props),h=0;h<c.length;h++){var w=c[h];if(w!=="children"&&w!=="key"){de(i),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",w),de(null);break}}i.ref!==null&&(de(i),b("Invalid attribute `ref` supplied to `React.Fragment`."),de(null))}}var pr={};function vr(i,c,h,w,C,k){{var T=oe(i);if(!T){var O="";(i===void 0||typeof i=="object"&&i!==null&&Object.keys(i).length===0)&&(O+=" 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 N=Bn();N?O+=N:O+=fr();var I;i===null?I="null":mt(i)?I="array":i!==void 0&&i.$$typeof===t?(I="<"+($(i.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):I=typeof i,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",I,O)}var F=Wn(i,c,h,C,k);if(F==null)return F;if(T){var W=c.children;if(W!==void 0)if(w)if(mt(W)){for(var he=0;he<W.length;he++)mr(W[he],i);Object.freeze&&Object.freeze(W)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else mr(W,i)}if(_e.call(c,"key")){var ue=$(i),q=Object.keys(c).filter(function(ei){return ei!=="key"}),yt=q.length>0?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}";if(!pr[ue+yt]){var Zn=q.length>0?"{"+q.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+_+">.")}return f}}function An(a,f){{if(!a._store||a._store.validated||a.key!=null)return;a._store.validated=!0;var _=Ws(f);if(kn[_])return;kn[_]=!0;var k="";a&&a._owner&&a._owner!==br.current&&(k=" It was passed a child from "+q(a._owner.type)+"."),Be(a),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_,k),Be(null)}}function Cn(a,f){{if(typeof a!="object")return;if(yr(a))for(var _=0;_<a.length;_++){var k=a[_];_r(k)&&An(k,f)}else if(_r(a))a._store&&(a._store.validated=!0);else if(a){var D=x(a);if(typeof D=="function"&&D!==a.entries)for(var $=D.call(a),N;!(N=$.next()).done;)_r(N.value)&&An(N.value,f)}}}function Ys(a){{var f=a.type;if(f==null||typeof f=="string")return;var _;if(typeof f=="function")_=f.propTypes;else if(typeof f=="object"&&(f.$$typeof===u||f.$$typeof===d))_=f.propTypes;else return;if(_){var k=q(f);Is(_,a.props,"prop",k,a)}else if(f.PropTypes!==void 0&&!wr){wr=!0;var D=q(f);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",D||"Unknown")}typeof f.getDefaultProps=="function"&&!f.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Gs(a){{for(var f=Object.keys(a.props),_=0;_<f.length;_++){var k=f[_];if(k!=="children"&&k!=="key"){Be(a),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",k),Be(null);break}}a.ref!==null&&(Be(a),y("Invalid attribute `ref` supplied to `React.Fragment`."),Be(null))}}var On={};function Tn(a,f,_,k,D,$){{var N=ve(a);if(!N){var I="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(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 H=Bs();H?I+=H:I+=Pn();var z;a===null?z="null":yr(a)?z="array":a!==void 0&&a.$$typeof===t?(z="<"+(q(a.type)||"Unknown")+" />",I=" Did you accidentally export a JSX literal instead of a component?"):z=typeof a,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",z,I)}var L=qs(a,f,_,D,$);if(L==null)return L;if(N){var ee=f.children;if(ee!==void 0)if(k)if(yr(ee)){for(var We=0;We<ee.length;We++)Cn(ee[We],a);Object.freeze&&Object.freeze(ee)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Cn(ee,a)}if(ot.call(f,"key")){var Te=q(a),Q=Object.keys(f).filter(function(Zs){return Zs!=="key"}),Sr=Q.length>0?"{key: someKey, "+Q.join(": ..., ")+": ...}":"{key: someKey}";if(!On[Te+Sr]){var Js=Q.length>0?"{"+Q.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,yt,ue,Zn,ue),pr[ue+yt]=!0}}return i===n?Gn(F):Qn(F),F}}function Hn(i,c,h){return vr(i,c,h,!0)}function Jn(i,c,h){return vr(i,c,h,!1)}var Kn=Jn,Xn=Hn;Re.Fragment=n,Re.jsx=Kn,Re.jsxs=Xn}()),Re}var br;function si(){return br||(br=1,process.env.NODE_ENV==="production"?Qe.exports=ni():Qe.exports=ii()),Qe.exports}var Q=si(),Ft=Me(),E=e=>qe(e,Ft),Vt=Me();E.write=e=>qe(e,Vt);var nt=Me();E.onStart=e=>qe(e,nt);var Dt=Me();E.onFrame=e=>qe(e,Dt);var $t=Me();E.onFinish=e=>qe(e,$t);var pe=[];E.setTimeout=(e,t)=>{const r=E.now()+t,n=()=>{const a=pe.findIndex(o=>o.cancel==n);~a&&pe.splice(a,1),se-=~a?1:0},s={time:r,handler:e,cancel:n};return pe.splice(Lr(r),0,s),se+=1,Wr(),s};var Lr=e=>~(~pe.findIndex(t=>t.time>e)||~pe.length);E.cancel=e=>{nt.delete(e),Dt.delete(e),$t.delete(e),Ft.delete(e),Vt.delete(e)};E.sync=e=>{Pt=!0,E.batchedUpdates(e),Pt=!1};E.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...s){t=s,E.onStart(r)}return n.handler=e,n.cancel=()=>{nt.delete(r),t=null},n};var Nt=typeof window<"u"?window.requestAnimationFrame:()=>{};E.use=e=>Nt=e;E.now=typeof performance<"u"?()=>performance.now():Date.now;E.batchedUpdates=e=>e();E.catch=console.error;E.frameLoop="always";E.advance=()=>{E.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Yr()};var ie=-1,se=0,Pt=!1;function qe(e,t){Pt?(t.delete(e),e(0)):(t.add(e),Wr())}function Wr(){ie<0&&(ie=0,E.frameLoop!=="demand"&&Nt(Br))}function ai(){ie=-1}function Br(){~ie&&(Nt(Br),E.batchedUpdates(Yr))}function Yr(){const e=ie;ie=E.now();const t=Lr(ie);if(t&&(Qr(pe.splice(0,t),r=>r.handler()),se-=t),!se){ai();return}nt.flush(),Ft.flush(e?Math.min(64,ie-e):16.667),Dt.flush(),Vt.flush(),$t.flush()}function Me(){let e=new Set,t=e;return{add(r){se+=t==e&&!e.has(r)?1:0,e.add(r)},delete(r){return se-=t==e&&e.has(r)?1:0,e.delete(r)},flush(r){t.size&&(e=new Set,se-=t.size,Qr(t,n=>n(r)&&e.add(n)),se+=e.size,t=e)}}}function Qr(e,t){e.forEach(r=>{try{t(r)}catch(n){E.catch(n)}})}var oi=Object.defineProperty,ui=(e,t)=>{for(var r in t)oi(e,r,{get:t[r],enumerable:!0})},J={};ui(J,{assign:()=>ci,colors:()=>ae,createStringInterpolator:()=>qt,skipAnimation:()=>Hr,to:()=>Gr,willAdvance:()=>Mt});function xt(){}var li=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),f={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function re(e,t){if(f.arr(e)){if(!f.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}var A=(e,t)=>e.forEach(t);function X(e,t,r){if(f.arr(e)){for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);return}for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}var L=e=>f.und(e)?[]:f.arr(e)?e:[e];function Oe(e,t){if(e.size){const r=Array.from(e);e.clear(),A(r,t)}}var xe=(e,...t)=>Oe(e,r=>r(...t)),Ut=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),qt,Gr,ae=null,Hr=!1,Mt=xt,ci=e=>{e.to&&(Gr=e.to),e.now&&(E.now=e.now),e.colors!==void 0&&(ae=e.colors),e.skipAnimation!=null&&(Hr=e.skipAnimation),e.createStringInterpolator&&(qt=e.createStringInterpolator),e.requestAnimationFrame&&E.use(e.requestAnimationFrame),e.batchedUpdates&&(E.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Mt=e.willAdvance),e.frameLoop&&(E.frameLoop=e.frameLoop)},Ae=new Set,Y=[],bt=[],Ke=0,it={get idle(){return!Ae.size&&!Y.length},start(e){Ke>e.priority?(Ae.add(e),E.onStart(fi)):(Jr(e),E(Ot))},advance:Ot,sort(e){if(Ke)E.onFrame(()=>it.sort(e));else{const t=Y.indexOf(e);~t&&(Y.splice(t,1),Kr(e))}},clear(){Y=[],Ae.clear()}};function fi(){Ae.forEach(Jr),Ae.clear(),E(Ot)}function Jr(e){Y.includes(e)||Kr(e)}function Kr(e){Y.splice(di(Y,t=>t.priority>e.priority),0,e)}function Ot(e){const t=bt;for(let r=0;r<Y.length;r++){const n=Y[r];Ke=n.priority,n.idle||(Mt(n),n.advance(e),n.idle||t.push(n))}return Ke=0,bt=Y,bt.length=0,Y=t,Y.length>0}function di(e,t){const r=e.findIndex(t);return r<0?e.length:r}var hi={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},H="[-+]?\\d*\\.?\\d+",Xe=H+"%";function st(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var mi=new RegExp("rgb"+st(H,H,H)),pi=new RegExp("rgba"+st(H,H,H,H)),vi=new RegExp("hsl"+st(H,Xe,Xe)),gi=new RegExp("hsla"+st(H,Xe,Xe,H)),yi=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,bi=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,_i=/^#([0-9a-fA-F]{6})$/,wi=/^#([0-9a-fA-F]{8})$/;function Ri(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=_i.exec(e))?parseInt(t[1]+"ff",16)>>>0:ae&&ae[e]!==void 0?ae[e]:(t=mi.exec(e))?(me(t[1])<<24|me(t[2])<<16|me(t[3])<<8|255)>>>0:(t=pi.exec(e))?(me(t[1])<<24|me(t[2])<<16|me(t[3])<<8|Rr(t[4]))>>>0:(t=yi.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=wi.exec(e))?parseInt(t[1],16)>>>0:(t=bi.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=vi.exec(e))?(_r(wr(t[1]),Ge(t[2]),Ge(t[3]))|255)>>>0:(t=gi.exec(e))?(_r(wr(t[1]),Ge(t[2]),Ge(t[3]))|Rr(t[4]))>>>0:null}function _t(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function _r(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n,a=_t(s,n,e+1/3),o=_t(s,n,e),u=_t(s,n,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(u*255)<<8}function me(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function wr(e){return(parseFloat(e)%360+360)%360/360}function Rr(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Ge(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Sr(e){let t=Ri(e);if(t===null)return e;t=t||0;const r=(t&4278190080)>>>24,n=(t&16711680)>>>16,s=(t&65280)>>>8,a=(t&255)/255;return`rgba(${r}, ${n}, ${s}, ${a})`}var je=(e,t,r)=>{if(f.fun(e))return e;if(f.arr(e))return je({range:e,output:t,extrapolate:r});if(f.str(e.output[0]))return qt(e);const n=e,s=n.output,a=n.range||[0,1],o=n.extrapolateLeft||n.extrapolate||"extend",u=n.extrapolateRight||n.extrapolate||"extend",d=n.easing||(l=>l);return l=>{const m=Ei(l,a);return Si(l,a[m],a[m+1],s[m],s[m+1],d,o,u,n.map)}};function Si(e,t,r,n,s,a,o,u,d){let l=d?d(e):e;if(l<t){if(o==="identity")return l;o==="clamp"&&(l=t)}if(l>r){if(u==="identity")return l;u==="clamp"&&(l=r)}return n===s?n:t===r?e<=t?n:s:(t===-1/0?l=-l:r===1/0?l=l-t:l=(l-t)/(r-t),l=a(l),n===-1/0?l=-l:s===1/0?l=l+n:l=l*(s-n)+n,l)}function Ei(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}var Pi={linear:e=>e},ke=Symbol.for("FluidValue.get"),ge=Symbol.for("FluidValue.observers"),B=e=>!!(e&&e[ke]),M=e=>e&&e[ke]?e[ke]():e,Er=e=>e[ge]||null;function xi(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Ie(e,t){const r=e[ge];r&&r.forEach(n=>{xi(n,t)})}var Xr=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Oi(this,e)}},Oi=(e,t)=>Zr(e,ke,t);function ye(e,t){if(e[ke]){let r=e[ge];r||Zr(e,ge,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function Fe(e,t){const r=e[ge];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[ge]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var Zr=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),He=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ai=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Pr=new RegExp(`(${He.source})(%|[a-z]+)`,"i"),Ti=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,at=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,en=e=>{const[t,r]=Ci(e);if(!t||Ut())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){const s=window.getComputedStyle(document.documentElement).getPropertyValue(r);return s||e}else{if(r&&at.test(r))return en(r);if(r)return r}return e},Ci=e=>{const t=at.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]},wt,ji=(e,t,r,n,s)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${s})`,tn=e=>{wt||(wt=ae?new RegExp(`(${Object.keys(ae).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>M(a).replace(at,en).replace(Ai,Sr).replace(wt,Sr)),r=t.map(a=>a.match(He).map(Number)),s=r[0].map((a,o)=>r.map(u=>{if(!(o in u))throw Error('The arity of each "output" value must be equal');return u[o]})).map(a=>je({...e,output:a}));return a=>{var d;const o=!Pr.test(t[0])&&((d=t.find(l=>Pr.test(l)))==null?void 0:d.replace(He,""));let u=0;return t[0].replace(He,()=>`${s[u++](a)}${o||""}`).replace(Ti,ji)}},zt="react-spring: ",rn=e=>{const t=e;let r=!1;if(typeof t!="function")throw new TypeError(`${zt}once requires a function parameter`);return(...n)=>{r||(t(...n),r=!0)}},ki=rn(console.warn);function Ii(){ki(`${zt}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Fi=rn(console.warn);function Vi(){Fi(`${zt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function ot(e){return f.str(e)&&(e[0]=="#"||/\d/.test(e)||!Ut()&&at.test(e)||e in(ae||{}))}var Lt=Ut()?x.useEffect:x.useLayoutEffect,Di=()=>{const e=x.useRef(!1);return Lt(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function nn(){const e=x.useState()[1],t=Di();return()=>{t.current&&e(Math.random())}}function $i(e,t){const[r]=x.useState(()=>({inputs:t,result:e()})),n=x.useRef(),s=n.current;let a=s;return a?t&&a.inputs&&Ni(t,a.inputs)||(a={inputs:t,result:e()}):a=r,x.useEffect(()=>{n.current=a,s==r&&(r.inputs=r.result=void 0)},[a]),a.result}function Ni(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var sn=e=>x.useEffect(e,Ui),Ui=[];function xr(e){const t=x.useRef();return x.useEffect(()=>{t.current=e}),t.current}var Ve=Symbol.for("Animated:node"),qi=e=>!!e&&e[Ve]===e,K=e=>e&&e[Ve],Wt=(e,t)=>li(e,Ve,t),ut=e=>e&&e[Ve]&&e[Ve].getPayload(),an=class{constructor(){Wt(this,this)}getPayload(){return this.payload||[]}},ze=class extends an{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,f.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new ze(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return f.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,f.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},De=class extends ze{constructor(e){super(0),this._string=null,this._toString=je({output:[e,e]})}static create(e){return new De(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(f.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=je({output:[this.getValue(),e]})),this._value=0,super.reset()}},Ze={dependencies:null},lt=class extends an{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return X(this.source,(r,n)=>{qi(r)?t[n]=r.getValue(e):B(r)?t[n]=M(r):e||(t[n]=r)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&A(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return X(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Ze.dependencies&&B(e)&&Ze.dependencies.add(e);const t=ut(e);t&&A(t,r=>this.add(r))}},on=class extends lt{constructor(e){super(e)}static create(e){return new on(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((r,n)=>r.setValue(e[n])).some(Boolean):(super.setValue(e.map(Mi)),!0)}};function Mi(e){return(ot(e)?De:ze).create(e)}function At(e){const t=K(e);return t?t.constructor:f.arr(e)?on:ot(e)?De:ze}var Or=(e,t)=>{const r=!f.fun(e)||e.prototype&&e.prototype.isReactComponent;return x.forwardRef((n,s)=>{const a=x.useRef(null),o=r&&x.useCallback(_=>{a.current=Wi(s,_)},[s]),[u,d]=Li(n,t),l=nn(),m=()=>{const _=a.current;if(r&&!_)return;(_?t.applyAnimatedValues(_,u.getValue(!0)):!1)===!1&&l()},p=new zi(m,d),v=x.useRef();Lt(()=>(v.current=p,A(d,_=>ye(_,p)),()=>{v.current&&(A(v.current.deps,_=>Fe(_,v.current)),E.cancel(v.current.update))})),x.useEffect(m,[]),sn(()=>()=>{const _=v.current;A(_.deps,R=>Fe(R,_))});const g=t.getComponentProps(u.getValue());return It.createElement(e,{...g,ref:o})})},zi=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&E.write(this.update)}};function Li(e,t){const r=new Set;return Ze.dependencies=r,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new lt(e),Ze.dependencies=null,[e,r]}function Wi(e,t){return e&&(f.fun(e)?e(t):e.current=t),t}var Ar=Symbol.for("AnimatedComponent"),Bi=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=s=>new lt(s),getComponentProps:n=s=>s}={})=>{const s={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},a=o=>{const u=Tr(o)||"Anonymous";return f.str(o)?o=a[o]||(a[o]=Or(o,s)):o=o[Ar]||(o[Ar]=Or(o,s)),o.displayName=`Animated(${u})`,o};return X(e,(o,u)=>{f.arr(e)&&(u=Tr(o)),a[u]=a(o)}),{animated:a}},Tr=e=>f.str(e)?e:e&&f.str(e.displayName)?e.displayName:f.fun(e)&&e.name||null;function le(e,...t){return f.fun(e)?e(...t):e}var Te=(e,t)=>e===!0||!!(t&&e&&(f.fun(e)?e(t):L(e).includes(t))),un=(e,t)=>f.obj(e)?t&&e[t]:e,ln=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Yi=e=>e,Bt=(e,t=Yi)=>{let r=Qi;e.default&&e.default!==!0&&(e=e.default,r=Object.keys(e));const n={};for(const s of r){const a=t(e[s],s);f.und(a)||(n[s]=a)}return n},Qi=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Gi={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Hi(e){const t={};let r=0;if(X(e,(n,s)=>{Gi[s]||(t[s]=n,r++)}),r)return t}function cn(e){const t=Hi(e);if(t){const r={to:t};return X(e,(n,s)=>s in t||(r[s]=n)),r}return{...e}}function $e(e){return e=M(e),f.arr(e)?e.map($e):ot(e)?J.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Ji(e){for(const t in e)return!0;return!1}function Tt(e){return f.fun(e)||f.arr(e)&&f.obj(e[0])}function Ki(e,t){var r;(r=e.ref)==null||r.delete(e),t==null||t.delete(e)}function Xi(e,t){var r;t&&e.ref!==t&&((r=e.ref)==null||r.delete(e),t.add(e),e.ref=t)}var Zi={default:{tension:170,friction:26}},Ct={...Zi.default,mass:1,damping:1,easing:Pi.linear,clamp:!1},es=class{constructor(){this.velocity=0,Object.assign(this,Ct)}};function ts(e,t,r){r&&(r={...r},Cr(r,t),t={...r,...t}),Cr(e,t),Object.assign(e,t);for(const o in Ct)e[o]==null&&(e[o]=Ct[o]);let{frequency:n,damping:s}=e;const{mass:a}=e;return f.und(n)||(n<.01&&(n=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/n,2)*a,e.friction=4*Math.PI*s*a/n),e}function Cr(e,t){if(!f.und(t.decay))e.duration=void 0;else{const r=!f.und(t.tension)||!f.und(t.friction);(r||!f.und(t.frequency)||!f.und(t.damping)||!f.und(t.mass))&&(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}}var jr=[],rs=class{constructor(){this.changed=!1,this.values=jr,this.toValues=null,this.fromValues=jr,this.config=new es,this.immediate=!1}};function fn(e,{key:t,props:r,defaultProps:n,state:s,actions:a}){return new Promise((o,u)=>{let d,l,m=Te(r.cancel??(n==null?void 0:n.cancel),t);if(m)g();else{f.und(r.pause)||(s.paused=Te(r.pause,t));let _=n==null?void 0:n.pause;_!==!0&&(_=s.paused||Te(_,t)),d=le(r.delay||0,t),_?(s.resumeQueue.add(v),a.pause()):(a.resume(),v())}function p(){s.resumeQueue.add(v),s.timeouts.delete(l),l.cancel(),d=l.time-E.now()}function v(){d>0&&!J.skipAnimation?(s.delayed=!0,l=E.setTimeout(g,d),s.pauseQueue.add(p),s.timeouts.add(l)):g()}function g(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(p),s.timeouts.delete(l),e<=(s.cancelId||0)&&(m=!0);try{a.start({...r,callId:e,cancel:m},o)}catch(_){u(_)}}})}var Yt=(e,t)=>t.length==1?t[0]:t.some(r=>r.cancelled)?ve(e.get()):t.every(r=>r.noop)?dn(e.get()):G(e.get(),t.every(r=>r.finished)),dn=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),G=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),ve=e=>({value:e,cancelled:!0,finished:!1});function hn(e,t,r,n){const{callId:s,parentId:a,onRest:o}=t,{asyncTo:u,promise:d}=r;return!a&&e===u&&!t.reset?d:r.promise=(async()=>{r.asyncId=s,r.asyncTo=e;const l=Bt(t,(P,y)=>y==="onRest"?void 0:P);let m,p;const v=new Promise((P,y)=>(m=P,p=y)),g=P=>{const y=s<=(r.cancelId||0)&&ve(n)||s!==r.asyncId&&G(n,!1);if(y)throw P.result=y,p(P),P},_=(P,y)=>{const b=new kr,S=new Ir;return(async()=>{if(J.skipAnimation)throw Ne(r),S.result=G(n,!1),p(S),S;g(b);const j=f.obj(P)?{...P}:{...y,to:P};j.parentId=s,X(l,(Z,U)=>{f.und(j[U])&&(j[U]=Z)});const V=await n.start(j);return g(b),r.paused&&await new Promise(Z=>{r.resumeQueue.add(Z)}),V})()};let R;if(J.skipAnimation)return Ne(r),G(n,!1);try{let P;f.arr(e)?P=(async y=>{for(const b of y)await _(b)})(e):P=Promise.resolve(e(_,n.stop.bind(n))),await Promise.all([P.then(m),v]),R=G(n.get(),!0,!1)}catch(P){if(P instanceof kr)R=P.result;else if(P instanceof Ir)R=P.result;else throw P}finally{s==r.asyncId&&(r.asyncId=a,r.asyncTo=a?u:void 0,r.promise=a?d:void 0)}return f.fun(o)&&E.batchedUpdates(()=>{o(R,n,n.item)}),R})()}function Ne(e,t){Oe(e.timeouts,r=>r.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var kr=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Ir=class extends Error{constructor(){super("SkipAnimationSignal")}},jt=e=>e instanceof Qt,ns=1,Qt=class extends Xr{constructor(){super(...arguments),this.id=ns++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=K(this);return e&&e.getValue()}to(...e){return J.to(this,e)}interpolate(...e){return Ii(),J.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ie(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||it.sort(this),Ie(this,{type:"priority",parent:this,priority:e})}},ce=Symbol.for("SpringPhase"),mn=1,pn=2,vn=4,Rt=e=>(e[ce]&mn)>0,ne=e=>(e[ce]&pn)>0,Se=e=>(e[ce]&vn)>0,Fr=(e,t)=>t?e[ce]|=pn|mn:e[ce]&=-3,Vr=(e,t)=>t?e[ce]|=vn:e[ce]&=-5,is=class extends Qt{constructor(e,t){if(super(),this.animation=new rs,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!f.und(e)||!f.und(t)){const r=f.obj(e)?{...e}:{...t,from:e};f.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(ne(this)||this._state.asyncTo)||Se(this)}get goal(){return M(this.animation.to)}get velocity(){const e=K(this);return e instanceof ze?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Rt(this)}get isAnimating(){return ne(this)}get isPaused(){return Se(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{toValues:s}=n;const{config:a}=n,o=ut(n.to);!o&&B(n.to)&&(s=L(M(n.to))),n.values.forEach((l,m)=>{if(l.done)return;const p=l.constructor==De?1:o?o[m].lastPosition:s[m];let v=n.immediate,g=p;if(!v){if(g=l.lastPosition,a.tension<=0){l.done=!0;return}let _=l.elapsedTime+=e;const R=n.fromValues[m],P=l.v0!=null?l.v0:l.v0=f.arr(a.velocity)?a.velocity[m]:a.velocity;let y;const b=a.precision||(R==p?.005:Math.min(1,Math.abs(p-R)*.001));if(f.und(a.duration))if(a.decay){const S=a.decay===!0?.998:a.decay,j=Math.exp(-(1-S)*_);g=R+P/(1-S)*(1-j),v=Math.abs(l.lastPosition-g)<=b,y=P*j}else{y=l.lastVelocity==null?P:l.lastVelocity;const S=a.restVelocity||b/10,j=a.clamp?0:a.bounce,V=!f.und(j),Z=R==p?l.v0>0:R<p;let U,fe=!1;const D=1,oe=Math.ceil(e/D);for(let z=0;z<oe&&(U=Math.abs(y)>S,!(!U&&(v=Math.abs(p-g)<=b,v)));++z){V&&(fe=g==p||g>p==Z,fe&&(y=-y*j,g=p));const ee=-a.tension*1e-6*(g-p),$=-a.friction*.001*y,te=(ee+$)/a.mass;y=y+te*D,g=g+y*D}}else{let S=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,l.durationProgress>0&&(l.elapsedTime=a.duration*l.durationProgress,_=l.elapsedTime+=e)),S=(a.progress||0)+_/this._memoizedDuration,S=S>1?1:S<0?0:S,l.durationProgress=S),g=R+a.easing(S)*(p-R),y=(g-l.lastPosition)/e,v=S==1}l.lastVelocity=y,Number.isNaN(g)&&(console.warn("Got NaN while animating:",this),v=!0)}o&&!o[m].done&&(v=!1),v?l.done=!0:t=!1,l.setValue(g,a.round)&&(r=!0)});const u=K(this),d=u.getValue();if(t){const l=M(n.to);(d!==l||r)&&!a.decay?(u.setValue(l),this._onChange(l)):r&&a.decay&&this._onChange(d),this._stop()}else r&&this._onChange(d)}set(e){return E.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ne(this)){const{to:e,config:t}=this.animation;E.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return f.und(e)?(r=this.queue||[],this.queue=[]):r=[f.obj(e)?e:{...t,to:e}],Promise.all(r.map(n=>this._update(n))).then(n=>Yt(this,n))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ne(this._state,e&&this._lastCallId),E.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:n}=e;r=f.obj(r)?r[t]:r,(r==null||Tt(r))&&(r=void 0),n=f.obj(n)?n[t]:n,n==null&&(n=void 0);const s={to:r,from:n};return Rt(this)||(e.reverse&&([r,n]=[n,r]),n=M(n),f.und(n)?K(this)||this._set(r):this._set(n)),s}_update({...e},t){const{key:r,defaultProps:n}=this;e.default&&Object.assign(n,Bt(e,(o,u)=>/^on/.test(u)?un(o,r):o)),$r(this,e,"onProps"),Pe(this,"onProps",e,this);const s=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return fn(++this._lastCallId,{key:r,props:e,defaultProps:n,state:a,actions:{pause:()=>{Se(this)||(Vr(this,!0),xe(a.pauseQueue),Pe(this,"onPause",G(this,Ee(this,this.animation.to)),this))},resume:()=>{Se(this)&&(Vr(this,!1),ne(this)&&this._resume(),xe(a.resumeQueue),Pe(this,"onResume",G(this,Ee(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const u=gn(e);if(u)return this._update(u,!0)}return o})}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(ve(this));const n=!f.und(e.to),s=!f.und(e.from);if(n||s)if(t.callId>this._lastToId)this._lastToId=t.callId;else return r(ve(this));const{key:a,defaultProps:o,animation:u}=this,{to:d,from:l}=u;let{to:m=d,from:p=l}=e;s&&!n&&(!t.default||f.und(m))&&(m=p),t.reverse&&([m,p]=[p,m]);const v=!re(p,l);v&&(u.from=p),p=M(p);const g=!re(m,d);g&&this._focus(m);const _=Tt(t.to),{config:R}=u,{decay:P,velocity:y}=R;(n||s)&&(R.velocity=0),t.config&&!_&&ts(R,le(t.config,a),t.config!==o.config?le(o.config,a):void 0);let b=K(this);if(!b||f.und(m))return r(G(this,!0));const S=f.und(t.reset)?s&&!t.default:!f.und(p)&&Te(t.reset,a),j=S?p:this.get(),V=$e(m),Z=f.num(V)||f.arr(V)||ot(V),U=!_&&(!Z||Te(o.immediate||t.immediate,a));if(g){const z=At(m);if(z!==b.constructor)if(U)b=this._set(V);else throw Error(`Cannot animate between ${b.constructor.name} and ${z.name}, as the "to" prop suggests`)}const fe=b.constructor;let D=B(m),oe=!1;if(!D){const z=S||!Rt(this)&&v;(g||z)&&(oe=re($e(j),V),D=!oe),(!re(u.immediate,U)&&!U||!re(R.decay,P)||!re(R.velocity,y))&&(D=!0)}if(oe&&ne(this)&&(u.changed&&!S?D=!0:D||this._stop(d)),!_&&((D||B(d))&&(u.values=b.getPayload(),u.toValues=B(m)?null:fe==De?[1]:L(V)),u.immediate!=U&&(u.immediate=U,!U&&!S&&this._set(d)),D)){const{onRest:z}=u;A(as,$=>$r(this,t,$));const ee=G(this,Ee(this,d));xe(this._pendingCalls,ee),this._pendingCalls.add(r),u.changed&&E.batchedUpdates(()=>{var $;u.changed=!S,z==null||z(ee,this),S?le(o.onRest,ee):($=u.onStart)==null||$.call(u,ee,this)})}S&&this._set(j),_?r(hn(t.to,t,this._state,this)):D?this._start():ne(this)&&!g?this._pendingCalls.add(r):r(dn(j))}_focus(e){const t=this.animation;e!==t.to&&(Er(this)&&this._detach(),t.to=e,Er(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;B(t)&&(ye(t,this),jt(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;B(e)&&Fe(e,this)}_set(e,t=!0){const r=M(e);if(!f.und(r)){const n=K(this);if(!n||!re(r,n.getValue())){const s=At(r);!n||n.constructor!=s?Wt(this,s.create(r)):n.setValue(r),n&&E.batchedUpdates(()=>{this._onChange(r,t)})}}return K(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Pe(this,"onStart",G(this,Ee(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),le(this.animation.onChange,e,this)),le(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;K(this).reset(M(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),ne(this)||(Fr(this,!0),Se(this)||this._resume())}_resume(){J.skipAnimation?this.finish():it.start(this)}_stop(e,t){if(ne(this)){Fr(this,!1);const r=this.animation;A(r.values,s=>{s.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Ie(this,{type:"idle",parent:this});const n=t?ve(this.get()):G(this.get(),Ee(this,e??r.to));xe(this._pendingCalls,n),r.changed&&(r.changed=!1,Pe(this,"onRest",n,this))}}};function Ee(e,t){const r=$e(t),n=$e(e.get());return re(n,r)}function gn(e,t=e.loop,r=e.to){const n=le(t);if(n){const s=n!==!0&&cn(n),a=(s||e).reverse,o=!s||s.reset;return Ue({...e,loop:t,default:!1,pause:void 0,to:!a||Tt(r)?r:void 0,from:o?e.from:void 0,reset:o,...s})}}function Ue(e){const{to:t,from:r}=e=cn(e),n=new Set;return f.obj(t)&&Dr(t,n),f.obj(r)&&Dr(r,n),e.keys=n.size?Array.from(n):null,e}function ss(e){const t=Ue(e);return f.und(t.default)&&(t.default=Bt(t)),t}function Dr(e,t){X(e,(r,n)=>r!=null&&t.add(n))}var as=["onStart","onRest","onChange","onPause","onResume"];function $r(e,t,r){e.animation[r]=t[r]!==ln(t,r)?un(t[r],e.key):void 0}function Pe(e,t,...r){var n,s,a,o;(s=(n=e.animation)[t])==null||s.call(n,...r),(o=(a=e.defaultProps)[t])==null||o.call(a,...r)}var os=["onStart","onChange","onRest"],us=1,ls=class{constructor(e,t){this.id=us++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,r)=>e[r]=t.get()),e}set(e){for(const t in e){const r=e[t];f.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(Ue(e)),this}start(e){let{queue:t}=this;return e?t=L(e).map(Ue):this.queue=[],this._flush?this._flush(this,t):(Rn(this,t),kt(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;A(L(t),n=>r[n].stop(!!e))}else Ne(this._state,this._lastAsyncId),this.each(r=>r.stop(!!e));return this}pause(e){if(f.und(e))this.start({pause:!0});else{const t=this.springs;A(L(e),r=>t[r].pause())}return this}resume(e){if(f.und(e))this.start({pause:!1});else{const t=this.springs;A(L(e),r=>t[r].resume())}return this}each(e){X(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,s=this._changed.size>0;(n&&!this._started||s&&!this._started)&&(this._started=!0,Oe(e,([u,d])=>{d.value=this.get(),u(d,this,this._item)}));const a=!n&&this._started,o=s||a&&r.size?this.get():null;s&&t.size&&Oe(t,([u,d])=>{d.value=o,u(d,this,this._item)}),a&&(this._started=!1,Oe(r,([u,d])=>{d.value=o,u(d,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;E.onFrame(this._onFrame)}};function kt(e,t){return Promise.all(t.map(r=>yn(e,r))).then(r=>Yt(e,r))}async function yn(e,t,r){const{keys:n,to:s,from:a,loop:o,onRest:u,onResolve:d}=t,l=f.obj(t.default)&&t.default;o&&(t.loop=!1),s===!1&&(t.to=null),a===!1&&(t.from=null);const m=f.arr(s)||f.fun(s)?s:void 0;m?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):A(os,R=>{const P=t[R];if(f.fun(P)){const y=e._events[R];t[R]=({finished:b,cancelled:S})=>{const j=y.get(P);j?(b||(j.finished=!1),S&&(j.cancelled=!0)):y.set(P,{value:null,finished:b||!1,cancelled:S||!1})},l&&(l[R]=t[R])}});const p=e._state;t.pause===!p.paused?(p.paused=t.pause,xe(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);const v=(n||Object.keys(e.springs)).map(R=>e.springs[R].start(t)),g=t.cancel===!0||ln(t,"cancel")===!0;(m||g&&p.asyncId)&&v.push(fn(++e._lastAsyncId,{props:t,state:p,actions:{pause:xt,resume:xt,start(R,P){g?(Ne(p,e._lastAsyncId),P(ve(e))):(R.onRest=u,P(hn(m,R,p,e)))}}})),p.paused&&await new Promise(R=>{p.resumeQueue.add(R)});const _=Yt(e,await Promise.all(v));if(o&&_.finished&&!(r&&_.noop)){const R=gn(t,o,s);if(R)return Rn(e,[R]),yn(e,R,!0)}return d&&E.batchedUpdates(()=>d(_,e,e.item)),_}function Nr(e,t){const r={...e.springs};return t&&A(L(t),n=>{f.und(n.keys)&&(n=Ue(n)),f.obj(n.to)||(n={...n,to:void 0}),wn(r,n,s=>_n(s))}),bn(e,r),r}function bn(e,t){X(t,(r,n)=>{e.springs[n]||(e.springs[n]=r,ye(r,e))})}function _n(e,t){const r=new is;return r.key=e,t&&ye(r,t),r}function wn(e,t,r){t.keys&&A(t.keys,n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)})}function Rn(e,t){A(t,r=>{wn(e.springs,r,n=>_n(n,e))})}var ct=({children:e,...t})=>{const r=x.useContext(et),n=t.pause||!!r.pause,s=t.immediate||!!r.immediate;t=$i(()=>({pause:n,immediate:s}),[n,s]);const{Provider:a}=et;return It.createElement(a,{value:t},e)},et=cs(ct,{});ct.Provider=et.Provider;ct.Consumer=et.Consumer;function cs(e,t){return Object.assign(e,It.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var fs=()=>{const e=[],t=function(n){Vi();const s=[];return A(e,(a,o)=>{if(f.und(n))s.push(a.start());else{const u=r(n,a,o);u&&s.push(a.start(u))}}),s};t.current=e,t.add=function(n){e.includes(n)||e.push(n)},t.delete=function(n){const s=e.indexOf(n);~s&&e.splice(s,1)},t.pause=function(){return A(e,n=>n.pause(...arguments)),this},t.resume=function(){return A(e,n=>n.resume(...arguments)),this},t.set=function(n){A(e,(s,a)=>{const o=f.fun(n)?n(a,s):n;o&&s.set(o)})},t.start=function(n){const s=[];return A(e,(a,o)=>{if(f.und(n))s.push(a.start());else{const u=this._getProps(n,a,o);u&&s.push(a.start(u))}}),s},t.stop=function(){return A(e,n=>n.stop(...arguments)),this},t.update=function(n){return A(e,(s,a)=>s.update(this._getProps(n,s,a))),this};const r=function(n,s,a){return f.fun(n)?n(a,s):n};return t._getProps=r,t};function ds(e,t,r){const n=f.fun(t)&&t;n&&!r&&(r=[]);const s=x.useMemo(()=>n||arguments.length==3?fs():void 0,[]),a=x.useRef(0),o=nn(),u=x.useMemo(()=>({ctrls:[],queue:[],flush(y,b){const S=Nr(y,b);return a.current>0&&!u.queue.length&&!Object.keys(S).some(V=>!y.springs[V])?kt(y,b):new Promise(V=>{bn(y,S),u.queue.push(()=>{V(kt(y,b))}),o()})}}),[]),d=x.useRef([...u.ctrls]),l=[],m=xr(e)||0;x.useMemo(()=>{A(d.current.slice(e,m),y=>{Ki(y,s),y.stop(!0)}),d.current.length=e,p(m,e)},[e]),x.useMemo(()=>{p(0,Math.min(m,e))},r);function p(y,b){for(let S=y;S<b;S++){const j=d.current[S]||(d.current[S]=new ls(null,u.flush)),V=n?n(S,j):t[S];V&&(l[S]=ss(V))}}const v=d.current.map((y,b)=>Nr(y,l[b])),g=x.useContext(ct),_=xr(g),R=g!==_&&Ji(g);Lt(()=>{a.current++,u.ctrls=d.current;const{queue:y}=u;y.length&&(u.queue=[],A(y,b=>b())),A(d.current,(b,S)=>{s==null||s.add(b),R&&b.start({default:g});const j=l[S];j&&(Xi(b,j.ref),b.ref?b.queue.push(j):b.start(j))})}),sn(()=>()=>{A(u.ctrls,y=>y.stop(!0))});const P=v.map(y=>({...y}));return s?[P,s]:P}function hs(e,t){const r=f.fun(e),[[n],s]=ds(1,r?e:[e],r?[]:t);return r||arguments.length==2?[n,s]:n}var ms=class extends Qt{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=je(...t);const r=this._get(),n=At(r);Wt(this,n.create(r))}advance(e){const t=this._get(),r=this.get();re(t,r)||(K(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Ur(this._active)&&St(this)}_get(){const e=f.arr(this.source)?this.source.map(M):L(M(this.source));return this.calc(...e)}_start(){this.idle&&!Ur(this._active)&&(this.idle=!1,A(ut(this),e=>{e.done=!1}),J.skipAnimation?(E.batchedUpdates(()=>this.advance()),St(this)):it.start(this))}_attach(){let e=1;A(L(this.source),t=>{B(t)&&ye(t,this),jt(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){A(L(this.source),e=>{B(e)&&Fe(e,this)}),this._active.clear(),St(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=L(this.source).reduce((t,r)=>Math.max(t,(jt(r)?r.priority:0)+1),0))}};function ps(e){return e.idle!==!1}function Ur(e){return!e.size||Array.from(e).every(ps)}function St(e){e.idle||(e.idle=!0,A(ut(e),t=>{t.done=!0}),Ie(e,{type:"idle",parent:e}))}J.assign({createStringInterpolator:tn,to:(e,t)=>new ms(e,t)});var Sn=/^--/;function vs(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Sn.test(e)&&!(Ce.hasOwnProperty(e)&&Ce[e])?t+"px":(""+t).trim()}var qr={};function gs(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:n,style:s,children:a,scrollTop:o,scrollLeft:u,viewBox:d,...l}=t,m=Object.values(l),p=Object.keys(l).map(v=>r||e.hasAttribute(v)?v:qr[v]||(qr[v]=v.replace(/([A-Z])/g,g=>"-"+g.toLowerCase())));a!==void 0&&(e.textContent=a);for(const v in s)if(s.hasOwnProperty(v)){const g=vs(v,s[v]);Sn.test(v)?e.style.setProperty(v,g):e.style[v]=g}p.forEach((v,g)=>{e.setAttribute(v,m[g])}),n!==void 0&&(e.className=n),o!==void 0&&(e.scrollTop=o),u!==void 0&&(e.scrollLeft=u),d!==void 0&&e.setAttribute("viewBox",d)}var Ce={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ys=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),bs=["Webkit","Ms","Moz","O"];Ce=Object.keys(Ce).reduce((e,t)=>(bs.forEach(r=>e[ys(r,t)]=e[t]),e),Ce);var _s=/^(matrix|translate|scale|rotate|skew)/,ws=/^(translate)/,Rs=/^(rotate|skew)/,Et=(e,t)=>f.num(e)&&e!==0?e+t:e,Je=(e,t)=>f.arr(e)?e.every(r=>Je(r,t)):f.num(e)?e===t:parseFloat(e)===t,Ss=class extends lt{constructor({x:e,y:t,z:r,...n}){const s=[],a=[];(e||t||r)&&(s.push([e||0,t||0,r||0]),a.push(o=>[`translate3d(${o.map(u=>Et(u,"px")).join(",")})`,Je(o,0)])),X(n,(o,u)=>{if(u==="transform")s.push([o||""]),a.push(d=>[d,d===""]);else if(_s.test(u)){if(delete n[u],f.und(o))return;const d=ws.test(u)?"px":Rs.test(u)?"deg":"";s.push(L(o)),a.push(u==="rotate3d"?([l,m,p,v])=>[`rotate3d(${l},${m},${p},${Et(v,d)})`,Je(v,0)]:l=>[`${u}(${l.map(m=>Et(m,d)).join(",")})`,Je(l,u.startsWith("scale")?1:0)])}}),s.length&&(n.transform=new Es(s,a)),super(n)}},Es=class extends Xr{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return A(this.inputs,(r,n)=>{const s=M(r[0]),[a,o]=this.transforms[n](f.arr(s)?s:r.map(M));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){e==1&&A(this.inputs,t=>A(t,r=>B(r)&&ye(r,this)))}observerRemoved(e){e==0&&A(this.inputs,t=>A(t,r=>B(r)&&Fe(r,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Ie(this,e)}},Ps=["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","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"];J.assign({batchedUpdates:ti.unstable_batchedUpdates,createStringInterpolator:tn,colors:hi});var xs=Bi(Ps,{applyAnimatedValues:gs,createAnimatedStyle:e=>new Ss(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}),Os=xs.animated;function En(e){const t=e.htmlElement??"div",[r,n]=x.useState(!1),s=x.useRef(null),a=x.useRef(null),[o,u]=x.useState(null),[d,l]=hs(()=>({from:{opacity:0,transform:"scale(0)"},to:{opacity:1,transform:"scale(1)"}})),m=(g,_)=>Math.floor(Math.random()*(_-g+1))+g;x.useEffect(()=>{if(s.current&&a.current){const g=s.current.getBoundingClientRect(),_=a.current.getBoundingClientRect(),R=Math.max(g.height,_.height);u(R)}},[]),x.useEffect(()=>{if(!e.animate)return;const g=setTimeout(()=>{l({opacity:0,transform:"translateY(15px)",config:{duration:200},onRest:()=>{n(_=>!_),l({opacity:1,transform:"translateY(0px)",config:{duration:200}})}})},m(3500,15e3));return()=>clearTimeout(g)},[r,e.animate,l]);const p=e.animate&&r?e.content.simplified:e.content.english,v={...e.textStyles,minHeight:o!==null?`${o}px`:void 0,display:"inline-block",alignContent:"center"};return Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{ref:s,style:{position:"absolute",visibility:"hidden",pointerEvents:"none",whiteSpace:"nowrap",font:"inherit"},children:e.content.english}),Q.jsx("div",{ref:a,style:{position:"absolute",visibility:"hidden",pointerEvents:"none",whiteSpace:"nowrap",font:"inherit"},children:e.content.simplified}),Q.jsx(Os.div,{style:d,children:Q.jsx(t,{style:v,children:p})})]})}var Pn={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Mr=x.createContext&&x.createContext(Pn),As=["attr","size","title"];function Ts(e,t){if(e==null)return{};var r=Cs(e,t),n,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)n=a[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Cs(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function tt(){return tt=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},tt.apply(this,arguments)}function zr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zr(Object(r),!0).forEach(function(n){js(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function js(e,t,r){return t=ks(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ks(e){var t=Is(e,"string");return typeof t=="symbol"?t:t+""}function Is(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xn(e){return e&&e.map((t,r)=>x.createElement(t.tag,rt({key:r},t.attr),xn(t.child)))}function On(e){return t=>x.createElement(Fs,tt({attr:rt({},e.attr)},t),xn(e.child))}function Fs(e){var t=r=>{var{attr:n,size:s,title:a}=e,o=Ts(e,As),u=s||r.size||"1em",d;return r.className&&(d=r.className),e.className&&(d=(d?d+" ":"")+e.className),x.createElement("svg",tt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,o,{className:d,style:rt(rt({color:e.color||r.color},r.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),a&&x.createElement("title",null,a),e.children)};return Mr!==void 0?x.createElement(Mr.Consumer,null,r=>t(r)):t(Pn)}function Vs(e){return On({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function Ds(e){return On({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"22",y1:"2",x2:"11",y2:"13"},child:[]},{tag:"polygon",attr:{points:"22 2 15 22 11 13 2 9 22 2"},child:[]}]})(e)}const $s=({iconComponent:e,buttonText:t,buttonType:r="primary"})=>{const n=r==="primary"?"primary":"secondary";let s;return e==="plus"?s=Q.jsx(Vs,{className:"icon-component"}):e==="send"&&(s=Q.jsx(Ds,{className:"icon-component"})),Q.jsx("div",{className:"banner-button-container",children:Q.jsxs("button",{className:`banner-button ${n}`,children:[s,Q.jsx(En,{textStyles:{minWidth:"3rem"},content:t,animate:!0})]})})};exports.AnimatedText=En;exports.BannerButton=$s;
30
+ <%s key={someKey} {...props} />`,Sr,Te,Js,Te),On[Te+Sr]=!0}}return a===n?Gs(L):Ys(L),L}}function Hs(a,f,_){return Tn(a,f,_,!0)}function Qs(a,f,_){return Tn(a,f,_,!1)}var Ks=Qs,Xs=Hs;ut.Fragment=n,ut.jsx=Ks,ut.jsxs=Xs}()),ut}var Nn;function ia(){return Nn||(Nn=1,process.env.NODE_ENV==="production"?Dt.exports=ra():Dt.exports=na()),Dt.exports}var te=ia(),Jr=Ot(),C=e=>Ct(e,Jr),Zr=Ot();C.write=e=>Ct(e,Zr);var nr=Ot();C.onStart=e=>Ct(e,nr);var en=Ot();C.onFrame=e=>Ct(e,en);var tn=Ot();C.onFinish=e=>Ct(e,tn);var He=[];C.setTimeout=(e,t)=>{const r=C.now()+t,n=()=>{const s=He.findIndex(o=>o.cancel==n);~s&&He.splice(s,1),Ae-=~s?1:0},i={time:r,handler:e,cancel:n};return He.splice(wi(r),0,i),Ae+=1,_i(),i};var wi=e=>~(~He.findIndex(t=>t.time>e)||~He.length);C.cancel=e=>{nr.delete(e),en.delete(e),tn.delete(e),Jr.delete(e),Zr.delete(e)};C.sync=e=>{jr=!0,C.batchedUpdates(e),jr=!1};C.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...i){t=i,C.onStart(r)}return n.handler=e,n.cancel=()=>{nr.delete(r),t=null},n};var rn=typeof window<"u"?window.requestAnimationFrame:()=>{};C.use=e=>rn=e;C.now=typeof performance<"u"?()=>performance.now():Date.now;C.batchedUpdates=e=>e();C.catch=console.error;C.frameLoop="always";C.advance=()=>{C.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ei()};var ke=-1,Ae=0,jr=!1;function Ct(e,t){jr?(t.delete(e),e(0)):(t.add(e),_i())}function _i(){ke<0&&(ke=0,C.frameLoop!=="demand"&&rn(Si))}function sa(){ke=-1}function Si(){~ke&&(rn(Si),C.batchedUpdates(Ei))}function Ei(){const e=ke;ke=C.now();const t=wi(ke);if(t&&(xi(He.splice(0,t),r=>r.handler()),Ae-=t),!Ae){sa();return}nr.flush(),Jr.flush(e?Math.min(64,ke-e):16.667),en.flush(),Zr.flush(),tn.flush()}function Ot(){let e=new Set,t=e;return{add(r){Ae+=t==e&&!e.has(r)?1:0,e.add(r)},delete(r){return Ae-=t==e&&e.has(r)?1:0,e.delete(r)},flush(r){t.size&&(e=new Set,Ae-=t.size,xi(t,n=>n(r)&&e.add(n)),Ae+=e.size,t=e)}}}function xi(e,t){e.forEach(r=>{try{t(r)}catch(n){C.catch(n)}})}var aa=Object.defineProperty,oa=(e,t)=>{for(var r in t)aa(e,r,{get:t[r],enumerable:!0})},he={};oa(he,{assign:()=>ua,colors:()=>Ce,createStringInterpolator:()=>sn,skipAnimation:()=>Pi,to:()=>Ri,willAdvance:()=>an});function Nr(){}var ca=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),g={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function be(e,t){if(g.arr(e)){if(!g.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}var j=(e,t)=>e.forEach(t);function ge(e,t,r){if(g.arr(e)){for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);return}for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}var J=e=>g.und(e)?[]:g.arr(e)?e:[e];function mt(e,t){if(e.size){const r=Array.from(e);e.clear(),j(r,t)}}var ht=(e,...t)=>mt(e,r=>r(...t)),nn=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),sn,Ri,Ce=null,Pi=!1,an=Nr,ua=e=>{e.to&&(Ri=e.to),e.now&&(C.now=e.now),e.colors!==void 0&&(Ce=e.colors),e.skipAnimation!=null&&(Pi=e.skipAnimation),e.createStringInterpolator&&(sn=e.createStringInterpolator),e.requestAnimationFrame&&C.use(e.requestAnimationFrame),e.batchedUpdates&&(C.batchedUpdates=e.batchedUpdates),e.willAdvance&&(an=e.willAdvance),e.frameLoop&&(C.frameLoop=e.frameLoop)},gt=new Set,ne=[],Er=[],Ht=0,ir={get idle(){return!gt.size&&!ne.length},start(e){Ht>e.priority?(gt.add(e),C.onStart(la)):(ki(e),C(Dr))},advance:Dr,sort(e){if(Ht)C.onFrame(()=>ir.sort(e));else{const t=ne.indexOf(e);~t&&(ne.splice(t,1),Ai(e))}},clear(){ne=[],gt.clear()}};function la(){gt.forEach(ki),gt.clear(),C(Dr)}function ki(e){ne.includes(e)||Ai(e)}function Ai(e){ne.splice(fa(ne,t=>t.priority>e.priority),0,e)}function Dr(e){const t=Er;for(let r=0;r<ne.length;r++){const n=ne[r];Ht=n.priority,n.idle||(an(n),n.advance(e),n.idle||t.push(n))}return Ht=0,Er=ne,Er.length=0,ne=t,ne.length>0}function fa(e,t){const r=e.findIndex(t);return r<0?e.length:r}var da={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},fe="[-+]?\\d*\\.?\\d+",Qt=fe+"%";function sr(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ha=new RegExp("rgb"+sr(fe,fe,fe)),pa=new RegExp("rgba"+sr(fe,fe,fe,fe)),ma=new RegExp("hsl"+sr(fe,Qt,Qt)),ga=new RegExp("hsla"+sr(fe,Qt,Qt,fe)),va=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ya=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ba=/^#([0-9a-fA-F]{6})$/,wa=/^#([0-9a-fA-F]{8})$/;function _a(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ba.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ce&&Ce[e]!==void 0?Ce[e]:(t=ha.exec(e))?(Ye(t[1])<<24|Ye(t[2])<<16|Ye(t[3])<<8|255)>>>0:(t=pa.exec(e))?(Ye(t[1])<<24|Ye(t[2])<<16|Ye(t[3])<<8|$n(t[4]))>>>0:(t=va.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=wa.exec(e))?parseInt(t[1],16)>>>0:(t=ya.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ma.exec(e))?(Dn(Fn(t[1]),Ft(t[2]),Ft(t[3]))|255)>>>0:(t=ga.exec(e))?(Dn(Fn(t[1]),Ft(t[2]),Ft(t[3]))|$n(t[4]))>>>0:null}function xr(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Dn(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,i=2*r-n,s=xr(i,n,e+1/3),o=xr(i,n,e),c=xr(i,n,e-1/3);return Math.round(s*255)<<24|Math.round(o*255)<<16|Math.round(c*255)<<8}function Ye(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Fn(e){return(parseFloat(e)%360+360)%360/360}function $n(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Ft(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Vn(e){let t=_a(e);if(t===null)return e;t=t||0;const r=(t&4278190080)>>>24,n=(t&16711680)>>>16,i=(t&65280)>>>8,s=(t&255)/255;return`rgba(${r}, ${n}, ${i}, ${s})`}var wt=(e,t,r)=>{if(g.fun(e))return e;if(g.arr(e))return wt({range:e,output:t,extrapolate:r});if(g.str(e.output[0]))return sn(e);const n=e,i=n.output,s=n.range||[0,1],o=n.extrapolateLeft||n.extrapolate||"extend",c=n.extrapolateRight||n.extrapolate||"extend",u=n.easing||(l=>l);return l=>{const h=Ea(l,s);return Sa(l,s[h],s[h+1],i[h],i[h+1],u,o,c,n.map)}};function Sa(e,t,r,n,i,s,o,c,u){let l=u?u(e):e;if(l<t){if(o==="identity")return l;o==="clamp"&&(l=t)}if(l>r){if(c==="identity")return l;c==="clamp"&&(l=r)}return n===i?n:t===r?e<=t?n:i:(t===-1/0?l=-l:r===1/0?l=l-t:l=(l-t)/(r-t),l=s(l),n===-1/0?l=-l:i===1/0?l=l+n:l=l*(i-n)+n,l)}function Ea(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}var xa={linear:e=>e},_t=Symbol.for("FluidValue.get"),Ke=Symbol.for("FluidValue.observers"),re=e=>!!(e&&e[_t]),K=e=>e&&e[_t]?e[_t]():e,Mn=e=>e[Ke]||null;function Ra(e,t){e.eventObserved?e.eventObserved(t):e(t)}function St(e,t){const r=e[Ke];r&&r.forEach(n=>{Ra(n,t)})}var Ci=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Pa(this,e)}},Pa=(e,t)=>Oi(e,_t,t);function rt(e,t){if(e[_t]){let r=e[Ke];r||Oi(e,Ke,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function Et(e,t){const r=e[Ke];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[Ke]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var Oi=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),Lt=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ka=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,zn=new RegExp(`(${Lt.source})(%|[a-z]+)`,"i"),Aa=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ar=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ti=e=>{const[t,r]=Ca(e);if(!t||nn())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(r);return i||e}else{if(r&&ar.test(r))return Ti(r);if(r)return r}return e},Ca=e=>{const t=ar.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]},Rr,Oa=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,Ii=e=>{Rr||(Rr=Ce?new RegExp(`(${Object.keys(Ce).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>K(s).replace(ar,Ti).replace(ka,Vn).replace(Rr,Vn)),r=t.map(s=>s.match(Lt).map(Number)),i=r[0].map((s,o)=>r.map(c=>{if(!(o in c))throw Error('The arity of each "output" value must be equal');return c[o]})).map(s=>wt({...e,output:s}));return s=>{var u;const o=!zn.test(t[0])&&((u=t.find(l=>zn.test(l)))==null?void 0:u.replace(Lt,""));let c=0;return t[0].replace(Lt,()=>`${i[c++](s)}${o||""}`).replace(Aa,Oa)}},on="react-spring: ",ji=e=>{const t=e;let r=!1;if(typeof t!="function")throw new TypeError(`${on}once requires a function parameter`);return(...n)=>{r||(t(...n),r=!0)}},Ta=ji(console.warn);function Ia(){Ta(`${on}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var ja=ji(console.warn);function Na(){ja(`${on}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function or(e){return g.str(e)&&(e[0]=="#"||/\d/.test(e)||!nn()&&ar.test(e)||e in(Ce||{}))}var cn=nn()?P.useEffect:P.useLayoutEffect,Da=()=>{const e=P.useRef(!1);return cn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Ni(){const e=P.useState()[1],t=Da();return()=>{t.current&&e(Math.random())}}function Fa(e,t){const[r]=P.useState(()=>({inputs:t,result:e()})),n=P.useRef(),i=n.current;let s=i;return s?t&&s.inputs&&$a(t,s.inputs)||(s={inputs:t,result:e()}):s=r,P.useEffect(()=>{n.current=s,i==r&&(r.inputs=r.result=void 0)},[s]),s.result}function $a(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Di=e=>P.useEffect(e,Va),Va=[];function Ln(e){const t=P.useRef();return P.useEffect(()=>{t.current=e}),t.current}var xt=Symbol.for("Animated:node"),Ma=e=>!!e&&e[xt]===e,pe=e=>e&&e[xt],un=(e,t)=>ca(e,xt,t),cr=e=>e&&e[xt]&&e[xt].getPayload(),Fi=class{constructor(){un(this,this)}getPayload(){return this.payload||[]}},Tt=class extends Fi{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,g.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Tt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return g.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,g.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Rt=class extends Tt{constructor(e){super(0),this._string=null,this._toString=wt({output:[e,e]})}static create(e){return new Rt(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(g.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=wt({output:[this.getValue(),e]})),this._value=0,super.reset()}},Kt={dependencies:null},ur=class extends Fi{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return ge(this.source,(r,n)=>{Ma(r)?t[n]=r.getValue(e):re(r)?t[n]=K(r):e||(t[n]=r)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&j(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return ge(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Kt.dependencies&&re(e)&&Kt.dependencies.add(e);const t=cr(e);t&&j(t,r=>this.add(r))}},$i=class extends ur{constructor(e){super(e)}static create(e){return new $i(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((r,n)=>r.setValue(e[n])).some(Boolean):(super.setValue(e.map(za)),!0)}};function za(e){return(or(e)?Rt:Tt).create(e)}function Fr(e){const t=pe(e);return t?t.constructor:g.arr(e)?$i:or(e)?Rt:Tt}var Un=(e,t)=>{const r=!g.fun(e)||e.prototype&&e.prototype.isReactComponent;return P.forwardRef((n,i)=>{const s=P.useRef(null),o=r&&P.useCallback(b=>{s.current=qa(i,b)},[i]),[c,u]=Ua(n,t),l=Ni(),h=()=>{const b=s.current;if(r&&!b)return;(b?t.applyAnimatedValues(b,c.getValue(!0)):!1)===!1&&l()},d=new La(h,u),p=P.useRef();cn(()=>(p.current=d,j(u,b=>rt(b,d)),()=>{p.current&&(j(p.current.deps,b=>Et(b,p.current)),C.cancel(p.current.update))})),P.useEffect(h,[]),Di(()=>()=>{const b=p.current;j(b.deps,S=>Et(S,b))});const m=t.getComponentProps(c.getValue());return Xr.createElement(e,{...m,ref:o})})},La=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&C.write(this.update)}};function Ua(e,t){const r=new Set;return Kt.dependencies=r,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new ur(e),Kt.dependencies=null,[e,r]}function qa(e,t){return e&&(g.fun(e)?e(t):e.current=t),t}var qn=Symbol.for("AnimatedComponent"),Ba=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=i=>new ur(i),getComponentProps:n=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},s=o=>{const c=Bn(o)||"Anonymous";return g.str(o)?o=s[o]||(s[o]=Un(o,i)):o=o[qn]||(o[qn]=Un(o,i)),o.displayName=`Animated(${c})`,o};return ge(e,(o,c)=>{g.arr(e)&&(c=Bn(o)),s[c]=s(o)}),{animated:s}},Bn=e=>g.str(e)?e:e&&g.str(e.displayName)?e.displayName:g.fun(e)&&e.name||null;function Ie(e,...t){return g.fun(e)?e(...t):e}var vt=(e,t)=>e===!0||!!(t&&e&&(g.fun(e)?e(t):J(e).includes(t))),Vi=(e,t)=>g.obj(e)?t&&e[t]:e,Mi=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Wa=e=>e,ln=(e,t=Wa)=>{let r=Ya;e.default&&e.default!==!0&&(e=e.default,r=Object.keys(e));const n={};for(const i of r){const s=t(e[i],i);g.und(s)||(n[i]=s)}return n},Ya=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Ga={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Ha(e){const t={};let r=0;if(ge(e,(n,i)=>{Ga[i]||(t[i]=n,r++)}),r)return t}function zi(e){const t=Ha(e);if(t){const r={to:t};return ge(e,(n,i)=>i in t||(r[i]=n)),r}return{...e}}function Pt(e){return e=K(e),g.arr(e)?e.map(Pt):or(e)?he.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Qa(e){for(const t in e)return!0;return!1}function $r(e){return g.fun(e)||g.arr(e)&&g.obj(e[0])}function Ka(e,t){var r;(r=e.ref)==null||r.delete(e),t==null||t.delete(e)}function Xa(e,t){var r;t&&e.ref!==t&&((r=e.ref)==null||r.delete(e),t.add(e),e.ref=t)}var Ja={default:{tension:170,friction:26}},Vr={...Ja.default,mass:1,damping:1,easing:xa.linear,clamp:!1},Za=class{constructor(){this.velocity=0,Object.assign(this,Vr)}};function eo(e,t,r){r&&(r={...r},Wn(r,t),t={...r,...t}),Wn(e,t),Object.assign(e,t);for(const o in Vr)e[o]==null&&(e[o]=Vr[o]);let{frequency:n,damping:i}=e;const{mass:s}=e;return g.und(n)||(n<.01&&(n=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/n,2)*s,e.friction=4*Math.PI*i*s/n),e}function Wn(e,t){if(!g.und(t.decay))e.duration=void 0;else{const r=!g.und(t.tension)||!g.und(t.friction);(r||!g.und(t.frequency)||!g.und(t.damping)||!g.und(t.mass))&&(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}}var Yn=[],to=class{constructor(){this.changed=!1,this.values=Yn,this.toValues=null,this.fromValues=Yn,this.config=new Za,this.immediate=!1}};function Li(e,{key:t,props:r,defaultProps:n,state:i,actions:s}){return new Promise((o,c)=>{let u,l,h=vt(r.cancel??(n==null?void 0:n.cancel),t);if(h)m();else{g.und(r.pause)||(i.paused=vt(r.pause,t));let b=n==null?void 0:n.pause;b!==!0&&(b=i.paused||vt(b,t)),u=Ie(r.delay||0,t),b?(i.resumeQueue.add(p),s.pause()):(s.resume(),p())}function d(){i.resumeQueue.add(p),i.timeouts.delete(l),l.cancel(),u=l.time-C.now()}function p(){u>0&&!he.skipAnimation?(i.delayed=!0,l=C.setTimeout(m,u),i.pauseQueue.add(d),i.timeouts.add(l)):m()}function m(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(l),e<=(i.cancelId||0)&&(h=!0);try{s.start({...r,callId:e,cancel:h},o)}catch(b){c(b)}}})}var fn=(e,t)=>t.length==1?t[0]:t.some(r=>r.cancelled)?Qe(e.get()):t.every(r=>r.noop)?Ui(e.get()):le(e.get(),t.every(r=>r.finished)),Ui=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),le=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),Qe=e=>({value:e,cancelled:!0,finished:!1});function qi(e,t,r,n){const{callId:i,parentId:s,onRest:o}=t,{asyncTo:c,promise:u}=r;return!s&&e===c&&!t.reset?u:r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const l=ln(t,(x,v)=>v==="onRest"?void 0:x);let h,d;const p=new Promise((x,v)=>(h=x,d=v)),m=x=>{const v=i<=(r.cancelId||0)&&Qe(n)||i!==r.asyncId&&le(n,!1);if(v)throw x.result=v,d(x),x},b=(x,v)=>{const y=new Gn,w=new Hn;return(async()=>{if(he.skipAnimation)throw kt(r),w.result=le(n,!1),d(w),w;m(y);const R=g.obj(x)?{...x}:{...v,to:x};R.parentId=i,ge(l,(A,E)=>{g.und(R[E])&&(R[E]=A)});const O=await n.start(R);return m(y),r.paused&&await new Promise(A=>{r.resumeQueue.add(A)}),O})()};let S;if(he.skipAnimation)return kt(r),le(n,!1);try{let x;g.arr(e)?x=(async v=>{for(const y of v)await b(y)})(e):x=Promise.resolve(e(b,n.stop.bind(n))),await Promise.all([x.then(h),p]),S=le(n.get(),!0,!1)}catch(x){if(x instanceof Gn)S=x.result;else if(x instanceof Hn)S=x.result;else throw x}finally{i==r.asyncId&&(r.asyncId=s,r.asyncTo=s?c:void 0,r.promise=s?u:void 0)}return g.fun(o)&&C.batchedUpdates(()=>{o(S,n,n.item)}),S})()}function kt(e,t){mt(e.timeouts,r=>r.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Gn=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Hn=class extends Error{constructor(){super("SkipAnimationSignal")}},Mr=e=>e instanceof dn,ro=1,dn=class extends Ci{constructor(){super(...arguments),this.id=ro++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=pe(this);return e&&e.getValue()}to(...e){return he.to(this,e)}interpolate(...e){return Ia(),he.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){St(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ir.sort(this),St(this,{type:"priority",parent:this,priority:e})}},$e=Symbol.for("SpringPhase"),Bi=1,Wi=2,Yi=4,Pr=e=>(e[$e]&Bi)>0,Re=e=>(e[$e]&Wi)>0,lt=e=>(e[$e]&Yi)>0,Qn=(e,t)=>t?e[$e]|=Wi|Bi:e[$e]&=-3,Kn=(e,t)=>t?e[$e]|=Yi:e[$e]&=-5,no=class extends dn{constructor(e,t){if(super(),this.animation=new to,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!g.und(e)||!g.und(t)){const r=g.obj(e)?{...e}:{...t,from:e};g.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(Re(this)||this._state.asyncTo)||lt(this)}get goal(){return K(this.animation.to)}get velocity(){const e=pe(this);return e instanceof Tt?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Pr(this)}get isAnimating(){return Re(this)}get isPaused(){return lt(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{toValues:i}=n;const{config:s}=n,o=cr(n.to);!o&&re(n.to)&&(i=J(K(n.to))),n.values.forEach((l,h)=>{if(l.done)return;const d=l.constructor==Rt?1:o?o[h].lastPosition:i[h];let p=n.immediate,m=d;if(!p){if(m=l.lastPosition,s.tension<=0){l.done=!0;return}let b=l.elapsedTime+=e;const S=n.fromValues[h],x=l.v0!=null?l.v0:l.v0=g.arr(s.velocity)?s.velocity[h]:s.velocity;let v;const y=s.precision||(S==d?.005:Math.min(1,Math.abs(d-S)*.001));if(g.und(s.duration))if(s.decay){const w=s.decay===!0?.998:s.decay,R=Math.exp(-(1-w)*b);m=S+x/(1-w)*(1-R),p=Math.abs(l.lastPosition-m)<=y,v=x*R}else{v=l.lastVelocity==null?x:l.lastVelocity;const w=s.restVelocity||y/10,R=s.clamp?0:s.bounce,O=!g.und(R),A=S==d?l.v0>0:S<d;let E,W=!1;const M=1,ve=Math.ceil(e/M);for(let Y=0;Y<ve&&(E=Math.abs(v)>w,!(!E&&(p=Math.abs(d-m)<=y,p)));++Y){O&&(W=m==d||m>d==A,W&&(v=-v*R,m=d));const se=-s.tension*1e-6*(m-d),q=-s.friction*.001*v,ae=(se+q)/s.mass;v=v+ae*M,m=m+v*M}}else{let w=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,l.durationProgress>0&&(l.elapsedTime=s.duration*l.durationProgress,b=l.elapsedTime+=e)),w=(s.progress||0)+b/this._memoizedDuration,w=w>1?1:w<0?0:w,l.durationProgress=w),m=S+s.easing(w)*(d-S),v=(m-l.lastPosition)/e,p=w==1}l.lastVelocity=v,Number.isNaN(m)&&(console.warn("Got NaN while animating:",this),p=!0)}o&&!o[h].done&&(p=!1),p?l.done=!0:t=!1,l.setValue(m,s.round)&&(r=!0)});const c=pe(this),u=c.getValue();if(t){const l=K(n.to);(u!==l||r)&&!s.decay?(c.setValue(l),this._onChange(l)):r&&s.decay&&this._onChange(u),this._stop()}else r&&this._onChange(u)}set(e){return C.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Re(this)){const{to:e,config:t}=this.animation;C.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return g.und(e)?(r=this.queue||[],this.queue=[]):r=[g.obj(e)?e:{...t,to:e}],Promise.all(r.map(n=>this._update(n))).then(n=>fn(this,n))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),kt(this._state,e&&this._lastCallId),C.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:n}=e;r=g.obj(r)?r[t]:r,(r==null||$r(r))&&(r=void 0),n=g.obj(n)?n[t]:n,n==null&&(n=void 0);const i={to:r,from:n};return Pr(this)||(e.reverse&&([r,n]=[n,r]),n=K(n),g.und(n)?pe(this)||this._set(r):this._set(n)),i}_update({...e},t){const{key:r,defaultProps:n}=this;e.default&&Object.assign(n,ln(e,(o,c)=>/^on/.test(c)?Vi(o,r):o)),Jn(this,e,"onProps"),dt(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return Li(++this._lastCallId,{key:r,props:e,defaultProps:n,state:s,actions:{pause:()=>{lt(this)||(Kn(this,!0),ht(s.pauseQueue),dt(this,"onPause",le(this,ft(this,this.animation.to)),this))},resume:()=>{lt(this)&&(Kn(this,!1),Re(this)&&this._resume(),ht(s.resumeQueue),dt(this,"onResume",le(this,ft(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const c=Gi(e);if(c)return this._update(c,!0)}return o})}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(Qe(this));const n=!g.und(e.to),i=!g.und(e.from);if(n||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return r(Qe(this));const{key:s,defaultProps:o,animation:c}=this,{to:u,from:l}=c;let{to:h=u,from:d=l}=e;i&&!n&&(!t.default||g.und(h))&&(h=d),t.reverse&&([h,d]=[d,h]);const p=!be(d,l);p&&(c.from=d),d=K(d);const m=!be(h,u);m&&this._focus(h);const b=$r(t.to),{config:S}=c,{decay:x,velocity:v}=S;(n||i)&&(S.velocity=0),t.config&&!b&&eo(S,Ie(t.config,s),t.config!==o.config?Ie(o.config,s):void 0);let y=pe(this);if(!y||g.und(h))return r(le(this,!0));const w=g.und(t.reset)?i&&!t.default:!g.und(d)&&vt(t.reset,s),R=w?d:this.get(),O=Pt(h),A=g.num(O)||g.arr(O)||or(O),E=!b&&(!A||vt(o.immediate||t.immediate,s));if(m){const Y=Fr(h);if(Y!==y.constructor)if(E)y=this._set(O);else throw Error(`Cannot animate between ${y.constructor.name} and ${Y.name}, as the "to" prop suggests`)}const W=y.constructor;let M=re(h),ve=!1;if(!M){const Y=w||!Pr(this)&&p;(m||Y)&&(ve=be(Pt(R),O),M=!ve),(!be(c.immediate,E)&&!E||!be(S.decay,x)||!be(S.velocity,v))&&(M=!0)}if(ve&&Re(this)&&(c.changed&&!w?M=!0:M||this._stop(u)),!b&&((M||re(u))&&(c.values=y.getPayload(),c.toValues=re(h)?null:W==Rt?[1]:J(O)),c.immediate!=E&&(c.immediate=E,!E&&!w&&this._set(u)),M)){const{onRest:Y}=c;j(so,q=>Jn(this,t,q));const se=le(this,ft(this,u));ht(this._pendingCalls,se),this._pendingCalls.add(r),c.changed&&C.batchedUpdates(()=>{var q;c.changed=!w,Y==null||Y(se,this),w?Ie(o.onRest,se):(q=c.onStart)==null||q.call(c,se,this)})}w&&this._set(R),b?r(qi(t.to,t,this._state,this)):M?this._start():Re(this)&&!m?this._pendingCalls.add(r):r(Ui(R))}_focus(e){const t=this.animation;e!==t.to&&(Mn(this)&&this._detach(),t.to=e,Mn(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;re(t)&&(rt(t,this),Mr(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;re(e)&&Et(e,this)}_set(e,t=!0){const r=K(e);if(!g.und(r)){const n=pe(this);if(!n||!be(r,n.getValue())){const i=Fr(r);!n||n.constructor!=i?un(this,i.create(r)):n.setValue(r),n&&C.batchedUpdates(()=>{this._onChange(r,t)})}}return pe(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,dt(this,"onStart",le(this,ft(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Ie(this.animation.onChange,e,this)),Ie(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;pe(this).reset(K(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Re(this)||(Qn(this,!0),lt(this)||this._resume())}_resume(){he.skipAnimation?this.finish():ir.start(this)}_stop(e,t){if(Re(this)){Qn(this,!1);const r=this.animation;j(r.values,i=>{i.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),St(this,{type:"idle",parent:this});const n=t?Qe(this.get()):le(this.get(),ft(this,e??r.to));ht(this._pendingCalls,n),r.changed&&(r.changed=!1,dt(this,"onRest",n,this))}}};function ft(e,t){const r=Pt(t),n=Pt(e.get());return be(n,r)}function Gi(e,t=e.loop,r=e.to){const n=Ie(t);if(n){const i=n!==!0&&zi(n),s=(i||e).reverse,o=!i||i.reset;return At({...e,loop:t,default:!1,pause:void 0,to:!s||$r(r)?r:void 0,from:o?e.from:void 0,reset:o,...i})}}function At(e){const{to:t,from:r}=e=zi(e),n=new Set;return g.obj(t)&&Xn(t,n),g.obj(r)&&Xn(r,n),e.keys=n.size?Array.from(n):null,e}function io(e){const t=At(e);return g.und(t.default)&&(t.default=ln(t)),t}function Xn(e,t){ge(e,(r,n)=>r!=null&&t.add(n))}var so=["onStart","onRest","onChange","onPause","onResume"];function Jn(e,t,r){e.animation[r]=t[r]!==Mi(t,r)?Vi(t[r],e.key):void 0}function dt(e,t,...r){var n,i,s,o;(i=(n=e.animation)[t])==null||i.call(n,...r),(o=(s=e.defaultProps)[t])==null||o.call(s,...r)}var ao=["onStart","onChange","onRest"],oo=1,co=class{constructor(e,t){this.id=oo++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,r)=>e[r]=t.get()),e}set(e){for(const t in e){const r=e[t];g.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(At(e)),this}start(e){let{queue:t}=this;return e?t=J(e).map(At):this.queue=[],this._flush?this._flush(this,t):(Ji(this,t),zr(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;j(J(t),n=>r[n].stop(!!e))}else kt(this._state,this._lastAsyncId),this.each(r=>r.stop(!!e));return this}pause(e){if(g.und(e))this.start({pause:!0});else{const t=this.springs;j(J(e),r=>t[r].pause())}return this}resume(e){if(g.und(e))this.start({pause:!1});else{const t=this.springs;j(J(e),r=>t[r].resume())}return this}each(e){ge(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,mt(e,([c,u])=>{u.value=this.get(),c(u,this,this._item)}));const s=!n&&this._started,o=i||s&&r.size?this.get():null;i&&t.size&&mt(t,([c,u])=>{u.value=o,c(u,this,this._item)}),s&&(this._started=!1,mt(r,([c,u])=>{u.value=o,c(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;C.onFrame(this._onFrame)}};function zr(e,t){return Promise.all(t.map(r=>Hi(e,r))).then(r=>fn(e,r))}async function Hi(e,t,r){const{keys:n,to:i,from:s,loop:o,onRest:c,onResolve:u}=t,l=g.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),s===!1&&(t.from=null);const h=g.arr(i)||g.fun(i)?i:void 0;h?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):j(ao,S=>{const x=t[S];if(g.fun(x)){const v=e._events[S];t[S]=({finished:y,cancelled:w})=>{const R=v.get(x);R?(y||(R.finished=!1),w&&(R.cancelled=!0)):v.set(x,{value:null,finished:y||!1,cancelled:w||!1})},l&&(l[S]=t[S])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,ht(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(n||Object.keys(e.springs)).map(S=>e.springs[S].start(t)),m=t.cancel===!0||Mi(t,"cancel")===!0;(h||m&&d.asyncId)&&p.push(Li(++e._lastAsyncId,{props:t,state:d,actions:{pause:Nr,resume:Nr,start(S,x){m?(kt(d,e._lastAsyncId),x(Qe(e))):(S.onRest=c,x(qi(h,S,d,e)))}}})),d.paused&&await new Promise(S=>{d.resumeQueue.add(S)});const b=fn(e,await Promise.all(p));if(o&&b.finished&&!(r&&b.noop)){const S=Gi(t,o,i);if(S)return Ji(e,[S]),Hi(e,S,!0)}return u&&C.batchedUpdates(()=>u(b,e,e.item)),b}function Zn(e,t){const r={...e.springs};return t&&j(J(t),n=>{g.und(n.keys)&&(n=At(n)),g.obj(n.to)||(n={...n,to:void 0}),Xi(r,n,i=>Ki(i))}),Qi(e,r),r}function Qi(e,t){ge(t,(r,n)=>{e.springs[n]||(e.springs[n]=r,rt(r,e))})}function Ki(e,t){const r=new no;return r.key=e,t&&rt(r,t),r}function Xi(e,t,r){t.keys&&j(t.keys,n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)})}function Ji(e,t){j(t,r=>{Xi(e.springs,r,n=>Ki(n,e))})}var lr=({children:e,...t})=>{const r=P.useContext(Xt),n=t.pause||!!r.pause,i=t.immediate||!!r.immediate;t=Fa(()=>({pause:n,immediate:i}),[n,i]);const{Provider:s}=Xt;return Xr.createElement(s,{value:t},e)},Xt=uo(lr,{});lr.Provider=Xt.Provider;lr.Consumer=Xt.Consumer;function uo(e,t){return Object.assign(e,Xr.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var lo=()=>{const e=[],t=function(n){Na();const i=[];return j(e,(s,o)=>{if(g.und(n))i.push(s.start());else{const c=r(n,s,o);c&&i.push(s.start(c))}}),i};t.current=e,t.add=function(n){e.includes(n)||e.push(n)},t.delete=function(n){const i=e.indexOf(n);~i&&e.splice(i,1)},t.pause=function(){return j(e,n=>n.pause(...arguments)),this},t.resume=function(){return j(e,n=>n.resume(...arguments)),this},t.set=function(n){j(e,(i,s)=>{const o=g.fun(n)?n(s,i):n;o&&i.set(o)})},t.start=function(n){const i=[];return j(e,(s,o)=>{if(g.und(n))i.push(s.start());else{const c=this._getProps(n,s,o);c&&i.push(s.start(c))}}),i},t.stop=function(){return j(e,n=>n.stop(...arguments)),this},t.update=function(n){return j(e,(i,s)=>i.update(this._getProps(n,i,s))),this};const r=function(n,i,s){return g.fun(n)?n(s,i):n};return t._getProps=r,t};function fo(e,t,r){const n=g.fun(t)&&t;n&&!r&&(r=[]);const i=P.useMemo(()=>n||arguments.length==3?lo():void 0,[]),s=P.useRef(0),o=Ni(),c=P.useMemo(()=>({ctrls:[],queue:[],flush(v,y){const w=Zn(v,y);return s.current>0&&!c.queue.length&&!Object.keys(w).some(O=>!v.springs[O])?zr(v,y):new Promise(O=>{Qi(v,w),c.queue.push(()=>{O(zr(v,y))}),o()})}}),[]),u=P.useRef([...c.ctrls]),l=[],h=Ln(e)||0;P.useMemo(()=>{j(u.current.slice(e,h),v=>{Ka(v,i),v.stop(!0)}),u.current.length=e,d(h,e)},[e]),P.useMemo(()=>{d(0,Math.min(h,e))},r);function d(v,y){for(let w=v;w<y;w++){const R=u.current[w]||(u.current[w]=new co(null,c.flush)),O=n?n(w,R):t[w];O&&(l[w]=io(O))}}const p=u.current.map((v,y)=>Zn(v,l[y])),m=P.useContext(lr),b=Ln(m),S=m!==b&&Qa(m);cn(()=>{s.current++,c.ctrls=u.current;const{queue:v}=c;v.length&&(c.queue=[],j(v,y=>y())),j(u.current,(y,w)=>{i==null||i.add(y),S&&y.start({default:m});const R=l[w];R&&(Xa(y,R.ref),y.ref?y.queue.push(R):y.start(R))})}),Di(()=>()=>{j(c.ctrls,v=>v.stop(!0))});const x=p.map(v=>({...v}));return i?[x,i]:x}function ho(e,t){const r=g.fun(e),[[n],i]=fo(1,r?e:[e],r?[]:t);return r||arguments.length==2?[n,i]:n}var po=class extends dn{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=wt(...t);const r=this._get(),n=Fr(r);un(this,n.create(r))}advance(e){const t=this._get(),r=this.get();be(t,r)||(pe(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ei(this._active)&&kr(this)}_get(){const e=g.arr(this.source)?this.source.map(K):J(K(this.source));return this.calc(...e)}_start(){this.idle&&!ei(this._active)&&(this.idle=!1,j(cr(this),e=>{e.done=!1}),he.skipAnimation?(C.batchedUpdates(()=>this.advance()),kr(this)):ir.start(this))}_attach(){let e=1;j(J(this.source),t=>{re(t)&&rt(t,this),Mr(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){j(J(this.source),e=>{re(e)&&Et(e,this)}),this._active.clear(),kr(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=J(this.source).reduce((t,r)=>Math.max(t,(Mr(r)?r.priority:0)+1),0))}};function mo(e){return e.idle!==!1}function ei(e){return!e.size||Array.from(e).every(mo)}function kr(e){e.idle||(e.idle=!0,j(cr(e),t=>{t.done=!0}),St(e,{type:"idle",parent:e}))}he.assign({createStringInterpolator:Ii,to:(e,t)=>new po(e,t)});var Zi=/^--/;function go(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Zi.test(e)&&!(yt.hasOwnProperty(e)&&yt[e])?t+"px":(""+t).trim()}var ti={};function vo(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:n,style:i,children:s,scrollTop:o,scrollLeft:c,viewBox:u,...l}=t,h=Object.values(l),d=Object.keys(l).map(p=>r||e.hasAttribute(p)?p:ti[p]||(ti[p]=p.replace(/([A-Z])/g,m=>"-"+m.toLowerCase())));s!==void 0&&(e.textContent=s);for(const p in i)if(i.hasOwnProperty(p)){const m=go(p,i[p]);Zi.test(p)?e.style.setProperty(p,m):e.style[p]=m}d.forEach((p,m)=>{e.setAttribute(p,h[m])}),n!==void 0&&(e.className=n),o!==void 0&&(e.scrollTop=o),c!==void 0&&(e.scrollLeft=c),u!==void 0&&e.setAttribute("viewBox",u)}var yt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yo=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),bo=["Webkit","Ms","Moz","O"];yt=Object.keys(yt).reduce((e,t)=>(bo.forEach(r=>e[yo(r,t)]=e[t]),e),yt);var wo=/^(matrix|translate|scale|rotate|skew)/,_o=/^(translate)/,So=/^(rotate|skew)/,Ar=(e,t)=>g.num(e)&&e!==0?e+t:e,Ut=(e,t)=>g.arr(e)?e.every(r=>Ut(r,t)):g.num(e)?e===t:parseFloat(e)===t,Eo=class extends ur{constructor({x:e,y:t,z:r,...n}){const i=[],s=[];(e||t||r)&&(i.push([e||0,t||0,r||0]),s.push(o=>[`translate3d(${o.map(c=>Ar(c,"px")).join(",")})`,Ut(o,0)])),ge(n,(o,c)=>{if(c==="transform")i.push([o||""]),s.push(u=>[u,u===""]);else if(wo.test(c)){if(delete n[c],g.und(o))return;const u=_o.test(c)?"px":So.test(c)?"deg":"";i.push(J(o)),s.push(c==="rotate3d"?([l,h,d,p])=>[`rotate3d(${l},${h},${d},${Ar(p,u)})`,Ut(p,0)]:l=>[`${c}(${l.map(h=>Ar(h,u)).join(",")})`,Ut(l,c.startsWith("scale")?1:0)])}}),i.length&&(n.transform=new xo(i,s)),super(n)}},xo=class extends Ci{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return j(this.inputs,(r,n)=>{const i=K(r[0]),[s,o]=this.transforms[n](g.arr(i)?i:r.map(K));e+=" "+s,t=t&&o}),t?"none":e}observerAdded(e){e==1&&j(this.inputs,t=>j(t,r=>re(r)&&rt(r,this)))}observerRemoved(e){e==0&&j(this.inputs,t=>j(t,r=>re(r)&&Et(r,this)))}eventObserved(e){e.type=="change"&&(this._value=null),St(this,e)}},Ro=["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","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"];he.assign({batchedUpdates:ea.unstable_batchedUpdates,createStringInterpolator:Ii,colors:da});var Po=Ba(Ro,{applyAnimatedValues:vo,createAnimatedStyle:e=>new Eo(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}),ko=Po.animated;function es(e){const t=e.htmlElement??"div",[r,n]=P.useState(!1),i=P.useRef(null),s=P.useRef(null),[o,c]=P.useState(null),[u,l]=ho(()=>({from:{opacity:0,transform:"scale(0)"},to:{opacity:1,transform:"scale(1)"}})),h=(m,b)=>Math.floor(Math.random()*(b-m+1))+m;P.useEffect(()=>{if(i.current&&s.current){const m=i.current.getBoundingClientRect(),b=s.current.getBoundingClientRect(),S=Math.max(m.height,b.height);c(S)}},[]),P.useEffect(()=>{if(!e.animate)return;const m=setTimeout(()=>{l({opacity:0,transform:"translateY(15px)",config:{duration:200},onRest:()=>{n(b=>!b),l({opacity:1,transform:"translateY(0px)",config:{duration:200}})}})},h(3500,15e3));return()=>clearTimeout(m)},[r,e.animate,l]);const d=e.animate&&r?e.content.simplified:e.content.english,p={...e.textStyles,minHeight:o!==null?`${o}px`:void 0,display:"inline-block",alignContent:"center"};return te.jsxs(te.Fragment,{children:[te.jsx("div",{ref:i,style:{position:"absolute",visibility:"hidden",pointerEvents:"none",whiteSpace:"nowrap",font:"inherit"},children:e.content.english}),te.jsx("div",{ref:s,style:{position:"absolute",visibility:"hidden",pointerEvents:"none",whiteSpace:"nowrap",font:"inherit"},children:e.content.simplified}),te.jsx(ko.div,{style:u,children:te.jsx(t,{style:p,children:d})})]})}var X=function(){return X=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},X.apply(this,arguments)};function Ve(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}function Ao(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Co=/^((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|disableRemotePlayback|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)-.*))$/,Oo=Ao(function(e){return Co.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),V="-ms-",bt="-moz-",F="-webkit-",ts="comm",fr="rule",hn="decl",To="@import",rs="@keyframes",Io="@layer",ns=Math.abs,pn=String.fromCharCode,Lr=Object.assign;function jo(e,t){return B(e,0)^45?(((t<<2^B(e,0))<<2^B(e,1))<<2^B(e,2))<<2^B(e,3):0}function is(e){return e.trim()}function we(e,t){return(e=t.exec(e))?e[0]:e}function T(e,t,r){return e.replace(t,r)}function qt(e,t,r){return e.indexOf(t,r)}function B(e,t){return e.charCodeAt(t)|0}function Xe(e,t,r){return e.slice(t,r)}function me(e){return e.length}function ss(e){return e.length}function pt(e,t){return t.push(e),e}function No(e,t){return e.map(t).join("")}function ri(e,t){return e.filter(function(r){return!we(r,t)})}var dr=1,Je=1,as=0,ie=0,U=0,nt="";function hr(e,t,r,n,i,s,o,c){return{value:e,root:t,parent:r,type:n,props:i,children:s,line:dr,column:Je,length:o,return:"",siblings:c}}function Pe(e,t){return Lr(hr("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ge(e){for(;e.root;)e=Pe(e.root,{children:[e]});pt(e,e.siblings)}function Do(){return U}function Fo(){return U=ie>0?B(nt,--ie):0,Je--,U===10&&(Je=1,dr--),U}function de(){return U=ie<as?B(nt,ie++):0,Je++,U===10&&(Je=1,dr++),U}function De(){return B(nt,ie)}function Bt(){return ie}function pr(e,t){return Xe(nt,e,t)}function Ur(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 $o(e){return dr=Je=1,as=me(nt=e),ie=0,[]}function Vo(e){return nt="",e}function Cr(e){return is(pr(ie-1,qr(e===91?e+2:e===40?e+1:e)))}function Mo(e){for(;(U=De())&&U<33;)de();return Ur(e)>2||Ur(U)>3?"":" "}function zo(e,t){for(;--t&&de()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return pr(e,Bt()+(t<6&&De()==32&&de()==32))}function qr(e){for(;de();)switch(U){case e:return ie;case 34:case 39:e!==34&&e!==39&&qr(U);break;case 40:e===41&&qr(e);break;case 92:de();break}return ie}function Lo(e,t){for(;de()&&e+U!==57;)if(e+U===84&&De()===47)break;return"/*"+pr(t,ie-1)+"*"+pn(e===47?e:de())}function Uo(e){for(;!Ur(De());)de();return pr(e,ie)}function qo(e){return Vo(Wt("",null,null,null,[""],e=$o(e),0,[0],e))}function Wt(e,t,r,n,i,s,o,c,u){for(var l=0,h=0,d=o,p=0,m=0,b=0,S=1,x=1,v=1,y=0,w="",R=i,O=s,A=n,E=w;x;)switch(b=y,y=de()){case 40:if(b!=108&&B(E,d-1)==58){qt(E+=T(Cr(y),"&","&\f"),"&\f",ns(l?c[l-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:E+=Cr(y);break;case 9:case 10:case 13:case 32:E+=Mo(b);break;case 92:E+=zo(Bt()-1,7);continue;case 47:switch(De()){case 42:case 47:pt(Bo(Lo(de(),Bt()),t,r,u),u);break;default:E+="/"}break;case 123*S:c[l++]=me(E)*v;case 125*S:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+h:v==-1&&(E=T(E,/\f/g,"")),m>0&&me(E)-d&&pt(m>32?ii(E+";",n,r,d-1,u):ii(T(E," ","")+";",n,r,d-2,u),u);break;case 59:E+=";";default:if(pt(A=ni(E,t,r,l,h,i,c,w,R=[],O=[],d,s),s),y===123)if(h===0)Wt(E,t,A,A,R,s,d,c,O);else switch(p===99&&B(E,3)===110?100:p){case 100:case 108:case 109:case 115:Wt(e,A,A,n&&pt(ni(e,A,A,0,0,i,c,w,i,R=[],d,O),O),i,O,d,c,n?R:O);break;default:Wt(E,A,A,A,[""],O,0,c,O)}}l=h=m=0,S=v=1,w=E="",d=o;break;case 58:d=1+me(E),m=b;default:if(S<1){if(y==123)--S;else if(y==125&&S++==0&&Fo()==125)continue}switch(E+=pn(y),y*S){case 38:v=h>0?1:(E+="\f",-1);break;case 44:c[l++]=(me(E)-1)*v,v=1;break;case 64:De()===45&&(E+=Cr(de())),p=De(),h=d=me(w=E+=Uo(Bt())),y++;break;case 45:b===45&&me(E)==2&&(S=0)}}return s}function ni(e,t,r,n,i,s,o,c,u,l,h,d){for(var p=i-1,m=i===0?s:[""],b=ss(m),S=0,x=0,v=0;S<n;++S)for(var y=0,w=Xe(e,p+1,p=ns(x=o[S])),R=e;y<b;++y)(R=is(x>0?m[y]+" "+w:T(w,/&\f/g,m[y])))&&(u[v++]=R);return hr(e,t,r,i===0?fr:c,u,l,h,d)}function Bo(e,t,r,n){return hr(e,t,r,ts,pn(Do()),Xe(e,2,-2),0,n)}function ii(e,t,r,n,i){return hr(e,t,r,hn,Xe(e,0,n),Xe(e,n+1,-1),n,i)}function os(e,t,r){switch(jo(e,t)){case 5103:return F+"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 F+e+e;case 4789:return bt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+bt+e+V+e+e;case 5936:switch(B(e,t+11)){case 114:return F+e+V+T(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+V+T(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+V+T(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return F+e+V+e+e;case 6165:return F+e+V+"flex-"+e+e;case 5187:return F+e+T(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+V+"flex-$1$2")+e;case 5443:return F+e+V+"flex-item-"+T(e,/flex-|-self/g,"")+(we(e,/flex-|baseline/)?"":V+"grid-row-"+T(e,/flex-|-self/g,""))+e;case 4675:return F+e+V+"flex-line-pack"+T(e,/align-content|flex-|-self/g,"")+e;case 5548:return F+e+V+T(e,"shrink","negative")+e;case 5292:return F+e+V+T(e,"basis","preferred-size")+e;case 6060:return F+"box-"+T(e,"-grow","")+F+e+V+T(e,"grow","positive")+e;case 4554:return F+T(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return T(T(T(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return T(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return T(T(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+V+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4200:if(!we(e,/flex-|baseline/))return V+"grid-column-align"+Xe(e,t)+e;break;case 2592:case 3360:return V+T(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,i){return t=i,we(n.props,/grid-\w+-end/)})?~qt(e+(r=r[t].value),"span",0)?e:V+T(e,"-start","")+e+V+"grid-row-span:"+(~qt(r,"span",0)?we(r,/\d+/):+we(r,/\d+/)-+we(e,/\d+/))+";":V+T(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return we(n.props,/grid-\w+-start/)})?e:V+T(T(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return T(e,/(.+)-inline(.+)/,F+"$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(me(e)-1-t>6)switch(B(e,t+1)){case 109:if(B(e,t+4)!==45)break;case 102:return T(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+bt+(B(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qt(e,"stretch",0)?os(T(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return T(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,i,s,o,c,u,l){return V+i+":"+s+l+(o?V+i+"-span:"+(c?u:+u-+s)+l:"")+e});case 4949:if(B(e,t+6)===121)return T(e,":",":"+F)+e;break;case 6444:switch(B(e,B(e,14)===45?18:11)){case 120:return T(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+F+(B(e,14)===45?"inline-":"")+"box$3$1"+F+"$2$3$1"+V+"$2box$3")+e;case 100:return T(e,":",":"+V)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return T(e,"scroll-","scroll-snap-")+e}return e}function Jt(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Wo(e,t,r,n){switch(e.type){case Io:if(e.children.length)break;case To:case hn:return e.return=e.return||e.value;case ts:return"";case rs:return e.return=e.value+"{"+Jt(e.children,n)+"}";case fr:if(!me(e.value=e.props.join(",")))return""}return me(r=Jt(e.children,n))?e.return=e.value+"{"+r+"}":""}function Yo(e){var t=ss(e);return function(r,n,i,s){for(var o="",c=0;c<t;c++)o+=e[c](r,n,i,s)||"";return o}}function Go(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ho(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case hn:e.return=os(e.value,e.length,r);return;case rs:return Jt([Pe(e,{value:T(e.value,"@","@"+F)})],n);case fr:if(e.length)return No(r=e.props,function(i){switch(we(i,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ge(Pe(e,{props:[T(i,/:(read-\w+)/,":"+bt+"$1")]})),Ge(Pe(e,{props:[i]})),Lr(e,{props:ri(r,n)});break;case"::placeholder":Ge(Pe(e,{props:[T(i,/:(plac\w+)/,":"+F+"input-$1")]})),Ge(Pe(e,{props:[T(i,/:(plac\w+)/,":"+bt+"$1")]})),Ge(Pe(e,{props:[T(i,/:(plac\w+)/,V+"input-$1")]})),Ge(Pe(e,{props:[i]})),Lr(e,{props:ri(r,n)});break}return""})}}var Qo={animationIterationCount:1,aspectRatio: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},Me=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",cs="active",us="data-styled-version",mr="6.1.16",mn=`/*!sc*/
31
+ `,Zt=typeof window<"u"&&"HTMLElement"in window,Ko=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),si=/invalid hook call/i,$t=new Set,Xo=function(e,t){if(process.env.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(r,` has been created dynamically.
32
+ `)+`You may see this warning because you've called styled inside another component.
33
+ To resolve this only create new StyledComponents outside of any render method and function component.`,i=console.error;try{var s=!0;console.error=function(o){for(var c=[],u=1;u<arguments.length;u++)c[u-1]=arguments[u];si.test(o)?(s=!1,$t.delete(n)):i.apply(void 0,Ve([o],c,!1))},P.useRef(),s&&!$t.has(n)&&(console.warn(n),$t.add(n))}catch(o){si.test(o.message)&&$t.delete(n)}finally{console.error=i}}},gr=Object.freeze([]),Ze=Object.freeze({});function Jo(e,t,r){return r===void 0&&(r=Ze),e.theme!==r.theme&&e.theme||t||r.theme}var Br=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Zo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ec=/(^-|-$)/g;function ai(e){return e.replace(Zo,"-").replace(ec,"")}var tc=/(a)(d)/gi,Vt=52,oi=function(e){return String.fromCharCode(e+(e>25?39:97))};function Wr(e){var t,r="";for(t=Math.abs(e);t>Vt;t=t/Vt|0)r=oi(t%Vt)+r;return(oi(t%Vt)+r).replace(tc,"$1-$2")}var Or,ls=5381,je=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},fs=function(e){return je(ls,e)};function ds(e){return Wr(fs(e)>>>0)}function hs(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Tr(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var ps=typeof Symbol=="function"&&Symbol.for,ms=ps?Symbol.for("react.memo"):60115,rc=ps?Symbol.for("react.forward_ref"):60112,nc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ic={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},gs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},sc=((Or={})[rc]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Or[ms]=gs,Or);function ci(e){return("type"in(t=e)&&t.type.$$typeof)===ms?gs:"$$typeof"in e?sc[e.$$typeof]:nc;var t}var ac=Object.defineProperty,oc=Object.getOwnPropertyNames,ui=Object.getOwnPropertySymbols,cc=Object.getOwnPropertyDescriptor,uc=Object.getPrototypeOf,li=Object.prototype;function vs(e,t,r){if(typeof t!="string"){if(li){var n=uc(t);n&&n!==li&&vs(e,n,r)}var i=oc(t);ui&&(i=i.concat(ui(t)));for(var s=ci(e),o=ci(t),c=0;c<i.length;++c){var u=i[c];if(!(u in ic||r&&r[u]||o&&u in o||s&&u in s)){var l=cc(t,u);try{ac(e,u,l)}catch{}}}}return e}function et(e){return typeof e=="function"}function gn(e){return typeof e=="object"&&"styledComponentId"in e}function Ne(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Yr(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function tt(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Gr(e,t,r){if(r===void 0&&(r=!1),!r&&!tt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Gr(e[n],t[n]);else if(tt(t))for(var n in t)e[n]=Gr(e[n],t[n]);return e}function vn(e,t){Object.defineProperty(e,"toString",{value:t})}var lc=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
34
+
35
+ `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
36
+
37
+ - Are you trying to reuse it across renders?
38
+ - Are you accidentally calling collectStyles twice?
39
+
40
+ `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
41
+
42
+ `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
43
+
44
+ - Does this error occur on the client and is your target falsy?
45
+ - Does this error occur on the server and is the sheet falsy?
46
+
47
+ `,5:`The clone method cannot be used on the client!
48
+
49
+ - Are you running in a client-like environment on the server?
50
+ - Are you trying to run SSR on the client?
51
+
52
+ `,6:`Trying to insert a new style tag, but the given Node is unmounted!
53
+
54
+ - Are you using a custom target that isn't mounted?
55
+ - Does your document not have a valid head element?
56
+ - Have you accidentally removed a style tag manually?
57
+
58
+ `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
59
+
60
+ `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
61
+
62
+ `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
63
+
64
+ `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
65
+
66
+ `,14:`ThemeProvider: "theme" prop is required.
67
+
68
+ `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
69
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
70
+ as for instance in your render method then you may be running into this limitation.
71
+
72
+ `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
73
+ Has styled-components' style tag been unmounted or altered by another script?
74
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function fc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],i=1,s=e.length;i<s;i+=1)n.push(e[i]);return n.forEach(function(o){r=r.replace(/%[a-z]/,o)}),r}function it(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(fc.apply(void 0,Ve([lc[e]],t,!1)).trim())}var dc=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,s=i;t>=s;)if((s<<=1)<0)throw it(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(n),this.length=s;for(var o=i;o<s;o++)this.groupSizes[o]=0}for(var c=this.indexOfGroup(t+1),u=(o=0,r.length);o<u;o++)this.tag.insertRule(c,r[o])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),i=n+r;this.groupSizes[t]=0;for(var s=n;s<i;s++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],i=this.indexOfGroup(t),s=i+n,o=i;o<s;o++)r+="".concat(this.tag.getRule(o)).concat(mn);return r},e}(),hc=1<<30,Yt=new Map,er=new Map,Gt=1,Mt=function(e){if(Yt.has(e))return Yt.get(e);for(;er.has(Gt);)Gt++;var t=Gt++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>hc))throw it(16,"".concat(t));return Yt.set(e,t),er.set(t,e),t},pc=function(e,t){Gt=t+1,Yt.set(e,t),er.set(t,e)},mc="style[".concat(Me,"][").concat(us,'="').concat(mr,'"]'),gc=new RegExp("^".concat(Me,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),vc=function(e,t,r){for(var n,i=r.split(","),s=0,o=i.length;s<o;s++)(n=i[s])&&e.registerName(t,n)},yc=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(mn),i=[],s=0,o=n.length;s<o;s++){var c=n[s].trim();if(c){var u=c.match(gc);if(u){var l=0|parseInt(u[1],10),h=u[2];l!==0&&(pc(h,l),vc(e,h,u[3]),e.getTag().insertRules(l,i)),i.length=0}else i.push(c)}}},fi=function(e){for(var t=document.querySelectorAll(mc),r=0,n=t.length;r<n;r++){var i=t[r];i&&i.getAttribute(Me)!==cs&&(yc(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function bc(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var ys=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(c){var u=Array.from(c.querySelectorAll("style[".concat(Me,"]")));return u[u.length-1]}(r),s=i!==void 0?i.nextSibling:null;n.setAttribute(Me,cs),n.setAttribute(us,mr);var o=bc();return o&&n.setAttribute("nonce",o),r.insertBefore(n,s),n},wc=function(){function e(t){this.element=ys(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,i=0,s=n.length;i<s;i++){var o=n[i];if(o.ownerNode===r)return o}throw it(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),_c=function(){function e(t){this.element=ys(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Sc=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),di=Zt,Ec={isServer:!Zt,useCSSOMInjection:!Ko},bs=function(){function e(t,r,n){t===void 0&&(t=Ze),r===void 0&&(r={});var i=this;this.options=X(X({},Ec),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Zt&&di&&(di=!1,fi(this)),vn(this,function(){return function(s){for(var o=s.getTag(),c=o.length,u="",l=function(d){var p=function(v){return er.get(v)}(d);if(p===void 0)return"continue";var m=s.names.get(p),b=o.getGroup(d);if(m===void 0||!m.size||b.length===0)return"continue";var S="".concat(Me,".g").concat(d,'[id="').concat(p,'"]'),x="";m!==void 0&&m.forEach(function(v){v.length>0&&(x+="".concat(v,","))}),u+="".concat(b).concat(S,'{content:"').concat(x,'"}').concat(mn)},h=0;h<c;h++)l(h);return u}(i)})}return e.registerId=function(t){return Mt(t)},e.prototype.rehydrate=function(){!this.server&&Zt&&fi(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(X(X({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,i=r.target;return r.isServer?new Sc(i):n?new wc(i):new _c(i)}(this.options),new dc(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Mt(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Mt(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Mt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),xc=/&/g,Rc=/^\s*\/\/.*$/gm;function ws(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=ws(r.children,t)),r})}function Pc(e){var t,r,n,i=Ze,s=i.options,o=s===void 0?Ze:s,c=i.plugins,u=c===void 0?gr:c,l=function(p,m,b){return b.startsWith(r)&&b.endsWith(r)&&b.replaceAll(r,"").length>0?".".concat(t):p},h=u.slice();h.push(function(p){p.type===fr&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(xc,r).replace(n,l))}),o.prefix&&h.push(Ho),h.push(Wo);var d=function(p,m,b,S){m===void 0&&(m=""),b===void 0&&(b=""),S===void 0&&(S="&"),t=S,r=m,n=new RegExp("\\".concat(r,"\\b"),"g");var x=p.replace(Rc,""),v=qo(b||m?"".concat(b," ").concat(m," { ").concat(x," }"):x);o.namespace&&(v=ws(v,o.namespace));var y=[];return Jt(v,Yo(h.concat(Go(function(w){return y.push(w)})))),y};return d.hash=u.length?u.reduce(function(p,m){return m.name||it(15),je(p,m.name)},ls).toString():"",d}var kc=new bs,Hr=Pc(),_s=P.createContext({shouldForwardProp:void 0,styleSheet:kc,stylis:Hr});_s.Consumer;P.createContext(void 0);function hi(){return P.useContext(_s)}var Qr=function(){function e(t,r){var n=this;this.inject=function(i,s){s===void 0&&(s=Hr);var o=n.name+s.hash;i.hasNameForId(n.id,o)||i.insertRules(n.id,o,s(n.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,vn(this,function(){throw it(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Hr),this.name+t.hash},e}(),Ac=function(e){return e>="A"&&e<="Z"};function pi(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Ac(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Ss=function(e){return e==null||e===!1||e===""},Es=function(e){var t,r,n=[];for(var i in e){var s=e[i];e.hasOwnProperty(i)&&!Ss(s)&&(Array.isArray(s)&&s.isCss||et(s)?n.push("".concat(pi(i),":"),s,";"):tt(s)?n.push.apply(n,Ve(Ve(["".concat(i," {")],Es(s),!1),["}"],!1)):n.push("".concat(pi(i),": ").concat((t=i,(r=s)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Qo||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Fe(e,t,r,n){if(Ss(e))return[];if(gn(e))return[".".concat(e.styledComponentId)];if(et(e)){if(!et(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof Qr||tt(i)||i===null||console.error("".concat(hs(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Fe(i,t,r,n)}var s;return e instanceof Qr?r?(e.inject(r,n),[e.getName(n)]):[e]:tt(e)?Es(e):Array.isArray(e)?Array.prototype.concat.apply(gr,e.map(function(o){return Fe(o,t,r,n)})):[e.toString()]}function Cc(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(et(r)&&!gn(r))return!1}return!0}var Oc=fs(mr),Tc=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Cc(t),this.componentId=r,this.baseHash=je(Oc,r),this.baseStyle=n,bs.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))i=Ne(i,this.staticRulesId);else{var s=Yr(Fe(this.rules,t,r,n)),o=Wr(je(this.baseHash,s)>>>0);if(!r.hasNameForId(this.componentId,o)){var c=n(s,".".concat(o),void 0,this.componentId);r.insertRules(this.componentId,o,c)}i=Ne(i,o),this.staticRulesId=o}else{for(var u=je(this.baseHash,n.hash),l="",h=0;h<this.rules.length;h++){var d=this.rules[h];if(typeof d=="string")l+=d,process.env.NODE_ENV!=="production"&&(u=je(u,d));else if(d){var p=Yr(Fe(d,t,r,n));u=je(u,p+h),l+=p}}if(l){var m=Wr(u>>>0);r.hasNameForId(this.componentId,m)||r.insertRules(this.componentId,m,n(l,".".concat(m),void 0,this.componentId)),i=Ne(i,m)}}return i},e}(),xs=P.createContext(void 0);xs.Consumer;var Ir={},mi=new Set;function Ic(e,t,r){var n=gn(e),i=e,s=!Tr(e),o=t.attrs,c=o===void 0?gr:o,u=t.componentId,l=u===void 0?function(R,O){var A=typeof R!="string"?"sc":ai(R);Ir[A]=(Ir[A]||0)+1;var E="".concat(A,"-").concat(ds(mr+A+Ir[A]));return O?"".concat(O,"-").concat(E):E}(t.displayName,t.parentComponentId):u,h=t.displayName,d=h===void 0?function(R){return Tr(R)?"styled.".concat(R):"Styled(".concat(hs(R),")")}(e):h,p=t.displayName&&t.componentId?"".concat(ai(t.displayName),"-").concat(t.componentId):t.componentId||l,m=n&&i.attrs?i.attrs.concat(c).filter(Boolean):c,b=t.shouldForwardProp;if(n&&i.shouldForwardProp){var S=i.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;b=function(R,O){return S(R,O)&&x(R,O)}}else b=S}var v=new Tc(r,p,n?i.componentStyle:void 0);function y(R,O){return function(A,E,W){var M=A.attrs,ve=A.componentStyle,Y=A.defaultProps,se=A.foldedComponentIds,q=A.styledComponentId,ae=A.target,Oe=P.useContext(xs),It=hi(),ze=A.shouldForwardProp||It.shouldForwardProp;process.env.NODE_ENV!=="production"&&P.useDebugValue(q);var st=Jo(E,Oe,Y)||Ze,Z=function(Ue,ye,Ee){for(var oe,ce=X(X({},ye),{className:void 0,theme:Ee}),xe=0;xe<Ue.length;xe+=1){var qe=et(oe=Ue[xe])?oe(ce):oe;for(var ue in qe)ce[ue]=ue==="className"?Ne(ce[ue],qe[ue]):ue==="style"?X(X({},ce[ue]),qe[ue]):qe[ue]}return ye.className&&(ce.className=Ne(ce.className,ye.className)),ce}(M,E,st),_e=Z.as||ae,Se={};for(var G in Z)Z[G]===void 0||G[0]==="$"||G==="as"||G==="theme"&&Z.theme===st||(G==="forwardedAs"?Se.as=Z.forwardedAs:ze&&!ze(G,_e)||(Se[G]=Z[G],ze||process.env.NODE_ENV!=="development"||Oo(G)||mi.has(G)||!Br.has(_e)||(mi.add(G),console.warn('styled-components: it looks like an unknown prop "'.concat(G,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var Le=function(Ue,ye){var Ee=hi(),oe=Ue.generateAndInjectStyles(ye,Ee.styleSheet,Ee.stylis);return process.env.NODE_ENV!=="production"&&P.useDebugValue(oe),oe}(ve,Z);process.env.NODE_ENV!=="production"&&A.warnTooManyClasses&&A.warnTooManyClasses(Le);var at=Ne(se,q);return Le&&(at+=" "+Le),Z.className&&(at+=" "+Z.className),Se[Tr(_e)&&!Br.has(_e)?"class":"className"]=at,W&&(Se.ref=W),P.createElement(_e,Se)}(w,R,O)}y.displayName=d;var w=P.forwardRef(y);return w.attrs=m,w.componentStyle=v,w.displayName=d,w.shouldForwardProp=b,w.foldedComponentIds=n?Ne(i.foldedComponentIds,i.styledComponentId):"",w.styledComponentId=p,w.target=n?i.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(R){this._foldedDefaultProps=n?function(O){for(var A=[],E=1;E<arguments.length;E++)A[E-1]=arguments[E];for(var W=0,M=A;W<M.length;W++)Gr(O,M[W],!0);return O}({},i.defaultProps,R):R}}),process.env.NODE_ENV!=="production"&&(Xo(d,p),w.warnTooManyClasses=function(R,O){var A={},E=!1;return function(W){if(!E&&(A[W]=!0,Object.keys(A).length>=200)){var M=O?' with the id of "'.concat(O,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(R).concat(M,`.
75
+ `)+`Consider using the attrs method, together with a style object for frequently changed styles.
76
+ Example:
77
+ const Component = styled.div.attrs(props => ({
78
+ style: {
79
+ background: props.background,
80
+ },
81
+ }))\`width: 100%;\`
82
+
83
+ <Component />`),E=!0,A={}}}}(d,p)),vn(w,function(){return".".concat(w.styledComponentId)}),s&&vs(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function gi(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r}var vi=function(e){return Object.assign(e,{isCss:!0})};function Rs(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(et(e)||tt(e))return vi(Fe(gi(gr,Ve([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?Fe(n):vi(Fe(gi(n,t)))}function Kr(e,t,r){if(r===void 0&&(r=Ze),!t)throw it(1,t);var n=function(i){for(var s=[],o=1;o<arguments.length;o++)s[o-1]=arguments[o];return e(t,r,Rs.apply(void 0,Ve([i],s,!1)))};return n.attrs=function(i){return Kr(e,t,X(X({},r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},n.withConfig=function(i){return Kr(e,t,X(X({},r),i))},n}var Ps=function(e){return Kr(Ic,e)},vr=Ps;Br.forEach(function(e){vr[e]=Ps(e)});function jc(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var n=Yr(Rs.apply(void 0,Ve([e],t,!1))),i=ds(n);return new Qr(i,n)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
84
+ Perhaps you're looking to import 'styled-components/native'?
85
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var zt="__sc-".concat(Me,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[zt]||(window[zt]=0),window[zt]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
86
+
87
+ See https://s-c.sh/2BAXzed for more info.`),window[zt]+=1);const Nc=jc`
88
+ 0% {
89
+ transform: scale(1);
90
+ }
91
+ 50% {
92
+ transform: scale(0.95);
93
+ }
94
+ 100% {
95
+ transform: scale(1);
96
+ }
97
+ `,Dc=vr.div`
98
+ display: inline-block;
99
+ position: relative;
100
+ overflow: hidden;
101
+ border-radius: 2.5rem;
102
+ background: #489fb5;
103
+ box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
104
+
105
+ &:active {
106
+ animation: ${Nc} 0.2s;
107
+ }
108
+ `,Fc=vr.button`
109
+ display: flex;
110
+ align-items: center;
111
+ position: relative;
112
+ z-index: 10;
113
+ padding: 0.5rem 1rem;
114
+ border: none;
115
+ outline: none;
116
+ transition: background-color 0.3s;
117
+
118
+ &.primary {
119
+ background-color: #489fb5;
120
+ color: white;
121
+ }
122
+
123
+ &.secondary {
124
+ background-color: #ffb652;
125
+ color: black;
126
+ }
127
+ `,$c=vr.div`
128
+ margin-right: 1.25rem;
129
+
130
+ @media (min-width: 640px) {
131
+ margin-right: 0.25rem;
132
+ }
133
+ `;var ks={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},yi=P.createContext&&P.createContext(ks),Vc=["attr","size","title"];function Mc(e,t){if(e==null)return{};var r=zc(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zc(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function tr(){return tr=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},tr.apply(this,arguments)}function bi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bi(Object(r),!0).forEach(function(n){Lc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lc(e,t,r){return t=Uc(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uc(e){var t=qc(e,"string");return typeof t=="symbol"?t:t+""}function qc(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function As(e){return e&&e.map((t,r)=>P.createElement(t.tag,rr({key:r},t.attr),As(t.child)))}function Cs(e){return t=>P.createElement(Bc,tr({attr:rr({},e.attr)},t),As(e.child))}function Bc(e){var t=r=>{var{attr:n,size:i,title:s}=e,o=Mc(e,Vc),c=i||r.size||"1em",u;return r.className&&(u=r.className),e.className&&(u=(u?u+" ":"")+e.className),P.createElement("svg",tr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,o,{className:u,style:rr(rr({color:e.color||r.color},r.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),s&&P.createElement("title",null,s),e.children)};return yi!==void 0?P.createElement(yi.Consumer,null,r=>t(r)):t(ks)}function Wc(e){return Cs({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function Yc(e){return Cs({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"22",y1:"2",x2:"11",y2:"13"},child:[]},{tag:"polygon",attr:{points:"22 2 15 22 11 13 2 9 22 2"},child:[]}]})(e)}const Gc=({iconComponent:e,buttonText:t,buttonType:r="primary"})=>{let n;return e==="plus"?n=te.jsx(Wc,{}):e==="send"&&(n=te.jsx(Yc,{})),te.jsx(Dc,{children:te.jsxs(Fc,{className:r,children:[te.jsx($c,{children:n}),te.jsx(es,{textStyles:{minWidth:"3rem"},content:t,animate:!0})]})})};exports.AnimatedText=es;exports.BannerButton=Gc;