nectiasw 0.0.6 → 0.0.7

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.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(z,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],R):(z=typeof globalThis<"u"?globalThis:z||self,R(z.nectiasw={},z.react))})(this,function(z,R){"use strict";var ht={exports:{}},Ie={};/**
1
+ (function(Z,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(Z=typeof globalThis<"u"?globalThis:Z||self,P(Z.nectiasw={},Z.react))})(this,function(Z,P){"use strict";var gf=Object.defineProperty;var pf=(Z,P,Kt)=>P in Z?gf(Z,P,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):Z[P]=Kt;var T=(Z,P,Kt)=>pf(Z,typeof P!="symbol"?P+"":P,Kt);var ee;var Kt={exports:{}},We={};/**
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 Wt;function rn(){if(Wt)return Ie;Wt=1;var e=R,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(f,u,w){var h,p={},v=null,S=null;w!==void 0&&(v=""+w),u.key!==void 0&&(v=""+u.key),u.ref!==void 0&&(S=u.ref);for(h in u)n.call(u,h)&&!i.hasOwnProperty(h)&&(p[h]=u[h]);if(f&&f.defaultProps)for(h in u=f.defaultProps,u)p[h]===void 0&&(p[h]=u[h]);return{$$typeof:t,type:f,key:v,ref:S,props:p,_owner:a.current}}return Ie.Fragment=r,Ie.jsx=c,Ie.jsxs=c,Ie}var $e={};/**
9
+ */var _s;function Ra(){if(_s)return We;_s=1;var e=P,t=Symbol.for("react.element"),i=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function r(a,c,l){var h,u={},d=null,f=null;l!==void 0&&(d=""+l),c.key!==void 0&&(d=""+c.key),c.ref!==void 0&&(f=c.ref);for(h in c)n.call(c,h)&&!o.hasOwnProperty(h)&&(u[h]=c[h]);if(a&&a.defaultProps)for(h in c=a.defaultProps,c)u[h]===void 0&&(u[h]=c[h]);return{$$typeof:t,type:a,key:d,ref:f,props:u,_owner:s.current}}return We.Fragment=i,We.jsx=r,We.jsxs=r,We}var Be={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,23 +14,40 @@
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 Vt;function nn(){return Vt||(Vt=1,process.env.NODE_ENV!=="production"&&function(){var e=R,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),T=Symbol.iterator,D="@@iterator";function L(o){if(o===null||typeof o!="object")return null;var s=T&&o[T]||o[D];return typeof s=="function"?s:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(o){{for(var s=arguments.length,l=new Array(s>1?s-1:0),d=1;d<s;d++)l[d-1]=arguments[d];O("error",o,l)}}function O(o,s,l){{var d=C.ReactDebugCurrentFrame,_=d.getStackAddendum();_!==""&&(s+="%s",l=l.concat([_]));var P=l.map(function(x){return String(x)});P.unshift("Warning: "+s),Function.prototype.apply.call(console[o],console,P)}}var j=!1,N=!1,E=!1,m=!1,ne=!1,oe;oe=Symbol.for("react.module.reference");function Nt(o){return!!(typeof o=="string"||typeof o=="function"||o===n||o===i||ne||o===a||o===w||o===h||m||o===S||j||N||E||typeof o=="object"&&o!==null&&(o.$$typeof===v||o.$$typeof===p||o.$$typeof===c||o.$$typeof===f||o.$$typeof===u||o.$$typeof===oe||o.getModuleId!==void 0))}function Dt(o,s,l){var d=o.displayName;if(d)return d;var _=s.displayName||s.name||"";return _!==""?l+"("+_+")":l}function ut(o){return o.displayName||"Context"}function U(o){if(o==null)return null;if(typeof o.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case w:return"Suspense";case h:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case f:var s=o;return ut(s)+".Consumer";case c:var l=o;return ut(l._context)+".Provider";case u:return Dt(o,o.render,"ForwardRef");case p:var d=o.displayName||null;return d!==null?d:U(o.type)||"Memo";case v:{var _=o,P=_._payload,x=_._init;try{return U(x(P))}catch{return null}}}return null}var ae=Object.assign,ve=0,lt,Pe,ze,H,ue,le,W;function Te(){}Te.__reactDisabledLog=!0;function Le(){{if(ve===0){lt=console.log,Pe=console.info,ze=console.warn,H=console.error,ue=console.group,le=console.groupCollapsed,W=console.groupEnd;var o={configurable:!0,enumerable:!0,value:Te,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}ve++}}function je(){{if(ve--,ve===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ae({},o,{value:lt}),info:ae({},o,{value:Pe}),warn:ae({},o,{value:ze}),error:ae({},o,{value:H}),group:ae({},o,{value:ue}),groupCollapsed:ae({},o,{value:le}),groupEnd:ae({},o,{value:W})})}ve<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=C.ReactCurrentDispatcher,fe;function J(o,s,l){{if(fe===void 0)try{throw Error()}catch(_){var d=_.stack.trim().match(/\n( *(at )?)/);fe=d&&d[1]||""}return`
18
- `+fe+o}}var Z=!1,de;{var Ae=typeof WeakMap=="function"?WeakMap:Map;de=new Ae}function Q(o,s){if(!o||Z)return"";{var l=de.get(o);if(l!==void 0)return l}var d;Z=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var P;P=ie.current,ie.current=null,Le();try{if(s){var x=function(){throw Error()};if(Object.defineProperty(x.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(x,[])}catch(B){d=B}Reflect.construct(o,[],x)}else{try{x.call()}catch(B){d=B}o.call(x.prototype)}}else{try{throw Error()}catch(B){d=B}o()}}catch(B){if(B&&d&&typeof B.stack=="string"){for(var b=B.stack.split(`
19
- `),V=d.stack.split(`
20
- `),I=b.length-1,F=V.length-1;I>=1&&F>=0&&b[I]!==V[F];)F--;for(;I>=1&&F>=0;I--,F--)if(b[I]!==V[F]){if(I!==1||F!==1)do if(I--,F--,F<0||b[I]!==V[F]){var q=`
21
- `+b[I].replace(" at new "," at ");return o.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",o.displayName)),typeof o=="function"&&de.set(o,q),q}while(I>=1&&F>=0);break}}}finally{Z=!1,ie.current=P,je(),Error.prepareStackTrace=_}var De=o?o.displayName||o.name:"",be=De?J(De):"";return typeof o=="function"&&de.set(o,be),be}function Oo(o,s,l){return Q(o,!1)}function Po(o){var s=o.prototype;return!!(s&&s.isReactComponent)}function ft(o,s,l){if(o==null)return"";if(typeof o=="function")return Q(o,Po(o));if(typeof o=="string")return J(o);switch(o){case w:return J("Suspense");case h:return J("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case u:return Oo(o.render);case p:return ft(o.type,s,l);case v:{var d=o,_=d._payload,P=d._init;try{return ft(P(_),s,l)}catch{}}}return""}var We=Object.prototype.hasOwnProperty,Yr={},Br=C.ReactDebugCurrentFrame;function dt(o){if(o){var s=o._owner,l=ft(o.type,o._source,s?s.type:null);Br.setExtraStackFrame(l)}else Br.setExtraStackFrame(null)}function To(o,s,l,d,_){{var P=Function.call.bind(We);for(var x in o)if(P(o,x)){var b=void 0;try{if(typeof o[x]!="function"){var V=Error((d||"React class")+": "+l+" type `"+x+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[x]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw V.name="Invariant Violation",V}b=o[x](s,x,d,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(I){b=I}b&&!(b instanceof Error)&&(dt(_),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).",d||"React class",l,x,typeof b),dt(null)),b instanceof Error&&!(b.message in Yr)&&(Yr[b.message]=!0,dt(_),y("Failed %s type: %s",l,b.message),dt(null))}}}var jo=Array.isArray;function It(o){return jo(o)}function Ao(o){{var s=typeof Symbol=="function"&&Symbol.toStringTag,l=s&&o[Symbol.toStringTag]||o.constructor.name||"Object";return l}}function No(o){try{return Ur(o),!1}catch{return!0}}function Ur(o){return""+o}function Gr(o){if(No(o))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ao(o)),Ur(o)}var Ve=C.ReactCurrentOwner,Do={key:!0,ref:!0,__self:!0,__source:!0},Hr,qr,$t;$t={};function Io(o){if(We.call(o,"ref")){var s=Object.getOwnPropertyDescriptor(o,"ref").get;if(s&&s.isReactWarning)return!1}return o.ref!==void 0}function $o(o){if(We.call(o,"key")){var s=Object.getOwnPropertyDescriptor(o,"key").get;if(s&&s.isReactWarning)return!1}return o.key!==void 0}function Fo(o,s){if(typeof o.ref=="string"&&Ve.current&&s&&Ve.current.stateNode!==s){var l=U(Ve.current.type);$t[l]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',U(Ve.current.type),o.ref),$t[l]=!0)}}function Mo(o,s){{var l=function(){Hr||(Hr=!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)",s))};l.isReactWarning=!0,Object.defineProperty(o,"key",{get:l,configurable:!0})}}function zo(o,s){{var l=function(){qr||(qr=!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)",s))};l.isReactWarning=!0,Object.defineProperty(o,"ref",{get:l,configurable:!0})}}var Lo=function(o,s,l,d,_,P,x){var b={$$typeof:t,type:o,key:s,ref:l,props:x,_owner:P};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function Wo(o,s,l,d,_){{var P,x={},b=null,V=null;l!==void 0&&(Gr(l),b=""+l),$o(s)&&(Gr(s.key),b=""+s.key),Io(s)&&(V=s.ref,Fo(s,_));for(P in s)We.call(s,P)&&!Do.hasOwnProperty(P)&&(x[P]=s[P]);if(o&&o.defaultProps){var I=o.defaultProps;for(P in I)x[P]===void 0&&(x[P]=I[P])}if(b||V){var F=typeof o=="function"?o.displayName||o.name||"Unknown":o;b&&Mo(x,F),V&&zo(x,F)}return Lo(o,b,V,_,d,Ve.current,x)}}var Ft=C.ReactCurrentOwner,Kr=C.ReactDebugCurrentFrame;function Ne(o){if(o){var s=o._owner,l=ft(o.type,o._source,s?s.type:null);Kr.setExtraStackFrame(l)}else Kr.setExtraStackFrame(null)}var Mt;Mt=!1;function zt(o){return typeof o=="object"&&o!==null&&o.$$typeof===t}function Xr(){{if(Ft.current){var o=U(Ft.current.type);if(o)return`
17
+ */var vs;function Da(){return vs||(vs=1,process.env.NODE_ENV!=="production"&&function(){var e=P,t=Symbol.for("react.element"),i=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),r=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),m=Symbol.iterator,b="@@iterator";function p(g){if(g===null||typeof g!="object")return null;var w=m&&g[m]||g[b];return typeof w=="function"?w:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(g){{for(var w=arguments.length,C=new Array(w>1?w-1:0),E=1;E<w;E++)C[E-1]=arguments[E];v("error",g,C)}}function v(g,w,C){{var E=y.ReactDebugCurrentFrame,$=E.getStackAddendum();$!==""&&(w+="%s",C=C.concat([$]));var K=C.map(function(z){return String(z)});K.unshift("Warning: "+w),Function.prototype.apply.call(console[g],console,K)}}var k=!1,_=!1,M=!1,S=!1,O=!1,A;A=Symbol.for("react.module.reference");function L(g){return!!(typeof g=="string"||typeof g=="function"||g===n||g===o||O||g===s||g===l||g===h||S||g===f||k||_||M||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===u||g.$$typeof===r||g.$$typeof===a||g.$$typeof===c||g.$$typeof===A||g.getModuleId!==void 0))}function R(g,w,C){var E=g.displayName;if(E)return E;var $=w.displayName||w.name||"";return $!==""?C+"("+$+")":C}function I(g){return g.displayName||"Context"}function W(g){if(g==null)return null;if(typeof g.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case n:return"Fragment";case i:return"Portal";case o:return"Profiler";case s:return"StrictMode";case l:return"Suspense";case h:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case a:var w=g;return I(w)+".Consumer";case r:var C=g;return I(C._context)+".Provider";case c:return R(g,g.render,"ForwardRef");case u:var E=g.displayName||null;return E!==null?E:W(g.type)||"Memo";case d:{var $=g,K=$._payload,z=$._init;try{return W(z(K))}catch{return null}}}return null}var Q=Object.assign,F=0,Y,X,ft,U,mt,St,it;function At(){}At.__reactDisabledLog=!0;function Mt(){{if(F===0){Y=console.log,X=console.info,ft=console.warn,U=console.error,mt=console.group,St=console.groupCollapsed,it=console.groupEnd;var g={configurable:!0,enumerable:!0,value:At,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}F++}}function Et(){{if(F--,F===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q({},g,{value:Y}),info:Q({},g,{value:X}),warn:Q({},g,{value:ft}),error:Q({},g,{value:U}),group:Q({},g,{value:mt}),groupCollapsed:Q({},g,{value:St}),groupEnd:Q({},g,{value:it})})}F<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var gt=y.ReactCurrentDispatcher,ie;function Lt(g,w,C){{if(ie===void 0)try{throw Error()}catch($){var E=$.stack.trim().match(/\n( *(at )?)/);ie=E&&E[1]||""}return`
18
+ `+ie+g}}var It=!1,ne;{var je=typeof WeakMap=="function"?WeakMap:Map;ne=new je}function Ft(g,w){if(!g||It)return"";{var C=ne.get(g);if(C!==void 0)return C}var E;It=!0;var $=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var K;K=gt.current,gt.current=null,Mt();try{if(w){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(vt){E=vt}Reflect.construct(g,[],z)}else{try{z.call()}catch(vt){E=vt}g.call(z.prototype)}}else{try{throw Error()}catch(vt){E=vt}g()}}catch(vt){if(vt&&E&&typeof vt.stack=="string"){for(var j=vt.stack.split(`
19
+ `),bt=E.stack.split(`
20
+ `),ot=j.length-1,ct=bt.length-1;ot>=1&&ct>=0&&j[ot]!==bt[ct];)ct--;for(;ot>=1&&ct>=0;ot--,ct--)if(j[ot]!==bt[ct]){if(ot!==1||ct!==1)do if(ot--,ct--,ct<0||j[ot]!==bt[ct]){var Tt=`
21
+ `+j[ot].replace(" at new "," at ");return g.displayName&&Tt.includes("<anonymous>")&&(Tt=Tt.replace("<anonymous>",g.displayName)),typeof g=="function"&&ne.set(g,Tt),Tt}while(ot>=1&&ct>=0);break}}}finally{It=!1,gt.current=K,Et(),Error.prepareStackTrace=$}var Ne=g?g.displayName||g.name:"",ye=Ne?Lt(Ne):"";return typeof g=="function"&&ne.set(g,ye),ye}function $d(g,w,C){return Ft(g,!1)}function Vd(g){var w=g.prototype;return!!(w&&w.isReactComponent)}function mn(g,w,C){if(g==null)return"";if(typeof g=="function")return Ft(g,Vd(g));if(typeof g=="string")return Lt(g);switch(g){case l:return Lt("Suspense");case h:return Lt("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case c:return $d(g.render);case u:return mn(g.type,w,C);case d:{var E=g,$=E._payload,K=E._init;try{return mn(K($),w,C)}catch{}}}return""}var ui=Object.prototype.hasOwnProperty,xa={},_a=y.ReactDebugCurrentFrame;function bn(g){if(g){var w=g._owner,C=mn(g.type,g._source,w?w.type:null);_a.setExtraStackFrame(C)}else _a.setExtraStackFrame(null)}function Yd(g,w,C,E,$){{var K=Function.call.bind(ui);for(var z in g)if(K(g,z)){var j=void 0;try{if(typeof g[z]!="function"){var bt=Error((E||"React class")+": "+C+" type `"+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw bt.name="Invariant Violation",bt}j=g[z](w,z,E,C,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ot){j=ot}j&&!(j instanceof Error)&&(bn($),x("%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).",E||"React class",C,z,typeof j),bn(null)),j instanceof Error&&!(j.message in xa)&&(xa[j.message]=!0,bn($),x("Failed %s type: %s",C,j.message),bn(null))}}}var Ud=Array.isArray;function fs(g){return Ud(g)}function Xd(g){{var w=typeof Symbol=="function"&&Symbol.toStringTag,C=w&&g[Symbol.toStringTag]||g.constructor.name||"Object";return C}}function Kd(g){try{return va(g),!1}catch{return!0}}function va(g){return""+g}function wa(g){if(Kd(g))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xd(g)),va(g)}var di=y.ReactCurrentOwner,qd={key:!0,ref:!0,__self:!0,__source:!0},ka,Sa,gs;gs={};function Gd(g){if(ui.call(g,"ref")){var w=Object.getOwnPropertyDescriptor(g,"ref").get;if(w&&w.isReactWarning)return!1}return g.ref!==void 0}function Zd(g){if(ui.call(g,"key")){var w=Object.getOwnPropertyDescriptor(g,"key").get;if(w&&w.isReactWarning)return!1}return g.key!==void 0}function Jd(g,w){if(typeof g.ref=="string"&&di.current&&w&&di.current.stateNode!==w){var C=W(di.current.type);gs[C]||(x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',W(di.current.type),g.ref),gs[C]=!0)}}function Qd(g,w){{var C=function(){ka||(ka=!0,x("%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)",w))};C.isReactWarning=!0,Object.defineProperty(g,"key",{get:C,configurable:!0})}}function tf(g,w){{var C=function(){Sa||(Sa=!0,x("%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)",w))};C.isReactWarning=!0,Object.defineProperty(g,"ref",{get:C,configurable:!0})}}var ef=function(g,w,C,E,$,K,z){var j={$$typeof:t,type:g,key:w,ref:C,props:z,_owner:K};return j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(j,"_self",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.defineProperty(j,"_source",{configurable:!1,enumerable:!1,writable:!1,value:$}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j};function nf(g,w,C,E,$){{var K,z={},j=null,bt=null;C!==void 0&&(wa(C),j=""+C),Zd(w)&&(wa(w.key),j=""+w.key),Gd(w)&&(bt=w.ref,Jd(w,$));for(K in w)ui.call(w,K)&&!qd.hasOwnProperty(K)&&(z[K]=w[K]);if(g&&g.defaultProps){var ot=g.defaultProps;for(K in ot)z[K]===void 0&&(z[K]=ot[K])}if(j||bt){var ct=typeof g=="function"?g.displayName||g.name||"Unknown":g;j&&Qd(z,ct),bt&&tf(z,ct)}return ef(g,j,bt,$,E,di.current,z)}}var ps=y.ReactCurrentOwner,Ma=y.ReactDebugCurrentFrame;function ze(g){if(g){var w=g._owner,C=mn(g.type,g._source,w?w.type:null);Ma.setExtraStackFrame(C)}else Ma.setExtraStackFrame(null)}var ms;ms=!1;function bs(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function Ca(){{if(ps.current){var g=W(ps.current.type);if(g)return`
22
22
 
23
- Check the render method of \``+o+"`."}return""}}function Vo(o){return""}var Jr={};function Yo(o){{var s=Xr();if(!s){var l=typeof o=="string"?o:o.displayName||o.name;l&&(s=`
23
+ Check the render method of \``+g+"`."}return""}}function sf(g){return""}var Oa={};function of(g){{var w=Ca();if(!w){var C=typeof g=="string"?g:g.displayName||g.name;C&&(w=`
24
24
 
25
- Check the top-level render call using <`+l+">.")}return s}}function Zr(o,s){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var l=Yo(s);if(Jr[l])return;Jr[l]=!0;var d="";o&&o._owner&&o._owner!==Ft.current&&(d=" It was passed a child from "+U(o._owner.type)+"."),Ne(o),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,d),Ne(null)}}function Qr(o,s){{if(typeof o!="object")return;if(It(o))for(var l=0;l<o.length;l++){var d=o[l];zt(d)&&Zr(d,s)}else if(zt(o))o._store&&(o._store.validated=!0);else if(o){var _=L(o);if(typeof _=="function"&&_!==o.entries)for(var P=_.call(o),x;!(x=P.next()).done;)zt(x.value)&&Zr(x.value,s)}}}function Bo(o){{var s=o.type;if(s==null||typeof s=="string")return;var l;if(typeof s=="function")l=s.propTypes;else if(typeof s=="object"&&(s.$$typeof===u||s.$$typeof===p))l=s.propTypes;else return;if(l){var d=U(s);To(l,o.props,"prop",d,o)}else if(s.PropTypes!==void 0&&!Mt){Mt=!0;var _=U(s);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_||"Unknown")}typeof s.getDefaultProps=="function"&&!s.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Uo(o){{for(var s=Object.keys(o.props),l=0;l<s.length;l++){var d=s[l];if(d!=="children"&&d!=="key"){Ne(o),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d),Ne(null);break}}o.ref!==null&&(Ne(o),y("Invalid attribute `ref` supplied to `React.Fragment`."),Ne(null))}}var en={};function tn(o,s,l,d,_,P){{var x=Nt(o);if(!x){var b="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(b+=" 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 V=Vo();V?b+=V:b+=Xr();var I;o===null?I="null":It(o)?I="array":o!==void 0&&o.$$typeof===t?(I="<"+(U(o.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):I=typeof o,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",I,b)}var F=Wo(o,s,l,_,P);if(F==null)return F;if(x){var q=s.children;if(q!==void 0)if(d)if(It(q)){for(var De=0;De<q.length;De++)Qr(q[De],o);Object.freeze&&Object.freeze(q)}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 Qr(q,o)}if(We.call(s,"key")){var be=U(o),B=Object.keys(s).filter(function(Jo){return Jo!=="key"}),Lt=B.length>0?"{key: someKey, "+B.join(": ..., ")+": ...}":"{key: someKey}";if(!en[be+Lt]){var Xo=B.length>0?"{"+B.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+C+">.")}return w}}function Pa(g,w){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var C=of(w);if(Oa[C])return;Oa[C]=!0;var E="";g&&g._owner&&g._owner!==ps.current&&(E=" It was passed a child from "+W(g._owner.type)+"."),ze(g),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',C,E),ze(null)}}function Aa(g,w){{if(typeof g!="object")return;if(fs(g))for(var C=0;C<g.length;C++){var E=g[C];bs(E)&&Pa(E,w)}else if(bs(g))g._store&&(g._store.validated=!0);else if(g){var $=p(g);if(typeof $=="function"&&$!==g.entries)for(var K=$.call(g),z;!(z=K.next()).done;)bs(z.value)&&Pa(z.value,w)}}}function rf(g){{var w=g.type;if(w==null||typeof w=="string")return;var C;if(typeof w=="function")C=w.propTypes;else if(typeof w=="object"&&(w.$$typeof===c||w.$$typeof===u))C=w.propTypes;else return;if(C){var E=W(w);Yd(C,g.props,"prop",E,g)}else if(w.PropTypes!==void 0&&!ms){ms=!0;var $=W(w);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$||"Unknown")}typeof w.getDefaultProps=="function"&&!w.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function af(g){{for(var w=Object.keys(g.props),C=0;C<w.length;C++){var E=w[C];if(E!=="children"&&E!=="key"){ze(g),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E),ze(null);break}}g.ref!==null&&(ze(g),x("Invalid attribute `ref` supplied to `React.Fragment`."),ze(null))}}var Ea={};function Ta(g,w,C,E,$,K){{var z=L(g);if(!z){var j="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(j+=" 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 bt=sf();bt?j+=bt:j+=Ca();var ot;g===null?ot="null":fs(g)?ot="array":g!==void 0&&g.$$typeof===t?(ot="<"+(W(g.type)||"Unknown")+" />",j=" Did you accidentally export a JSX literal instead of a component?"):ot=typeof g,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ot,j)}var ct=nf(g,w,C,$,K);if(ct==null)return ct;if(z){var Tt=w.children;if(Tt!==void 0)if(E)if(fs(Tt)){for(var Ne=0;Ne<Tt.length;Ne++)Aa(Tt[Ne],g);Object.freeze&&Object.freeze(Tt)}else x("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 Aa(Tt,g)}if(ui.call(w,"key")){var ye=W(g),vt=Object.keys(w).filter(function(ff){return ff!=="key"}),ys=vt.length>0?"{key: someKey, "+vt.join(": ..., ")+": ...}":"{key: someKey}";if(!Ea[ye+ys]){var df=vt.length>0?"{"+vt.join(": ..., ")+": ...}":"{}";x(`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} />`,Lt,be,Xo,be),en[be+Lt]=!0}}return o===n?Uo(F):Bo(F),F}}function Go(o,s,l){return tn(o,s,l,!0)}function Ho(o,s,l){return tn(o,s,l,!1)}var qo=Ho,Ko=Go;$e.Fragment=n,$e.jsx=qo,$e.jsxs=Ko}()),$e}process.env.NODE_ENV==="production"?ht.exports=rn():ht.exports=nn();var K=ht.exports;function Yt(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Yt(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function se(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Yt(e))&&(n&&(n+=" "),n+=t);return n}const te={container:{content:"mt-12 mb-4",description:"font-normal text-2xl text-darkened",root:"text-4xl font-semibold text-info",sub:"text-xl font-normal text-info"},inscription:{title:"text-xl font-bold text-info"},success:{position:"absolute top-0 left-full max-w-sm",confirmation:"text-primary font-semibold text-lg transition-opacity",show:"opacity-100",hide:"opacity-0"},error:{position:"absolute top-0 left-full max-w-sm",confirmation:"text-danger font-semibold text-lg transition-opacity",show:"opacity-100",hide:"opacity-0"}},Bt=e=>e!=null&&e.tag?R.createElement(e.tag,{className:se("m-0 p-0",e.sans&&"font-sans",e.className&&e.className,e.font&&`font-${e.font}`,e.size&&`text-${e.size}`,e.color&&`text-${e.color}`,e.style&&`font-${e.style}`,e.leading&&`leading-${e.leading}`,e.customColor&&`text-${e.customColor}`)},e.children):K.jsx("p",{className:se("m-0 p-0",e.sans&&"font-sans",e.className&&e.className,e.font&&`font-${e.font}`,e.size&&`text-${e.size}`,e.color&&`text-${e.color}`,e.style&&`font-${e.style}`,e.leading&&`leading-${e.leading}`,e.customColor&&`text-${e.customColor}`),children:e.children});Bt.defaultProps={color:"info",size:"base",font:"medium"};const Ut=({color:e,size:t,font:r,children:n})=>K.jsx("h1",{className:se(`text-${t}`,`text-${e}`,`font-${r}`),children:n});Ut.defaultProps={color:"info",size:"4xl",font:"bold"};const Gt=({size:e,color:t,font:r,children:n})=>K.jsx("h2",{className:se(`text-${e}`,`text-${t}`,`font-${r}`),children:n});Gt.defaultProps={color:"info",size:"xl",font:"normal"};const on=({children:e})=>K.jsx("h2",{className:te.inscription.title,children:e}),an=({content:e,children:t})=>K.jsx("h3",{className:se(te.container.description,e&&te.container.content),children:t}),sn=e=>{const t=R.useRef(!0);return R.useEffect(()=>{if(e!=null&&e.onDismiss)return window==null||window.setTimeout(()=>{var r;t.current&&((r=e==null?void 0:e.onDismiss)==null||r.call(e))},Ht),()=>{t.current=!1}},[e==null?void 0:e.onDismiss]),K.jsx("span",{className:se(te.success.confirmation,(e==null?void 0:e.className)&&e.className,e!=null&&e.confirmation?te.success.show:te.success.hide),children:e.children})},cn=e=>{const t=R.useRef(!0);return R.useEffect(()=>{if(e!=null&&e.onDismiss)return window==null||window.setTimeout(()=>{var r;t.current&&((r=e==null?void 0:e.onDismiss)==null||r.call(e))},Ht),()=>{t.current=!1}},[e==null?void 0:e.onDismiss]),K.jsx("span",{className:se(te.error.confirmation,(e==null?void 0:e.className)&&e.className,e!=null&&e.confirmation?te.error.show:te.error.hide),children:(e==null?void 0:e.confirmation)&&e.children})},Ht=5e3,pt={container:{root:"flex items-center relative ",label:"ml-2 text-sm font-medium text-gray-900 dark:text-gray-300",input:"h-6 w-6 rounded-md"}};var Y=function(){return Y=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Y.apply(this,arguments)};function we(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function un(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var ln=/^((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)-.*))$/,fn=un(function(e){return ln.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),A="-ms-",Fe="-moz-",k="-webkit-",qt="comm",Ye="rule",mt="decl",dn="@import",Kt="@keyframes",hn="@layer",Xt=Math.abs,gt=String.fromCharCode,yt=Object.assign;function pn(e,t){return M(e,0)^45?(((t<<2^M(e,0))<<2^M(e,1))<<2^M(e,2))<<2^M(e,3):0}function Jt(e){return e.trim()}function re(e,t){return(e=t.exec(e))?e[0]:e}function g(e,t,r){return e.replace(t,r)}function Be(e,t,r){return e.indexOf(t,r)}function M(e,t){return e.charCodeAt(t)|0}function Se(e,t,r){return e.slice(t,r)}function ee(e){return e.length}function Zt(e){return e.length}function Me(e,t){return t.push(e),e}function mn(e,t){return e.map(t).join("")}function Qt(e,t){return e.filter(function(r){return!re(r,t)})}var Ue=1,Ee=1,er=0,G=0,$=0,xe="";function Ge(e,t,r,n,a,i,c,f){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:Ue,column:Ee,length:c,return:"",siblings:f}}function ce(e,t){return yt(Ge("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ke(e){for(;e.root;)e=ce(e.root,{children:[e]});Me(e,e.siblings)}function gn(){return $}function yn(){return $=G>0?M(xe,--G):0,Ee--,$===10&&(Ee=1,Ue--),$}function X(){return $=G<er?M(xe,G++):0,Ee++,$===10&&(Ee=1,Ue++),$}function he(){return M(xe,G)}function He(){return G}function qe(e,t){return Se(xe,e,t)}function vt(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 vn(e){return Ue=Ee=1,er=ee(xe=e),G=0,[]}function bn(e){return xe="",e}function bt(e){return Jt(qe(G-1,wt(e===91?e+2:e===40?e+1:e)))}function wn(e){for(;($=he())&&$<33;)X();return vt(e)>2||vt($)>3?"":" "}function Sn(e,t){for(;--t&&X()&&!($<48||$>102||$>57&&$<65||$>70&&$<97););return qe(e,He()+(t<6&&he()==32&&X()==32))}function wt(e){for(;X();)switch($){case e:return G;case 34:case 39:e!==34&&e!==39&&wt($);break;case 40:e===41&&wt(e);break;case 92:X();break}return G}function En(e,t){for(;X()&&e+$!==57;)if(e+$===84&&he()===47)break;return"/*"+qe(t,G-1)+"*"+gt(e===47?e:X())}function xn(e){for(;!vt(he());)X();return qe(e,G)}function kn(e){return bn(Ke("",null,null,null,[""],e=vn(e),0,[0],e))}function Ke(e,t,r,n,a,i,c,f,u){for(var w=0,h=0,p=c,v=0,S=0,T=0,D=1,L=1,C=1,y=0,O="",j=a,N=i,E=n,m=O;L;)switch(T=y,y=X()){case 40:if(T!=108&&M(m,p-1)==58){Be(m+=g(bt(y),"&","&\f"),"&\f",Xt(w?f[w-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:m+=bt(y);break;case 9:case 10:case 13:case 32:m+=wn(T);break;case 92:m+=Sn(He()-1,7);continue;case 47:switch(he()){case 42:case 47:Me(_n(En(X(),He()),t,r,u),u);break;default:m+="/"}break;case 123*D:f[w++]=ee(m)*C;case 125*D:case 59:case 0:switch(y){case 0:case 125:L=0;case 59+h:C==-1&&(m=g(m,/\f/g,"")),S>0&&ee(m)-p&&Me(S>32?rr(m+";",n,r,p-1,u):rr(g(m," ","")+";",n,r,p-2,u),u);break;case 59:m+=";";default:if(Me(E=tr(m,t,r,w,h,a,f,O,j=[],N=[],p,i),i),y===123)if(h===0)Ke(m,t,E,E,j,i,p,f,N);else switch(v===99&&M(m,3)===110?100:v){case 100:case 108:case 109:case 115:Ke(e,E,E,n&&Me(tr(e,E,E,0,0,a,f,O,a,j=[],p,N),N),a,N,p,f,n?j:N);break;default:Ke(m,E,E,E,[""],N,0,f,N)}}w=h=S=0,D=C=1,O=m="",p=c;break;case 58:p=1+ee(m),S=T;default:if(D<1){if(y==123)--D;else if(y==125&&D++==0&&yn()==125)continue}switch(m+=gt(y),y*D){case 38:C=h>0?1:(m+="\f",-1);break;case 44:f[w++]=(ee(m)-1)*C,C=1;break;case 64:he()===45&&(m+=bt(X())),v=he(),h=p=ee(O=m+=xn(He())),y++;break;case 45:T===45&&ee(m)==2&&(D=0)}}return i}function tr(e,t,r,n,a,i,c,f,u,w,h,p){for(var v=a-1,S=a===0?i:[""],T=Zt(S),D=0,L=0,C=0;D<n;++D)for(var y=0,O=Se(e,v+1,v=Xt(L=c[D])),j=e;y<T;++y)(j=Jt(L>0?S[y]+" "+O:g(O,/&\f/g,S[y])))&&(u[C++]=j);return Ge(e,t,r,a===0?Ye:f,u,w,h,p)}function _n(e,t,r,n){return Ge(e,t,r,qt,gt(gn()),Se(e,2,-2),0,n)}function rr(e,t,r,n,a){return Ge(e,t,r,mt,Se(e,0,n),Se(e,n+1,-1),n,a)}function nr(e,t,r){switch(pn(e,t)){case 5103:return k+"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 k+e+e;case 4789:return Fe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return k+e+Fe+e+A+e+e;case 5936:switch(M(e,t+11)){case 114:return k+e+A+g(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return k+e+A+g(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return k+e+A+g(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return k+e+A+e+e;case 6165:return k+e+A+"flex-"+e+e;case 5187:return k+e+g(e,/(\w+).+(:[^]+)/,k+"box-$1$2"+A+"flex-$1$2")+e;case 5443:return k+e+A+"flex-item-"+g(e,/flex-|-self/g,"")+(re(e,/flex-|baseline/)?"":A+"grid-row-"+g(e,/flex-|-self/g,""))+e;case 4675:return k+e+A+"flex-line-pack"+g(e,/align-content|flex-|-self/g,"")+e;case 5548:return k+e+A+g(e,"shrink","negative")+e;case 5292:return k+e+A+g(e,"basis","preferred-size")+e;case 6060:return k+"box-"+g(e,"-grow","")+k+e+A+g(e,"grow","positive")+e;case 4554:return k+g(e,/([^-])(transform)/g,"$1"+k+"$2")+e;case 6187:return g(g(g(e,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),e,"")+e;case 5495:case 3959:return g(e,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return g(g(e,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+A+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+e+e;case 4200:if(!re(e,/flex-|baseline/))return A+"grid-column-align"+Se(e,t)+e;break;case 2592:case 3360:return A+g(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,a){return t=a,re(n.props,/grid-\w+-end/)})?~Be(e+(r=r[t].value),"span",0)?e:A+g(e,"-start","")+e+A+"grid-row-span:"+(~Be(r,"span",0)?re(r,/\d+/):+re(r,/\d+/)-+re(e,/\d+/))+";":A+g(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return re(n.props,/grid-\w+-start/)})?e:A+g(g(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return g(e,/(.+)-inline(.+)/,k+"$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(ee(e)-1-t>6)switch(M(e,t+1)){case 109:if(M(e,t+4)!==45)break;case 102:return g(e,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+Fe+(M(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Be(e,"stretch",0)?nr(g(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return g(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,a,i,c,f,u,w){return A+a+":"+i+w+(c?A+a+"-span:"+(f?u:+u-+i)+w:"")+e});case 4949:if(M(e,t+6)===121)return g(e,":",":"+k)+e;break;case 6444:switch(M(e,M(e,14)===45?18:11)){case 120:return g(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+k+(M(e,14)===45?"inline-":"")+"box$3$1"+k+"$2$3$1"+A+"$2box$3")+e;case 100:return g(e,":",":"+A)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return g(e,"scroll-","scroll-snap-")+e}return e}function Xe(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Rn(e,t,r,n){switch(e.type){case hn:if(e.children.length)break;case dn:case mt:return e.return=e.return||e.value;case qt:return"";case Kt:return e.return=e.value+"{"+Xe(e.children,n)+"}";case Ye:if(!ee(e.value=e.props.join(",")))return""}return ee(r=Xe(e.children,n))?e.return=e.value+"{"+r+"}":""}function Cn(e){var t=Zt(e);return function(r,n,a,i){for(var c="",f=0;f<t;f++)c+=e[f](r,n,a,i)||"";return c}}function On(e){return function(t){t.root||(t=t.return)&&e(t)}}function Pn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case mt:e.return=nr(e.value,e.length,r);return;case Kt:return Xe([ce(e,{value:g(e.value,"@","@"+k)})],n);case Ye:if(e.length)return mn(r=e.props,function(a){switch(re(a,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ke(ce(e,{props:[g(a,/:(read-\w+)/,":"+Fe+"$1")]})),ke(ce(e,{props:[a]})),yt(e,{props:Qt(r,n)});break;case"::placeholder":ke(ce(e,{props:[g(a,/:(plac\w+)/,":"+k+"input-$1")]})),ke(ce(e,{props:[g(a,/:(plac\w+)/,":"+Fe+"$1")]})),ke(ce(e,{props:[g(a,/:(plac\w+)/,A+"input-$1")]})),ke(ce(e,{props:[a]})),yt(e,{props:Qt(r,n)});break}return""})}}var Tn={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},pe=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",or="active",ar="data-styled-version",Je="6.1.12",St=`/*!sc*/
31
- `,Ze=typeof window<"u"&&"HTMLElement"in window,jn=!!(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"),ir=/invalid hook call/i,Qe=new Set,An=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.
30
+ <%s key={someKey} {...props} />`,ys,ye,df,ye),Ea[ye+ys]=!0}}return g===n?af(ct):rf(ct),ct}}function cf(g,w,C){return Ta(g,w,C,!0)}function lf(g,w,C){return Ta(g,w,C,!1)}var hf=lf,uf=cf;Be.Fragment=n,Be.jsx=hf,Be.jsxs=uf}()),Be}process.env.NODE_ENV==="production"?Kt.exports=Ra():Kt.exports=Da();var ut=Kt.exports;function ws(e){var t,i,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(i=ws(e[t]))&&(n&&(n+=" "),n+=i)}else for(i in e)e[i]&&(n&&(n+=" "),n+=i);return n}function Rt(){for(var e,t,i=0,n="",s=arguments.length;i<s;i++)(e=arguments[i])&&(t=ws(e))&&(n&&(n+=" "),n+=t);return n}const Ht={container:{content:"mt-12 mb-4",description:"font-normal text-2xl text-darkened",root:"text-4xl font-semibold text-info",sub:"text-xl font-normal text-info"},inscription:{title:"text-xl font-bold text-info"},success:{position:"absolute top-0 left-full max-w-sm",confirmation:"text-primary font-semibold text-lg transition-opacity",show:"opacity-100",hide:"opacity-0"},error:{position:"absolute top-0 left-full max-w-sm",confirmation:"text-danger font-semibold text-lg transition-opacity",show:"opacity-100",hide:"opacity-0"}},ks=e=>e!=null&&e.tag?P.createElement(e.tag,{className:Rt("m-0 p-0",e.sans&&"font-sans",e.className&&e.className,e.font&&`font-${e.font}`,e.size&&`text-${e.size}`,e.color&&`text-${e.color}`,e.style&&`font-${e.style}`,e.leading&&`leading-${e.leading}`,e.customColor&&`text-${e.customColor}`)},e.children):ut.jsx("p",{className:Rt("m-0 p-0",e.sans&&"font-sans",e.className&&e.className,e.font&&`font-${e.font}`,e.size&&`text-${e.size}`,e.color&&`text-${e.color}`,e.style&&`font-${e.style}`,e.leading&&`leading-${e.leading}`,e.customColor&&`text-${e.customColor}`),children:e.children});ks.defaultProps={color:"info",size:"base",font:"medium"};const Ss=({color:e,size:t,font:i,children:n})=>ut.jsx("h1",{className:Rt(`text-${t}`,`text-${e}`,`font-${i}`),children:n});Ss.defaultProps={color:"info",size:"4xl",font:"bold"};const Ms=({size:e,color:t,font:i,children:n})=>ut.jsx("h2",{className:Rt(`text-${e}`,`text-${t}`,`font-${i}`),children:n});Ms.defaultProps={color:"info",size:"xl",font:"normal"};const La=({children:e})=>ut.jsx("h2",{className:Ht.inscription.title,children:e}),Ia=({content:e,children:t})=>ut.jsx("h3",{className:Rt(Ht.container.description,e&&Ht.container.content),children:t}),Fa=e=>{const t=P.useRef(!0);return P.useEffect(()=>{if(e!=null&&e.onDismiss)return window==null||window.setTimeout(()=>{var i;t.current&&((i=e==null?void 0:e.onDismiss)==null||i.call(e))},Cs),()=>{t.current=!1}},[e==null?void 0:e.onDismiss]),ut.jsx("span",{className:Rt(Ht.success.confirmation,(e==null?void 0:e.className)&&e.className,e!=null&&e.confirmation?Ht.success.show:Ht.success.hide),children:e.children})},ja=e=>{const t=P.useRef(!0);return P.useEffect(()=>{if(e!=null&&e.onDismiss)return window==null||window.setTimeout(()=>{var i;t.current&&((i=e==null?void 0:e.onDismiss)==null||i.call(e))},Cs),()=>{t.current=!1}},[e==null?void 0:e.onDismiss]),ut.jsx("span",{className:Rt(Ht.error.confirmation,(e==null?void 0:e.className)&&e.className,e!=null&&e.confirmation?Ht.error.show:Ht.error.hide),children:(e==null?void 0:e.confirmation)&&e.children})},Cs=5e3;/*!
31
+ * @kurkle/color v0.3.2
32
+ * https://github.com/kurkle/color#readme
33
+ * (c) 2023 Jukka Kurkela
34
+ * Released under the MIT License
35
+ */function He(e){return e+.5|0}const qt=(e,t,i)=>Math.max(Math.min(e,i),t);function $e(e){return qt(He(e*2.55),0,255)}function Gt(e){return qt(He(e*255),0,255)}function $t(e){return qt(He(e/2.55)/100,0,1)}function Os(e){return qt(He(e*100),0,100)}const Ct={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},yn=[..."0123456789ABCDEF"],za=e=>yn[e&15],Na=e=>yn[(e&240)>>4]+yn[e&15],fi=e=>(e&240)>>4===(e&15),Wa=e=>fi(e.r)&&fi(e.g)&&fi(e.b)&&fi(e.a);function Ba(e){var t=e.length,i;return e[0]==="#"&&(t===4||t===5?i={r:255&Ct[e[1]]*17,g:255&Ct[e[2]]*17,b:255&Ct[e[3]]*17,a:t===5?Ct[e[4]]*17:255}:(t===7||t===9)&&(i={r:Ct[e[1]]<<4|Ct[e[2]],g:Ct[e[3]]<<4|Ct[e[4]],b:Ct[e[5]]<<4|Ct[e[6]],a:t===9?Ct[e[7]]<<4|Ct[e[8]]:255})),i}const Ha=(e,t)=>e<255?t(e):"";function $a(e){var t=Wa(e)?za:Na;return e?"#"+t(e.r)+t(e.g)+t(e.b)+Ha(e.a,t):void 0}const Va=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ps(e,t,i){const n=t*Math.min(i,1-i),s=(o,r=(o+e/30)%12)=>i-n*Math.max(Math.min(r-3,9-r,1),-1);return[s(0),s(8),s(4)]}function Ya(e,t,i){const n=(s,o=(s+e/60)%6)=>i-i*t*Math.max(Math.min(o,4-o,1),0);return[n(5),n(3),n(1)]}function Ua(e,t,i){const n=Ps(e,1,.5);let s;for(t+i>1&&(s=1/(t+i),t*=s,i*=s),s=0;s<3;s++)n[s]*=1-t-i,n[s]+=t;return n}function Xa(e,t,i,n,s){return e===s?(t-i)/n+(t<i?6:0):t===s?(i-e)/n+2:(e-t)/n+4}function xn(e){const i=e.r/255,n=e.g/255,s=e.b/255,o=Math.max(i,n,s),r=Math.min(i,n,s),a=(o+r)/2;let c,l,h;return o!==r&&(h=o-r,l=a>.5?h/(2-o-r):h/(o+r),c=Xa(i,n,s,h,o),c=c*60+.5),[c|0,l||0,a]}function _n(e,t,i,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,i,n)).map(Gt)}function vn(e,t,i){return _n(Ps,e,t,i)}function Ka(e,t,i){return _n(Ua,e,t,i)}function qa(e,t,i){return _n(Ya,e,t,i)}function As(e){return(e%360+360)%360}function Ga(e){const t=Va.exec(e);let i=255,n;if(!t)return;t[5]!==n&&(i=t[6]?$e(+t[5]):Gt(+t[5]));const s=As(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?n=Ka(s,o,r):t[1]==="hsv"?n=qa(s,o,r):n=vn(s,o,r),{r:n[0],g:n[1],b:n[2],a:i}}function Za(e,t){var i=xn(e);i[0]=As(i[0]+t),i=vn(i),e.r=i[0],e.g=i[1],e.b=i[2]}function Ja(e){if(!e)return;const t=xn(e),i=t[0],n=Os(t[1]),s=Os(t[2]);return e.a<255?`hsla(${i}, ${n}%, ${s}%, ${$t(e.a)})`:`hsl(${i}, ${n}%, ${s}%)`}const Es={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Ts={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Qa(){const e={},t=Object.keys(Ts),i=Object.keys(Es);let n,s,o,r,a;for(n=0;n<t.length;n++){for(r=a=t[n],s=0;s<i.length;s++)o=i[s],a=a.replace(o,Es[o]);o=parseInt(Ts[r],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}let gi;function tc(e){gi||(gi=Qa(),gi.transparent=[0,0,0,0]);const t=gi[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const ec=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function ic(e){const t=ec.exec(e);let i=255,n,s,o;if(t){if(t[7]!==n){const r=+t[7];i=t[8]?$e(r):qt(r*255,0,255)}return n=+t[1],s=+t[3],o=+t[5],n=255&(t[2]?$e(n):qt(n,0,255)),s=255&(t[4]?$e(s):qt(s,0,255)),o=255&(t[6]?$e(o):qt(o,0,255)),{r:n,g:s,b:o,a:i}}}function nc(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${$t(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const wn=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,xe=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function sc(e,t,i){const n=xe($t(e.r)),s=xe($t(e.g)),o=xe($t(e.b));return{r:Gt(wn(n+i*(xe($t(t.r))-n))),g:Gt(wn(s+i*(xe($t(t.g))-s))),b:Gt(wn(o+i*(xe($t(t.b))-o))),a:e.a+i*(t.a-e.a)}}function pi(e,t,i){if(e){let n=xn(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*i,t===0?360:1)),n=vn(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function Rs(e,t){return e&&Object.assign(t||{},e)}function Ds(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Gt(e[3]))):(t=Rs(e,{r:0,g:0,b:0,a:1}),t.a=Gt(t.a)),t}function oc(e){return e.charAt(0)==="r"?ic(e):Ga(e)}let Ls=class xs{constructor(t){if(t instanceof xs)return t;const i=typeof t;let n;i==="object"?n=Ds(t):i==="string"&&(n=Ba(t)||tc(t)||oc(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Rs(this._rgb);return t&&(t.a=$t(t.a)),t}set rgb(t){this._rgb=Ds(t)}rgbString(){return this._valid?nc(this._rgb):void 0}hexString(){return this._valid?$a(this._rgb):void 0}hslString(){return this._valid?Ja(this._rgb):void 0}mix(t,i){if(t){const n=this.rgb,s=t.rgb;let o;const r=i===o?.5:i,a=2*r-1,c=n.a-s.a,l=((a*c===-1?a:(a+c)/(1+a*c))+1)/2;o=1-l,n.r=255&l*n.r+o*s.r+.5,n.g=255&l*n.g+o*s.g+.5,n.b=255&l*n.b+o*s.b+.5,n.a=r*n.a+(1-r)*s.a,this.rgb=n}return this}interpolate(t,i){return t&&(this._rgb=sc(this._rgb,t._rgb,i)),this}clone(){return new xs(this.rgb)}alpha(t){return this._rgb.a=Gt(t),this}clearer(t){const i=this._rgb;return i.a*=1-t,this}greyscale(){const t=this._rgb,i=He(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=i,this}opaquer(t){const i=this._rgb;return i.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return pi(this._rgb,2,t),this}darken(t){return pi(this._rgb,2,-t),this}saturate(t){return pi(this._rgb,1,t),this}desaturate(t){return pi(this._rgb,1,-t),this}rotate(t){return Za(this._rgb,t),this}};/*!
36
+ * Chart.js v4.4.3
37
+ * https://www.chartjs.org
38
+ * (c) 2024 Chart.js Contributors
39
+ * Released under the MIT License
40
+ */function Vt(){}const rc=(()=>{let e=0;return()=>e++})();function J(e){return e===null||typeof e>"u"}function nt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function N(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function lt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function wt(e,t){return lt(e)?e:t}function B(e,t){return typeof e>"u"?t:e}const ac=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,Is=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function q(e,t,i){if(e&&typeof e.call=="function")return e.apply(i,t)}function V(e,t,i,n){let s,o,r;if(nt(e))for(o=e.length,s=0;s<o;s++)t.call(i,e[s],s);else if(N(e))for(r=Object.keys(e),o=r.length,s=0;s<o;s++)t.call(i,e[r[s]],r[s])}function mi(e,t){let i,n,s,o;if(!e||!t||e.length!==t.length)return!1;for(i=0,n=e.length;i<n;++i)if(s=e[i],o=t[i],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function bi(e){if(nt(e))return e.map(bi);if(N(e)){const t=Object.create(null),i=Object.keys(e),n=i.length;let s=0;for(;s<n;++s)t[i[s]]=bi(e[i[s]]);return t}return e}function Fs(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function cc(e,t,i,n){if(!Fs(e))return;const s=t[e],o=i[e];N(s)&&N(o)?Ve(s,o,n):t[e]=bi(o)}function Ve(e,t,i){const n=nt(t)?t:[t],s=n.length;if(!N(e))return e;i=i||{};const o=i.merger||cc;let r;for(let a=0;a<s;++a){if(r=n[a],!N(r))continue;const c=Object.keys(r);for(let l=0,h=c.length;l<h;++l)o(c[l],e,r,i)}return e}function Ye(e,t){return Ve(e,t,{merger:lc})}function lc(e,t,i){if(!Fs(e))return;const n=t[e],s=i[e];N(n)&&N(s)?Ye(n,s):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=bi(s))}const js={"":e=>e,x:e=>e.x,y:e=>e.y};function hc(e){const t=e.split("."),i=[];let n="";for(const s of t)n+=s,n.endsWith("\\")?n=n.slice(0,-1)+".":(i.push(n),n="");return i}function uc(e){const t=hc(e);return i=>{for(const n of t){if(n==="")break;i=i&&i[n]}return i}}function Ue(e,t){return(js[t]||(js[t]=uc(t)))(e)}function kn(e){return e.charAt(0).toUpperCase()+e.slice(1)}const yi=e=>typeof e<"u",Zt=e=>typeof e=="function",zs=(e,t)=>{if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0};function dc(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const rt=Math.PI,tt=2*rt,xi=Number.POSITIVE_INFINITY,fc=rt/180,st=rt/2,se=rt/4,Ns=rt*2/3,Jt=Math.log10,_i=Math.sign;function vi(e,t,i){return Math.abs(e-t)<i}function Ws(e){const t=Math.round(e);e=vi(e,t,e/1e3)?t:e;const i=Math.pow(10,Math.floor(Jt(e))),n=e/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function gc(e){const t=[],i=Math.sqrt(e);let n;for(n=1;n<i;n++)e%n===0&&(t.push(n),t.push(e/n));return i===(i|0)&&t.push(i),t.sort((s,o)=>s-o).pop(),t}function wi(e){return!isNaN(parseFloat(e))&&isFinite(e)}function pc(e,t){const i=Math.round(e);return i-t<=e&&i+t>=e}function Bs(e,t,i){let n,s,o;for(n=0,s=e.length;n<s;n++)o=e[n][i],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function jt(e){return e*(rt/180)}function Sn(e){return e*(180/rt)}function Hs(e){if(!lt(e))return;let t=1,i=0;for(;Math.round(e*t)/t!==e;)t*=10,i++;return i}function $s(e,t){const i=t.x-e.x,n=t.y-e.y,s=Math.sqrt(i*i+n*n);let o=Math.atan2(n,i);return o<-.5*rt&&(o+=tt),{angle:o,distance:s}}function mc(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function zt(e){return(e%tt+tt)%tt}function ki(e,t,i,n){const s=zt(e),o=zt(t),r=zt(i),a=zt(o-s),c=zt(r-s),l=zt(s-o),h=zt(s-r);return s===o||s===r||n&&o===r||a>c&&l<h}function Ot(e,t,i){return Math.max(t,Math.min(i,e))}function bc(e){return Ot(e,-32768,32767)}function Xe(e,t,i,n=1e-6){return e>=Math.min(t,i)-n&&e<=Math.max(t,i)+n}function Mn(e,t,i){i=i||(r=>e[r]<t);let n=e.length-1,s=0,o;for(;n-s>1;)o=s+n>>1,i(o)?s=o:n=o;return{lo:s,hi:n}}const Cn=(e,t,i,n)=>Mn(e,i,n?s=>{const o=e[s][t];return o<i||o===i&&e[s+1][t]===i}:s=>e[s][t]<i),yc=(e,t,i)=>Mn(e,i,n=>e[n][t]>=i);function xc(e,t,i){let n=0,s=e.length;for(;n<s&&e[n]<t;)n++;for(;s>n&&e[s-1]>i;)s--;return n>0||s<e.length?e.slice(n,s):e}const Vs=["push","pop","shift","splice","unshift"];function _c(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Vs.forEach(i=>{const n="_onData"+kn(i),s=e[i];Object.defineProperty(e,i,{configurable:!0,enumerable:!1,value(...o){const r=s.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[n]=="function"&&a[n](...o)}),r}})})}function Ys(e,t){const i=e._chartjs;if(!i)return;const n=i.listeners,s=n.indexOf(t);s!==-1&&n.splice(s,1),!(n.length>0)&&(Vs.forEach(o=>{delete e[o]}),delete e._chartjs)}function vc(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Us=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function Xs(e,t){let i=[],n=!1;return function(...s){i=s,n||(n=!0,Us.call(window,()=>{n=!1,e.apply(t,i)}))}}function wc(e,t){let i;return function(...n){return t?(clearTimeout(i),i=setTimeout(e,t,n)):e.apply(this,n),t}}const Ks=e=>e==="start"?"left":e==="end"?"right":"center",kt=(e,t,i)=>e==="start"?t:e==="end"?i:(t+i)/2,kc=(e,t,i,n)=>e===(n?"left":"right")?i:e==="center"?(t+i)/2:t,Si=e=>e===0||e===1,qs=(e,t,i)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*tt/i)),Gs=(e,t,i)=>Math.pow(2,-10*e)*Math.sin((e-t)*tt/i)+1,Ke={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*st)+1,easeOutSine:e=>Math.sin(e*st),easeInOutSine:e=>-.5*(Math.cos(rt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Si(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Si(e)?e:qs(e,.075,.3),easeOutElastic:e=>Si(e)?e:Gs(e,.075,.3),easeInOutElastic(e){return Si(e)?e:e<.5?.5*qs(e*2,.1125,.45):.5+.5*Gs(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Ke.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Ke.easeInBounce(e*2)*.5:Ke.easeOutBounce(e*2-1)*.5+.5};function Zs(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Js(e){return Zs(e)?e:new Ls(e)}function On(e){return Zs(e)?e:new Ls(e).saturate(.5).darken(.1).hexString()}const Sc=["x","y","borderWidth","radius","tension"],Mc=["color","borderColor","backgroundColor"];function Cc(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:Mc},numbers:{type:"number",properties:Sc}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Oc(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Qs=new Map;function Pc(e,t){t=t||{};const i=e+JSON.stringify(t);let n=Qs.get(i);return n||(n=new Intl.NumberFormat(e,t),Qs.set(i,n)),n}function Mi(e,t,i){return Pc(t,i).format(e)}const to={values(e){return nt(e)?e:""+e},numeric(e,t,i){if(e===0)return"0";const n=this.chart.options.locale;let s,o=e;if(i.length>1){const l=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(l<1e-4||l>1e15)&&(s="scientific"),o=Ac(e,i)}const r=Jt(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),c={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(c,this.options.ticks.format),Mi(e,n,c)},logarithmic(e,t,i){if(e===0)return"0";const n=i[t].significand||e/Math.pow(10,Math.floor(Jt(e)));return[1,2,3,5,10,15].includes(n)||t>.8*i.length?to.numeric.call(this,e,t,i):""}};function Ac(e,t){let i=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(i)>=1&&e!==Math.floor(e)&&(i=e-Math.floor(e)),i}var Ci={formatters:to};function Ec(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,i)=>i.lineWidth,tickColor:(t,i)=>i.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ci.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const oe=Object.create(null),Pn=Object.create(null);function qe(e,t){if(!t)return e;const i=t.split(".");for(let n=0,s=i.length;n<s;++n){const o=i[n];e=e[o]||(e[o]=Object.create(null))}return e}function An(e,t,i){return typeof t=="string"?Ve(qe(e,t),i):Ve(qe(e,""),t)}class Tc{constructor(t,i){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,s)=>On(s.backgroundColor),this.hoverBorderColor=(n,s)=>On(s.borderColor),this.hoverColor=(n,s)=>On(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(i)}set(t,i){return An(this,t,i)}get(t){return qe(this,t)}describe(t,i){return An(Pn,t,i)}override(t,i){return An(oe,t,i)}route(t,i,n,s){const o=qe(this,t),r=qe(this,n),a="_"+i;Object.defineProperties(o,{[a]:{value:o[i],writable:!0},[i]:{enumerable:!0,get(){const c=this[a],l=r[s];return N(c)?Object.assign({},l,c):B(c,l)},set(c){this[a]=c}}})}apply(t){t.forEach(i=>i(this))}}var et=new Tc({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Cc,Oc,Ec]);function Rc(e){return!e||J(e.size)||J(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Oi(e,t,i,n,s){let o=t[s];return o||(o=t[s]=e.measureText(s).width,i.push(s)),o>n&&(n=o),n}function Dc(e,t,i,n){n=n||{};let s=n.data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(s=n.data={},o=n.garbageCollect=[],n.font=t),e.save(),e.font=t;let r=0;const a=i.length;let c,l,h,u,d;for(c=0;c<a;c++)if(u=i[c],u!=null&&!nt(u))r=Oi(e,s,o,r,u);else if(nt(u))for(l=0,h=u.length;l<h;l++)d=u[l],d!=null&&!nt(d)&&(r=Oi(e,s,o,r,d));e.restore();const f=o.length/2;if(f>i.length){for(c=0;c<f;c++)delete s[o[c]];o.splice(0,f)}return r}function re(e,t,i){const n=e.currentDevicePixelRatio,s=i!==0?Math.max(i/2,.5):0;return Math.round((t-s)*n)/n+s}function eo(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function io(e,t,i,n){no(e,t,i,n,null)}function no(e,t,i,n,s){let o,r,a,c,l,h,u,d;const f=t.pointStyle,m=t.rotation,b=t.radius;let p=(m||0)*fc;if(f&&typeof f=="object"&&(o=f.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(i,n),e.rotate(p),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),e.restore();return}if(!(isNaN(b)||b<=0)){switch(e.beginPath(),f){default:s?e.ellipse(i,n,s/2,b,0,0,tt):e.arc(i,n,b,0,tt),e.closePath();break;case"triangle":h=s?s/2:b,e.moveTo(i+Math.sin(p)*h,n-Math.cos(p)*b),p+=Ns,e.lineTo(i+Math.sin(p)*h,n-Math.cos(p)*b),p+=Ns,e.lineTo(i+Math.sin(p)*h,n-Math.cos(p)*b),e.closePath();break;case"rectRounded":l=b*.516,c=b-l,r=Math.cos(p+se)*c,u=Math.cos(p+se)*(s?s/2-l:c),a=Math.sin(p+se)*c,d=Math.sin(p+se)*(s?s/2-l:c),e.arc(i-u,n-a,l,p-rt,p-st),e.arc(i+d,n-r,l,p-st,p),e.arc(i+u,n+a,l,p,p+st),e.arc(i-d,n+r,l,p+st,p+rt),e.closePath();break;case"rect":if(!m){c=Math.SQRT1_2*b,h=s?s/2:c,e.rect(i-h,n-c,2*h,2*c);break}p+=se;case"rectRot":u=Math.cos(p)*(s?s/2:b),r=Math.cos(p)*b,a=Math.sin(p)*b,d=Math.sin(p)*(s?s/2:b),e.moveTo(i-u,n-a),e.lineTo(i+d,n-r),e.lineTo(i+u,n+a),e.lineTo(i-d,n+r),e.closePath();break;case"crossRot":p+=se;case"cross":u=Math.cos(p)*(s?s/2:b),r=Math.cos(p)*b,a=Math.sin(p)*b,d=Math.sin(p)*(s?s/2:b),e.moveTo(i-u,n-a),e.lineTo(i+u,n+a),e.moveTo(i+d,n-r),e.lineTo(i-d,n+r);break;case"star":u=Math.cos(p)*(s?s/2:b),r=Math.cos(p)*b,a=Math.sin(p)*b,d=Math.sin(p)*(s?s/2:b),e.moveTo(i-u,n-a),e.lineTo(i+u,n+a),e.moveTo(i+d,n-r),e.lineTo(i-d,n+r),p+=se,u=Math.cos(p)*(s?s/2:b),r=Math.cos(p)*b,a=Math.sin(p)*b,d=Math.sin(p)*(s?s/2:b),e.moveTo(i-u,n-a),e.lineTo(i+u,n+a),e.moveTo(i+d,n-r),e.lineTo(i-d,n+r);break;case"line":r=s?s/2:Math.cos(p)*b,a=Math.sin(p)*b,e.moveTo(i-r,n-a),e.lineTo(i+r,n+a);break;case"dash":e.moveTo(i,n),e.lineTo(i+Math.cos(p)*(s?s/2:b),n+Math.sin(p)*b);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function _e(e,t,i){return i=i||.5,!t||e&&e.x>t.left-i&&e.x<t.right+i&&e.y>t.top-i&&e.y<t.bottom+i}function En(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Tn(e){e.restore()}function Lc(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),J(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function Ic(e,t,i,n,s){if(s.strikethrough||s.underline){const o=e.measureText(n),r=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,c=i-o.actualBoundingBoxAscent,l=i+o.actualBoundingBoxDescent,h=s.strikethrough?(c+l)/2:l;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=s.decorationWidth||2,e.moveTo(r,h),e.lineTo(a,h),e.stroke()}}function Fc(e,t){const i=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=i}function ve(e,t,i,n,s,o={}){const r=nt(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let c,l;for(e.save(),e.font=s.string,Lc(e,o),c=0;c<r.length;++c)l=r[c],o.backdrop&&Fc(e,o.backdrop),a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),J(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(l,i,n,o.maxWidth)),e.fillText(l,i,n,o.maxWidth),Ic(e,i,n,l,o),n+=Number(s.lineHeight);e.restore()}function Pi(e,t){const{x:i,y:n,w:s,h:o,radius:r}=t;e.arc(i+r.topLeft,n+r.topLeft,r.topLeft,1.5*rt,rt,!0),e.lineTo(i,n+o-r.bottomLeft),e.arc(i+r.bottomLeft,n+o-r.bottomLeft,r.bottomLeft,rt,st,!0),e.lineTo(i+s-r.bottomRight,n+o),e.arc(i+s-r.bottomRight,n+o-r.bottomRight,r.bottomRight,st,0,!0),e.lineTo(i+s,n+r.topRight),e.arc(i+s-r.topRight,n+r.topRight,r.topRight,0,-st,!0),e.lineTo(i+r.topLeft,n)}const jc=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,zc=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Nc(e,t){const i=(""+e).match(jc);if(!i||i[1]==="normal")return t*1.2;switch(e=+i[2],i[3]){case"px":return e;case"%":e/=100;break}return t*e}const Wc=e=>+e||0;function Rn(e,t){const i={},n=N(t),s=n?Object.keys(t):t,o=N(e)?n?r=>B(e[r],e[t[r]]):r=>e[r]:()=>e;for(const r of s)i[r]=Wc(o(r));return i}function Bc(e){return Rn(e,{top:"y",right:"x",bottom:"y",left:"x"})}function we(e){return Rn(e,["topLeft","topRight","bottomLeft","bottomRight"])}function pt(e){const t=Bc(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function dt(e,t){e=e||{},t=t||et.font;let i=B(e.size,t.size);typeof i=="string"&&(i=parseInt(i,10));let n=B(e.style,t.style);n&&!(""+n).match(zc)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const s={family:B(e.family,t.family),lineHeight:Nc(B(e.lineHeight,t.lineHeight),i),size:i,style:n,weight:B(e.weight,t.weight),string:""};return s.string=Rc(s),s}function Ai(e,t,i,n){let s,o,r;for(s=0,o=e.length;s<o;++s)if(r=e[s],r!==void 0&&r!==void 0)return r}function Hc(e,t,i){const{min:n,max:s}=e,o=Is(t,(s-n)/2),r=(a,c)=>i&&a===0?0:a+c;return{min:r(n,-Math.abs(o)),max:r(s,o)}}function ae(e,t){return Object.assign(Object.create(e),t)}function Dn(e,t=[""],i,n,s=()=>e[0]){const o=i||e;typeof n>"u"&&(n=co("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:n,_getTarget:s,override:a=>Dn([a,...e],t,o,n)};return new Proxy(r,{deleteProperty(a,c){return delete a[c],delete a._keys,delete e[0][c],!0},get(a,c){return oo(a,c,()=>Gc(c,t,e,a))},getOwnPropertyDescriptor(a,c){return Reflect.getOwnPropertyDescriptor(a._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,c){return lo(a).includes(c)},ownKeys(a){return lo(a)},set(a,c,l){const h=a._storage||(a._storage=s());return a[c]=h[c]=l,delete a._keys,!0}})}function ke(e,t,i,n){const s={_cacheable:!1,_proxy:e,_context:t,_subProxy:i,_stack:new Set,_descriptors:so(e,n),setContext:o=>ke(e,o,i,n),override:o=>ke(e.override(o),t,i,n)};return new Proxy(s,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return oo(o,r,()=>Vc(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function so(e,t={scriptable:!0,indexable:!0}){const{_scriptable:i=t.scriptable,_indexable:n=t.indexable,_allKeys:s=t.allKeys}=e;return{allKeys:s,scriptable:i,indexable:n,isScriptable:Zt(i)?i:()=>i,isIndexable:Zt(n)?n:()=>n}}const $c=(e,t)=>e?e+kn(t):t,Ln=(e,t)=>N(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function oo(e,t,i){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const n=i();return e[t]=n,n}function Vc(e,t,i){const{_proxy:n,_context:s,_subProxy:o,_descriptors:r}=e;let a=n[t];return Zt(a)&&r.isScriptable(t)&&(a=Yc(t,a,e,i)),nt(a)&&a.length&&(a=Uc(t,a,e,r.isIndexable)),Ln(t,a)&&(a=ke(a,s,o&&o[t],r)),a}function Yc(e,t,i,n){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=i;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let c=t(o,r||n);return a.delete(e),Ln(e,c)&&(c=In(s._scopes,s,e,c)),c}function Uc(e,t,i,n){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=i;if(typeof o.index<"u"&&n(e))return t[o.index%t.length];if(N(t[0])){const c=t,l=s._scopes.filter(h=>h!==c);t=[];for(const h of c){const u=In(l,s,e,h);t.push(ke(u,o,r&&r[e],a))}}return t}function ro(e,t,i){return Zt(e)?e(t,i):e}const Xc=(e,t)=>e===!0?t:typeof e=="string"?Ue(t,e):void 0;function Kc(e,t,i,n,s){for(const o of t){const r=Xc(i,o);if(r){e.add(r);const a=ro(r._fallback,i,s);if(typeof a<"u"&&a!==i&&a!==n)return a}else if(r===!1&&typeof n<"u"&&i!==n)return null}return!1}function In(e,t,i,n){const s=t._rootScopes,o=ro(t._fallback,i,n),r=[...e,...s],a=new Set;a.add(n);let c=ao(a,r,i,o||i,n);return c===null||typeof o<"u"&&o!==i&&(c=ao(a,r,o,c,n),c===null)?!1:Dn(Array.from(a),[""],s,o,()=>qc(t,i,n))}function ao(e,t,i,n,s){for(;i;)i=Kc(e,t,i,n,s);return i}function qc(e,t,i){const n=e._getTarget();t in n||(n[t]={});const s=n[t];return nt(s)&&N(i)?i:s||{}}function Gc(e,t,i,n){let s;for(const o of t)if(s=co($c(o,e),i),typeof s<"u")return Ln(e,s)?In(i,n,e,s):s}function co(e,t){for(const i of t){if(!i)continue;const n=i[e];if(typeof n<"u")return n}}function lo(e){let t=e._keys;return t||(t=e._keys=Zc(e._scopes)),t}function Zc(e){const t=new Set;for(const i of e)for(const n of Object.keys(i).filter(s=>!s.startsWith("_")))t.add(n);return Array.from(t)}function Fn(){return typeof window<"u"&&typeof document<"u"}function jn(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Ei(e,t,i){let n;return typeof e=="string"?(n=parseInt(e,10),e.indexOf("%")!==-1&&(n=n/100*t.parentNode[i])):n=e,n}const Ti=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function Jc(e,t){return Ti(e).getPropertyValue(t)}const Qc=["top","right","bottom","left"];function ce(e,t,i){const n={};i=i?"-"+i:"";for(let s=0;s<4;s++){const o=Qc[s];n[o]=parseFloat(e[t+"-"+o+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const tl=(e,t,i)=>(e>0||t>0)&&(!i||!i.shadowRoot);function el(e,t){const i=e.touches,n=i&&i.length?i[0]:e,{offsetX:s,offsetY:o}=n;let r=!1,a,c;if(tl(s,o,e.target))a=s,c=o;else{const l=t.getBoundingClientRect();a=n.clientX-l.left,c=n.clientY-l.top,r=!0}return{x:a,y:c,box:r}}function le(e,t){if("native"in e)return e;const{canvas:i,currentDevicePixelRatio:n}=t,s=Ti(i),o=s.boxSizing==="border-box",r=ce(s,"padding"),a=ce(s,"border","width"),{x:c,y:l,box:h}=el(e,i),u=r.left+(h&&a.left),d=r.top+(h&&a.top);let{width:f,height:m}=t;return o&&(f-=r.width+a.width,m-=r.height+a.height),{x:Math.round((c-u)/f*i.width/n),y:Math.round((l-d)/m*i.height/n)}}function il(e,t,i){let n,s;if(t===void 0||i===void 0){const o=e&&jn(e);if(!o)t=e.clientWidth,i=e.clientHeight;else{const r=o.getBoundingClientRect(),a=Ti(o),c=ce(a,"border","width"),l=ce(a,"padding");t=r.width-l.width-c.width,i=r.height-l.height-c.height,n=Ei(a.maxWidth,o,"clientWidth"),s=Ei(a.maxHeight,o,"clientHeight")}}return{width:t,height:i,maxWidth:n||xi,maxHeight:s||xi}}const Ri=e=>Math.round(e*10)/10;function nl(e,t,i,n){const s=Ti(e),o=ce(s,"margin"),r=Ei(s.maxWidth,e,"clientWidth")||xi,a=Ei(s.maxHeight,e,"clientHeight")||xi,c=il(e,t,i);let{width:l,height:h}=c;if(s.boxSizing==="content-box"){const d=ce(s,"border","width"),f=ce(s,"padding");l-=f.width+d.width,h-=f.height+d.height}return l=Math.max(0,l-o.width),h=Math.max(0,n?l/n:h-o.height),l=Ri(Math.min(l,r,c.maxWidth)),h=Ri(Math.min(h,a,c.maxHeight)),l&&!h&&(h=Ri(l/2)),(t!==void 0||i!==void 0)&&n&&c.height&&h>c.height&&(h=c.height,l=Ri(Math.floor(h*n))),{width:l,height:h}}function ho(e,t,i){const n=t||1,s=Math.floor(e.height*n),o=Math.floor(e.width*n);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const r=e.canvas;return r.style&&(i||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==n||r.height!==s||r.width!==o?(e.currentDevicePixelRatio=n,r.height=s,r.width=o,e.ctx.setTransform(n,0,0,n,0,0),!0):!1}const sl=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Fn()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function uo(e,t){const i=Jc(e,t),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}const ol=function(e,t){return{x(i){return e+e+t-i},setWidth(i){t=i},textAlign(i){return i==="center"?i:i==="right"?"left":"right"},xPlus(i,n){return i-n},leftForLtr(i,n){return i-n}}},rl=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Se(e,t,i){return e?ol(t,i):rl()}function fo(e,t){let i,n;(t==="ltr"||t==="rtl")&&(i=e.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",t,"important"),e.prevTextDirection=n)}function go(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}/*!
41
+ * Chart.js v4.4.3
42
+ * https://www.chartjs.org
43
+ * (c) 2024 Chart.js Contributors
44
+ * Released under the MIT License
45
+ */class al{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,i,n,s){const o=i.listeners[s],r=i.duration;o.forEach(a=>a({chart:t,initial:i.initial,numSteps:r,currentStep:Math.min(n-i.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Us.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let i=0;this._charts.forEach((n,s)=>{if(!n.running||!n.items.length)return;const o=n.items;let r=o.length-1,a=!1,c;for(;r>=0;--r)c=o[r],c._active?(c._total>n.duration&&(n.duration=c._total),c.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(s.draw(),this._notify(s,n,t,"progress")),o.length||(n.running=!1,this._notify(s,n,t,"complete"),n.initial=!1),i+=o.length}),this._lastDate=t,i===0&&(this._running=!1)}_getAnims(t){const i=this._charts;let n=i.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},i.set(t,n)),n}listen(t,i,n){this._getAnims(t).listeners[i].push(n)}add(t,i){!i||!i.length||this._getAnims(t).items.push(...i)}has(t){return this._getAnims(t).items.length>0}start(t){const i=this._charts.get(t);i&&(i.running=!0,i.start=Date.now(),i.duration=i.items.reduce((n,s)=>Math.max(n,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const i=this._charts.get(t);return!(!i||!i.running||!i.items.length)}stop(t){const i=this._charts.get(t);if(!i||!i.items.length)return;const n=i.items;let s=n.length-1;for(;s>=0;--s)n[s].cancel();i.items=[],this._notify(t,i,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Yt=new al;const po="transparent",cl={boolean(e,t,i){return i>.5?t:e},color(e,t,i){const n=Js(e||po),s=n.valid&&Js(t||po);return s&&s.valid?s.mix(n,i).hexString():t},number(e,t,i){return e+(t-e)*i}};class ll{constructor(t,i,n,s){const o=i[n];s=Ai([t.to,s,o,t.from]);const r=Ai([t.from,o,s]);this._active=!0,this._fn=t.fn||cl[t.type||typeof r],this._easing=Ke[t.easing]||Ke.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=i,this._prop=n,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,i,n){if(this._active){this._notify(!1);const s=this._target[this._prop],o=n-this._start,r=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Ai([t.to,i,s,t.from]),this._from=Ai([t.from,s,i])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const i=t-this._start,n=this._duration,s=this._prop,o=this._from,r=this._loop,a=this._to;let c;if(this._active=o!==a&&(r||i<n),!this._active){this._target[s]=a,this._notify(!0);return}if(i<0){this._target[s]=o;return}c=i/n%2,c=r&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[s]=this._fn(o,a,c)}wait(){const t=this._promises||(this._promises=[]);return new Promise((i,n)=>{t.push({res:i,rej:n})})}_notify(t){const i=t?"res":"rej",n=this._promises||[];for(let s=0;s<n.length;s++)n[s][i]()}}class mo{constructor(t,i){this._chart=t,this._properties=new Map,this.configure(i)}configure(t){if(!N(t))return;const i=Object.keys(et.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const o=t[s];if(!N(o))return;const r={};for(const a of i)r[a]=o[a];(nt(o.properties)&&o.properties||[s]).forEach(a=>{(a===s||!n.has(a))&&n.set(a,r)})})}_animateOptions(t,i){const n=i.options,s=ul(t,n);if(!s)return[];const o=this._createAnimations(s,n);return n.$shared&&hl(t.options.$animations,n).then(()=>{t.options=n},()=>{}),o}_createAnimations(t,i){const n=this._properties,s=[],o=t.$animations||(t.$animations={}),r=Object.keys(i),a=Date.now();let c;for(c=r.length-1;c>=0;--c){const l=r[c];if(l.charAt(0)==="$")continue;if(l==="options"){s.push(...this._animateOptions(t,i));continue}const h=i[l];let u=o[l];const d=n.get(l);if(u)if(d&&u.active()){u.update(d,h,a);continue}else u.cancel();if(!d||!d.duration){t[l]=h;continue}o[l]=u=new ll(d,t,l,h),s.push(u)}return s}update(t,i){if(this._properties.size===0){Object.assign(t,i);return}const n=this._createAnimations(t,i);if(n.length)return Yt.add(this._chart,n),!0}}function hl(e,t){const i=[],n=Object.keys(t);for(let s=0;s<n.length;s++){const o=e[n[s]];o&&o.active()&&i.push(o.wait())}return Promise.all(i)}function ul(e,t){if(!t)return;let i=e.options;if(!i){e.options=t;return}return i.$shared&&(e.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i}function bo(e,t){const i=e&&e.options||{},n=i.reverse,s=i.min===void 0?t:0,o=i.max===void 0?t:0;return{start:n?o:s,end:n?s:o}}function dl(e,t,i){if(i===!1)return!1;const n=bo(e,i),s=bo(t,i);return{top:s.end,right:n.end,bottom:s.start,left:n.start}}function fl(e){let t,i,n,s;return N(e)?(t=e.top,i=e.right,n=e.bottom,s=e.left):t=i=n=s=e,{top:t,right:i,bottom:n,left:s,disabled:e===!1}}function yo(e,t){const i=[],n=e._getSortedDatasetMetas(t);let s,o;for(s=0,o=n.length;s<o;++s)i.push(n[s].index);return i}function xo(e,t,i,n={}){const s=e.keys,o=n.mode==="single";let r,a,c,l;if(t!==null){for(r=0,a=s.length;r<a;++r){if(c=+s[r],c===i){if(n.all)continue;break}l=e.values[c],lt(l)&&(o||t===0||_i(t)===_i(l))&&(t+=l)}return t}}function gl(e,t){const{iScale:i,vScale:n}=t,s=i.axis==="x"?"x":"y",o=n.axis==="x"?"x":"y",r=Object.keys(e),a=new Array(r.length);let c,l,h;for(c=0,l=r.length;c<l;++c)h=r[c],a[c]={[s]:h,[o]:e[h]};return a}function _o(e,t){const i=e&&e.options.stacked;return i||i===void 0&&t.stack!==void 0}function pl(e,t,i){return`${e.id}.${t.id}.${i.stack||i.type}`}function ml(e){const{min:t,max:i,minDefined:n,maxDefined:s}=e.getUserBounds();return{min:n?t:Number.NEGATIVE_INFINITY,max:s?i:Number.POSITIVE_INFINITY}}function bl(e,t,i){const n=e[t]||(e[t]={});return n[i]||(n[i]={})}function vo(e,t,i,n){for(const s of t.getMatchingVisibleMetas(n).reverse()){const o=e[s.index];if(i&&o>0||!i&&o<0)return s.index}return null}function wo(e,t){const{chart:i,_cachedMeta:n}=e,s=i._stacks||(i._stacks={}),{iScale:o,vScale:r,index:a}=n,c=o.axis,l=r.axis,h=pl(o,r,n),u=t.length;let d;for(let f=0;f<u;++f){const m=t[f],{[c]:b,[l]:p}=m,y=m._stacks||(m._stacks={});d=y[l]=bl(s,h,b),d[a]=p,d._top=vo(d,r,!0,n.type),d._bottom=vo(d,r,!1,n.type);const x=d._visualValues||(d._visualValues={});x[a]=p}}function zn(e,t){const i=e.scales;return Object.keys(i).filter(n=>i[n].axis===t).shift()}function yl(e,t){return ae(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function xl(e,t,i){return ae(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:i,index:t,mode:"default",type:"data"})}function Ge(e,t){const i=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){t=t||e._parsed;for(const s of t){const o=s._stacks;if(!o||o[n]===void 0||o[n][i]===void 0)return;delete o[n][i],o[n]._visualValues!==void 0&&o[n]._visualValues[i]!==void 0&&delete o[n]._visualValues[i]}}}const Nn=e=>e==="reset"||e==="none",ko=(e,t)=>t?e:Object.assign({},e),_l=(e,t,i)=>e&&!t.hidden&&t._stacked&&{keys:yo(i,!0),values:null};class Ze{constructor(t,i){this.chart=t,this._ctx=t.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=_o(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Ge(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,i=this._cachedMeta,n=this.getDataset(),s=(u,d,f,m)=>u==="x"?d:u==="r"?m:f,o=i.xAxisID=B(n.xAxisID,zn(t,"x")),r=i.yAxisID=B(n.yAxisID,zn(t,"y")),a=i.rAxisID=B(n.rAxisID,zn(t,"r")),c=i.indexAxis,l=i.iAxisID=s(c,o,r,a),h=i.vAxisID=s(c,r,o,a);i.xScale=this.getScaleForId(o),i.yScale=this.getScaleForId(r),i.rScale=this.getScaleForId(a),i.iScale=this.getScaleForId(l),i.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const i=this._cachedMeta;return t===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ys(this._data,this),t._stacked&&Ge(t)}_dataCheck(){const t=this.getDataset(),i=t.data||(t.data=[]),n=this._data;if(N(i)){const s=this._cachedMeta;this._data=gl(i,s)}else if(n!==i){if(n){Ys(n,this);const s=this._cachedMeta;Ge(s),s._parsed=[]}i&&Object.isExtensible(i)&&_c(i,this),this._syncList=[],this._data=i}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const i=this._cachedMeta,n=this.getDataset();let s=!1;this._dataCheck();const o=i._stacked;i._stacked=_o(i.vScale,i),i.stack!==n.stack&&(s=!0,Ge(i),i.stack=n.stack),this._resyncElements(t),(s||o!==i._stacked)&&wo(this,i._parsed)}configure(){const t=this.chart.config,i=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),i,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,i){const{_cachedMeta:n,_data:s}=this,{iScale:o,_stacked:r}=n,a=o.axis;let c=t===0&&i===s.length?!0:n._sorted,l=t>0&&n._parsed[t-1],h,u,d;if(this._parsing===!1)n._parsed=s,n._sorted=!0,d=s;else{nt(s[t])?d=this.parseArrayData(n,s,t,i):N(s[t])?d=this.parseObjectData(n,s,t,i):d=this.parsePrimitiveData(n,s,t,i);const f=()=>u[a]===null||l&&u[a]<l[a];for(h=0;h<i;++h)n._parsed[h+t]=u=d[h],c&&(f()&&(c=!1),l=u);n._sorted=c}r&&wo(this,d)}parsePrimitiveData(t,i,n,s){const{iScale:o,vScale:r}=t,a=o.axis,c=r.axis,l=o.getLabels(),h=o===r,u=new Array(s);let d,f,m;for(d=0,f=s;d<f;++d)m=d+n,u[d]={[a]:h||o.parse(l[m],m),[c]:r.parse(i[m],m)};return u}parseArrayData(t,i,n,s){const{xScale:o,yScale:r}=t,a=new Array(s);let c,l,h,u;for(c=0,l=s;c<l;++c)h=c+n,u=i[h],a[c]={x:o.parse(u[0],h),y:r.parse(u[1],h)};return a}parseObjectData(t,i,n,s){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:c="y"}=this._parsing,l=new Array(s);let h,u,d,f;for(h=0,u=s;h<u;++h)d=h+n,f=i[d],l[h]={x:o.parse(Ue(f,a),d),y:r.parse(Ue(f,c),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,i,n){const s=this.chart,o=this._cachedMeta,r=i[t.axis],a={keys:yo(s,!0),values:i._stacks[t.axis]._visualValues};return xo(a,r,o.index,{mode:n})}updateRangeFromParsed(t,i,n,s){const o=n[i.axis];let r=o===null?NaN:o;const a=s&&n._stacks[i.axis];s&&a&&(s.values=a,r=xo(s,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,i){const n=this._cachedMeta,s=n._parsed,o=n._sorted&&t===n.iScale,r=s.length,a=this._getOtherScale(t),c=_l(i,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:u}=ml(a);let d,f;function m(){f=s[d];const b=f[a.axis];return!lt(f[t.axis])||h>b||u<b}for(d=0;d<r&&!(!m()&&(this.updateRangeFromParsed(l,t,f,c),o));++d);if(o){for(d=r-1;d>=0;--d)if(!m()){this.updateRangeFromParsed(l,t,f,c);break}}return l}getAllParsedValues(t){const i=this._cachedMeta._parsed,n=[];let s,o,r;for(s=0,o=i.length;s<o;++s)r=i[s][t.axis],lt(r)&&n.push(r);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const i=this._cachedMeta,n=i.iScale,s=i.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:s?""+s.getLabelForValue(o[s.axis]):""}}_update(t){const i=this._cachedMeta;this.update(t||"default"),i._clip=fl(B(this.options.clip,dl(i.xScale,i.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,i=this.chart,n=this._cachedMeta,s=n.data||[],o=i.chartArea,r=[],a=this._drawStart||0,c=this._drawCount||s.length-a,l=this.options.drawActiveElementsOnTop;let h;for(n.dataset&&n.dataset.draw(t,o,a,c),h=a;h<a+c;++h){const u=s[h];u.hidden||(u.active&&l?r.push(u):u.draw(t,o))}for(h=0;h<r.length;++h)r[h].draw(t,o)}getStyle(t,i){const n=i?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,i,n){const s=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const r=this._cachedMeta.data[t];o=r.$context||(r.$context=xl(this.getContext(),t,r)),o.parsed=this.getParsed(t),o.raw=s.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=yl(this.chart.getContext(),this.index)),o.dataset=s,o.index=o.datasetIndex=this.index;return o.active=!!i,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,i){return this._resolveElementOptions(this.dataElementType.id,i,t)}_resolveElementOptions(t,i="default",n){const s=i==="active",o=this._cachedDataOpts,r=t+"-"+i,a=o[r],c=this.enableOptionSharing&&yi(n);if(a)return ko(a,c);const l=this.chart.config,h=l.datasetElementScopeKeys(this._type,t),u=s?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),h),f=Object.keys(et.elements[t]),m=()=>this.getContext(n,s,i),b=l.resolveNamedOptions(d,f,m,u);return b.$shared&&(b.$shared=c,o[r]=Object.freeze(ko(b,c))),b}_resolveAnimations(t,i,n){const s=this.chart,o=this._cachedDataOpts,r=`animation-${i}`,a=o[r];if(a)return a;let c;if(s.options.animation!==!1){const h=this.chart.config,u=h.datasetAnimationScopeKeys(this._type,i),d=h.getOptionScopes(this.getDataset(),u);c=h.createResolver(d,this.getContext(t,n,i))}const l=new mo(s,c&&c.animations);return c&&c._cacheable&&(o[r]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,i){return!i||Nn(t)||this.chart._animationsDisabled}_getSharedOptions(t,i){const n=this.resolveDataElementOptions(t,i),s=this._sharedOptions,o=this.getSharedOptions(n),r=this.includeOptions(i,o)||o!==s;return this.updateSharedOptions(o,i,n),{sharedOptions:o,includeOptions:r}}updateElement(t,i,n,s){Nn(s)?Object.assign(t,n):this._resolveAnimations(i,s).update(t,n)}updateSharedOptions(t,i,n){t&&!Nn(i)&&this._resolveAnimations(void 0,i).update(t,n)}_setStyle(t,i,n,s){t.active=s;const o=this.getStyle(i,s);this._resolveAnimations(i,n,s).update(t,{options:!s&&this.getSharedOptions(o)||o})}removeHoverStyle(t,i,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,i,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const i=this._data,n=this._cachedMeta.data;for(const[a,c,l]of this._syncList)this[a](c,l);this._syncList=[];const s=n.length,o=i.length,r=Math.min(o,s);r&&this.parse(0,r),o>s?this._insertElements(s,o-s,t):o<s&&this._removeElements(o,s-o)}_insertElements(t,i,n=!0){const s=this._cachedMeta,o=s.data,r=t+i;let a;const c=l=>{for(l.length+=i,a=l.length-1;a>=r;a--)l[a]=l[a-i]};for(c(o),a=t;a<r;++a)o[a]=new this.dataElementType;this._parsing&&c(s._parsed),this.parse(t,i),n&&this.updateElements(o,t,i,"reset")}updateElements(t,i,n,s){}_removeElements(t,i){const n=this._cachedMeta;if(this._parsing){const s=n._parsed.splice(t,i);n._stacked&&Ge(n,s)}n.data.splice(t,i)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[i,n,s]=t;this[i](n,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,i){i&&this._sync(["_removeElements",t,i]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}T(Ze,"defaults",{}),T(Ze,"datasetElementType",null),T(Ze,"dataElementType",null);function vl(e,t,i){let n=1,s=1,o=0,r=0;if(t<tt){const a=e,c=a+t,l=Math.cos(a),h=Math.sin(a),u=Math.cos(c),d=Math.sin(c),f=(v,k,_)=>ki(v,a,c,!0)?1:Math.max(k,k*i,_,_*i),m=(v,k,_)=>ki(v,a,c,!0)?-1:Math.min(k,k*i,_,_*i),b=f(0,l,u),p=f(st,h,d),y=m(rt,l,u),x=m(rt+st,h,d);n=(b-y)/2,s=(p-x)/2,o=-(b+y)/2,r=-(p+x)/2}return{ratioX:n,ratioY:s,offsetX:o,offsetY:r}}class Je extends Ze{constructor(t,i){super(t,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,i){const n=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=n;else{let o=c=>+n[c];if(N(n[t])){const{key:c="value"}=this._parsing;o=l=>+Ue(n[l],c)}let r,a;for(r=t,a=t+i;r<a;++r)s._parsed[r]=o(r)}}_getRotation(){return jt(this.options.rotation-90)}_getCircumference(){return jt(this.options.circumference)}_getRotationExtents(){let t=tt,i=-tt;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const s=this.chart.getDatasetMeta(n).controller,o=s._getRotation(),r=s._getCircumference();t=Math.min(t,o),i=Math.max(i,o+r)}return{rotation:t,circumference:i-t}}update(t){const i=this.chart,{chartArea:n}=i,s=this._cachedMeta,o=s.data,r=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-r)/2,0),c=Math.min(ac(this.options.cutout,a),1),l=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:d,ratioY:f,offsetX:m,offsetY:b}=vl(u,h,c),p=(n.width-r)/d,y=(n.height-r)/f,x=Math.max(Math.min(p,y)/2,0),v=Is(this.options.radius,x),k=Math.max(v*c,0),_=(v-k)/this._getVisibleDatasetWeightTotal();this.offsetX=m*v,this.offsetY=b*v,s.total=this.calculateTotal(),this.outerRadius=v-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*l,0),this.updateElements(o,0,o.length,t)}_circumference(t,i){const n=this.options,s=this._cachedMeta,o=this._getCircumference();return i&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||s._parsed[t]===null||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*o/tt)}updateElements(t,i,n,s){const o=s==="reset",r=this.chart,a=r.chartArea,l=r.options.animation,h=(a.left+a.right)/2,u=(a.top+a.bottom)/2,d=o&&l.animateScale,f=d?0:this.innerRadius,m=d?0:this.outerRadius,{sharedOptions:b,includeOptions:p}=this._getSharedOptions(i,s);let y=this._getRotation(),x;for(x=0;x<i;++x)y+=this._circumference(x,o);for(x=i;x<i+n;++x){const v=this._circumference(x,o),k=t[x],_={x:h+this.offsetX,y:u+this.offsetY,startAngle:y,endAngle:y+v,circumference:v,outerRadius:m,innerRadius:f};p&&(_.options=b||this.resolveDataElementOptions(x,k.active?"active":s)),y+=v,this.updateElement(k,x,_,s)}}calculateTotal(){const t=this._cachedMeta,i=t.data;let n=0,s;for(s=0;s<i.length;s++){const o=t._parsed[s];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(s)&&!i[s].hidden&&(n+=Math.abs(o))}return n}calculateCircumference(t){const i=this._cachedMeta.total;return i>0&&!isNaN(t)?tt*(Math.abs(t)/i):0}getLabelAndValue(t){const i=this._cachedMeta,n=this.chart,s=n.data.labels||[],o=Mi(i._parsed[t],n.options.locale);return{label:s[t]||"",value:o}}getMaxBorderWidth(t){let i=0;const n=this.chart;let s,o,r,a,c;if(!t){for(s=0,o=n.data.datasets.length;s<o;++s)if(n.isDatasetVisible(s)){r=n.getDatasetMeta(s),t=r.data,a=r.controller;break}}if(!t)return 0;for(s=0,o=t.length;s<o;++s)c=a.resolveDataElementOptions(s),c.borderAlign!=="inner"&&(i=Math.max(i,c.borderWidth||0,c.hoverBorderWidth||0));return i}getMaxOffset(t){let i=0;for(let n=0,s=t.length;n<s;++n){const o=this.resolveDataElementOptions(n);i=Math.max(i,o.offset||0,o.hoverOffset||0)}return i}_getRingWeightOffset(t){let i=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(i+=this._getRingWeight(n));return i}_getRingWeight(t){return Math.max(B(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}T(Je,"id","doughnut"),T(Je,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),T(Je,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),T(Je,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const i=t.data;if(i.labels.length&&i.datasets.length){const{labels:{pointStyle:n,color:s}}=t.legend.options;return i.labels.map((o,r)=>{const c=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:s,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,i,n){n.chart.toggleDataVisibility(i.index),n.chart.update()}}}});function he(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Wn{constructor(t){T(this,"options");this.options=t||{}}static override(t){Object.assign(Wn.prototype,t)}init(){}formats(){return he()}parse(){return he()}format(){return he()}add(){return he()}diff(){return he()}startOf(){return he()}endOf(){return he()}}var wl={_date:Wn};function kl(e,t,i,n){const{controller:s,data:o,_sorted:r}=e,a=s._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const c=a._reversePixels?yc:Cn;if(n){if(s._sharedOptions){const l=o[0],h=typeof l.getRange=="function"&&l.getRange(t);if(h){const u=c(o,t,i-h),d=c(o,t,i+h);return{lo:u.lo,hi:d.hi}}}}else return c(o,t,i)}return{lo:0,hi:o.length-1}}function Qe(e,t,i,n,s){const o=e.getSortedVisibleDatasetMetas(),r=i[t];for(let a=0,c=o.length;a<c;++a){const{index:l,data:h}=o[a],{lo:u,hi:d}=kl(o[a],t,r,s);for(let f=u;f<=d;++f){const m=h[f];m.skip||n(m,l,f)}}}function Sl(e){const t=e.indexOf("x")!==-1,i=e.indexOf("y")!==-1;return function(n,s){const o=t?Math.abs(n.x-s.x):0,r=i?Math.abs(n.y-s.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function Bn(e,t,i,n,s){const o=[];return!s&&!e.isPointInArea(t)||Qe(e,i,t,function(a,c,l){!s&&!_e(a,e.chartArea,0)||a.inRange(t.x,t.y,n)&&o.push({element:a,datasetIndex:c,index:l})},!0),o}function Ml(e,t,i,n){let s=[];function o(r,a,c){const{startAngle:l,endAngle:h}=r.getProps(["startAngle","endAngle"],n),{angle:u}=$s(r,{x:t.x,y:t.y});ki(u,l,h)&&s.push({element:r,datasetIndex:a,index:c})}return Qe(e,i,t,o),s}function Cl(e,t,i,n,s,o){let r=[];const a=Sl(i);let c=Number.POSITIVE_INFINITY;function l(h,u,d){const f=h.inRange(t.x,t.y,s);if(n&&!f)return;const m=h.getCenterPoint(s);if(!(!!o||e.isPointInArea(m))&&!f)return;const p=a(t,m);p<c?(r=[{element:h,datasetIndex:u,index:d}],c=p):p===c&&r.push({element:h,datasetIndex:u,index:d})}return Qe(e,i,t,l),r}function Hn(e,t,i,n,s,o){return!o&&!e.isPointInArea(t)?[]:i==="r"&&!n?Ml(e,t,i,s):Cl(e,t,i,n,s,o)}function So(e,t,i,n,s){const o=[],r=i==="x"?"inXRange":"inYRange";let a=!1;return Qe(e,i,t,(c,l,h)=>{c[r](t[i],s)&&(o.push({element:c,datasetIndex:l,index:h}),a=a||c.inRange(t.x,t.y,s))}),n&&!a?[]:o}var Ol={evaluateInteractionItems:Qe,modes:{index(e,t,i,n){const s=le(t,e),o=i.axis||"x",r=i.includeInvisible||!1,a=i.intersect?Bn(e,s,o,n,r):Hn(e,s,o,!1,n,r),c=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(l=>{const h=a[0].index,u=l.data[h];u&&!u.skip&&c.push({element:u,datasetIndex:l.index,index:h})}),c):[]},dataset(e,t,i,n){const s=le(t,e),o=i.axis||"xy",r=i.includeInvisible||!1;let a=i.intersect?Bn(e,s,o,n,r):Hn(e,s,o,!1,n,r);if(a.length>0){const c=a[0].datasetIndex,l=e.getDatasetMeta(c).data;a=[];for(let h=0;h<l.length;++h)a.push({element:l[h],datasetIndex:c,index:h})}return a},point(e,t,i,n){const s=le(t,e),o=i.axis||"xy",r=i.includeInvisible||!1;return Bn(e,s,o,n,r)},nearest(e,t,i,n){const s=le(t,e),o=i.axis||"xy",r=i.includeInvisible||!1;return Hn(e,s,o,i.intersect,n,r)},x(e,t,i,n){const s=le(t,e);return So(e,s,"x",i.intersect,n)},y(e,t,i,n){const s=le(t,e);return So(e,s,"y",i.intersect,n)}}};const Mo=["left","top","right","bottom"];function ti(e,t){return e.filter(i=>i.pos===t)}function Co(e,t){return e.filter(i=>Mo.indexOf(i.pos)===-1&&i.box.axis===t)}function ei(e,t){return e.sort((i,n)=>{const s=t?n:i,o=t?i:n;return s.weight===o.weight?s.index-o.index:s.weight-o.weight})}function Pl(e){const t=[];let i,n,s,o,r,a;for(i=0,n=(e||[]).length;i<n;++i)s=e[i],{position:o,options:{stack:r,stackWeight:a=1}}=s,t.push({index:i,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return t}function Al(e){const t={};for(const i of e){const{stack:n,pos:s,stackWeight:o}=i;if(!n||!Mo.includes(s))continue;const r=t[n]||(t[n]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return t}function El(e,t){const i=Al(e),{vBoxMaxWidth:n,hBoxMaxHeight:s}=t;let o,r,a;for(o=0,r=e.length;o<r;++o){a=e[o];const{fullSize:c}=a.box,l=i[a.stack],h=l&&a.stackWeight/l.weight;a.horizontal?(a.width=h?h*n:c&&t.availableWidth,a.height=s):(a.width=n,a.height=h?h*s:c&&t.availableHeight)}return i}function Tl(e){const t=Pl(e),i=ei(t.filter(l=>l.box.fullSize),!0),n=ei(ti(t,"left"),!0),s=ei(ti(t,"right")),o=ei(ti(t,"top"),!0),r=ei(ti(t,"bottom")),a=Co(t,"x"),c=Co(t,"y");return{fullSize:i,leftAndTop:n.concat(o),rightAndBottom:s.concat(c).concat(r).concat(a),chartArea:ti(t,"chartArea"),vertical:n.concat(s).concat(c),horizontal:o.concat(r).concat(a)}}function Oo(e,t,i,n){return Math.max(e[i],t[i])+Math.max(e[n],t[n])}function Po(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Rl(e,t,i,n){const{pos:s,box:o}=i,r=e.maxPadding;if(!N(s)){i.size&&(e[s]-=i.size);const u=n[i.stack]||{size:0,count:1};u.size=Math.max(u.size,i.horizontal?o.height:o.width),i.size=u.size/u.count,e[s]+=i.size}o.getPadding&&Po(r,o.getPadding());const a=Math.max(0,t.outerWidth-Oo(r,e,"left","right")),c=Math.max(0,t.outerHeight-Oo(r,e,"top","bottom")),l=a!==e.w,h=c!==e.h;return e.w=a,e.h=c,i.horizontal?{same:l,other:h}:{same:h,other:l}}function Dl(e){const t=e.maxPadding;function i(n){const s=Math.max(t[n]-e[n],0);return e[n]+=s,s}e.y+=i("top"),e.x+=i("left"),i("right"),i("bottom")}function Ll(e,t){const i=t.maxPadding;function n(s){const o={left:0,top:0,right:0,bottom:0};return s.forEach(r=>{o[r]=Math.max(t[r],i[r])}),o}return n(e?["left","right"]:["top","bottom"])}function ii(e,t,i,n){const s=[];let o,r,a,c,l,h;for(o=0,r=e.length,l=0;o<r;++o){a=e[o],c=a.box,c.update(a.width||t.w,a.height||t.h,Ll(a.horizontal,t));const{same:u,other:d}=Rl(t,i,a,n);l|=u&&s.length,h=h||d,c.fullSize||s.push(a)}return l&&ii(s,t,i,n)||h}function Di(e,t,i,n,s){e.top=i,e.left=t,e.right=t+n,e.bottom=i+s,e.width=n,e.height=s}function Ao(e,t,i,n){const s=i.padding;let{x:o,y:r}=t;for(const a of e){const c=a.box,l=n[a.stack]||{count:1,placed:0,weight:1},h=a.stackWeight/l.weight||1;if(a.horizontal){const u=t.w*h,d=l.size||c.height;yi(l.start)&&(r=l.start),c.fullSize?Di(c,s.left,r,i.outerWidth-s.right-s.left,d):Di(c,t.left+l.placed,r,u,d),l.start=r,l.placed+=u,r=c.bottom}else{const u=t.h*h,d=l.size||c.width;yi(l.start)&&(o=l.start),c.fullSize?Di(c,o,s.top,d,i.outerHeight-s.bottom-s.top):Di(c,o,t.top+l.placed,d,u),l.start=o,l.placed+=u,o=c.right}}t.x=o,t.y=r}var Qt={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(i){t.draw(i)}}]},e.boxes.push(t)},removeBox(e,t){const i=e.boxes?e.boxes.indexOf(t):-1;i!==-1&&e.boxes.splice(i,1)},configure(e,t,i){t.fullSize=i.fullSize,t.position=i.position,t.weight=i.weight},update(e,t,i,n){if(!e)return;const s=pt(e.options.layout.padding),o=Math.max(t-s.width,0),r=Math.max(i-s.height,0),a=Tl(e.boxes),c=a.vertical,l=a.horizontal;V(e.boxes,b=>{typeof b.beforeLayout=="function"&&b.beforeLayout()});const h=c.reduce((b,p)=>p.box.options&&p.box.options.display===!1?b:b+1,0)||1,u=Object.freeze({outerWidth:t,outerHeight:i,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),d=Object.assign({},s);Po(d,pt(n));const f=Object.assign({maxPadding:d,w:o,h:r,x:s.left,y:s.top},s),m=El(c.concat(l),u);ii(a.fullSize,f,u,m),ii(c,f,u,m),ii(l,f,u,m)&&ii(c,f,u,m),Dl(f),Ao(a.leftAndTop,f,u,m),f.x+=f.w,f.y+=f.h,Ao(a.rightAndBottom,f,u,m),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},V(a.chartArea,b=>{const p=b.box;Object.assign(p,e.chartArea),p.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class Eo{acquireContext(t,i){}releaseContext(t){return!1}addEventListener(t,i,n){}removeEventListener(t,i,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,i,n,s){return i=Math.max(0,i||t.width),n=n||t.height,{width:i,height:Math.max(0,s?Math.floor(i/s):n)}}isAttached(t){return!0}updateConfig(t){}}class Il extends Eo{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Li="$chartjs",Fl={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},To=e=>e===null||e==="";function jl(e,t){const i=e.style,n=e.getAttribute("height"),s=e.getAttribute("width");if(e[Li]={initial:{height:n,width:s,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",To(s)){const o=uo(e,"width");o!==void 0&&(e.width=o)}if(To(n))if(e.style.height==="")e.height=e.width/(t||2);else{const o=uo(e,"height");o!==void 0&&(e.height=o)}return e}const Ro=sl?{passive:!0}:!1;function zl(e,t,i){e&&e.addEventListener(t,i,Ro)}function Nl(e,t,i){e&&e.canvas&&e.canvas.removeEventListener(t,i,Ro)}function Wl(e,t){const i=Fl[e.type]||e.type,{x:n,y:s}=le(e,t);return{type:i,chart:t,native:e,x:n!==void 0?n:null,y:s!==void 0?s:null}}function Ii(e,t){for(const i of e)if(i===t||i.contains(t))return!0}function Bl(e,t,i){const n=e.canvas,s=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Ii(a.addedNodes,n),r=r&&!Ii(a.removedNodes,n);r&&i()});return s.observe(document,{childList:!0,subtree:!0}),s}function Hl(e,t,i){const n=e.canvas,s=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Ii(a.removedNodes,n),r=r&&!Ii(a.addedNodes,n);r&&i()});return s.observe(document,{childList:!0,subtree:!0}),s}const ni=new Map;let Do=0;function Lo(){const e=window.devicePixelRatio;e!==Do&&(Do=e,ni.forEach((t,i)=>{i.currentDevicePixelRatio!==e&&t()}))}function $l(e,t){ni.size||window.addEventListener("resize",Lo),ni.set(e,t)}function Vl(e){ni.delete(e),ni.size||window.removeEventListener("resize",Lo)}function Yl(e,t,i){const n=e.canvas,s=n&&jn(n);if(!s)return;const o=Xs((a,c)=>{const l=s.clientWidth;i(a,c),l<s.clientWidth&&i()},window),r=new ResizeObserver(a=>{const c=a[0],l=c.contentRect.width,h=c.contentRect.height;l===0&&h===0||o(l,h)});return r.observe(s),$l(e,o),r}function $n(e,t,i){i&&i.disconnect(),t==="resize"&&Vl(e)}function Ul(e,t,i){const n=e.canvas,s=Xs(o=>{e.ctx!==null&&i(Wl(o,e))},e);return zl(n,t,s),s}class Xl extends Eo{acquireContext(t,i){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(jl(t,i),n):null}releaseContext(t){const i=t.canvas;if(!i[Li])return!1;const n=i[Li].initial;["height","width"].forEach(o=>{const r=n[o];J(r)?i.removeAttribute(o):i.setAttribute(o,r)});const s=n.style||{};return Object.keys(s).forEach(o=>{i.style[o]=s[o]}),i.width=i.width,delete i[Li],!0}addEventListener(t,i,n){this.removeEventListener(t,i);const s=t.$proxies||(t.$proxies={}),r={attach:Bl,detach:Hl,resize:Yl}[i]||Ul;s[i]=r(t,i,n)}removeEventListener(t,i){const n=t.$proxies||(t.$proxies={}),s=n[i];if(!s)return;({attach:$n,detach:$n,resize:$n}[i]||Nl)(t,i,s),n[i]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,i,n,s){return nl(t,i,n,s)}isAttached(t){const i=t&&jn(t);return!!(i&&i.isConnected)}}function Kl(e){return!Fn()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Il:Xl}class ue{constructor(){T(this,"x");T(this,"y");T(this,"active",!1);T(this,"options");T(this,"$animations")}tooltipPosition(t){const{x:i,y:n}=this.getProps(["x","y"],t);return{x:i,y:n}}hasValue(){return wi(this.x)&&wi(this.y)}getProps(t,i){const n=this.$animations;if(!i||!n)return this;const s={};return t.forEach(o=>{s[o]=n[o]&&n[o].active()?n[o]._to:this[o]}),s}}T(ue,"defaults",{}),T(ue,"defaultRoutes");function ql(e,t){const i=e.options.ticks,n=Gl(e),s=Math.min(i.maxTicksLimit||n,n),o=i.major.enabled?Jl(t):[],r=o.length,a=o[0],c=o[r-1],l=[];if(r>s)return Ql(t,l,o,r/s),l;const h=Zl(o,t,s);if(r>0){let u,d;const f=r>1?Math.round((c-a)/(r-1)):null;for(Fi(t,l,h,J(f)?0:a-f,a),u=0,d=r-1;u<d;u++)Fi(t,l,h,o[u],o[u+1]);return Fi(t,l,h,c,J(f)?t.length:c+f),l}return Fi(t,l,h),l}function Gl(e){const t=e.options.offset,i=e._tickSize(),n=e._length/i+(t?0:1),s=e._maxLength/i;return Math.floor(Math.min(n,s))}function Zl(e,t,i){const n=th(e),s=t.length/i;if(!n)return Math.max(s,1);const o=gc(n);for(let r=0,a=o.length-1;r<a;r++){const c=o[r];if(c>s)return c}return Math.max(s,1)}function Jl(e){const t=[];let i,n;for(i=0,n=e.length;i<n;i++)e[i].major&&t.push(i);return t}function Ql(e,t,i,n){let s=0,o=i[0],r;for(n=Math.ceil(n),r=0;r<e.length;r++)r===o&&(t.push(e[r]),s++,o=i[s*n])}function Fi(e,t,i,n,s){const o=B(n,0),r=Math.min(B(s,e.length),e.length);let a=0,c,l,h;for(i=Math.ceil(i),s&&(c=s-n,i=c/Math.floor(c/i)),h=o;h<0;)a++,h=Math.round(o+a*i);for(l=Math.max(o,0);l<r;l++)l===h&&(t.push(e[l]),a++,h=Math.round(o+a*i))}function th(e){const t=e.length;let i,n;if(t<2)return!1;for(n=e[0],i=1;i<t;++i)if(e[i]-e[i-1]!==n)return!1;return n}const eh=e=>e==="left"?"right":e==="right"?"left":e,Io=(e,t,i)=>t==="top"||t==="left"?e[t]+i:e[t]-i,Fo=(e,t)=>Math.min(t||e,e);function jo(e,t){const i=[],n=e.length/t,s=e.length;let o=0;for(;o<s;o+=n)i.push(e[Math.floor(o)]);return i}function ih(e,t,i){const n=e.ticks.length,s=Math.min(t,n-1),o=e._startPixel,r=e._endPixel,a=1e-6;let c=e.getPixelForTick(s),l;if(!(i&&(n===1?l=Math.max(c-o,r-c):t===0?l=(e.getPixelForTick(1)-c)/2:l=(c-e.getPixelForTick(s-1))/2,c+=s<t?l:-l,c<o-a||c>r+a)))return c}function nh(e,t){V(e,i=>{const n=i.gc,s=n.length/2;let o;if(s>t){for(o=0;o<s;++o)delete i.data[n[o]];n.splice(0,s)}})}function si(e){return e.drawTicks?e.tickLength:0}function zo(e,t){if(!e.display)return 0;const i=dt(e.font,t),n=pt(e.padding);return(nt(e.text)?e.text.length:1)*i.lineHeight+n.height}function sh(e,t){return ae(e,{scale:t,type:"scale"})}function oh(e,t,i){return ae(e,{tick:i,index:t,type:"tick"})}function rh(e,t,i){let n=Ks(e);return(i&&t!=="right"||!i&&t==="right")&&(n=eh(n)),n}function ah(e,t,i,n){const{top:s,left:o,bottom:r,right:a,chart:c}=e,{chartArea:l,scales:h}=c;let u=0,d,f,m;const b=r-s,p=a-o;if(e.isHorizontal()){if(f=kt(n,o,a),N(i)){const y=Object.keys(i)[0],x=i[y];m=h[y].getPixelForValue(x)+b-t}else i==="center"?m=(l.bottom+l.top)/2+b-t:m=Io(e,i,t);d=a-o}else{if(N(i)){const y=Object.keys(i)[0],x=i[y];f=h[y].getPixelForValue(x)-p+t}else i==="center"?f=(l.left+l.right)/2-p+t:f=Io(e,i,t);m=kt(n,r,s),u=i==="left"?-st:st}return{titleX:f,titleY:m,maxWidth:d,rotation:u}}class Me extends ue{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,i){return t}getUserBounds(){let{_userMin:t,_userMax:i,_suggestedMin:n,_suggestedMax:s}=this;return t=wt(t,Number.POSITIVE_INFINITY),i=wt(i,Number.NEGATIVE_INFINITY),n=wt(n,Number.POSITIVE_INFINITY),s=wt(s,Number.NEGATIVE_INFINITY),{min:wt(t,n),max:wt(i,s),minDefined:lt(t),maxDefined:lt(i)}}getMinMax(t){let{min:i,max:n,minDefined:s,maxDefined:o}=this.getUserBounds(),r;if(s&&o)return{min:i,max:n};const a=this.getMatchingVisibleMetas();for(let c=0,l=a.length;c<l;++c)r=a[c].controller.getMinMax(this,t),s||(i=Math.min(i,r.min)),o||(n=Math.max(n,r.max));return i=o&&i>n?n:i,n=s&&i>n?i:n,{min:wt(i,wt(n,i)),max:wt(n,wt(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){q(this.options.beforeUpdate,[this])}update(t,i,n){const{beginAtZero:s,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=i,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Hc(this,o,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=a<this.ticks.length;this._convertTicksToLabels(c?jo(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||r.source==="auto")&&(this.ticks=ql(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,i,n;this.isHorizontal()?(i=this.left,n=this.right):(i=this.top,n=this.bottom,t=!t),this._startPixel=i,this._endPixel=n,this._reversePixels=t,this._length=n-i,this._alignToPixels=this.options.alignToPixels}afterUpdate(){q(this.options.afterUpdate,[this])}beforeSetDimensions(){q(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){q(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),q(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){q(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const i=this.options.ticks;let n,s,o;for(n=0,s=t.length;n<s;n++)o=t[n],o.label=q(i.callback,[o.value,n,t],this)}afterTickToLabelConversion(){q(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){q(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,i=t.ticks,n=Fo(this.ticks.length,t.ticks.maxTicksLimit),s=i.minRotation||0,o=i.maxRotation;let r=s,a,c,l;if(!this._isVisible()||!i.display||s>=o||n<=1||!this.isHorizontal()){this.labelRotation=s;return}const h=this._getLabelSizes(),u=h.widest.width,d=h.highest.height,f=Ot(this.chart.width-u,0,this.maxWidth);a=t.offset?this.maxWidth/n:f/(n-1),u+6>a&&(a=f/(n-(t.offset?.5:1)),c=this.maxHeight-si(t.grid)-i.padding-zo(t.title,this.chart.options.font),l=Math.sqrt(u*u+d*d),r=Sn(Math.min(Math.asin(Ot((h.highest.height+6)/a,-1,1)),Math.asin(Ot(c/l,-1,1))-Math.asin(Ot(d/l,-1,1)))),r=Math.max(s,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){q(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){q(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:i,options:{ticks:n,title:s,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const c=zo(s,i.options.font);if(a?(t.width=this.maxWidth,t.height=si(o)+c):(t.height=this.maxHeight,t.width=si(o)+c),n.display&&this.ticks.length){const{first:l,last:h,widest:u,highest:d}=this._getLabelSizes(),f=n.padding*2,m=jt(this.labelRotation),b=Math.cos(m),p=Math.sin(m);if(a){const y=n.mirror?0:p*u.width+b*d.height;t.height=Math.min(this.maxHeight,t.height+y+f)}else{const y=n.mirror?0:b*u.width+p*d.height;t.width=Math.min(this.maxWidth,t.width+y+f)}this._calculatePadding(l,h,p,b)}}this._handleMargins(),a?(this.width=this._length=i.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=i.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,i,n,s){const{ticks:{align:o,padding:r},position:a}=this.options,c=this.labelRotation!==0,l=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,f=0;c?l?(d=s*t.width,f=n*i.height):(d=n*t.height,f=s*i.width):o==="start"?f=i.width:o==="end"?d=t.width:o!=="inner"&&(d=t.width/2,f=i.width/2),this.paddingLeft=Math.max((d-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((f-u+r)*this.width/(this.width-u),0)}else{let h=i.height/2,u=t.height/2;o==="start"?(h=0,u=t.height):o==="end"&&(h=i.height,u=0),this.paddingTop=h+r,this.paddingBottom=u+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){q(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:i}=this.options;return i==="top"||i==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let i,n;for(i=0,n=t.length;i<n;i++)J(t[i].label)&&(t.splice(i,1),n--,i--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const i=this.options.ticks.sampleSize;let n=this.ticks;i<n.length&&(n=jo(n,i)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,i,n){const{ctx:s,_longestTextCache:o}=this,r=[],a=[],c=Math.floor(i/Fo(i,n));let l=0,h=0,u,d,f,m,b,p,y,x,v,k,_;for(u=0;u<i;u+=c){if(m=t[u].label,b=this._resolveTickFontOptions(u),s.font=p=b.string,y=o[p]=o[p]||{data:{},gc:[]},x=b.lineHeight,v=k=0,!J(m)&&!nt(m))v=Oi(s,y.data,y.gc,v,m),k=x;else if(nt(m))for(d=0,f=m.length;d<f;++d)_=m[d],!J(_)&&!nt(_)&&(v=Oi(s,y.data,y.gc,v,_),k+=x);r.push(v),a.push(k),l=Math.max(v,l),h=Math.max(k,h)}nh(o,i);const M=r.indexOf(l),S=a.indexOf(h),O=A=>({width:r[A]||0,height:a[A]||0});return{first:O(0),last:O(i-1),widest:O(M),highest:O(S),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,i){return NaN}getValueForPixel(t){}getPixelForTick(t){const i=this.ticks;return t<0||t>i.length-1?null:this.getPixelForValue(i[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const i=this._startPixel+t*this._length;return bc(this._alignToPixels?re(this.chart,i,0):i)}getDecimalForPixel(t){const i=(t-this._startPixel)/this._length;return this._reversePixels?1-i:i}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:i}=this;return t<0&&i<0?i:t>0&&i>0?t:0}getContext(t){const i=this.ticks||[];if(t>=0&&t<i.length){const n=i[t];return n.$context||(n.$context=oh(this.getContext(),t,n))}return this.$context||(this.$context=sh(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,i=jt(this.labelRotation),n=Math.abs(Math.cos(i)),s=Math.abs(Math.sin(i)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,c=o?o.highest.height+r:0;return this.isHorizontal()?c*n>a*s?a/n:c/s:c*s<a*n?c/n:a/s}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const i=this.axis,n=this.chart,s=this.options,{grid:o,position:r,border:a}=s,c=o.offset,l=this.isHorizontal(),u=this.ticks.length+(c?1:0),d=si(o),f=[],m=a.setContext(this.getContext()),b=m.display?m.width:0,p=b/2,y=function(Y){return re(n,Y,b)};let x,v,k,_,M,S,O,A,L,R,I,W;if(r==="top")x=y(this.bottom),S=this.bottom-d,A=x-p,R=y(t.top)+p,W=t.bottom;else if(r==="bottom")x=y(this.top),R=t.top,W=y(t.bottom)-p,S=x+p,A=this.top+d;else if(r==="left")x=y(this.right),M=this.right-d,O=x-p,L=y(t.left)+p,I=t.right;else if(r==="right")x=y(this.left),L=t.left,I=y(t.right)-p,M=x+p,O=this.left+d;else if(i==="x"){if(r==="center")x=y((t.top+t.bottom)/2+.5);else if(N(r)){const Y=Object.keys(r)[0],X=r[Y];x=y(this.chart.scales[Y].getPixelForValue(X))}R=t.top,W=t.bottom,S=x+p,A=S+d}else if(i==="y"){if(r==="center")x=y((t.left+t.right)/2);else if(N(r)){const Y=Object.keys(r)[0],X=r[Y];x=y(this.chart.scales[Y].getPixelForValue(X))}M=x-p,O=M-d,L=t.left,I=t.right}const Q=B(s.ticks.maxTicksLimit,u),F=Math.max(1,Math.ceil(u/Q));for(v=0;v<u;v+=F){const Y=this.getContext(v),X=o.setContext(Y),ft=a.setContext(Y),U=X.lineWidth,mt=X.color,St=ft.dash||[],it=ft.dashOffset,At=X.tickWidth,Mt=X.tickColor,Et=X.tickBorderDash||[],gt=X.tickBorderDashOffset;k=ih(this,v,c),k!==void 0&&(_=re(n,k,U),l?M=O=L=I=_:S=A=R=W=_,f.push({tx1:M,ty1:S,tx2:O,ty2:A,x1:L,y1:R,x2:I,y2:W,width:U,color:mt,borderDash:St,borderDashOffset:it,tickWidth:At,tickColor:Mt,tickBorderDash:Et,tickBorderDashOffset:gt}))}return this._ticksLength=u,this._borderValue=x,f}_computeLabelItems(t){const i=this.axis,n=this.options,{position:s,ticks:o}=n,r=this.isHorizontal(),a=this.ticks,{align:c,crossAlign:l,padding:h,mirror:u}=o,d=si(n.grid),f=d+h,m=u?-h:f,b=-jt(this.labelRotation),p=[];let y,x,v,k,_,M,S,O,A,L,R,I,W="middle";if(s==="top")M=this.bottom-m,S=this._getXAxisLabelAlignment();else if(s==="bottom")M=this.top+m,S=this._getXAxisLabelAlignment();else if(s==="left"){const F=this._getYAxisLabelAlignment(d);S=F.textAlign,_=F.x}else if(s==="right"){const F=this._getYAxisLabelAlignment(d);S=F.textAlign,_=F.x}else if(i==="x"){if(s==="center")M=(t.top+t.bottom)/2+f;else if(N(s)){const F=Object.keys(s)[0],Y=s[F];M=this.chart.scales[F].getPixelForValue(Y)+f}S=this._getXAxisLabelAlignment()}else if(i==="y"){if(s==="center")_=(t.left+t.right)/2-f;else if(N(s)){const F=Object.keys(s)[0],Y=s[F];_=this.chart.scales[F].getPixelForValue(Y)}S=this._getYAxisLabelAlignment(d).textAlign}i==="y"&&(c==="start"?W="top":c==="end"&&(W="bottom"));const Q=this._getLabelSizes();for(y=0,x=a.length;y<x;++y){v=a[y],k=v.label;const F=o.setContext(this.getContext(y));O=this.getPixelForTick(y)+o.labelOffset,A=this._resolveTickFontOptions(y),L=A.lineHeight,R=nt(k)?k.length:1;const Y=R/2,X=F.color,ft=F.textStrokeColor,U=F.textStrokeWidth;let mt=S;r?(_=O,S==="inner"&&(y===x-1?mt=this.options.reverse?"left":"right":y===0?mt=this.options.reverse?"right":"left":mt="center"),s==="top"?l==="near"||b!==0?I=-R*L+L/2:l==="center"?I=-Q.highest.height/2-Y*L+L:I=-Q.highest.height+L/2:l==="near"||b!==0?I=L/2:l==="center"?I=Q.highest.height/2-Y*L:I=Q.highest.height-R*L,u&&(I*=-1),b!==0&&!F.showLabelBackdrop&&(_+=L/2*Math.sin(b))):(M=O,I=(1-R)*L/2);let St;if(F.showLabelBackdrop){const it=pt(F.backdropPadding),At=Q.heights[y],Mt=Q.widths[y];let Et=I-it.top,gt=0-it.left;switch(W){case"middle":Et-=At/2;break;case"bottom":Et-=At;break}switch(S){case"center":gt-=Mt/2;break;case"right":gt-=Mt;break;case"inner":y===x-1?gt-=Mt:y>0&&(gt-=Mt/2);break}St={left:gt,top:Et,width:Mt+it.width,height:At+it.height,color:F.backdropColor}}p.push({label:k,font:A,textOffset:I,options:{rotation:b,color:X,strokeColor:ft,strokeWidth:U,textAlign:mt,textBaseline:W,translation:[_,M],backdrop:St}})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:i}=this.options;if(-jt(this.labelRotation))return t==="top"?"left":"right";let s="center";return i.align==="start"?s="left":i.align==="end"?s="right":i.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(t){const{position:i,ticks:{crossAlign:n,mirror:s,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,c=r.widest.width;let l,h;return i==="left"?s?(h=this.right+o,n==="near"?l="left":n==="center"?(l="center",h+=c/2):(l="right",h+=c)):(h=this.right-a,n==="near"?l="right":n==="center"?(l="center",h-=c/2):(l="left",h=this.left)):i==="right"?s?(h=this.left+o,n==="near"?l="right":n==="center"?(l="center",h-=c/2):(l="left",h-=c)):(h=this.left+a,n==="near"?l="left":n==="center"?(l="center",h+=c/2):(l="right",h=this.right)):l="right",{textAlign:l,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,i=this.options.position;if(i==="left"||i==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(i==="top"||i==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:i},left:n,top:s,width:o,height:r}=this;i&&(t.save(),t.fillStyle=i,t.fillRect(n,s,o,r),t.restore())}getLineWidthForValue(t){const i=this.options.grid;if(!this._isVisible()||!i.display)return 0;const s=this.ticks.findIndex(o=>o.value===t);return s>=0?i.setContext(this.getContext(s)).lineWidth:0}drawGrid(t){const i=this.options.grid,n=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(c,l,h)=>{!h.width||!h.color||(n.save(),n.lineWidth=h.width,n.strokeStyle=h.color,n.setLineDash(h.borderDash||[]),n.lineDashOffset=h.borderDashOffset,n.beginPath(),n.moveTo(c.x,c.y),n.lineTo(l.x,l.y),n.stroke(),n.restore())};if(i.display)for(o=0,r=s.length;o<r;++o){const c=s[o];i.drawOnChartArea&&a({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),i.drawTicks&&a({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:i,options:{border:n,grid:s}}=this,o=n.setContext(this.getContext()),r=n.display?o.width:0;if(!r)return;const a=s.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let l,h,u,d;this.isHorizontal()?(l=re(t,this.left,r)-r/2,h=re(t,this.right,a)+a/2,u=d=c):(u=re(t,this.top,r)-r/2,d=re(t,this.bottom,a)+a/2,l=h=c),i.save(),i.lineWidth=o.width,i.strokeStyle=o.color,i.beginPath(),i.moveTo(l,u),i.lineTo(h,d),i.stroke(),i.restore()}drawLabels(t){if(!this.options.ticks.display)return;const n=this.ctx,s=this._computeLabelArea();s&&En(n,s);const o=this.getLabelItems(t);for(const r of o){const a=r.options,c=r.font,l=r.label,h=r.textOffset;ve(n,l,0,h,c,a)}s&&Tn(n)}drawTitle(){const{ctx:t,options:{position:i,title:n,reverse:s}}=this;if(!n.display)return;const o=dt(n.font),r=pt(n.padding),a=n.align;let c=o.lineHeight/2;i==="bottom"||i==="center"||N(i)?(c+=r.bottom,nt(n.text)&&(c+=o.lineHeight*(n.text.length-1))):c+=r.top;const{titleX:l,titleY:h,maxWidth:u,rotation:d}=ah(this,c,i,a);ve(t,n.text,0,0,o,{color:n.color,maxWidth:u,rotation:d,textAlign:rh(a,i,s),textBaseline:"middle",translation:[l,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,i=t.ticks&&t.ticks.z||0,n=B(t.grid&&t.grid.z,-1),s=B(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Me.prototype.draw?[{z:i,draw:o=>{this.draw(o)}}]:[{z:n,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:i,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const i=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",s=[];let o,r;for(o=0,r=i.length;o<r;++o){const a=i[o];a[n]===this.id&&(!t||a.type===t)&&s.push(a)}return s}_resolveTickFontOptions(t){const i=this.options.ticks.setContext(this.getContext(t));return dt(i.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class ji{constructor(t,i,n){this.type=t,this.scope=i,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const i=Object.getPrototypeOf(t);let n;hh(i)&&(n=this.register(i));const s=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in s||(s[o]=t,ch(t,r,n),this.override&&et.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const i=this.items,n=t.id,s=this.scope;n in i&&delete i[n],s&&n in et[s]&&(delete et[s][n],this.override&&delete oe[n])}}function ch(e,t,i){const n=Ve(Object.create(null),[i?et.get(i):{},et.get(t),e.defaults]);et.set(t,n),e.defaultRoutes&&lh(t,e.defaultRoutes),e.descriptors&&et.describe(t,e.descriptors)}function lh(e,t){Object.keys(t).forEach(i=>{const n=i.split("."),s=n.pop(),o=[e].concat(n).join("."),r=t[i].split("."),a=r.pop(),c=r.join(".");et.route(o,s,c,a)})}function hh(e){return"id"in e&&"defaults"in e}class uh{constructor(){this.controllers=new ji(Ze,"datasets",!0),this.elements=new ji(ue,"elements"),this.plugins=new ji(Object,"plugins"),this.scales=new ji(Me,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,i,n){[...i].forEach(s=>{const o=n||this._getRegistryForType(s);n||o.isForType(s)||o===this.plugins&&s.id?this._exec(t,o,s):V(s,r=>{const a=n||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,i,n){const s=kn(t);q(n["before"+s],[],n),i[t](n),q(n["after"+s],[],n)}_getRegistryForType(t){for(let i=0;i<this._typedRegistries.length;i++){const n=this._typedRegistries[i];if(n.isForType(t))return n}return this.plugins}_get(t,i,n){const s=i.get(t);if(s===void 0)throw new Error('"'+t+'" is not a registered '+n+".");return s}}var Nt=new uh;class dh{constructor(){this._init=[]}notify(t,i,n,s){i==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=s?this._descriptors(t).filter(s):this._descriptors(t),r=this._notify(o,t,i,n);return i==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,i,n,s){s=s||{};for(const o of t){const r=o.plugin,a=r[n],c=[i,s,o.options];if(q(a,c,r)===!1&&s.cancelable)return!1}return!0}invalidate(){J(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const i=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),i}_createDescriptors(t,i){const n=t&&t.config,s=B(n.options&&n.options.plugins,{}),o=fh(n);return s===!1&&!i?[]:ph(t,o,s,i)}_notifyStateChanges(t){const i=this._oldCache||[],n=this._cache,s=(o,r)=>o.filter(a=>!r.some(c=>a.plugin.id===c.plugin.id));this._notify(s(i,n),t,"stop"),this._notify(s(n,i),t,"start")}}function fh(e){const t={},i=[],n=Object.keys(Nt.plugins.items);for(let o=0;o<n.length;o++)i.push(Nt.getPlugin(n[o]));const s=e.plugins||[];for(let o=0;o<s.length;o++){const r=s[o];i.indexOf(r)===-1&&(i.push(r),t[r.id]=!0)}return{plugins:i,localIds:t}}function gh(e,t){return!t&&e===!1?null:e===!0?{}:e}function ph(e,{plugins:t,localIds:i},n,s){const o=[],r=e.getContext();for(const a of t){const c=a.id,l=gh(n[c],s);l!==null&&o.push({plugin:a,options:mh(e.config,{plugin:a,local:i[c]},l,r)})}return o}function mh(e,{plugin:t,local:i},n,s){const o=e.pluginScopeKeys(t),r=e.getOptionScopes(n,o);return i&&t.defaults&&r.push(t.defaults),e.createResolver(r,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Vn(e,t){const i=et.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||i.indexAxis||"x"}function bh(e,t){let i=e;return e==="_index_"?i=t:e==="_value_"&&(i=t==="x"?"y":"x"),i}function yh(e,t){return e===t?"_index_":"_value_"}function No(e){if(e==="x"||e==="y"||e==="r")return e}function xh(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Yn(e,...t){if(No(e))return e;for(const i of t){const n=i.axis||xh(i.position)||e.length>1&&No(e[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Wo(e,t,i){if(i[t+"AxisID"]===e)return{axis:t}}function _h(e,t){if(t.data&&t.data.datasets){const i=t.data.datasets.filter(n=>n.xAxisID===e||n.yAxisID===e);if(i.length)return Wo(e,"x",i[0])||Wo(e,"y",i[0])}return{}}function vh(e,t){const i=oe[e.type]||{scales:{}},n=t.scales||{},s=Vn(e.type,t),o=Object.create(null);return Object.keys(n).forEach(r=>{const a=n[r];if(!N(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const c=Yn(r,a,_h(r,e),et.scales[a.type]),l=yh(c,s),h=i.scales||{};o[r]=Ye(Object.create(null),[{axis:c},a,h[c],h[l]])}),e.data.datasets.forEach(r=>{const a=r.type||e.type,c=r.indexAxis||Vn(a,t),h=(oe[a]||{}).scales||{};Object.keys(h).forEach(u=>{const d=bh(u,c),f=r[d+"AxisID"]||d;o[f]=o[f]||Object.create(null),Ye(o[f],[{axis:d},n[f],h[u]])})}),Object.keys(o).forEach(r=>{const a=o[r];Ye(a,[et.scales[a.type],et.scale])}),o}function Bo(e){const t=e.options||(e.options={});t.plugins=B(t.plugins,{}),t.scales=vh(e,t)}function Ho(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function wh(e){return e=e||{},e.data=Ho(e.data),Bo(e),e}const $o=new Map,Vo=new Set;function zi(e,t){let i=$o.get(e);return i||(i=t(),$o.set(e,i),Vo.add(i)),i}const oi=(e,t,i)=>{const n=Ue(t,i);n!==void 0&&e.add(n)};class kh{constructor(t){this._config=wh(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Ho(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Bo(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return zi(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,i){return zi(`${t}.transition.${i}`,()=>[[`datasets.${t}.transitions.${i}`,`transitions.${i}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,i){return zi(`${t}-${i}`,()=>[[`datasets.${t}.elements.${i}`,`datasets.${t}`,`elements.${i}`,""]])}pluginScopeKeys(t){const i=t.id,n=this.type;return zi(`${n}-plugin-${i}`,()=>[[`plugins.${i}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,i){const n=this._scopeCache;let s=n.get(t);return(!s||i)&&(s=new Map,n.set(t,s)),s}getOptionScopes(t,i,n){const{options:s,type:o}=this,r=this._cachedScopes(t,n),a=r.get(i);if(a)return a;const c=new Set;i.forEach(h=>{t&&(c.add(t),h.forEach(u=>oi(c,t,u))),h.forEach(u=>oi(c,s,u)),h.forEach(u=>oi(c,oe[o]||{},u)),h.forEach(u=>oi(c,et,u)),h.forEach(u=>oi(c,Pn,u))});const l=Array.from(c);return l.length===0&&l.push(Object.create(null)),Vo.has(i)&&r.set(i,l),l}chartOptionScopes(){const{options:t,type:i}=this;return[t,oe[i]||{},et.datasets[i]||{},{type:i},et,Pn]}resolveNamedOptions(t,i,n,s=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=Yo(this._resolverCache,t,s);let c=r;if(Mh(r,i)){o.$shared=!1,n=Zt(n)?n():n;const l=this.createResolver(t,n,a);c=ke(r,n,l)}for(const l of i)o[l]=c[l];return o}createResolver(t,i,n=[""],s){const{resolver:o}=Yo(this._resolverCache,t,n);return N(i)?ke(o,i,void 0,s):o}}function Yo(e,t,i){let n=e.get(t);n||(n=new Map,e.set(t,n));const s=i.join();let o=n.get(s);return o||(o={resolver:Dn(t,i),subPrefixes:i.filter(a=>!a.toLowerCase().includes("hover"))},n.set(s,o)),o}const Sh=e=>N(e)&&Object.getOwnPropertyNames(e).some(t=>Zt(e[t]));function Mh(e,t){const{isScriptable:i,isIndexable:n}=so(e);for(const s of t){const o=i(s),r=n(s),a=(r||o)&&e[s];if(o&&(Zt(a)||Sh(a))||r&&nt(a))return!0}return!1}var Ch="4.4.3";const Oh=["top","bottom","left","right","chartArea"];function Uo(e,t){return e==="top"||e==="bottom"||Oh.indexOf(e)===-1&&t==="x"}function Xo(e,t){return function(i,n){return i[e]===n[e]?i[t]-n[t]:i[e]-n[e]}}function Ko(e){const t=e.chart,i=t.options.animation;t.notifyPlugins("afterRender"),q(i&&i.onComplete,[e],t)}function Ph(e){const t=e.chart,i=t.options.animation;q(i&&i.onProgress,[e],t)}function qo(e){return Fn()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Ni={},Go=e=>{const t=qo(e);return Object.values(Ni).filter(i=>i.canvas===t).pop()};function Ah(e,t,i){const n=Object.keys(e);for(const s of n){const o=+s;if(o>=t){const r=e[s];delete e[s],(i>0||o>t)&&(e[o+i]=r)}}}function Eh(e,t,i,n){return!i||e.type==="mouseout"?null:n?t:e}function Wi(e,t,i){return e.options.clip?e[i]:t[i]}function Th(e,t){const{xScale:i,yScale:n}=e;return i&&n?{left:Wi(i,t,"left"),right:Wi(i,t,"right"),top:Wi(n,t,"top"),bottom:Wi(n,t,"bottom")}:t}let Bi=(ee=class{static register(...t){Nt.add(...t),Zo()}static unregister(...t){Nt.remove(...t),Zo()}constructor(t,i){const n=this.config=new kh(i),s=qo(t),o=Go(s);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||Kl(s)),this.platform.updateConfig(n);const a=this.platform.acquireContext(s,r.aspectRatio),c=a&&a.canvas,l=c&&c.height,h=c&&c.width;if(this.id=rc(),this.ctx=a,this.canvas=c,this.width=h,this.height=l,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new dh,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=wc(u=>this.update(u),r.resizeDelay||0),this._dataChanges=[],Ni[this.id]=this,!a||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Yt.listen(this,"complete",Ko),Yt.listen(this,"progress",Ph),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:i},width:n,height:s,_aspectRatio:o}=this;return J(t)?i&&o?o:s?n/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Nt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ho(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return eo(this.canvas,this.ctx),this}stop(){return Yt.stop(this),this}resize(t,i){Yt.running(this)?this._resizeBeforeDraw={width:t,height:i}:this._resize(t,i)}_resize(t,i){const n=this.options,s=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,i,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,ho(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),q(n.onResize,[this,r],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const i=this.options.scales||{};V(i,(n,s)=>{n.id=s})}buildOrUpdateScales(){const t=this.options,i=t.scales,n=this.scales,s=Object.keys(n).reduce((r,a)=>(r[a]=!1,r),{});let o=[];i&&(o=o.concat(Object.keys(i).map(r=>{const a=i[r],c=Yn(r,a),l=c==="r",h=c==="x";return{options:a,dposition:l?"chartArea":h?"bottom":"left",dtype:l?"radialLinear":h?"category":"linear"}}))),V(o,r=>{const a=r.options,c=a.id,l=Yn(c,a),h=B(a.type,r.dtype);(a.position===void 0||Uo(a.position,l)!==Uo(r.dposition))&&(a.position=r.dposition),s[c]=!0;let u=null;if(c in n&&n[c].type===h)u=n[c];else{const d=Nt.getScale(h);u=new d({id:c,type:h,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(a,t)}),V(s,(r,a)=>{r||delete n[a]}),V(n,r=>{Qt.configure(this,r,r.options),Qt.addBox(this,r)})}_updateMetasets(){const t=this._metasets,i=this.data.datasets.length,n=t.length;if(t.sort((s,o)=>s.index-o.index),n>i){for(let s=i;s<n;++s)this._destroyDatasetMeta(s);t.splice(i,n-i)}this._sortedMetasets=t.slice(0).sort(Xo("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:i}}=this;t.length>i.length&&delete this._stacks,t.forEach((n,s)=>{i.filter(o=>o===n._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const t=[],i=this.data.datasets;let n,s;for(this._removeUnreferencedMetasets(),n=0,s=i.length;n<s;n++){const o=i[n];let r=this.getDatasetMeta(n);const a=o.type||this.config.type;if(r.type&&r.type!==a&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=a,r.indexAxis=o.indexAxis||Vn(a,this.options),r.order=o.order||0,r.index=n,r.label=""+o.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const c=Nt.getController(a),{datasetElementType:l,dataElementType:h}=et.datasets[a];Object.assign(c,{dataElementType:Nt.getElement(h),datasetElementType:l&&Nt.getElement(l)}),r.controller=new c(this,n),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){V(this.data.datasets,(t,i)=>{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const i=this.config;i.update();const n=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let l=0,h=this.data.datasets.length;l<h;l++){const{controller:u}=this.getDatasetMeta(l),d=!s&&o.indexOf(u)===-1;u.buildOrUpdateElements(d),r=Math.max(+u.getMaxOverflow(),r)}r=this._minPadding=n.layout.autoPadding?r:0,this._updateLayout(r),s||V(o,l=>{l.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Xo("z","_idx"));const{_active:a,_lastEvent:c}=this;c?this._eventHandler(c,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){V(this.scales,t=>{Qt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,i=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!zs(i,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,i=this._getUniformDataChanges()||[];for(const{method:n,start:s,count:o}of i){const r=n==="_removeElements"?-o:o;Ah(t,s,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const i=this.data.datasets.length,n=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),s=n(0);for(let o=1;o<i;o++)if(!zs(s,n(o)))return;return Array.from(s).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Qt.update(this,this.width,this.height,t);const i=this.chartArea,n=i.width<=0||i.height<=0;this._layers=[],V(this.boxes,s=>{n&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,o)=>{s._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let i=0,n=this.data.datasets.length;i<n;++i)this.getDatasetMeta(i).controller.configure();for(let i=0,n=this.data.datasets.length;i<n;++i)this._updateDataset(i,Zt(t)?t({datasetIndex:i}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,i){const n=this.getDatasetMeta(t),s={meta:n,index:t,mode:i,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(n.controller._update(i),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Yt.has(this)?this.attached&&!Yt.running(this)&&Yt.start(this):(this.draw(),Ko({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:n,height:s}=this._resizeBeforeDraw;this._resize(n,s),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const i=this._layers;for(t=0;t<i.length&&i[t].z<=0;++t)i[t].draw(this.chartArea);for(this._drawDatasets();t<i.length;++t)i[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const i=this._sortedMetasets,n=[];let s,o;for(s=0,o=i.length;s<o;++s){const r=i[s];(!t||r.visible)&&n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let i=t.length-1;i>=0;--i)this._drawDataset(t[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const i=this.ctx,n=t._clip,s=!n.disabled,o=Th(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&En(i,{left:n.left===!1?0:o.left-n.left,right:n.right===!1?this.width:o.right+n.right,top:n.top===!1?0:o.top-n.top,bottom:n.bottom===!1?this.height:o.bottom+n.bottom}),t.controller.draw(),s&&Tn(i),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return _e(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,i,n,s){const o=Ol.modes[i];return typeof o=="function"?o(this,t,n,s):[]}getDatasetMeta(t){const i=this.data.datasets[t],n=this._metasets;let s=n.filter(o=>o&&o._dataset===i).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:t,_dataset:i,_parsed:[],_sorted:!1},n.push(s)),s}getContext(){return this.$context||(this.$context=ae(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const i=this.data.datasets[t];if(!i)return!1;const n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!i.hidden}setDatasetVisibility(t,i){const n=this.getDatasetMeta(t);n.hidden=!i}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,i,n){const s=n?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,s);yi(i)?(o.data[i].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),r.update(o,{visible:n}),this.update(a=>a.datasetIndex===t?s:void 0))}hide(t,i){this._updateVisibility(t,i,!1)}show(t,i){this._updateVisibility(t,i,!0)}_destroyDatasetMeta(t){const i=this._metasets[t];i&&i.controller&&i.controller._destroy(),delete this._metasets[t]}_stop(){let t,i;for(this.stop(),Yt.remove(this),t=0,i=this.data.datasets.length;t<i;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:i}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),eo(t,i),this.platform.releaseContext(i),this.canvas=null,this.ctx=null),delete Ni[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,i=this.platform,n=(o,r)=>{i.addEventListener(this,o,r),t[o]=r},s=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};V(this.options.events,o=>n(o,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,i=this.platform,n=(c,l)=>{i.addEventListener(this,c,l),t[c]=l},s=(c,l)=>{t[c]&&(i.removeEventListener(this,c,l),delete t[c])},o=(c,l)=>{this.canvas&&this.resize(c,l)};let r;const a=()=>{s("attach",a),this.attached=!0,this.resize(),n("resize",o),n("detach",r)};r=()=>{this.attached=!1,s("resize",o),this._stop(),this._resize(0,0),n("attach",a)},i.isAttached(this.canvas)?a():r()}unbindEvents(){V(this._listeners,(t,i)=>{this.platform.removeEventListener(this,i,t)}),this._listeners={},V(this._responsiveListeners,(t,i)=>{this.platform.removeEventListener(this,i,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,i,n){const s=n?"set":"remove";let o,r,a,c;for(i==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+s+"DatasetHoverStyle"]()),a=0,c=t.length;a<c;++a){r=t[a];const l=r&&this.getDatasetMeta(r.datasetIndex).controller;l&&l[s+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const i=this._active||[],n=t.map(({datasetIndex:o,index:r})=>{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!mi(n,i)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,i))}notifyPlugins(t,i,n){return this._plugins.notify(this,t,i,n)}isPluginEnabled(t){return this._plugins._cache.filter(i=>i.plugin.id===t).length===1}_updateHoverStyles(t,i,n){const s=this.options.hover,o=(c,l)=>c.filter(h=>!l.some(u=>h.datasetIndex===u.datasetIndex&&h.index===u.index)),r=o(i,t),a=n?t:o(t,i);r.length&&this.updateHoverStyle(r,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,i){const n={event:t,replay:i,cancelable:!0,inChartArea:this.isPointInArea(t)},s=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,s)===!1)return;const o=this._handleEvent(t,i,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,s),(o||n.changed)&&this.render(),this}_handleEvent(t,i,n){const{_active:s=[],options:o}=this,r=i,a=this._getActiveElements(t,s,n,r),c=dc(t),l=Eh(t,this._lastEvent,n,c);n&&(this._lastEvent=null,q(o.onHover,[t,a,this],this),c&&q(o.onClick,[t,a,this],this));const h=!mi(a,s);return(h||i)&&(this._active=a,this._updateHoverStyles(a,s,i)),this._lastEvent=l,h}_getActiveElements(t,i,n,s){if(t.type==="mouseout")return[];if(!n)return i;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,s)}},T(ee,"defaults",et),T(ee,"instances",Ni),T(ee,"overrides",oe),T(ee,"registry",Nt),T(ee,"version",Ch),T(ee,"getChart",Go),ee);function Zo(){return V(Bi.instances,e=>e._plugins.invalidate())}function Rh(e,t,i){const{startAngle:n,pixelMargin:s,x:o,y:r,outerRadius:a,innerRadius:c}=t;let l=s/a;e.beginPath(),e.arc(o,r,a,n-l,i+l),c>s?(l=s/c,e.arc(o,r,c,i+l,n-l,!0)):e.arc(o,r,s,i+st,n-st),e.closePath(),e.clip()}function Dh(e){return Rn(e,["outerStart","outerEnd","innerStart","innerEnd"])}function Lh(e,t,i,n){const s=Dh(e.options.borderRadius),o=(i-t)/2,r=Math.min(o,n*t/2),a=c=>{const l=(i-Math.min(o,c))*n/2;return Ot(c,0,Math.min(o,l))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:Ot(s.innerStart,0,r),innerEnd:Ot(s.innerEnd,0,r)}}function Ce(e,t,i,n){return{x:i+e*Math.cos(t),y:n+e*Math.sin(t)}}function Hi(e,t,i,n,s,o){const{x:r,y:a,startAngle:c,pixelMargin:l,innerRadius:h}=t,u=Math.max(t.outerRadius+n+i-l,0),d=h>0?h+n+i+l:0;let f=0;const m=s-c;if(n){const F=h>0?h-n:0,Y=u>0?u-n:0,X=(F+Y)/2,ft=X!==0?m*X/(X+n):m;f=(m-ft)/2}const b=Math.max(.001,m*u-i/rt)/u,p=(m-b)/2,y=c+p+f,x=s-p-f,{outerStart:v,outerEnd:k,innerStart:_,innerEnd:M}=Lh(t,d,u,x-y),S=u-v,O=u-k,A=y+v/S,L=x-k/O,R=d+_,I=d+M,W=y+_/R,Q=x-M/I;if(e.beginPath(),o){const F=(A+L)/2;if(e.arc(r,a,u,A,F),e.arc(r,a,u,F,L),k>0){const U=Ce(O,L,r,a);e.arc(U.x,U.y,k,L,x+st)}const Y=Ce(I,x,r,a);if(e.lineTo(Y.x,Y.y),M>0){const U=Ce(I,Q,r,a);e.arc(U.x,U.y,M,x+st,Q+Math.PI)}const X=(x-M/d+(y+_/d))/2;if(e.arc(r,a,d,x-M/d,X,!0),e.arc(r,a,d,X,y+_/d,!0),_>0){const U=Ce(R,W,r,a);e.arc(U.x,U.y,_,W+Math.PI,y-st)}const ft=Ce(S,y,r,a);if(e.lineTo(ft.x,ft.y),v>0){const U=Ce(S,A,r,a);e.arc(U.x,U.y,v,y-st,A)}}else{e.moveTo(r,a);const F=Math.cos(A)*u+r,Y=Math.sin(A)*u+a;e.lineTo(F,Y);const X=Math.cos(L)*u+r,ft=Math.sin(L)*u+a;e.lineTo(X,ft)}e.closePath()}function Ih(e,t,i,n,s){const{fullCircles:o,startAngle:r,circumference:a}=t;let c=t.endAngle;if(o){Hi(e,t,i,n,c,s);for(let l=0;l<o;++l)e.fill();isNaN(a)||(c=r+(a%tt||tt))}return Hi(e,t,i,n,c,s),e.fill(),c}function Fh(e,t,i,n,s){const{fullCircles:o,startAngle:r,circumference:a,options:c}=t,{borderWidth:l,borderJoinStyle:h,borderDash:u,borderDashOffset:d}=c,f=c.borderAlign==="inner";if(!l)return;e.setLineDash(u||[]),e.lineDashOffset=d,f?(e.lineWidth=l*2,e.lineJoin=h||"round"):(e.lineWidth=l,e.lineJoin=h||"bevel");let m=t.endAngle;if(o){Hi(e,t,i,n,m,s);for(let b=0;b<o;++b)e.stroke();isNaN(a)||(m=r+(a%tt||tt))}f&&Rh(e,t,m),o||(Hi(e,t,i,n,m,s),e.stroke())}class ri extends ue{constructor(i){super();T(this,"circumference");T(this,"endAngle");T(this,"fullCircles");T(this,"innerRadius");T(this,"outerRadius");T(this,"pixelMargin");T(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,i&&Object.assign(this,i)}inRange(i,n,s){const o=this.getProps(["x","y"],s),{angle:r,distance:a}=$s(o,{x:i,y:n}),{startAngle:c,endAngle:l,innerRadius:h,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),f=(this.options.spacing+this.options.borderWidth)/2,b=B(d,l-c)>=tt||ki(r,c,l),p=Xe(a,h+f,u+f);return b&&p}getCenterPoint(i){const{x:n,y:s,startAngle:o,endAngle:r,innerRadius:a,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],i),{offset:l,spacing:h}=this.options,u=(o+r)/2,d=(a+c+h+l)/2;return{x:n+Math.cos(u)*d,y:s+Math.sin(u)*d}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){const{options:n,circumference:s}=this,o=(n.offset||0)/4,r=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=s>tt?Math.floor(s/tt):0,s===0||this.innerRadius<0||this.outerRadius<0)return;i.save();const c=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(c)*o,Math.sin(c)*o);const l=1-Math.sin(Math.min(rt,s||0)),h=o*l;i.fillStyle=n.backgroundColor,i.strokeStyle=n.borderColor,Ih(i,this,h,r,a),Fh(i,this,h,r,a),i.restore()}}T(ri,"id","arc"),T(ri,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),T(ri,"defaultRoutes",{backgroundColor:"backgroundColor"}),T(ri,"descriptors",{_scriptable:!0,_indexable:i=>i!=="borderDash"});const Jo=(e,t)=>{let{boxHeight:i=t,boxWidth:n=t}=e;return e.usePointStyle&&(i=Math.min(i,t),n=e.pointStyleWidth||Math.min(n,t)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(t,i)}},jh=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Qo extends ue{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,i,n){this.maxWidth=t,this.maxHeight=i,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let i=q(t.generateLabels,[this.chart],this)||[];t.filter&&(i=i.filter(n=>t.filter(n,this.chart.data))),t.sort&&(i=i.sort((n,s)=>t.sort(n,s,this.chart.data))),this.options.reverse&&i.reverse(),this.legendItems=i}fit(){const{options:t,ctx:i}=this;if(!t.display){this.width=this.height=0;return}const n=t.labels,s=dt(n.font),o=s.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:c}=Jo(n,o);let l,h;i.font=s.string,this.isHorizontal()?(l=this.maxWidth,h=this._fitRows(r,o,a,c)+10):(h=this.maxHeight,l=this._fitCols(r,s,a,c)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,i,n,s){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,c=this.legendHitBoxes=[],l=this.lineWidths=[0],h=s+a;let u=t;o.textAlign="left",o.textBaseline="middle";let d=-1,f=-h;return this.legendItems.forEach((m,b)=>{const p=n+i/2+o.measureText(m.text).width;(b===0||l[l.length-1]+p+2*a>r)&&(u+=h,l[l.length-(b>0?0:1)]=0,f+=h,d++),c[b]={left:0,top:f,row:d,width:p,height:s},l[l.length-1]+=p+a}),u}_fitCols(t,i,n,s){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,c=this.legendHitBoxes=[],l=this.columnSizes=[],h=r-t;let u=a,d=0,f=0,m=0,b=0;return this.legendItems.forEach((p,y)=>{const{itemWidth:x,itemHeight:v}=zh(n,i,o,p,s);y>0&&f+v+2*a>h&&(u+=d+a,l.push({width:d,height:f}),m+=d+a,b++,d=f=0),c[y]={left:m,top:f,col:b,width:x,height:v},d=Math.max(d,x),f+=v+a}),u+=d,l.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:i,options:{align:n,labels:{padding:s},rtl:o}}=this,r=Se(o,this.left,this.width);if(this.isHorizontal()){let a=0,c=kt(n,this.left+s,this.right-this.lineWidths[a]);for(const l of i)a!==l.row&&(a=l.row,c=kt(n,this.left+s,this.right-this.lineWidths[a])),l.top+=this.top+t+s,l.left=r.leftForLtr(r.x(c),l.width),c+=l.width+s}else{let a=0,c=kt(n,this.top+t+s,this.bottom-this.columnSizes[a].height);for(const l of i)l.col!==a&&(a=l.col,c=kt(n,this.top+t+s,this.bottom-this.columnSizes[a].height)),l.top=c,l.left+=this.left+s,l.left=r.leftForLtr(r.x(l.left),l.width),c+=l.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;En(t,this),this._draw(),Tn(t)}}_draw(){const{options:t,columnSizes:i,lineWidths:n,ctx:s}=this,{align:o,labels:r}=t,a=et.color,c=Se(t.rtl,this.left,this.width),l=dt(r.font),{padding:h}=r,u=l.size,d=u/2;let f;this.drawTitle(),s.textAlign=c.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=l.string;const{boxWidth:m,boxHeight:b,itemHeight:p}=Jo(r,u),y=function(M,S,O){if(isNaN(m)||m<=0||isNaN(b)||b<0)return;s.save();const A=B(O.lineWidth,1);if(s.fillStyle=B(O.fillStyle,a),s.lineCap=B(O.lineCap,"butt"),s.lineDashOffset=B(O.lineDashOffset,0),s.lineJoin=B(O.lineJoin,"miter"),s.lineWidth=A,s.strokeStyle=B(O.strokeStyle,a),s.setLineDash(B(O.lineDash,[])),r.usePointStyle){const L={radius:b*Math.SQRT2/2,pointStyle:O.pointStyle,rotation:O.rotation,borderWidth:A},R=c.xPlus(M,m/2),I=S+d;no(s,L,R,I,r.pointStyleWidth&&m)}else{const L=S+Math.max((u-b)/2,0),R=c.leftForLtr(M,m),I=we(O.borderRadius);s.beginPath(),Object.values(I).some(W=>W!==0)?Pi(s,{x:R,y:L,w:m,h:b,radius:I}):s.rect(R,L,m,b),s.fill(),A!==0&&s.stroke()}s.restore()},x=function(M,S,O){ve(s,O.text,M,S+p/2,l,{strikethrough:O.hidden,textAlign:c.textAlign(O.textAlign)})},v=this.isHorizontal(),k=this._computeTitleHeight();v?f={x:kt(o,this.left+h,this.right-n[0]),y:this.top+h+k,line:0}:f={x:this.left+h,y:kt(o,this.top+k+h,this.bottom-i[0].height),line:0},fo(this.ctx,t.textDirection);const _=p+h;this.legendItems.forEach((M,S)=>{s.strokeStyle=M.fontColor,s.fillStyle=M.fontColor;const O=s.measureText(M.text).width,A=c.textAlign(M.textAlign||(M.textAlign=r.textAlign)),L=m+d+O;let R=f.x,I=f.y;c.setWidth(this.width),v?S>0&&R+L+h>this.right&&(I=f.y+=_,f.line++,R=f.x=kt(o,this.left+h,this.right-n[f.line])):S>0&&I+_>this.bottom&&(R=f.x=R+i[f.line].width+h,f.line++,I=f.y=kt(o,this.top+k+h,this.bottom-i[f.line].height));const W=c.x(R);if(y(W,I,M),R=kc(A,R+m+d,v?R+L:this.right,t.rtl),x(c.x(R),I,M),v)f.x+=L+h;else if(typeof M.text!="string"){const Q=l.lineHeight;f.y+=tr(M,Q)+h}else f.y+=_}),go(this.ctx,t.textDirection)}drawTitle(){const t=this.options,i=t.title,n=dt(i.font),s=pt(i.padding);if(!i.display)return;const o=Se(t.rtl,this.left,this.width),r=this.ctx,a=i.position,c=n.size/2,l=s.top+c;let h,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+l,u=kt(t.align,u,this.right-d);else{const m=this.columnSizes.reduce((b,p)=>Math.max(b,p.height),0);h=l+kt(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const f=kt(a,u,u+d);r.textAlign=o.textAlign(Ks(a)),r.textBaseline="middle",r.strokeStyle=i.color,r.fillStyle=i.color,r.font=n.string,ve(r,i.text,f,h,n)}_computeTitleHeight(){const t=this.options.title,i=dt(t.font),n=pt(t.padding);return t.display?i.lineHeight+n.height:0}_getLegendItemAt(t,i){let n,s,o;if(Xe(t,this.left,this.right)&&Xe(i,this.top,this.bottom)){for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(s=o[n],Xe(t,s.left,s.left+s.width)&&Xe(i,s.top,s.top+s.height))return this.legendItems[n]}return null}handleEvent(t){const i=this.options;if(!Bh(t.type,i))return;const n=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const s=this._hoveredItem,o=jh(s,n);s&&!o&&q(i.onLeave,[t,s,this],this),this._hoveredItem=n,n&&!o&&q(i.onHover,[t,n,this],this)}else n&&q(i.onClick,[t,n,this],this)}}function zh(e,t,i,n,s){const o=Nh(n,e,t,i),r=Wh(s,n,t.lineHeight);return{itemWidth:o,itemHeight:r}}function Nh(e,t,i,n){let s=e.text;return s&&typeof s!="string"&&(s=s.reduce((o,r)=>o.length>r.length?o:r)),t+i.size/2+n.measureText(s).width}function Wh(e,t,i){let n=e;return typeof t.text!="string"&&(n=tr(t,i)),n}function tr(e,t){const i=e.text?e.text.length:0;return t*i}function Bh(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var Hh={id:"legend",_element:Qo,start(e,t,i){const n=e.legend=new Qo({ctx:e.ctx,options:i,chart:e});Qt.configure(e,n,i),Qt.addBox(e,n)},stop(e){Qt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,i){const n=e.legend;Qt.configure(e,n,i),n.options=i},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,i){const n=t.datasetIndex,s=i.chart;s.isDatasetVisible(n)?(s.hide(n),t.hidden=!0):(s.show(n),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:s,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(c=>{const l=c.controller.getStyle(i?0:void 0),h=pt(l.borderWidth);return{text:t[c.index].label,fillStyle:l.backgroundColor,fontColor:o,hidden:!c.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:l.borderColor,pointStyle:n||l.pointStyle,rotation:l.rotation,textAlign:s||l.textAlign,borderRadius:r&&(a||l.borderRadius),datasetIndex:c.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};const ai={average(e){if(!e.length)return!1;let t,i,n=new Set,s=0,o=0;for(t=0,i=e.length;t<i;++t){const a=e[t].element;if(a&&a.hasValue()){const c=a.tooltipPosition();n.add(c.x),s+=c.y,++o}}return{x:[...n].reduce((a,c)=>a+c)/n.size,y:s/o}},nearest(e,t){if(!e.length)return!1;let i=t.x,n=t.y,s=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=e.length;o<r;++o){const c=e[o].element;if(c&&c.hasValue()){const l=c.getCenterPoint(),h=mc(t,l);h<s&&(s=h,a=c)}}if(a){const c=a.tooltipPosition();i=c.x,n=c.y}return{x:i,y:n}}};function Wt(e,t){return t&&(nt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Ut(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
46
+ `)>-1?e.split(`
47
+ `):e}function $h(e,t){const{element:i,datasetIndex:n,index:s}=t,o=e.getDatasetMeta(n).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:e,label:r,parsed:o.getParsed(s),raw:e.data.datasets[n].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function er(e,t){const i=e.chart.ctx,{body:n,footer:s,title:o}=e,{boxWidth:r,boxHeight:a}=t,c=dt(t.bodyFont),l=dt(t.titleFont),h=dt(t.footerFont),u=o.length,d=s.length,f=n.length,m=pt(t.padding);let b=m.height,p=0,y=n.reduce((k,_)=>k+_.before.length+_.lines.length+_.after.length,0);if(y+=e.beforeBody.length+e.afterBody.length,u&&(b+=u*l.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),y){const k=t.displayColors?Math.max(a,c.lineHeight):c.lineHeight;b+=f*k+(y-f)*c.lineHeight+(y-1)*t.bodySpacing}d&&(b+=t.footerMarginTop+d*h.lineHeight+(d-1)*t.footerSpacing);let x=0;const v=function(k){p=Math.max(p,i.measureText(k).width+x)};return i.save(),i.font=l.string,V(e.title,v),i.font=c.string,V(e.beforeBody.concat(e.afterBody),v),x=t.displayColors?r+2+t.boxPadding:0,V(n,k=>{V(k.before,v),V(k.lines,v),V(k.after,v)}),x=0,i.font=h.string,V(e.footer,v),i.restore(),p+=m.width,{width:p,height:b}}function Vh(e,t){const{y:i,height:n}=t;return i<n/2?"top":i>e.height-n/2?"bottom":"center"}function Yh(e,t,i,n){const{x:s,width:o}=n,r=i.caretSize+i.caretPadding;if(e==="left"&&s+o+r>t.width||e==="right"&&s-o-r<0)return!0}function Uh(e,t,i,n){const{x:s,width:o}=i,{width:r,chartArea:{left:a,right:c}}=e;let l="center";return n==="center"?l=s<=(a+c)/2?"left":"right":s<=o/2?l="left":s>=r-o/2&&(l="right"),Yh(l,e,t,i)&&(l="center"),l}function ir(e,t,i){const n=i.yAlign||t.yAlign||Vh(e,i);return{xAlign:i.xAlign||t.xAlign||Uh(e,t,i,n),yAlign:n}}function Xh(e,t){let{x:i,width:n}=e;return t==="right"?i-=n:t==="center"&&(i-=n/2),i}function Kh(e,t,i){let{y:n,height:s}=e;return t==="top"?n+=i:t==="bottom"?n-=s+i:n-=s/2,n}function nr(e,t,i,n){const{caretSize:s,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:c}=i,l=s+o,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=we(r);let m=Xh(t,a);const b=Kh(t,c,l);return c==="center"?a==="left"?m+=l:a==="right"&&(m-=l):a==="left"?m-=Math.max(h,d)+s:a==="right"&&(m+=Math.max(u,f)+s),{x:Ot(m,0,n.width-t.width),y:Ot(b,0,n.height-t.height)}}function $i(e,t,i){const n=pt(i.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-n.right:e.x+n.left}function sr(e){return Wt([],Ut(e))}function qh(e,t,i){return ae(e,{tooltip:t,tooltipItems:i,type:"tooltip"})}function or(e,t){const i=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return i?e.override(i):e}const rr={beforeTitle:Vt,title(e){if(e.length>0){const t=e[0],i=t.chart.data.labels,n=i?i.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex<n)return i[t.dataIndex]}return""},afterTitle:Vt,beforeBody:Vt,beforeLabel:Vt,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const i=e.formattedValue;return J(i)||(t+=i),t},labelColor(e){const i=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:i.borderColor,backgroundColor:i.backgroundColor,borderWidth:i.borderWidth,borderDash:i.borderDash,borderDashOffset:i.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const i=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:i.pointStyle,rotation:i.rotation}},afterLabel:Vt,afterBody:Vt,beforeFooter:Vt,footer:Vt,afterFooter:Vt};function yt(e,t,i,n){const s=e[t].call(i,n);return typeof s>"u"?rr[t].call(i,n):s}class Un extends ue{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const i=this.chart,n=this.options.setContext(this.getContext()),s=n.enabled&&i.options.animation&&n.animations,o=new mo(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=qh(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,i){const{callbacks:n}=i,s=yt(n,"beforeTitle",this,t),o=yt(n,"title",this,t),r=yt(n,"afterTitle",this,t);let a=[];return a=Wt(a,Ut(s)),a=Wt(a,Ut(o)),a=Wt(a,Ut(r)),a}getBeforeBody(t,i){return sr(yt(i.callbacks,"beforeBody",this,t))}getBody(t,i){const{callbacks:n}=i,s=[];return V(t,o=>{const r={before:[],lines:[],after:[]},a=or(n,o);Wt(r.before,Ut(yt(a,"beforeLabel",this,o))),Wt(r.lines,yt(a,"label",this,o)),Wt(r.after,Ut(yt(a,"afterLabel",this,o))),s.push(r)}),s}getAfterBody(t,i){return sr(yt(i.callbacks,"afterBody",this,t))}getFooter(t,i){const{callbacks:n}=i,s=yt(n,"beforeFooter",this,t),o=yt(n,"footer",this,t),r=yt(n,"afterFooter",this,t);let a=[];return a=Wt(a,Ut(s)),a=Wt(a,Ut(o)),a=Wt(a,Ut(r)),a}_createItems(t){const i=this._active,n=this.chart.data,s=[],o=[],r=[];let a=[],c,l;for(c=0,l=i.length;c<l;++c)a.push($h(this.chart,i[c]));return t.filter&&(a=a.filter((h,u,d)=>t.filter(h,u,d,n))),t.itemSort&&(a=a.sort((h,u)=>t.itemSort(h,u,n))),V(a,h=>{const u=or(t.callbacks,h);s.push(yt(u,"labelColor",this,h)),o.push(yt(u,"labelPointStyle",this,h)),r.push(yt(u,"labelTextColor",this,h))}),this.labelColors=s,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,i){const n=this.options.setContext(this.getContext()),s=this._active;let o,r=[];if(!s.length)this.opacity!==0&&(o={opacity:0});else{const a=ai[n.position].call(this,s,this._eventPosition);r=this._createItems(n),this.title=this.getTitle(r,n),this.beforeBody=this.getBeforeBody(r,n),this.body=this.getBody(r,n),this.afterBody=this.getAfterBody(r,n),this.footer=this.getFooter(r,n);const c=this._size=er(this,n),l=Object.assign({},a,c),h=ir(this.chart,n,l),u=nr(n,l,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,o={opacity:1,x:u.x,y:u.y,width:c.width,height:c.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(t,i,n,s){const o=this.getCaretPosition(t,n,s);i.lineTo(o.x1,o.y1),i.lineTo(o.x2,o.y2),i.lineTo(o.x3,o.y3)}getCaretPosition(t,i,n){const{xAlign:s,yAlign:o}=this,{caretSize:r,cornerRadius:a}=n,{topLeft:c,topRight:l,bottomLeft:h,bottomRight:u}=we(a),{x:d,y:f}=t,{width:m,height:b}=i;let p,y,x,v,k,_;return o==="center"?(k=f+b/2,s==="left"?(p=d,y=p-r,v=k+r,_=k-r):(p=d+m,y=p+r,v=k-r,_=k+r),x=p):(s==="left"?y=d+Math.max(c,h)+r:s==="right"?y=d+m-Math.max(l,u)-r:y=this.caretX,o==="top"?(v=f,k=v-r,p=y-r,x=y+r):(v=f+b,k=v+r,p=y+r,x=y-r),_=v),{x1:p,x2:y,x3:x,y1:v,y2:k,y3:_}}drawTitle(t,i,n){const s=this.title,o=s.length;let r,a,c;if(o){const l=Se(n.rtl,this.x,this.width);for(t.x=$i(this,n.titleAlign,n),i.textAlign=l.textAlign(n.titleAlign),i.textBaseline="middle",r=dt(n.titleFont),a=n.titleSpacing,i.fillStyle=n.titleColor,i.font=r.string,c=0;c<o;++c)i.fillText(s[c],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,c+1===o&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,i,n,s,o){const r=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:c,boxWidth:l}=o,h=dt(o.bodyFont),u=$i(this,"left",o),d=s.x(u),f=c<h.lineHeight?(h.lineHeight-c)/2:0,m=i.y+f;if(o.usePointStyle){const b={radius:Math.min(l,c)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},p=s.leftForLtr(d,l)+l/2,y=m+c/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,io(t,b,p,y),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,io(t,b,p,y)}else{t.lineWidth=N(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const b=s.leftForLtr(d,l),p=s.leftForLtr(s.xPlus(d,1),l-2),y=we(r.borderRadius);Object.values(y).some(x=>x!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Pi(t,{x:b,y:m,w:l,h:c,radius:y}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),Pi(t,{x:p,y:m+1,w:l-2,h:c-2,radius:y}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(b,m,l,c),t.strokeRect(b,m,l,c),t.fillStyle=r.backgroundColor,t.fillRect(p,m+1,l-2,c-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,i,n){const{body:s}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:c,boxWidth:l,boxPadding:h}=n,u=dt(n.bodyFont);let d=u.lineHeight,f=0;const m=Se(n.rtl,this.x,this.width),b=function(O){i.fillText(O,m.x(t.x+f),t.y+d/2),t.y+=d+o},p=m.textAlign(r);let y,x,v,k,_,M,S;for(i.textAlign=r,i.textBaseline="middle",i.font=u.string,t.x=$i(this,p,n),i.fillStyle=n.bodyColor,V(this.beforeBody,b),f=a&&p!=="right"?r==="center"?l/2+h:l+2+h:0,k=0,M=s.length;k<M;++k){for(y=s[k],x=this.labelTextColors[k],i.fillStyle=x,V(y.before,b),v=y.lines,a&&v.length&&(this._drawColorBox(i,t,k,m,n),d=Math.max(u.lineHeight,c)),_=0,S=v.length;_<S;++_)b(v[_]),d=u.lineHeight;V(y.after,b)}f=0,d=u.lineHeight,V(this.afterBody,b),t.y-=o}drawFooter(t,i,n){const s=this.footer,o=s.length;let r,a;if(o){const c=Se(n.rtl,this.x,this.width);for(t.x=$i(this,n.footerAlign,n),t.y+=n.footerMarginTop,i.textAlign=c.textAlign(n.footerAlign),i.textBaseline="middle",r=dt(n.footerFont),i.fillStyle=n.footerColor,i.font=r.string,a=0;a<o;++a)i.fillText(s[a],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+n.footerSpacing}}drawBackground(t,i,n,s){const{xAlign:o,yAlign:r}=this,{x:a,y:c}=t,{width:l,height:h}=n,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:m}=we(s.cornerRadius);i.fillStyle=s.backgroundColor,i.strokeStyle=s.borderColor,i.lineWidth=s.borderWidth,i.beginPath(),i.moveTo(a+u,c),r==="top"&&this.drawCaret(t,i,n,s),i.lineTo(a+l-d,c),i.quadraticCurveTo(a+l,c,a+l,c+d),r==="center"&&o==="right"&&this.drawCaret(t,i,n,s),i.lineTo(a+l,c+h-m),i.quadraticCurveTo(a+l,c+h,a+l-m,c+h),r==="bottom"&&this.drawCaret(t,i,n,s),i.lineTo(a+f,c+h),i.quadraticCurveTo(a,c+h,a,c+h-f),r==="center"&&o==="left"&&this.drawCaret(t,i,n,s),i.lineTo(a,c+u),i.quadraticCurveTo(a,c,a+u,c),i.closePath(),i.fill(),s.borderWidth>0&&i.stroke()}_updateAnimationTarget(t){const i=this.chart,n=this.$animations,s=n&&n.x,o=n&&n.y;if(s||o){const r=ai[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=er(this,t),c=Object.assign({},r,this._size),l=ir(i,t,c),h=nr(t,c,l,i);(s._to!==h.x||o._to!==h.y)&&(this.xAlign=l.xAlign,this.yAlign=l.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const i=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(i);const s={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const r=pt(i.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,s,i),fo(t,i.textDirection),o.y+=r.top,this.drawTitle(o,t,i),this.drawBody(o,t,i),this.drawFooter(o,t,i),go(t,i.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,i){const n=this._active,s=t.map(({datasetIndex:a,index:c})=>{const l=this.chart.getDatasetMeta(a);if(!l)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:l.data[c],index:c}}),o=!mi(n,s),r=this._positionChanged(s,i);(o||r)&&(this._active=s,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,i,n=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,o=this._active||[],r=this._getActiveElements(t,o,i,n),a=this._positionChanged(r,t),c=i||!mi(r,o)||a;return c&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,i))),c}_getActiveElements(t,i,n,s){const o=this.options;if(t.type==="mouseout")return[];if(!s)return i.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&r.reverse(),r}_positionChanged(t,i){const{caretX:n,caretY:s,options:o}=this,r=ai[o.position].call(this,t,i);return r!==!1&&(n!==r.x||s!==r.y)}}T(Un,"positioners",ai);var Gh={id:"tooltip",_element:Un,positioners:ai,afterInit(e,t,i){i&&(e.tooltip=new Un({chart:e,options:i}))},beforeUpdate(e,t,i){e.tooltip&&e.tooltip.initialize(i)},reset(e,t,i){e.tooltip&&e.tooltip.initialize(i)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const i={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",i)}},afterEvent(e,t){if(e.tooltip){const i=t.replay;e.tooltip.handleEvent(t.event,i,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:rr},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Zh(e,t){const i=[],{bounds:s,step:o,min:r,max:a,precision:c,count:l,maxTicks:h,maxDigits:u,includeBounds:d}=e,f=o||1,m=h-1,{min:b,max:p}=t,y=!J(r),x=!J(a),v=!J(l),k=(p-b)/(u+1);let _=Ws((p-b)/m/f)*f,M,S,O,A;if(_<1e-14&&!y&&!x)return[{value:b},{value:p}];A=Math.ceil(p/_)-Math.floor(b/_),A>m&&(_=Ws(A*_/m/f)*f),J(c)||(M=Math.pow(10,c),_=Math.ceil(_*M)/M),s==="ticks"?(S=Math.floor(b/_)*_,O=Math.ceil(p/_)*_):(S=b,O=p),y&&x&&o&&pc((a-r)/o,_/1e3)?(A=Math.round(Math.min((a-r)/_,h)),_=(a-r)/A,S=r,O=a):v?(S=y?r:S,O=x?a:O,A=l-1,_=(O-S)/A):(A=(O-S)/_,vi(A,Math.round(A),_/1e3)?A=Math.round(A):A=Math.ceil(A));const L=Math.max(Hs(_),Hs(S));M=Math.pow(10,J(c)?L:c),S=Math.round(S*M)/M,O=Math.round(O*M)/M;let R=0;for(y&&(d&&S!==r?(i.push({value:r}),S<r&&R++,vi(Math.round((S+R*_)*M)/M,r,ar(r,k,e))&&R++):S<r&&R++);R<A;++R){const I=Math.round((S+R*_)*M)/M;if(x&&I>a)break;i.push({value:I})}return x&&d&&O!==a?i.length&&vi(i[i.length-1].value,a,ar(a,k,e))?i[i.length-1].value=a:i.push({value:a}):(!x||O===a)&&i.push({value:O}),i}function ar(e,t,{horizontal:i,minRotation:n}){const s=jt(n),o=(i?Math.sin(s):Math.cos(s))||.001,r=.75*t*(""+e).length;return Math.min(t/o,r)}class Vi extends Me{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,i){return J(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:i,maxDefined:n}=this.getUserBounds();let{min:s,max:o}=this;const r=c=>s=i?s:c,a=c=>o=n?o:c;if(t){const c=_i(s),l=_i(o);c<0&&l<0?a(0):c>0&&l>0&&r(0)}if(s===o){let c=o===0?1:Math.abs(o*.05);a(o+c),t||r(s-c)}this.min=s,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:i,stepSize:n}=t,s;return n?(s=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),i=i||11),i&&(s=Math.min(i,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,i=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const s={maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:i.precision,step:i.stepSize,count:i.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:i.minRotation||0,includeBounds:i.includeBounds!==!1},o=this._range||this,r=Zh(s,o);return t.bounds==="ticks"&&Bs(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let i=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const s=(n-i)/Math.max(t.length-1,1)/2;i-=s,n+=s}this._startValue=i,this._endValue=n,this._valueRange=n-i}getLabelForValue(t){return Mi(t,this.chart.options.locale,this.options.ticks.format)}}class cr extends Vi{determineDataLimits(){const{min:t,max:i}=this.getMinMax(!0);this.min=lt(t)?t:0,this.max=lt(i)?i:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),i=t?this.width:this.height,n=jt(this.options.ticks.minRotation),s=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(i/Math.min(40,o.lineHeight/s))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}T(cr,"id","linear"),T(cr,"defaults",{ticks:{callback:Ci.formatters.numeric}});const ci=e=>Math.floor(Jt(e)),de=(e,t)=>Math.pow(10,ci(e)+t);function lr(e){return e/Math.pow(10,ci(e))===1}function hr(e,t,i){const n=Math.pow(10,i),s=Math.floor(e/n);return Math.ceil(t/n)-s}function Jh(e,t){const i=t-e;let n=ci(i);for(;hr(e,t,n)>10;)n++;for(;hr(e,t,n)<10;)n--;return Math.min(n,ci(e))}function Qh(e,{min:t,max:i}){t=wt(e.min,t);const n=[],s=ci(t);let o=Jh(t,i),r=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),c=s>o?Math.pow(10,s):0,l=Math.round((t-c)*r)/r,h=Math.floor((t-c)/a/10)*a*10;let u=Math.floor((l-h)/Math.pow(10,o)),d=wt(e.min,Math.round((c+h+u*Math.pow(10,o))*r)/r);for(;d<i;)n.push({value:d,major:lr(d),significand:u}),u>=10?u=u<15?15:20:u++,u>=20&&(o++,u=2,r=o>=0?1:r),d=Math.round((c+h+u*Math.pow(10,o))*r)/r;const f=wt(e.max,d);return n.push({value:f,major:lr(f),significand:u}),n}class ur extends Me{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,i){const n=Vi.prototype.parse.apply(this,[t,i]);if(n===0){this._zero=!0;return}return lt(n)&&n>0?n:null}determineDataLimits(){const{min:t,max:i}=this.getMinMax(!0);this.min=lt(t)?Math.max(0,t):null,this.max=lt(i)?Math.max(0,i):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!lt(this._userMin)&&(this.min=t===de(this.min,0)?de(this.min,-1):de(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:i}=this.getUserBounds();let n=this.min,s=this.max;const o=a=>n=t?n:a,r=a=>s=i?s:a;n===s&&(n<=0?(o(1),r(10)):(o(de(n,-1)),r(de(s,1)))),n<=0&&o(de(s,-1)),s<=0&&r(de(n,1)),this.min=n,this.max=s}buildTicks(){const t=this.options,i={min:this._userMin,max:this._userMax},n=Qh(i,this);return t.bounds==="ticks"&&Bs(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}getLabelForValue(t){return t===void 0?"0":Mi(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Jt(t),this._valueRange=Jt(this.max)-Jt(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Jt(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const i=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+i*this._valueRange)}}T(ur,"id","logarithmic"),T(ur,"defaults",{ticks:{callback:Ci.formatters.logarithmic,major:{enabled:!0}}});function Xn(e){const t=e.ticks;if(t.display&&e.display){const i=pt(t.backdropPadding);return B(t.font&&t.font.size,et.font.size)+i.height}return 0}function tu(e,t,i){return i=nt(i)?i:[i],{w:Dc(e,t.string,i),h:i.length*t.lineHeight}}function dr(e,t,i,n,s){return e===n||e===s?{start:t-i/2,end:t+i/2}:e<n||e>s?{start:t-i,end:t}:{start:t,end:t+i}}function eu(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},i=Object.assign({},t),n=[],s=[],o=e._pointLabels.length,r=e.options.pointLabels,a=r.centerPointLabels?rt/o:0;for(let c=0;c<o;c++){const l=r.setContext(e.getPointLabelContext(c));s[c]=l.padding;const h=e.getPointPosition(c,e.drawingArea+s[c],a),u=dt(l.font),d=tu(e.ctx,u,e._pointLabels[c]);n[c]=d;const f=zt(e.getIndexAngle(c)+a),m=Math.round(Sn(f)),b=dr(m,h.x,d.w,0,180),p=dr(m,h.y,d.h,90,270);iu(i,t,f,b,p)}e.setCenterPoint(t.l-i.l,i.r-t.r,t.t-i.t,i.b-t.b),e._pointLabelItems=ou(e,n,s)}function iu(e,t,i,n,s){const o=Math.abs(Math.sin(i)),r=Math.abs(Math.cos(i));let a=0,c=0;n.start<t.l?(a=(t.l-n.start)/o,e.l=Math.min(e.l,t.l-a)):n.end>t.r&&(a=(n.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),s.start<t.t?(c=(t.t-s.start)/r,e.t=Math.min(e.t,t.t-c)):s.end>t.b&&(c=(s.end-t.b)/r,e.b=Math.max(e.b,t.b+c))}function nu(e,t,i){const n=e.drawingArea,{extra:s,additionalAngle:o,padding:r,size:a}=i,c=e.getPointPosition(t,n+s+r,o),l=Math.round(Sn(zt(c.angle+st))),h=cu(c.y,a.h,l),u=ru(l),d=au(c.x,a.w,u);return{visible:!0,x:c.x,y:h,textAlign:u,left:d,top:h,right:d+a.w,bottom:h+a.h}}function su(e,t){if(!t)return!0;const{left:i,top:n,right:s,bottom:o}=e;return!(_e({x:i,y:n},t)||_e({x:i,y:o},t)||_e({x:s,y:n},t)||_e({x:s,y:o},t))}function ou(e,t,i){const n=[],s=e._pointLabels.length,o=e.options,{centerPointLabels:r,display:a}=o.pointLabels,c={extra:Xn(o)/2,additionalAngle:r?rt/s:0};let l;for(let h=0;h<s;h++){c.padding=i[h],c.size=t[h];const u=nu(e,h,c);n.push(u),a==="auto"&&(u.visible=su(u,l),u.visible&&(l=u))}return n}function ru(e){return e===0||e===180?"center":e<180?"left":"right"}function au(e,t,i){return i==="right"?e-=t:i==="center"&&(e-=t/2),e}function cu(e,t,i){return i===90||i===270?e-=t/2:(i>270||i<90)&&(e-=t),e}function lu(e,t,i){const{left:n,top:s,right:o,bottom:r}=i,{backdropColor:a}=t;if(!J(a)){const c=we(t.borderRadius),l=pt(t.backdropPadding);e.fillStyle=a;const h=n-l.left,u=s-l.top,d=o-n+l.width,f=r-s+l.height;Object.values(c).some(m=>m!==0)?(e.beginPath(),Pi(e,{x:h,y:u,w:d,h:f,radius:c}),e.fill()):e.fillRect(h,u,d,f)}}function hu(e,t){const{ctx:i,options:{pointLabels:n}}=e;for(let s=t-1;s>=0;s--){const o=e._pointLabelItems[s];if(!o.visible)continue;const r=n.setContext(e.getPointLabelContext(s));lu(i,r,o);const a=dt(r.font),{x:c,y:l,textAlign:h}=o;ve(i,e._pointLabels[s],c,l+a.lineHeight/2,a,{color:r.color,textAlign:h,textBaseline:"middle"})}}function fr(e,t,i,n){const{ctx:s}=e;if(i)s.arc(e.xCenter,e.yCenter,t,0,tt);else{let o=e.getPointPosition(0,t);s.moveTo(o.x,o.y);for(let r=1;r<n;r++)o=e.getPointPosition(r,t),s.lineTo(o.x,o.y)}}function uu(e,t,i,n,s){const o=e.ctx,r=t.circular,{color:a,lineWidth:c}=t;!r&&!n||!a||!c||i<0||(o.save(),o.strokeStyle=a,o.lineWidth=c,o.setLineDash(s.dash),o.lineDashOffset=s.dashOffset,o.beginPath(),fr(e,i,r,n),o.closePath(),o.stroke(),o.restore())}function du(e,t,i){return ae(e,{label:i,index:t,type:"pointLabel"})}class Yi extends Vi{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=pt(Xn(this.options)/2),i=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+i/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(i,n)/2)}determineDataLimits(){const{min:t,max:i}=this.getMinMax(!1);this.min=lt(t)&&!isNaN(t)?t:0,this.max=lt(i)&&!isNaN(i)?i:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Xn(this.options))}generateTickLabels(t){Vi.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((i,n)=>{const s=q(this.options.pointLabels.callback,[i,n],this);return s||s===0?s:""}).filter((i,n)=>this.chart.getDataVisibility(n))}fit(){const t=this.options;t.display&&t.pointLabels.display?eu(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,i,n,s){this.xCenter+=Math.floor((t-i)/2),this.yCenter+=Math.floor((n-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,i,n,s))}getIndexAngle(t){const i=tt/(this._pointLabels.length||1),n=this.options.startAngle||0;return zt(t*i+jt(n))}getDistanceFromCenterForValue(t){if(J(t))return NaN;const i=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*i:(t-this.min)*i}getValueForDistanceFromCenter(t){if(J(t))return NaN;const i=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-i:this.min+i}getPointLabelContext(t){const i=this._pointLabels||[];if(t>=0&&t<i.length){const n=i[t];return du(this.getContext(),t,n)}}getPointPosition(t,i,n=0){const s=this.getIndexAngle(t)-st+n;return{x:Math.cos(s)*i+this.xCenter,y:Math.sin(s)*i+this.yCenter,angle:s}}getPointPositionForValue(t,i){return this.getPointPosition(t,this.getDistanceFromCenterForValue(i))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:i,top:n,right:s,bottom:o}=this._pointLabelItems[t];return{left:i,top:n,right:s,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:i}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),fr(this,this.getDistanceFromCenterForValue(this._endValue),i,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,i=this.options,{angleLines:n,grid:s,border:o}=i,r=this._pointLabels.length;let a,c,l;if(i.pointLabels.display&&hu(this,r),s.display&&this.ticks.forEach((h,u)=>{if(u!==0||u===0&&this.min<0){c=this.getDistanceFromCenterForValue(h.value);const d=this.getContext(u),f=s.setContext(d),m=o.setContext(d);uu(this,f,c,r,m)}}),n.display){for(t.save(),a=r-1;a>=0;a--){const h=n.setContext(this.getPointLabelContext(a)),{color:u,lineWidth:d}=h;!d||!u||(t.lineWidth=d,t.strokeStyle=u,t.setLineDash(h.borderDash),t.lineDashOffset=h.borderDashOffset,c=this.getDistanceFromCenterForValue(i.ticks.reverse?this.min:this.max),l=this.getPointPosition(a,c),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,i=this.options,n=i.ticks;if(!n.display)return;const s=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,c)=>{if(c===0&&this.min>=0&&!i.reverse)return;const l=n.setContext(this.getContext(c)),h=dt(l.font);if(o=this.getDistanceFromCenterForValue(this.ticks[c].value),l.showLabelBackdrop){t.font=h.string,r=t.measureText(a.label).width,t.fillStyle=l.backdropColor;const u=pt(l.backdropPadding);t.fillRect(-r/2-u.left,-o-h.size/2-u.top,r+u.width,h.size+u.height)}ve(t,a.label,0,-o,h,{color:l.color,strokeColor:l.textStrokeColor,strokeWidth:l.textStrokeWidth})}),t.restore()}drawTitle(){}}T(Yi,"id","radialLinear"),T(Yi,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ci.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),T(Yi,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),T(Yi,"descriptors",{angleLines:{_fallback:"grid"}});const Ui={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},xt=Object.keys(Ui);function gr(e,t){return e-t}function pr(e,t){if(J(t))return null;const i=e._adapter,{parser:n,round:s,isoWeekday:o}=e._parseOpts;let r=t;return typeof n=="function"&&(r=n(r)),lt(r)||(r=typeof n=="string"?i.parse(r,n):i.parse(r)),r===null?null:(s&&(r=s==="week"&&(wi(o)||o===!0)?i.startOf(r,"isoWeek",o):i.startOf(r,s)),+r)}function mr(e,t,i,n){const s=xt.length;for(let o=xt.indexOf(e);o<s-1;++o){const r=Ui[xt[o]],a=r.steps?r.steps:Number.MAX_SAFE_INTEGER;if(r.common&&Math.ceil((i-t)/(a*r.size))<=n)return xt[o]}return xt[s-1]}function fu(e,t,i,n,s){for(let o=xt.length-1;o>=xt.indexOf(i);o--){const r=xt[o];if(Ui[r].common&&e._adapter.diff(s,n,r)>=t-1)return r}return xt[i?xt.indexOf(i):0]}function gu(e){for(let t=xt.indexOf(e)+1,i=xt.length;t<i;++t)if(Ui[xt[t]].common)return xt[t]}function br(e,t,i){if(!i)e[t]=!0;else if(i.length){const{lo:n,hi:s}=Mn(i,t),o=i[n]>=t?i[n]:i[s];e[o]=!0}}function pu(e,t,i,n){const s=e._adapter,o=+s.startOf(t[0].value,n),r=t[t.length-1].value;let a,c;for(a=o;a<=r;a=+s.add(a,1,n))c=i[a],c>=0&&(t[c].major=!0);return t}function yr(e,t,i){const n=[],s={},o=t.length;let r,a;for(r=0;r<o;++r)a=t[r],s[a]=r,n.push({value:a,major:!1});return o===0||!i?n:pu(e,n,s,i)}class Xi extends Me{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,i={}){const n=t.time||(t.time={}),s=this._adapter=new wl._date(t.adapters.date);s.init(i),Ye(n.displayFormats,s.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=i.normalized}parse(t,i){return t===void 0?null:pr(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,i=this._adapter,n=t.time.unit||"day";let{min:s,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function c(l){!r&&!isNaN(l.min)&&(s=Math.min(s,l.min)),!a&&!isNaN(l.max)&&(o=Math.max(o,l.max))}(!r||!a)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),s=lt(s)&&!isNaN(s)?s:+i.startOf(Date.now(),n),o=lt(o)&&!isNaN(o)?o:+i.endOf(Date.now(),n)+1,this.min=Math.min(s,o-1),this.max=Math.max(s+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let i=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(i=t[0],n=t[t.length-1]),{min:i,max:n}}buildTicks(){const t=this.options,i=t.time,n=t.ticks,s=n.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const o=this.min,r=this.max,a=xc(s,o,r);return this._unit=i.unit||(n.autoSkip?mr(i.minUnit,this.min,this.max,this._getLabelCapacity(o)):fu(this,a.length,i.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:gu(this._unit),this.initOffsets(s),t.reverse&&a.reverse(),yr(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let i=0,n=0,s,o;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?i=1-s:i=(this.getDecimalForValue(t[1])-s)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?n=o:n=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;i=Ot(i,0,r),n=Ot(n,0,r),this._offsets={start:i,end:n,factor:1/(i+1+n)}}_generate(){const t=this._adapter,i=this.min,n=this.max,s=this.options,o=s.time,r=o.unit||mr(o.minUnit,i,n,this._getLabelCapacity(i)),a=B(s.ticks.stepSize,1),c=r==="week"?o.isoWeekday:!1,l=wi(c)||c===!0,h={};let u=i,d,f;if(l&&(u=+t.startOf(u,"isoWeek",c)),u=+t.startOf(u,l?"day":r),t.diff(n,i,r)>1e5*a)throw new Error(i+" and "+n+" are too far apart with stepSize of "+a+" "+r);const m=s.ticks.source==="data"&&this.getDataTimestamps();for(d=u,f=0;d<n;d=+t.add(d,a,r),f++)br(h,d,m);return(d===n||s.bounds==="ticks"||f===1)&&br(h,d,m),Object.keys(h).sort(gr).map(b=>+b)}getLabelForValue(t){const i=this._adapter,n=this.options.time;return n.tooltipFormat?i.format(t,n.tooltipFormat):i.format(t,n.displayFormats.datetime)}format(t,i){const s=this.options.time.displayFormats,o=this._unit,r=i||s[o];return this._adapter.format(t,r)}_tickFormatFunction(t,i,n,s){const o=this.options,r=o.ticks.callback;if(r)return q(r,[t,i,n],this);const a=o.time.displayFormats,c=this._unit,l=this._majorUnit,h=c&&a[c],u=l&&a[l],d=n[i],f=l&&u&&d&&d.major;return this._adapter.format(t,s||(f?u:h))}generateTickLabels(t){let i,n,s;for(i=0,n=t.length;i<n;++i)s=t[i],s.label=this._tickFormatFunction(s.value,i,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const i=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((i.start+n)*i.factor)}getValueForPixel(t){const i=this._offsets,n=this.getDecimalForPixel(t)/i.factor-i.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const i=this.options.ticks,n=this.ctx.measureText(t).width,s=jt(this.isHorizontal()?i.maxRotation:i.minRotation),o=Math.cos(s),r=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:n*o+a*r,h:n*r+a*o}}_getLabelCapacity(t){const i=this.options.time,n=i.displayFormats,s=n[i.unit]||n.millisecond,o=this._tickFormatFunction(t,0,yr(this,[t],this._majorUnit),s),r=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],i,n;if(t.length)return t;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(i=0,n=s.length;i<n;++i)t=t.concat(s[i].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let i,n;if(t.length)return t;const s=this.getLabels();for(i=0,n=s.length;i<n;++i)t.push(pr(this,s[i]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return vc(t.sort(gr))}}T(Xi,"id","time"),T(Xi,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Ki(e,t,i){let n=0,s=e.length-1,o,r,a,c;i?(t>=e[n].pos&&t<=e[s].pos&&({lo:n,hi:s}=Cn(e,"pos",t)),{pos:o,time:a}=e[n],{pos:r,time:c}=e[s]):(t>=e[n].time&&t<=e[s].time&&({lo:n,hi:s}=Cn(e,"time",t)),{time:o,pos:a}=e[n],{time:r,pos:c}=e[s]);const l=r-o;return l?a+(c-a)*(t-o)/l:a}class xr extends Xi{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),i=this._table=this.buildLookupTable(t);this._minPos=Ki(i,this.min),this._tableRange=Ki(i,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:i,max:n}=this,s=[],o=[];let r,a,c,l,h;for(r=0,a=t.length;r<a;++r)l=t[r],l>=i&&l<=n&&s.push(l);if(s.length<2)return[{time:i,pos:0},{time:n,pos:1}];for(r=0,a=s.length;r<a;++r)h=s[r+1],c=s[r-1],l=s[r],Math.round((h+c)/2)!==l&&o.push({time:l,pos:r/(a-1)});return o}_generate(){const t=this.min,i=this.max;let n=super.getDataTimestamps();return(!n.includes(t)||!n.length)&&n.splice(0,0,t),(!n.includes(i)||n.length===1)&&n.push(i),n.sort((s,o)=>s-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const i=this.getDataTimestamps(),n=this.getLabelTimestamps();return i.length&&n.length?t=this.normalize(i.concat(n)):t=i.length?i:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Ki(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const i=this._offsets,n=this.getDecimalForPixel(t)/i.factor-i.end;return Ki(this._table,n*this._tableRange+this._minPos,!0)}}T(xr,"id","timeseries"),T(xr,"defaults",Xi.defaults);const _r="label";function vr(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function mu(e,t){const i=e.options;i&&t&&Object.assign(i,t)}function wr(e,t){e.labels=t}function kr(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_r;const n=[];e.datasets=t.map(s=>{const o=e.datasets.find(r=>r[i]===s[i]);return!o||!s.data||n.includes(o)?{...s}:(n.push(o),Object.assign(o,s),o)})}function bu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_r;const i={labels:[],datasets:[]};return wr(i,e.labels),kr(i,e.datasets,t),i}function yu(e,t){const{height:i=150,width:n=300,redraw:s=!1,datasetIdKey:o,type:r,data:a,options:c,plugins:l=[],fallbackContent:h,updateMode:u,...d}=e,f=P.useRef(null),m=P.useRef(),b=()=>{f.current&&(m.current=new Bi(f.current,{type:r,data:bu(a,o),options:c&&{...c},plugins:l}),vr(t,m.current))},p=()=>{vr(t,null),m.current&&(m.current.destroy(),m.current=null)};return P.useEffect(()=>{!s&&m.current&&c&&mu(m.current,c)},[s,c]),P.useEffect(()=>{!s&&m.current&&wr(m.current.config.data,a.labels)},[s,a.labels]),P.useEffect(()=>{!s&&m.current&&a.datasets&&kr(m.current.config.data,a.datasets,o)},[s,a.datasets]),P.useEffect(()=>{m.current&&(s?(p(),setTimeout(b)):m.current.update(u))},[s,c,a.labels,a.datasets,u]),P.useEffect(()=>{m.current&&(p(),setTimeout(b))},[r]),P.useEffect(()=>(b(),()=>p()),[]),P.createElement("canvas",Object.assign({ref:f,role:"img",height:i,width:n},d),h)}const xu=P.forwardRef(yu);function _u(e,t){return Bi.register(t),P.forwardRef((i,n)=>P.createElement(xu,Object.assign({},i,{ref:n,type:e})))}const vu=_u("doughnut",Je),wu={label:"text-xl font-bold text-primary",flex:"flex justify-between items-center",center:"flex justify-center items-center"};var Oe=(e=>(e.info="#939799",e.danger="#E55257",e.opaque="#DFDFDF",e.success="#9AC873",e.warning="#F1A946",e.quinary="#F5C37E",e.primary="#316772",e.secondary="#65BFB1",e.darkened="#464646",e.disabled="#F3F3F3",e))(Oe||{});function ku(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}Bi.register(ri,Gh,Hh);const Su=P.memo(({flex:e,label:t,width:i,height:n,aspect:s=!0,closed:o,partials:r=[],textStyle:a,fontStyle:c="bold 18pt sans-serif",className:l,innerText:h,disabled:u})=>{const d=P.useRef(),f=P.useMemo(()=>o?{labels:[],datasets:[{data:[100],label:"Etapa",borderWidth:2,hoverOffset:4,borderColor:"#FFFFFF",backgroundColor:[Oe.secondary],hoverBackgroundColor:[Oe.secondary]}]}:u?{labels:[],datasets:[{data:[100],label:"Etapa",borderWidth:2,hoverOffset:4,borderColor:"#FFFFFF",backgroundColor:[o?Oe.secondary:"#DFDFDF"],hoverBackgroundColor:[o?Oe.secondary:"#DFDFDF"]}]}:{labels:r.map(p=>ku(p.level)),datasets:[{label:"Etapa",hoverOffset:4,backgroundColor:r.map(p=>p.color),hoverBackgroundColor:r.map(p=>p.color),data:r.map(p=>Number.parseFloat(p.percent))}]},[o,u,r]),m=P.useMemo(()=>({id:"textCenterPlugin",beforeDatasetDraw(p){var y,x,v,k;h&&c&&(p.ctx.save(),p.ctx.fillStyle=Oe.primary,p.ctx.textAlign="center",p.ctx.textBaseline="middle",p.ctx.font=c,p.ctx.fillText(h,(x=(y=p==null?void 0:p.getDatasetMeta(0))==null?void 0:y.data[0])==null?void 0:x.x,(k=(v=p==null?void 0:p.getDatasetMeta(0))==null?void 0:v.data[0])==null?void 0:k.y))}}),[h,c]),b=h?[m]:[];return ut.jsxs("div",{className:Rt(l&&l),children:[ut.jsx("div",{className:Rt(e&&"flex justify-center items-center"),children:ut.jsx(vu,{ref:d.current,plugins:b,options:{maintainAspectRatio:s,plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(p){var y;return u?t:` Cursos: ${((y=r[p.dataIndex])==null?void 0:y.count)??0}`}}}}},data:f,width:i,height:n})}),ut.jsx("br",{}),ut.jsx("div",{className:Rt(a&&a,u&&"opacity-50","flex justify-center items-center text-center"),children:ut.jsx("h3",{className:wu.label,children:t})})]})}),Kn={container:{root:"flex items-center relative ",label:"ml-2 text-sm font-medium text-gray-900 dark:text-gray-300",input:"h-6 w-6 rounded-md"}};var _t=function(){return _t=Object.assign||function(t){for(var i,n=1,s=arguments.length;n<s;n++){i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},_t.apply(this,arguments)};function Pe(e,t,i){if(i||arguments.length===2)for(var n=0,s=t.length,o;n<s;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Mu(e){var t=Object.create(null);return function(i){return t[i]===void 0&&(t[i]=e(i)),t[i]}}var Cu=/^((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)-.*))$/,Ou=Mu(function(e){return Cu.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),G="-ms-",li="-moz-",H="-webkit-",Sr="comm",qi="rule",qn="decl",Pu="@import",Mr="@keyframes",Au="@layer",Cr=Math.abs,Gn=String.fromCharCode,Zn=Object.assign;function Eu(e,t){return ht(e,0)^45?(((t<<2^ht(e,0))<<2^ht(e,1))<<2^ht(e,2))<<2^ht(e,3):0}function Or(e){return e.trim()}function Xt(e,t){return(e=t.exec(e))?e[0]:e}function D(e,t,i){return e.replace(t,i)}function Gi(e,t,i){return e.indexOf(t,i)}function ht(e,t){return e.charCodeAt(t)|0}function Ae(e,t,i){return e.slice(t,i)}function Bt(e){return e.length}function Pr(e){return e.length}function hi(e,t){return t.push(e),e}function Tu(e,t){return e.map(t).join("")}function Ar(e,t){return e.filter(function(i){return!Xt(i,t)})}var Zi=1,Ee=1,Er=0,Pt=0,at=0,Te="";function Ji(e,t,i,n,s,o,r,a){return{value:e,root:t,parent:i,type:n,props:s,children:o,line:Zi,column:Ee,length:r,return:"",siblings:a}}function te(e,t){return Zn(Ji("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Re(e){for(;e.root;)e=te(e.root,{children:[e]});hi(e,e.siblings)}function Ru(){return at}function Du(){return at=Pt>0?ht(Te,--Pt):0,Ee--,at===10&&(Ee=1,Zi--),at}function Dt(){return at=Pt<Er?ht(Te,Pt++):0,Ee++,at===10&&(Ee=1,Zi++),at}function fe(){return ht(Te,Pt)}function Qi(){return Pt}function tn(e,t){return Ae(Te,e,t)}function Jn(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 Lu(e){return Zi=Ee=1,Er=Bt(Te=e),Pt=0,[]}function Iu(e){return Te="",e}function Qn(e){return Or(tn(Pt-1,ts(e===91?e+2:e===40?e+1:e)))}function Fu(e){for(;(at=fe())&&at<33;)Dt();return Jn(e)>2||Jn(at)>3?"":" "}function ju(e,t){for(;--t&&Dt()&&!(at<48||at>102||at>57&&at<65||at>70&&at<97););return tn(e,Qi()+(t<6&&fe()==32&&Dt()==32))}function ts(e){for(;Dt();)switch(at){case e:return Pt;case 34:case 39:e!==34&&e!==39&&ts(at);break;case 40:e===41&&ts(e);break;case 92:Dt();break}return Pt}function zu(e,t){for(;Dt()&&e+at!==57;)if(e+at===84&&fe()===47)break;return"/*"+tn(t,Pt-1)+"*"+Gn(e===47?e:Dt())}function Nu(e){for(;!Jn(fe());)Dt();return tn(e,Pt)}function Wu(e){return Iu(en("",null,null,null,[""],e=Lu(e),0,[0],e))}function en(e,t,i,n,s,o,r,a,c){for(var l=0,h=0,u=r,d=0,f=0,m=0,b=1,p=1,y=1,x=0,v="",k=s,_=o,M=n,S=v;p;)switch(m=x,x=Dt()){case 40:if(m!=108&&ht(S,u-1)==58){Gi(S+=D(Qn(x),"&","&\f"),"&\f",Cr(l?a[l-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:S+=Qn(x);break;case 9:case 10:case 13:case 32:S+=Fu(m);break;case 92:S+=ju(Qi()-1,7);continue;case 47:switch(fe()){case 42:case 47:hi(Bu(zu(Dt(),Qi()),t,i,c),c);break;default:S+="/"}break;case 123*b:a[l++]=Bt(S)*y;case 125*b:case 59:case 0:switch(x){case 0:case 125:p=0;case 59+h:y==-1&&(S=D(S,/\f/g,"")),f>0&&Bt(S)-u&&hi(f>32?Rr(S+";",n,i,u-1,c):Rr(D(S," ","")+";",n,i,u-2,c),c);break;case 59:S+=";";default:if(hi(M=Tr(S,t,i,l,h,s,a,v,k=[],_=[],u,o),o),x===123)if(h===0)en(S,t,M,M,k,o,u,a,_);else switch(d===99&&ht(S,3)===110?100:d){case 100:case 108:case 109:case 115:en(e,M,M,n&&hi(Tr(e,M,M,0,0,s,a,v,s,k=[],u,_),_),s,_,u,a,n?k:_);break;default:en(S,M,M,M,[""],_,0,a,_)}}l=h=f=0,b=y=1,v=S="",u=r;break;case 58:u=1+Bt(S),f=m;default:if(b<1){if(x==123)--b;else if(x==125&&b++==0&&Du()==125)continue}switch(S+=Gn(x),x*b){case 38:y=h>0?1:(S+="\f",-1);break;case 44:a[l++]=(Bt(S)-1)*y,y=1;break;case 64:fe()===45&&(S+=Qn(Dt())),d=fe(),h=u=Bt(v=S+=Nu(Qi())),x++;break;case 45:m===45&&Bt(S)==2&&(b=0)}}return o}function Tr(e,t,i,n,s,o,r,a,c,l,h,u){for(var d=s-1,f=s===0?o:[""],m=Pr(f),b=0,p=0,y=0;b<n;++b)for(var x=0,v=Ae(e,d+1,d=Cr(p=r[b])),k=e;x<m;++x)(k=Or(p>0?f[x]+" "+v:D(v,/&\f/g,f[x])))&&(c[y++]=k);return Ji(e,t,i,s===0?qi:a,c,l,h,u)}function Bu(e,t,i,n){return Ji(e,t,i,Sr,Gn(Ru()),Ae(e,2,-2),0,n)}function Rr(e,t,i,n,s){return Ji(e,t,i,qn,Ae(e,0,n),Ae(e,n+1,-1),n,s)}function Dr(e,t,i){switch(Eu(e,t)){case 5103:return H+"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 H+e+e;case 4789:return li+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+li+e+G+e+e;case 5936:switch(ht(e,t+11)){case 114:return H+e+G+D(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+G+D(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+G+D(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return H+e+G+e+e;case 6165:return H+e+G+"flex-"+e+e;case 5187:return H+e+D(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+G+"flex-$1$2")+e;case 5443:return H+e+G+"flex-item-"+D(e,/flex-|-self/g,"")+(Xt(e,/flex-|baseline/)?"":G+"grid-row-"+D(e,/flex-|-self/g,""))+e;case 4675:return H+e+G+"flex-line-pack"+D(e,/align-content|flex-|-self/g,"")+e;case 5548:return H+e+G+D(e,"shrink","negative")+e;case 5292:return H+e+G+D(e,"basis","preferred-size")+e;case 6060:return H+"box-"+D(e,"-grow","")+H+e+G+D(e,"grow","positive")+e;case 4554:return H+D(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return D(D(D(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return D(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return D(D(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+G+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4200:if(!Xt(e,/flex-|baseline/))return G+"grid-column-align"+Ae(e,t)+e;break;case 2592:case 3360:return G+D(e,"template-","")+e;case 4384:case 3616:return i&&i.some(function(n,s){return t=s,Xt(n.props,/grid-\w+-end/)})?~Gi(e+(i=i[t].value),"span",0)?e:G+D(e,"-start","")+e+G+"grid-row-span:"+(~Gi(i,"span",0)?Xt(i,/\d+/):+Xt(i,/\d+/)-+Xt(e,/\d+/))+";":G+D(e,"-start","")+e;case 4896:case 4128:return i&&i.some(function(n){return Xt(n.props,/grid-\w+-start/)})?e:G+D(D(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return D(e,/(.+)-inline(.+)/,H+"$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(Bt(e)-1-t>6)switch(ht(e,t+1)){case 109:if(ht(e,t+4)!==45)break;case 102:return D(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+li+(ht(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gi(e,"stretch",0)?Dr(D(e,"stretch","fill-available"),t,i)+e:e}break;case 5152:case 5920:return D(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,s,o,r,a,c,l){return G+s+":"+o+l+(r?G+s+"-span:"+(a?c:+c-+o)+l:"")+e});case 4949:if(ht(e,t+6)===121)return D(e,":",":"+H)+e;break;case 6444:switch(ht(e,ht(e,14)===45?18:11)){case 120:return D(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+H+(ht(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+G+"$2box$3")+e;case 100:return D(e,":",":"+G)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return D(e,"scroll-","scroll-snap-")+e}return e}function nn(e,t){for(var i="",n=0;n<e.length;n++)i+=t(e[n],n,e,t)||"";return i}function Hu(e,t,i,n){switch(e.type){case Au:if(e.children.length)break;case Pu:case qn:return e.return=e.return||e.value;case Sr:return"";case Mr:return e.return=e.value+"{"+nn(e.children,n)+"}";case qi:if(!Bt(e.value=e.props.join(",")))return""}return Bt(i=nn(e.children,n))?e.return=e.value+"{"+i+"}":""}function $u(e){var t=Pr(e);return function(i,n,s,o){for(var r="",a=0;a<t;a++)r+=e[a](i,n,s,o)||"";return r}}function Vu(e){return function(t){t.root||(t=t.return)&&e(t)}}function Yu(e,t,i,n){if(e.length>-1&&!e.return)switch(e.type){case qn:e.return=Dr(e.value,e.length,i);return;case Mr:return nn([te(e,{value:D(e.value,"@","@"+H)})],n);case qi:if(e.length)return Tu(i=e.props,function(s){switch(Xt(s,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Re(te(e,{props:[D(s,/:(read-\w+)/,":"+li+"$1")]})),Re(te(e,{props:[s]})),Zn(e,{props:Ar(i,n)});break;case"::placeholder":Re(te(e,{props:[D(s,/:(plac\w+)/,":"+H+"input-$1")]})),Re(te(e,{props:[D(s,/:(plac\w+)/,":"+li+"$1")]})),Re(te(e,{props:[D(s,/:(plac\w+)/,G+"input-$1")]})),Re(te(e,{props:[s]})),Zn(e,{props:Ar(i,n)});break}return""})}}var Uu={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},ge=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Lr="active",Ir="data-styled-version",sn="6.1.12",es=`/*!sc*/
48
+ `,on=typeof window<"u"&&"HTMLElement"in window,Xu=!!(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"),Fr=/invalid hook call/i,rn=new Set,Ku=function(e,t){if(process.env.NODE_ENV!=="production"){var i=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(i,` has been created dynamically.
32
49
  `)+`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.`,a=console.error;try{var i=!0;console.error=function(c){for(var f=[],u=1;u<arguments.length;u++)f[u-1]=arguments[u];ir.test(c)?(i=!1,Qe.delete(n)):a.apply(void 0,we([c],f,!1))},R.useRef(),i&&!Qe.has(n)&&(console.warn(n),Qe.add(n))}catch(c){ir.test(c.message)&&Qe.delete(n)}finally{console.error=a}}},et=Object.freeze([]),_e=Object.freeze({});function Nn(e,t,r){return r===void 0&&(r=_e),e.theme!==r.theme&&e.theme||t||r.theme}var Et=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"]),Dn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,In=/(^-|-$)/g;function sr(e){return e.replace(Dn,"-").replace(In,"")}var $n=/(a)(d)/gi,tt=52,cr=function(e){return String.fromCharCode(e+(e>25?39:97))};function xt(e){var t,r="";for(t=Math.abs(e);t>tt;t=t/tt|0)r=cr(t%tt)+r;return(cr(t%tt)+r).replace($n,"$1-$2")}var kt,ur=5381,me=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},lr=function(e){return me(ur,e)};function Fn(e){return xt(lr(e)>>>0)}function fr(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function _t(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var dr=typeof Symbol=="function"&&Symbol.for,hr=dr?Symbol.for("react.memo"):60115,Mn=dr?Symbol.for("react.forward_ref"):60112,zn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ln={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},pr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Wn=((kt={})[Mn]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},kt[hr]=pr,kt);function mr(e){return("type"in(t=e)&&t.type.$$typeof)===hr?pr:"$$typeof"in e?Wn[e.$$typeof]:zn;var t}var Vn=Object.defineProperty,Yn=Object.getOwnPropertyNames,gr=Object.getOwnPropertySymbols,Bn=Object.getOwnPropertyDescriptor,Un=Object.getPrototypeOf,yr=Object.prototype;function vr(e,t,r){if(typeof t!="string"){if(yr){var n=Un(t);n&&n!==yr&&vr(e,n,r)}var a=Yn(t);gr&&(a=a.concat(gr(t)));for(var i=mr(e),c=mr(t),f=0;f<a.length;++f){var u=a[f];if(!(u in Ln||r&&r[u]||c&&u in c||i&&u in i)){var w=Bn(t,u);try{Vn(e,u,w)}catch{}}}}return e}function Re(e){return typeof e=="function"}function Rt(e){return typeof e=="object"&&"styledComponentId"in e}function ge(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function br(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Ce(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ct(e,t,r){if(r===void 0&&(r=!1),!r&&!Ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Ct(e[n],t[n]);else if(Ce(t))for(var n in t)e[n]=Ct(e[n],t[n]);return e}function Ot(e,t){Object.defineProperty(e,"toString",{value:t})}var Gn=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
50
+ To resolve this only create new StyledComponents outside of any render method and function component.`,s=console.error;try{var o=!0;console.error=function(r){for(var a=[],c=1;c<arguments.length;c++)a[c-1]=arguments[c];Fr.test(r)?(o=!1,rn.delete(n)):s.apply(void 0,Pe([r],a,!1))},P.useRef(),o&&!rn.has(n)&&(console.warn(n),rn.add(n))}catch(r){Fr.test(r.message)&&rn.delete(n)}finally{console.error=s}}},an=Object.freeze([]),De=Object.freeze({});function qu(e,t,i){return i===void 0&&(i=De),e.theme!==i.theme&&e.theme||t||i.theme}var is=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"]),Gu=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Zu=/(^-|-$)/g;function jr(e){return e.replace(Gu,"-").replace(Zu,"")}var Ju=/(a)(d)/gi,cn=52,zr=function(e){return String.fromCharCode(e+(e>25?39:97))};function ns(e){var t,i="";for(t=Math.abs(e);t>cn;t=t/cn|0)i=zr(t%cn)+i;return(zr(t%cn)+i).replace(Ju,"$1-$2")}var ss,Nr=5381,pe=function(e,t){for(var i=t.length;i;)e=33*e^t.charCodeAt(--i);return e},Wr=function(e){return pe(Nr,e)};function Qu(e){return ns(Wr(e)>>>0)}function Br(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function os(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Hr=typeof Symbol=="function"&&Symbol.for,$r=Hr?Symbol.for("react.memo"):60115,td=Hr?Symbol.for("react.forward_ref"):60112,ed={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},id={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Vr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},nd=((ss={})[td]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ss[$r]=Vr,ss);function Yr(e){return("type"in(t=e)&&t.type.$$typeof)===$r?Vr:"$$typeof"in e?nd[e.$$typeof]:ed;var t}var sd=Object.defineProperty,od=Object.getOwnPropertyNames,Ur=Object.getOwnPropertySymbols,rd=Object.getOwnPropertyDescriptor,ad=Object.getPrototypeOf,Xr=Object.prototype;function Kr(e,t,i){if(typeof t!="string"){if(Xr){var n=ad(t);n&&n!==Xr&&Kr(e,n,i)}var s=od(t);Ur&&(s=s.concat(Ur(t)));for(var o=Yr(e),r=Yr(t),a=0;a<s.length;++a){var c=s[a];if(!(c in id||i&&i[c]||r&&c in r||o&&c in o)){var l=rd(t,c);try{sd(e,c,l)}catch{}}}}return e}function Le(e){return typeof e=="function"}function rs(e){return typeof e=="object"&&"styledComponentId"in e}function me(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function qr(e,t){if(e.length===0)return"";for(var i=e[0],n=1;n<e.length;n++)i+=e[n];return i}function Ie(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function as(e,t,i){if(i===void 0&&(i=!1),!i&&!Ie(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=as(e[n],t[n]);else if(Ie(t))for(var n in t)e[n]=as(e[n],t[n]);return e}function cs(e,t){Object.defineProperty(e,"toString",{value:t})}var cd=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
34
51
 
35
52
  `,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
53
 
@@ -71,7 +88,7 @@ as for instance in your render method then you may be running into this limitati
71
88
 
72
89
  `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
73
90
  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 Hn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],a=1,i=e.length;a<i;a+=1)n.push(e[a]);return n.forEach(function(c){r=r.replace(/%[a-z]/,c)}),r}function Oe(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(Hn.apply(void 0,we([Gn[e]],t,!1)).trim())}var qn=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,a=n.length,i=a;t>=i;)if((i<<=1)<0)throw Oe(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var c=a;c<i;c++)this.groupSizes[c]=0}for(var f=this.indexOfGroup(t+1),u=(c=0,r.length);c<u;c++)this.tag.insertRule(f,r[c])&&(this.groupSizes[t]++,f++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),a=n+r;this.groupSizes[t]=0;for(var i=n;i<a;i++)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],a=this.indexOfGroup(t),i=a+n,c=a;c<i;c++)r+="".concat(this.tag.getRule(c)).concat(St);return r},e}(),Kn=1<<30,rt=new Map,nt=new Map,ot=1,at=function(e){if(rt.has(e))return rt.get(e);for(;nt.has(ot);)ot++;var t=ot++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Kn))throw Oe(16,"".concat(t));return rt.set(e,t),nt.set(t,e),t},Xn=function(e,t){ot=t+1,rt.set(e,t),nt.set(t,e)},Jn="style[".concat(pe,"][").concat(ar,'="').concat(Je,'"]'),Zn=new RegExp("^".concat(pe,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Qn=function(e,t,r){for(var n,a=r.split(","),i=0,c=a.length;i<c;i++)(n=a[i])&&e.registerName(t,n)},eo=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(St),a=[],i=0,c=n.length;i<c;i++){var f=n[i].trim();if(f){var u=f.match(Zn);if(u){var w=0|parseInt(u[1],10),h=u[2];w!==0&&(Xn(h,w),Qn(e,h,u[3]),e.getTag().insertRules(w,a)),a.length=0}else a.push(f)}}},wr=function(e){for(var t=document.querySelectorAll(Jn),r=0,n=t.length;r<n;r++){var a=t[r];a&&a.getAttribute(pe)!==or&&(eo(e,a),a.parentNode&&a.parentNode.removeChild(a))}};function to(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Sr=function(e){var t=document.head,r=e||t,n=document.createElement("style"),a=function(f){var u=Array.from(f.querySelectorAll("style[".concat(pe,"]")));return u[u.length-1]}(r),i=a!==void 0?a.nextSibling:null;n.setAttribute(pe,or),n.setAttribute(ar,Je);var c=to();return c&&n.setAttribute("nonce",c),r.insertBefore(n,i),n},ro=function(){function e(t){this.element=Sr(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,a=0,i=n.length;a<i;a++){var c=n[a];if(c.ownerNode===r)return c}throw Oe(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}(),no=function(){function e(t){this.element=Sr(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}(),oo=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}(),Er=Ze,ao={isServer:!Ze,useCSSOMInjection:!jn},xr=function(){function e(t,r,n){t===void 0&&(t=_e),r===void 0&&(r={});var a=this;this.options=Y(Y({},ao),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Ze&&Er&&(Er=!1,wr(this)),Ot(this,function(){return function(i){for(var c=i.getTag(),f=c.length,u="",w=function(p){var v=function(C){return nt.get(C)}(p);if(v===void 0)return"continue";var S=i.names.get(v),T=c.getGroup(p);if(S===void 0||!S.size||T.length===0)return"continue";var D="".concat(pe,".g").concat(p,'[id="').concat(v,'"]'),L="";S!==void 0&&S.forEach(function(C){C.length>0&&(L+="".concat(C,","))}),u+="".concat(T).concat(D,'{content:"').concat(L,'"}').concat(St)},h=0;h<f;h++)w(h);return u}(a)})}return e.registerId=function(t){return at(t)},e.prototype.rehydrate=function(){!this.server&&Ze&&wr(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(Y(Y({},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,a=r.target;return r.isServer?new oo(a):n?new ro(a):new no(a)}(this.options),new qn(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(at(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(at(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(at(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),io=/&/g,so=/^\s*\/\/.*$/gm;function kr(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=kr(r.children,t)),r})}function co(e){var t,r,n,a=_e,i=a.options,c=i===void 0?_e:i,f=a.plugins,u=f===void 0?et:f,w=function(v,S,T){return T.startsWith(r)&&T.endsWith(r)&&T.replaceAll(r,"").length>0?".".concat(t):v},h=u.slice();h.push(function(v){v.type===Ye&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(io,r).replace(n,w))}),c.prefix&&h.push(Pn),h.push(Rn);var p=function(v,S,T,D){S===void 0&&(S=""),T===void 0&&(T=""),D===void 0&&(D="&"),t=D,r=S,n=new RegExp("\\".concat(r,"\\b"),"g");var L=v.replace(so,""),C=kn(T||S?"".concat(T," ").concat(S," { ").concat(L," }"):L);c.namespace&&(C=kr(C,c.namespace));var y=[];return Xe(C,Cn(h.concat(On(function(O){return y.push(O)})))),y};return p.hash=u.length?u.reduce(function(v,S){return S.name||Oe(15),me(v,S.name)},ur).toString():"",p}var uo=new xr,Pt=co(),_r=R.createContext({shouldForwardProp:void 0,styleSheet:uo,stylis:Pt});_r.Consumer,R.createContext(void 0);function Rr(){return R.useContext(_r)}var Cr=function(){function e(t,r){var n=this;this.inject=function(a,i){i===void 0&&(i=Pt);var c=n.name+i.hash;a.hasNameForId(n.id,c)||a.insertRules(n.id,c,i(n.rules,c,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Ot(this,function(){throw Oe(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Pt),this.name+t.hash},e}(),lo=function(e){return e>="A"&&e<="Z"};function Or(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;lo(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Pr=function(e){return e==null||e===!1||e===""},Tr=function(e){var t,r,n=[];for(var a in e){var i=e[a];e.hasOwnProperty(a)&&!Pr(i)&&(Array.isArray(i)&&i.isCss||Re(i)?n.push("".concat(Or(a),":"),i,";"):Ce(i)?n.push.apply(n,we(we(["".concat(a," {")],Tr(i),!1),["}"],!1)):n.push("".concat(Or(a),": ").concat((t=a,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Tn||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function ye(e,t,r,n){if(Pr(e))return[];if(Rt(e))return[".".concat(e.styledComponentId)];if(Re(e)){if(!Re(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var a=e(t);return process.env.NODE_ENV==="production"||typeof a!="object"||Array.isArray(a)||a instanceof Cr||Ce(a)||a===null||console.error("".concat(fr(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.")),ye(a,t,r,n)}var i;return e instanceof Cr?r?(e.inject(r,n),[e.getName(n)]):[e]:Ce(e)?Tr(e):Array.isArray(e)?Array.prototype.concat.apply(et,e.map(function(c){return ye(c,t,r,n)})):[e.toString()]}function fo(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Re(r)&&!Rt(r))return!1}return!0}var ho=lr(Je),po=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&fo(t),this.componentId=r,this.baseHash=me(ho,r),this.baseStyle=n,xr.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var a=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))a=ge(a,this.staticRulesId);else{var i=br(ye(this.rules,t,r,n)),c=xt(me(this.baseHash,i)>>>0);if(!r.hasNameForId(this.componentId,c)){var f=n(i,".".concat(c),void 0,this.componentId);r.insertRules(this.componentId,c,f)}a=ge(a,c),this.staticRulesId=c}else{for(var u=me(this.baseHash,n.hash),w="",h=0;h<this.rules.length;h++){var p=this.rules[h];if(typeof p=="string")w+=p,process.env.NODE_ENV!=="production"&&(u=me(u,p));else if(p){var v=br(ye(p,t,r,n));u=me(u,v+h),w+=v}}if(w){var S=xt(u>>>0);r.hasNameForId(this.componentId,S)||r.insertRules(this.componentId,S,n(w,".".concat(S),void 0,this.componentId)),a=ge(a,S)}}return a},e}(),jr=R.createContext(void 0);jr.Consumer;var Tt={},Ar=new Set;function mo(e,t,r){var n=Rt(e),a=e,i=!_t(e),c=t.attrs,f=c===void 0?et:c,u=t.componentId,w=u===void 0?function(j,N){var E=typeof j!="string"?"sc":sr(j);Tt[E]=(Tt[E]||0)+1;var m="".concat(E,"-").concat(Fn(Je+E+Tt[E]));return N?"".concat(N,"-").concat(m):m}(t.displayName,t.parentComponentId):u,h=t.displayName,p=h===void 0?function(j){return _t(j)?"styled.".concat(j):"Styled(".concat(fr(j),")")}(e):h,v=t.displayName&&t.componentId?"".concat(sr(t.displayName),"-").concat(t.componentId):t.componentId||w,S=n&&a.attrs?a.attrs.concat(f).filter(Boolean):f,T=t.shouldForwardProp;if(n&&a.shouldForwardProp){var D=a.shouldForwardProp;if(t.shouldForwardProp){var L=t.shouldForwardProp;T=function(j,N){return D(j,N)&&L(j,N)}}else T=D}var C=new po(r,v,n?a.componentStyle:void 0);function y(j,N){return function(E,m,ne){var oe=E.attrs,Nt=E.componentStyle,Dt=E.defaultProps,ut=E.foldedComponentIds,U=E.styledComponentId,ae=E.target,ve=R.useContext(jr),lt=Rr(),Pe=E.shouldForwardProp||lt.shouldForwardProp;process.env.NODE_ENV!=="production"&&R.useDebugValue(U);var ze=Nn(m,ve,Dt)||_e,H=function(je,ie,fe){for(var J,Z=Y(Y({},ie),{className:void 0,theme:fe}),de=0;de<je.length;de+=1){var Ae=Re(J=je[de])?J(Z):J;for(var Q in Ae)Z[Q]=Q==="className"?ge(Z[Q],Ae[Q]):Q==="style"?Y(Y({},Z[Q]),Ae[Q]):Ae[Q]}return ie.className&&(Z.className=ge(Z.className,ie.className)),Z}(oe,m,ze),ue=H.as||ae,le={};for(var W in H)H[W]===void 0||W[0]==="$"||W==="as"||W==="theme"&&H.theme===ze||(W==="forwardedAs"?le.as=H.forwardedAs:Pe&&!Pe(W,ue)||(le[W]=H[W],Pe||process.env.NODE_ENV!=="development"||fn(W)||Ar.has(W)||!Et.has(ue)||(Ar.add(W),console.warn('styled-components: it looks like an unknown prop "'.concat(W,'" 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 Te=function(je,ie){var fe=Rr(),J=je.generateAndInjectStyles(ie,fe.styleSheet,fe.stylis);return process.env.NODE_ENV!=="production"&&R.useDebugValue(J),J}(Nt,H);process.env.NODE_ENV!=="production"&&E.warnTooManyClasses&&E.warnTooManyClasses(Te);var Le=ge(ut,U);return Te&&(Le+=" "+Te),H.className&&(Le+=" "+H.className),le[_t(ue)&&!Et.has(ue)?"class":"className"]=Le,le.ref=ne,R.createElement(ue,le)}(O,j,N)}y.displayName=p;var O=R.forwardRef(y);return O.attrs=S,O.componentStyle=C,O.displayName=p,O.shouldForwardProp=T,O.foldedComponentIds=n?ge(a.foldedComponentIds,a.styledComponentId):"",O.styledComponentId=v,O.target=n?a.target:e,Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(j){this._foldedDefaultProps=n?function(N){for(var E=[],m=1;m<arguments.length;m++)E[m-1]=arguments[m];for(var ne=0,oe=E;ne<oe.length;ne++)Ct(N,oe[ne],!0);return N}({},a.defaultProps,j):j}}),process.env.NODE_ENV!=="production"&&(An(p,v),O.warnTooManyClasses=function(j,N){var E={},m=!1;return function(ne){if(!m&&(E[ne]=!0,Object.keys(E).length>=200)){var oe=N?' with the id of "'.concat(N,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(j).concat(oe,`.
91
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ld(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i=e[0],n=[],s=1,o=e.length;s<o;s+=1)n.push(e[s]);return n.forEach(function(r){i=i.replace(/%[a-z]/,r)}),i}function Fe(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];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(ld.apply(void 0,Pe([cd[e]],t,!1)).trim())}var hd=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var i=0,n=0;n<t;n++)i+=this.groupSizes[n];return i},e.prototype.insertRules=function(t,i){if(t>=this.groupSizes.length){for(var n=this.groupSizes,s=n.length,o=s;t>=o;)if((o<<=1)<0)throw Fe(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var r=s;r<o;r++)this.groupSizes[r]=0}for(var a=this.indexOfGroup(t+1),c=(r=0,i.length);r<c;r++)this.tag.insertRule(a,i[r])&&(this.groupSizes[t]++,a++)},e.prototype.clearGroup=function(t){if(t<this.length){var i=this.groupSizes[t],n=this.indexOfGroup(t),s=n+i;this.groupSizes[t]=0;for(var o=n;o<s;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var i="";if(t>=this.length||this.groupSizes[t]===0)return i;for(var n=this.groupSizes[t],s=this.indexOfGroup(t),o=s+n,r=s;r<o;r++)i+="".concat(this.tag.getRule(r)).concat(es);return i},e}(),ud=1<<30,ln=new Map,hn=new Map,un=1,dn=function(e){if(ln.has(e))return ln.get(e);for(;hn.has(un);)un++;var t=un++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>ud))throw Fe(16,"".concat(t));return ln.set(e,t),hn.set(t,e),t},dd=function(e,t){un=t+1,ln.set(e,t),hn.set(t,e)},fd="style[".concat(ge,"][").concat(Ir,'="').concat(sn,'"]'),gd=new RegExp("^".concat(ge,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),pd=function(e,t,i){for(var n,s=i.split(","),o=0,r=s.length;o<r;o++)(n=s[o])&&e.registerName(t,n)},md=function(e,t){for(var i,n=((i=t.textContent)!==null&&i!==void 0?i:"").split(es),s=[],o=0,r=n.length;o<r;o++){var a=n[o].trim();if(a){var c=a.match(gd);if(c){var l=0|parseInt(c[1],10),h=c[2];l!==0&&(dd(h,l),pd(e,h,c[3]),e.getTag().insertRules(l,s)),s.length=0}else s.push(a)}}},Gr=function(e){for(var t=document.querySelectorAll(fd),i=0,n=t.length;i<n;i++){var s=t[i];s&&s.getAttribute(ge)!==Lr&&(md(e,s),s.parentNode&&s.parentNode.removeChild(s))}};function bd(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Zr=function(e){var t=document.head,i=e||t,n=document.createElement("style"),s=function(a){var c=Array.from(a.querySelectorAll("style[".concat(ge,"]")));return c[c.length-1]}(i),o=s!==void 0?s.nextSibling:null;n.setAttribute(ge,Lr),n.setAttribute(Ir,sn);var r=bd();return r&&n.setAttribute("nonce",r),i.insertBefore(n,o),n},yd=function(){function e(t){this.element=Zr(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var n=document.styleSheets,s=0,o=n.length;s<o;s++){var r=n[s];if(r.ownerNode===i)return r}throw Fe(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,i){try{return this.sheet.insertRule(i,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var i=this.sheet.cssRules[t];return i&&i.cssText?i.cssText:""},e}(),xd=function(){function e(t){this.element=Zr(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,i){if(t<=this.length&&t>=0){var n=document.createTextNode(i);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}(),_d=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,i){return t<=this.length&&(this.rules.splice(t,0,i),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}(),Jr=on,vd={isServer:!on,useCSSOMInjection:!Xu},Qr=function(){function e(t,i,n){t===void 0&&(t=De),i===void 0&&(i={});var s=this;this.options=_t(_t({},vd),t),this.gs=i,this.names=new Map(n),this.server=!!t.isServer,!this.server&&on&&Jr&&(Jr=!1,Gr(this)),cs(this,function(){return function(o){for(var r=o.getTag(),a=r.length,c="",l=function(u){var d=function(y){return hn.get(y)}(u);if(d===void 0)return"continue";var f=o.names.get(d),m=r.getGroup(u);if(f===void 0||!f.size||m.length===0)return"continue";var b="".concat(ge,".g").concat(u,'[id="').concat(d,'"]'),p="";f!==void 0&&f.forEach(function(y){y.length>0&&(p+="".concat(y,","))}),c+="".concat(m).concat(b,'{content:"').concat(p,'"}').concat(es)},h=0;h<a;h++)l(h);return c}(s)})}return e.registerId=function(t){return dn(t)},e.prototype.rehydrate=function(){!this.server&&on&&Gr(this)},e.prototype.reconstructWithOptions=function(t,i){return i===void 0&&(i=!0),new e(_t(_t({},this.options),t),this.gs,i&&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(i){var n=i.useCSSOMInjection,s=i.target;return i.isServer?new _d(s):n?new yd(s):new xd(s)}(this.options),new hd(t)));var t},e.prototype.hasNameForId=function(t,i){return this.names.has(t)&&this.names.get(t).has(i)},e.prototype.registerName=function(t,i){if(dn(t),this.names.has(t))this.names.get(t).add(i);else{var n=new Set;n.add(i),this.names.set(t,n)}},e.prototype.insertRules=function(t,i,n){this.registerName(t,i),this.getTag().insertRules(dn(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(dn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),wd=/&/g,kd=/^\s*\/\/.*$/gm;function ta(e,t){return e.map(function(i){return i.type==="rule"&&(i.value="".concat(t," ").concat(i.value),i.value=i.value.replaceAll(",",",".concat(t," ")),i.props=i.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(i.children)&&i.type!=="@keyframes"&&(i.children=ta(i.children,t)),i})}function Sd(e){var t,i,n,s=De,o=s.options,r=o===void 0?De:o,a=s.plugins,c=a===void 0?an:a,l=function(d,f,m){return m.startsWith(i)&&m.endsWith(i)&&m.replaceAll(i,"").length>0?".".concat(t):d},h=c.slice();h.push(function(d){d.type===qi&&d.value.includes("&")&&(d.props[0]=d.props[0].replace(wd,i).replace(n,l))}),r.prefix&&h.push(Yu),h.push(Hu);var u=function(d,f,m,b){f===void 0&&(f=""),m===void 0&&(m=""),b===void 0&&(b="&"),t=b,i=f,n=new RegExp("\\".concat(i,"\\b"),"g");var p=d.replace(kd,""),y=Wu(m||f?"".concat(m," ").concat(f," { ").concat(p," }"):p);r.namespace&&(y=ta(y,r.namespace));var x=[];return nn(y,$u(h.concat(Vu(function(v){return x.push(v)})))),x};return u.hash=c.length?c.reduce(function(d,f){return f.name||Fe(15),pe(d,f.name)},Nr).toString():"",u}var Md=new Qr,ls=Sd(),ea=P.createContext({shouldForwardProp:void 0,styleSheet:Md,stylis:ls});ea.Consumer,P.createContext(void 0);function ia(){return P.useContext(ea)}var na=function(){function e(t,i){var n=this;this.inject=function(s,o){o===void 0&&(o=ls);var r=n.name+o.hash;s.hasNameForId(n.id,r)||s.insertRules(n.id,r,o(n.rules,r,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=i,cs(this,function(){throw Fe(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ls),this.name+t.hash},e}(),Cd=function(e){return e>="A"&&e<="Z"};function sa(e){for(var t="",i=0;i<e.length;i++){var n=e[i];if(i===1&&n==="-"&&e[0]==="-")return e;Cd(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var oa=function(e){return e==null||e===!1||e===""},ra=function(e){var t,i,n=[];for(var s in e){var o=e[s];e.hasOwnProperty(s)&&!oa(o)&&(Array.isArray(o)&&o.isCss||Le(o)?n.push("".concat(sa(s),":"),o,";"):Ie(o)?n.push.apply(n,Pe(Pe(["".concat(s," {")],ra(o),!1),["}"],!1)):n.push("".concat(sa(s),": ").concat((t=s,(i=o)==null||typeof i=="boolean"||i===""?"":typeof i!="number"||i===0||t in Uu||t.startsWith("--")?String(i).trim():"".concat(i,"px")),";")))}return n};function be(e,t,i,n){if(oa(e))return[];if(rs(e))return[".".concat(e.styledComponentId)];if(Le(e)){if(!Le(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var s=e(t);return process.env.NODE_ENV==="production"||typeof s!="object"||Array.isArray(s)||s instanceof na||Ie(s)||s===null||console.error("".concat(Br(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.")),be(s,t,i,n)}var o;return e instanceof na?i?(e.inject(i,n),[e.getName(n)]):[e]:Ie(e)?ra(e):Array.isArray(e)?Array.prototype.concat.apply(an,e.map(function(r){return be(r,t,i,n)})):[e.toString()]}function Od(e){for(var t=0;t<e.length;t+=1){var i=e[t];if(Le(i)&&!rs(i))return!1}return!0}var Pd=Wr(sn),Ad=function(){function e(t,i,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Od(t),this.componentId=i,this.baseHash=pe(Pd,i),this.baseStyle=n,Qr.registerId(i)}return e.prototype.generateAndInjectStyles=function(t,i,n){var s=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,i,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&i.hasNameForId(this.componentId,this.staticRulesId))s=me(s,this.staticRulesId);else{var o=qr(be(this.rules,t,i,n)),r=ns(pe(this.baseHash,o)>>>0);if(!i.hasNameForId(this.componentId,r)){var a=n(o,".".concat(r),void 0,this.componentId);i.insertRules(this.componentId,r,a)}s=me(s,r),this.staticRulesId=r}else{for(var c=pe(this.baseHash,n.hash),l="",h=0;h<this.rules.length;h++){var u=this.rules[h];if(typeof u=="string")l+=u,process.env.NODE_ENV!=="production"&&(c=pe(c,u));else if(u){var d=qr(be(u,t,i,n));c=pe(c,d+h),l+=d}}if(l){var f=ns(c>>>0);i.hasNameForId(this.componentId,f)||i.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),s=me(s,f)}}return s},e}(),aa=P.createContext(void 0);aa.Consumer;var hs={},ca=new Set;function Ed(e,t,i){var n=rs(e),s=e,o=!os(e),r=t.attrs,a=r===void 0?an:r,c=t.componentId,l=c===void 0?function(k,_){var M=typeof k!="string"?"sc":jr(k);hs[M]=(hs[M]||0)+1;var S="".concat(M,"-").concat(Qu(sn+M+hs[M]));return _?"".concat(_,"-").concat(S):S}(t.displayName,t.parentComponentId):c,h=t.displayName,u=h===void 0?function(k){return os(k)?"styled.".concat(k):"Styled(".concat(Br(k),")")}(e):h,d=t.displayName&&t.componentId?"".concat(jr(t.displayName),"-").concat(t.componentId):t.componentId||l,f=n&&s.attrs?s.attrs.concat(a).filter(Boolean):a,m=t.shouldForwardProp;if(n&&s.shouldForwardProp){var b=s.shouldForwardProp;if(t.shouldForwardProp){var p=t.shouldForwardProp;m=function(k,_){return b(k,_)&&p(k,_)}}else m=b}var y=new Ad(i,d,n?s.componentStyle:void 0);function x(k,_){return function(M,S,O){var A=M.attrs,L=M.componentStyle,R=M.defaultProps,I=M.foldedComponentIds,W=M.styledComponentId,Q=M.target,F=P.useContext(aa),Y=ia(),X=M.shouldForwardProp||Y.shouldForwardProp;process.env.NODE_ENV!=="production"&&P.useDebugValue(W);var ft=qu(S,F,R)||De,U=function(Et,gt,ie){for(var Lt,It=_t(_t({},gt),{className:void 0,theme:ie}),ne=0;ne<Et.length;ne+=1){var je=Le(Lt=Et[ne])?Lt(It):Lt;for(var Ft in je)It[Ft]=Ft==="className"?me(It[Ft],je[Ft]):Ft==="style"?_t(_t({},It[Ft]),je[Ft]):je[Ft]}return gt.className&&(It.className=me(It.className,gt.className)),It}(A,S,ft),mt=U.as||Q,St={};for(var it in U)U[it]===void 0||it[0]==="$"||it==="as"||it==="theme"&&U.theme===ft||(it==="forwardedAs"?St.as=U.forwardedAs:X&&!X(it,mt)||(St[it]=U[it],X||process.env.NODE_ENV!=="development"||Ou(it)||ca.has(it)||!is.has(mt)||(ca.add(it),console.warn('styled-components: it looks like an unknown prop "'.concat(it,'" 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 At=function(Et,gt){var ie=ia(),Lt=Et.generateAndInjectStyles(gt,ie.styleSheet,ie.stylis);return process.env.NODE_ENV!=="production"&&P.useDebugValue(Lt),Lt}(L,U);process.env.NODE_ENV!=="production"&&M.warnTooManyClasses&&M.warnTooManyClasses(At);var Mt=me(I,W);return At&&(Mt+=" "+At),U.className&&(Mt+=" "+U.className),St[os(mt)&&!is.has(mt)?"class":"className"]=Mt,St.ref=O,P.createElement(mt,St)}(v,k,_)}x.displayName=u;var v=P.forwardRef(x);return v.attrs=f,v.componentStyle=y,v.displayName=u,v.shouldForwardProp=m,v.foldedComponentIds=n?me(s.foldedComponentIds,s.styledComponentId):"",v.styledComponentId=d,v.target=n?s.target:e,Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=n?function(_){for(var M=[],S=1;S<arguments.length;S++)M[S-1]=arguments[S];for(var O=0,A=M;O<A.length;O++)as(_,A[O],!0);return _}({},s.defaultProps,k):k}}),process.env.NODE_ENV!=="production"&&(Ku(u,d),v.warnTooManyClasses=function(k,_){var M={},S=!1;return function(O){if(!S&&(M[O]=!0,Object.keys(M).length>=200)){var A=_?' with the id of "'.concat(_,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(k).concat(A,`.
75
92
  `)+`Consider using the attrs method, together with a style object for frequently changed styles.
76
93
  Example:
77
94
  const Component = styled.div.attrs(props => ({
@@ -80,11 +97,11 @@ Example:
80
97
  },
81
98
  }))\`width: 100%;\`
82
99
 
83
- <Component />`),m=!0,E={}}}}(p,v)),Ot(O,function(){return".".concat(O.styledComponentId)}),i&&vr(O,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),O}function Nr(e,t){for(var r=[e[0]],n=0,a=t.length;n<a;n+=1)r.push(t[n],e[n+1]);return r}var Dr=function(e){return Object.assign(e,{isCss:!0})};function go(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Re(e)||Ce(e))return Dr(ye(Nr(et,we([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?ye(n):Dr(ye(Nr(n,t)))}function jt(e,t,r){if(r===void 0&&(r=_e),!t)throw Oe(1,t);var n=function(a){for(var i=[],c=1;c<arguments.length;c++)i[c-1]=arguments[c];return e(t,r,go.apply(void 0,we([a],i,!1)))};return n.attrs=function(a){return jt(e,t,Y(Y({},r),{attrs:Array.prototype.concat(r.attrs,a).filter(Boolean)}))},n.withConfig=function(a){return jt(e,t,Y(Y({},r),a))},n}var Ir=function(e){return jt(mo,e)},At=Ir;Et.forEach(function(e){At[e]=Ir(e)}),process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
100
+ <Component />`),S=!0,M={}}}}(u,d)),cs(v,function(){return".".concat(v.styledComponentId)}),o&&Kr(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),v}function la(e,t){for(var i=[e[0]],n=0,s=t.length;n<s;n+=1)i.push(t[n],e[n+1]);return i}var ha=function(e){return Object.assign(e,{isCss:!0})};function Td(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(Le(e)||Ie(e))return ha(be(la(an,Pe([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?be(n):ha(be(la(n,t)))}function us(e,t,i){if(i===void 0&&(i=De),!t)throw Fe(1,t);var n=function(s){for(var o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];return e(t,i,Td.apply(void 0,Pe([s],o,!1)))};return n.attrs=function(s){return us(e,t,_t(_t({},i),{attrs:Array.prototype.concat(i.attrs,s).filter(Boolean)}))},n.withConfig=function(s){return us(e,t,_t(_t({},i),s))},n}var ua=function(e){return us(Ed,e)},ds=ua;is.forEach(function(e){ds[e]=ua(e)}),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
101
  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 it="__sc-".concat(pe,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[it]||(window[it]=0),window[it]===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.
102
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var fn="__sc-".concat(ge,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[fn]||(window[fn]=0),window[fn]===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
103
 
87
- See https://s-c.sh/2BAXzed for more info.`),window[it]+=1);var $r={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Fr=R.createContext&&R.createContext($r),yo=["attr","size","title"];function vo(e,t){if(e==null)return{};var r=bo(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bo(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 st(){return st=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},st.apply(this,arguments)}function Mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mr(Object(r),!0).forEach(function(n){wo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wo(e,t,r){return t=So(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function So(e){var t=Eo(e,"string");return typeof t=="symbol"?t:t+""}function Eo(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zr(e){return e&&e.map((t,r)=>R.createElement(t.tag,ct({key:r},t.attr),zr(t.child)))}function xo(e){return t=>R.createElement(ko,st({attr:ct({},e.attr)},t),zr(e.child))}function ko(e){var t=r=>{var{attr:n,size:a,title:i}=e,c=vo(e,yo),f=a||r.size||"1em",u;return r.className&&(u=r.className),e.className&&(u=(u?u+" ":"")+e.className),R.createElement("svg",st({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,c,{className:u,style:ct(ct({color:e.color||r.color},r.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),i&&R.createElement("title",null,i),e.children)};return Fr!==void 0?R.createElement(Fr.Consumer,null,r=>t(r)):t($r)}function _o(e){return xo({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"},child:[]}]})(e)}const Lr=At.input.attrs({type:"checkbox"})`
104
+ See https://s-c.sh/2BAXzed for more info.`),window[fn]+=1);var da={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},fa=P.createContext&&P.createContext(da),Rd=["attr","size","title"];function Dd(e,t){if(e==null)return{};var i=Ld(e,t),n,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)n=o[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ld(e,t){if(e==null)return{};var i={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;i[n]=e[n]}return i}function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},gn.apply(this,arguments)}function ga(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),i.push.apply(i,n)}return i}function pn(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?ga(Object(i),!0).forEach(function(n){Id(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ga(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function Id(e,t,i){return t=Fd(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Fd(e){var t=jd(e,"string");return typeof t=="symbol"?t:t+""}function jd(e,t){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pa(e){return e&&e.map((t,i)=>P.createElement(t.tag,pn({key:i},t.attr),pa(t.child)))}function zd(e){return t=>P.createElement(Nd,gn({attr:pn({},e.attr)},t),pa(e.child))}function Nd(e){var t=i=>{var{attr:n,size:s,title:o}=e,r=Dd(e,Rd),a=s||i.size||"1em",c;return i.className&&(c=i.className),e.className&&(c=(c?c+" ":"")+e.className),P.createElement("svg",gn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},i.attr,n,r,{className:c,style:pn(pn({color:e.color||i.color},i.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&P.createElement("title",null,o),e.children)};return fa!==void 0?P.createElement(fa.Consumer,null,i=>t(i)):t(da)}function Wd(e){return zd({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"},child:[]}]})(e)}const ma=ds.input.attrs({type:"checkbox"})`
88
105
  appearance: none;
89
106
  border: 2px solid #939799;
90
107
  background-color: #f3f3f3;
@@ -100,7 +117,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[it]+=1);var $r={color:void 0,
100
117
  cursor: not-allowed;
101
118
  }
102
119
  transition: background-color 0.2s linear, border-color 0.2s linear;
103
- `,Ro=At(_o)`
120
+ `,Bd=ds(Wd)`
104
121
  position: absolute;
105
122
  top: 50%;
106
123
  right: 0.125rem;
@@ -111,5 +128,5 @@ See https://s-c.sh/2BAXzed for more info.`),window[it]+=1);var $r={color:void 0,
111
128
  z-index: 1;
112
129
  font-size: 20px;
113
130
  transition: color 0.2s linear;
114
- `;Lr.defaultProps={type:"checkbox"};const Co=({id:e,name:t,label:r,checked:n,disabled:a,onChange:i,className:c})=>{const f=()=>{i==null||i(!n)};return K.jsxs("div",{className:se(pt.container.root,c&&c),children:[K.jsx(Lr,{id:e,name:t,checked:n,disabled:a,onClick:f,className:pt.container.input}),K.jsx(Ro,{status:n,onClick:f}),r&&K.jsx("label",{htmlFor:e,className:pt.container.label,children:r})]})};var Wr=(e=>(e.TOKEN="@CCC/token",e.REFRESH_TOKEN="@CCC/refresh_token",e))(Wr||{}),Vr=(e=>(e.token="token",e.access="access",e))(Vr||{});z.Checkbox=Co,z.Description=an,z.Error=cn,z.Item=on,z.LocalStorageKeys=Wr,z.Subtitle=Gt,z.Success=sn,z.Text=Bt,z.Title=Ut,z.UrlSSOParams=Vr,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
131
+ `;ma.defaultProps={type:"checkbox"};const Hd=({id:e,name:t,label:i,checked:n,disabled:s,onChange:o,className:r})=>{const a=()=>{o==null||o(!n)};return ut.jsxs("div",{className:Rt(Kn.container.root,r&&r),children:[ut.jsx(ma,{id:e,name:t,checked:n,disabled:s,onClick:a,className:Kn.container.input}),ut.jsx(Bd,{status:n,onClick:a}),i&&ut.jsx("label",{htmlFor:e,className:Kn.container.label,children:i})]})};var ba=(e=>(e.TOKEN="@CCC/token",e.REFRESH_TOKEN="@CCC/refresh_token",e))(ba||{}),ya=(e=>(e.token="token",e.access="access",e))(ya||{});Z.Chart=Su,Z.Checkbox=Hd,Z.Description=Ia,Z.Error=ja,Z.Item=La,Z.LocalStorageKeys=ba,Z.Subtitle=Ms,Z.Success=Fa,Z.Text=ks,Z.Title=Ss,Z.UrlSSOParams=ya,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})});
115
132
  //# sourceMappingURL=index.umd.js.map