Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/ai-engine/app/

Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64

Upload File :
Current File : /storage/v11800/affypharma/public_html/wp-content/plugins/ai-engine/app/vendor.js
/*! For license information please see vendor.js.LICENSE.txt */
(self.wpJsonMwai=self.wpJsonMwai||[]).push([[121],{1919:(t,e,n)=>{"use strict";n.d(e,{A:()=>rt});var r=function(){function t(t){var e=this;this._insertTag=function(t){var n;n=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,n),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(e);try{n.insertRule(t,n.cssRules.length)}catch(t){}}else e.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),this.tags=[],this.ctr=0},t}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(t){return t.trim()}function l(t,e,n){return t.replace(e,n)}function c(t,e){return t.indexOf(e)}function u(t,e){return 0|t.charCodeAt(e)}function h(t,e,n){return t.slice(e,n)}function f(t){return t.length}function d(t){return t.length}function p(t,e){return e.push(t),t}var m=1,g=1,y=0,v=0,b=0,x="";function w(t,e,n,r,o,i,a){return{value:t,root:e,parent:n,type:r,props:o,children:i,line:m,column:g,length:a,return:""}}function k(t,e){return a(w("",null,null,"",null,null,0),t,{length:-t.length},e)}function S(){return b=v>0?u(x,--v):0,g--,10===b&&(g=1,m--),b}function O(){return b=v<y?u(x,v++):0,g++,10===b&&(g=1,m++),b}function _(){return u(x,v)}function E(){return v}function C(t,e){return h(x,t,e)}function A(t){switch(t){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 j(t){return m=g=1,y=f(x=t),v=0,[]}function P(t){return x="",t}function M(t){return s(C(v-1,L(91===t?t+2:40===t?t+1:t)))}function R(t){for(;(b=_())&&b<33;)O();return A(t)>2||A(b)>3?"":" "}function T(t,e){for(;--e&&O()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return C(t,E()+(e<6&&32==_()&&32==O()))}function L(t){for(;O();)switch(b){case t:return v;case 34:case 39:34!==t&&39!==t&&L(b);break;case 40:41===t&&L(t);break;case 92:O()}return v}function I(t,e){for(;O()&&t+b!==57&&(t+b!==84||47!==_()););return"/*"+C(e,v-1)+"*"+i(47===t?t:O())}function N(t){for(;!A(_());)O();return C(t,v)}var z="-ms-",D="-moz-",F="-webkit-",B="comm",$="rule",H="decl",W="@keyframes";function q(t,e){for(var n="",r=d(t),o=0;o<r;o++)n+=e(t[o],o,t,e)||"";return n}function V(t,e,n,r){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case H:return t.return=t.return||t.value;case B:return"";case W:return t.return=t.value+"{"+q(t.children,r)+"}";case $:t.value=t.props.join(",")}return f(n=q(t.children,r))?t.return=t.value+"{"+n+"}":""}function U(t){return P(K("",null,null,null,[""],t=j(t),0,[0],t))}function K(t,e,n,r,o,a,s,h,d){for(var m=0,g=0,y=s,v=0,b=0,x=0,w=1,k=1,C=1,A=0,j="",P=o,L=a,z=r,D=j;k;)switch(x=A,A=O()){case 40:if(108!=x&&58==u(D,y-1)){-1!=c(D+=l(M(A),"&","&\f"),"&\f")&&(C=-1);break}case 34:case 39:case 91:D+=M(A);break;case 9:case 10:case 13:case 32:D+=R(x);break;case 92:D+=T(E()-1,7);continue;case 47:switch(_()){case 42:case 47:p(G(I(O(),E()),e,n),d);break;default:D+="/"}break;case 123*w:h[m++]=f(D)*C;case 125*w:case 59:case 0:switch(A){case 0:case 125:k=0;case 59+g:-1==C&&(D=l(D,/\f/g,"")),b>0&&f(D)-y&&p(b>32?Y(D+";",r,n,y-1):Y(l(D," ","")+";",r,n,y-2),d);break;case 59:D+=";";default:if(p(z=Q(D,e,n,m,g,o,h,j,P=[],L=[],y),a),123===A)if(0===g)K(D,e,z,z,P,a,y,h,L);else switch(99===v&&110===u(D,3)?100:v){case 100:case 108:case 109:case 115:K(t,z,z,r&&p(Q(t,z,z,0,0,o,h,j,o,P=[],y),L),o,L,y,h,r?P:L);break;default:K(D,z,z,z,[""],L,0,h,L)}}m=g=b=0,w=C=1,j=D="",y=s;break;case 58:y=1+f(D),b=x;default:if(w<1)if(123==A)--w;else if(125==A&&0==w++&&125==S())continue;switch(D+=i(A),A*w){case 38:C=g>0?1:(D+="\f",-1);break;case 44:h[m++]=(f(D)-1)*C,C=1;break;case 64:45===_()&&(D+=M(O())),v=_(),g=y=f(j=D+=N(E())),A++;break;case 45:45===x&&2==f(D)&&(w=0)}}return a}function Q(t,e,n,r,i,a,c,u,f,p,m){for(var g=i-1,y=0===i?a:[""],v=d(y),b=0,x=0,k=0;b<r;++b)for(var S=0,O=h(t,g+1,g=o(x=c[b])),_=t;S<v;++S)(_=s(x>0?y[S]+" "+O:l(O,/&\f/g,y[S])))&&(f[k++]=_);return w(t,e,n,0===i?$:u,f,p,m)}function G(t,e,n){return w(t,e,n,B,i(b),h(t,2,-2),0)}function Y(t,e,n,r){return w(t,e,n,H,h(t,0,r),h(t,r+1,-1),r)}var Z=function(t,e,n){for(var r=0,o=0;r=o,o=_(),38===r&&12===o&&(e[n]=1),!A(o);)O();return C(t,v)},X=new WeakMap,J=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,r=t.column===n.column&&t.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||X.get(n))&&!r){X.set(t,!0);for(var o=[],a=function(t,e){return P(function(t,e){var n=-1,r=44;do{switch(A(r)){case 0:38===r&&12===_()&&(e[n]=1),t[n]+=Z(v-1,e,n);break;case 2:t[n]+=M(r);break;case 4:if(44===r){t[++n]=58===_()?"&\f":"",e[n]=t[n].length;break}default:t[n]+=i(r)}}while(r=O());return t}(j(t),e))}(e,o),s=n.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=o[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},tt=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}};function et(t,e){switch(function(t,e){return 45^u(t,0)?(((e<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0}(t,e)){case 5103:return F+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return F+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return F+t+D+t+z+t+t;case 6828:case 4268:return F+t+z+t+t;case 6165:return F+t+z+"flex-"+t+t;case 5187:return F+t+l(t,/(\w+).+(:[^]+)/,F+"box-$1$2"+z+"flex-$1$2")+t;case 5443:return F+t+z+"flex-item-"+l(t,/flex-|-self/,"")+t;case 4675:return F+t+z+"flex-line-pack"+l(t,/align-content|flex-|-self/,"")+t;case 5548:return F+t+z+l(t,"shrink","negative")+t;case 5292:return F+t+z+l(t,"basis","preferred-size")+t;case 6060:return F+"box-"+l(t,"-grow","")+F+t+z+l(t,"grow","positive")+t;case 4554:return F+l(t,/([^-])(transform)/g,"$1"+F+"$2")+t;case 6187:return l(l(l(t,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),t,"")+t;case 5495:case 3959:return l(t,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return l(l(t,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+t+t;case 4095:case 3583:case 4068:case 2532:return l(t,/(.+)-inline(.+)/,F+"$1$2")+t;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(f(t)-1-e>6)switch(u(t,e+1)){case 109:if(45!==u(t,e+4))break;case 102:return l(t,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+D+(108==u(t,e+3)?"$3":"$2-$3"))+t;case 115:return~c(t,"stretch")?et(l(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==u(t,e+1))break;case 6444:switch(u(t,f(t)-3-(~c(t,"!important")&&10))){case 107:return l(t,":",":"+F)+t;case 101:return l(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(45===u(t,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+z+"$2box$3")+t}break;case 5936:switch(u(t,e+11)){case 114:return F+t+z+l(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return F+t+z+l(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return F+t+z+l(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return F+t+z+t+t}return t}var nt=[function(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case H:t.return=et(t.value,t.length);break;case W:return q([k(t,{value:l(t.value,"@","@"+F)})],r);case $:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,(function(e){switch(function(t,e){return(t=/(::plac\w+|:read-\w+)/.exec(t))?t[0]:t}(e)){case":read-only":case":read-write":return q([k(t,{props:[l(e,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return q([k(t,{props:[l(e,/:(plac\w+)/,":"+F+"input-$1")]}),k(t,{props:[l(e,/:(plac\w+)/,":-moz-$1")]}),k(t,{props:[l(e,/:(plac\w+)/,z+"input-$1")]})],r)}return""}))}}],rt=function(t){var e=t.key;if("css"===e){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))}))}var o,i,a=t.stylisPlugins||nt,s={},l=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),(function(t){for(var e=t.getAttribute("data-emotion").split(" "),n=1;n<e.length;n++)s[e[n]]=!0;l.push(t)}));var c,u,h,f,p=[V,(f=function(t){c.insert(t)},function(t){t.root||(t=t.return)&&f(t)})],m=(u=[J,tt].concat(a,p),h=d(u),function(t,e,n,r){for(var o="",i=0;i<h;i++)o+=u[i](t,e,n,r)||"";return o});i=function(t,e,n,r){c=n,q(U(t?t+"{"+e.styles+"}":e.styles),m),r&&(g.inserted[e.name]=!0)};var g={key:e,sheet:new r({key:e,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:i};return g.sheet.hydrate(l),g}},6289:(t,e,n)=>{"use strict";function r(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}n.d(e,{A:()=>r})},85:(t,e,n)=>{"use strict";n.d(e,{C:()=>h,E:()=>y,T:()=>d,c:()=>m,h:()=>c,i:()=>l,w:()=>f});var r=n(1594),o=n(1919),i=n(41),a=n(2142),s=n(1287),l=!0,c={}.hasOwnProperty,u=r.createContext("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null),h=u.Provider,f=function(t){return(0,r.forwardRef)((function(e,n){var o=(0,r.useContext)(u);return t(e,o,n)}))};l||(f=function(t){return function(e){var n=(0,r.useContext)(u);return null===n?(n=(0,o.A)({key:"css"}),r.createElement(u.Provider,{value:n},t(e,n))):t(e,n)}});var d=r.createContext({}),p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m=function(t,e){var n={};for(var r in e)c.call(e,r)&&(n[r]=e[r]);return n[p]=t,n},g=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;return(0,i.SF)(e,n,r),(0,s.s)((function(){return(0,i.sk)(e,n,r)})),null},y=f((function(t,e,n){var o=t.css;"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var s=t[p],l=[o],u="";"string"==typeof t.className?u=(0,i.Rk)(e.registered,l,t.className):null!=t.className&&(u=t.className+" ");var h=(0,a.J)(l,void 0,r.useContext(d));u+=e.key+"-"+h.name;var f={};for(var m in t)c.call(t,m)&&"css"!==m&&m!==p&&(f[m]=t[m]);return f.ref=n,f.className=u,r.createElement(r.Fragment,null,r.createElement(g,{cache:e,serialized:h,isStringTag:"string"==typeof s}),r.createElement(s,f))}))},7437:(t,e,n)=>{"use strict";n.d(e,{AH:()=>c,i7:()=>u,mL:()=>l});var r=n(85),o=n(1594),i=n(41),a=n(1287),s=n(2142),l=(n(1919),n(4146),(0,r.w)((function(t,e){var n=t.styles,l=(0,s.J)([n],void 0,o.useContext(r.T));if(!r.i){for(var c,u=l.name,h=l.styles,f=l.next;void 0!==f;)u+=" "+f.name,h+=f.styles,f=f.next;var d=!0===e.compat,p=e.insert("",{name:u,styles:h},e.sheet,d);return d?null:o.createElement("style",((c={})["data-emotion"]=e.key+"-global "+u,c.dangerouslySetInnerHTML={__html:p},c.nonce=e.sheet.nonce,c))}var m=o.useRef();return(0,a.i)((function(){var t=e.key+"-global",n=new e.sheet.constructor({key:t,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+t+" "+l.name+'"]');return e.sheet.tags.length&&(n.before=e.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",t),n.hydrate([o])),m.current=[n,r],function(){n.flush()}}),[e]),(0,a.i)((function(){var t=m.current,n=t[0];if(t[1])t[1]=!1;else{if(void 0!==l.next&&(0,i.sk)(e,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}e.insert("",l,n,!1)}}),[e,l.name]),null})));function c(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(0,s.J)(e)}var u=function(){var t=c.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},2142:(t,e,n)=>{"use strict";n.d(e,{J:()=>p});var r=n(3969),o=n(6289),i=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(t){return 45===t.charCodeAt(1)},l=function(t){return null!=t&&"boolean"!=typeof t},c=(0,o.A)((function(t){return s(t)?t:t.replace(i,"-$&").toLowerCase()})),u=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(a,(function(t,e,n){return f={name:e,styles:n,next:f},e}))}return 1===r.A[t]||s(t)||"number"!=typeof e||0===e?e:e+"px"};function h(t,e,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return f={name:n.name,styles:n.styles,next:f},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)f={name:r.name,styles:r.styles,next:f},r=r.next;return n.styles+";"}return function(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=h(t,e,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=e&&void 0!==e[a]?r+=i+"{"+e[a]+"}":l(a)&&(r+=c(i)+":"+u(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=e&&void 0!==e[a[0]]){var s=h(t,e,a);switch(i){case"animation":case"animationName":r+=c(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var f=0;f<a.length;f++)l(a[f])&&(r+=c(i)+":"+u(i,a[f])+";")}return r}(t,e,n);case"function":if(void 0!==t){var o=f,i=n(t);return f=o,h(t,e,i)}}if(null==e)return n;var a=e[n];return void 0!==a?a:n}var f,d=/label:\s*([^\s;\n{]+)\s*(;|$)/g,p=function(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var r=!0,o="";f=void 0;var i=t[0];null==i||void 0===i.raw?(r=!1,o+=h(n,e,i)):o+=i[0];for(var a=1;a<t.length;a++)o+=h(n,e,t[a]),r&&(o+=i[a]);d.lastIndex=0;for(var s,l="";null!==(s=d.exec(o));)l+="-"+s[1];var c=function(t){for(var e,n=0,r=0,o=t.length;o>=4;++r,o-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:f}}},3969:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var r={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}},1287:(t,e,n)=>{"use strict";n.d(e,{i:()=>a,s:()=>i});var r=n(1594),o=!!r.useInsertionEffect&&r.useInsertionEffect,i=o||function(t){return t()},a=o||r.useLayoutEffect},41:(t,e,n)=>{"use strict";function r(t,e,n){var r="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]+";"):r+=n+" "})),r}n.d(e,{Rk:()=>r,SF:()=>o,sk:()=>i});var o=function(t,e,n){var r=t.key+"-"+e.name;!1===n&&void 0===t.registered[r]&&(t.registered[r]=e.styles)},i=function(t,e,n){o(t,e,n);var r=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var i=e;do{t.insert(e===i?"."+r:"",i,t.sheet,!0),i=i.next}while(void 0!==i)}}},9940:(t,e,n)=>{"use strict";n.d(e,{A:()=>i}),n(1594);var r=n(7437),o=n(4848);function i(t){const{styles:e,defaultTheme:n={}}=t,i="function"==typeof e?t=>{return e(null==(r=t)||0===Object.keys(r).length?n:t);var r}:e;return(0,o.jsx)(r.mL,{styles:i})}},2532:(t,e,n)=>{"use strict";n.r(e),n.d(e,{GlobalStyles:()=>S.A,StyledEngineProvider:()=>k,ThemeContext:()=>l.T,css:()=>v.AH,default:()=>O,internal_processStyles:()=>_,keyframes:()=>v.i7});var r=n(8168),o=n(1594),i=n(6289),a=/^((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)-.*))$/,s=(0,i.A)((function(t){return a.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91})),l=n(85),c=n(41),u=n(2142),h=n(1287),f=s,d=function(t){return"theme"!==t},p=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?f:d},m=function(t,e,n){var r;if(e){var o=e.shouldForwardProp;r=t.__emotion_forwardProp&&o?function(e){return t.__emotion_forwardProp(e)&&o(e)}:o}return"function"!=typeof r&&n&&(r=t.__emotion_forwardProp),r},g=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;return(0,c.SF)(e,n,r),(0,h.s)((function(){return(0,c.sk)(e,n,r)})),null},y=function t(e,n){var i,a,s=e.__emotion_real===e,h=s&&e.__emotion_base||e;void 0!==n&&(i=n.label,a=n.target);var f=m(e,n,s),d=f||p(h),y=!d("as");return function(){var v=arguments,b=s&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==v[0]||void 0===v[0].raw)b.push.apply(b,v);else{b.push(v[0][0]);for(var x=v.length,w=1;w<x;w++)b.push(v[w],v[0][w])}var k=(0,l.w)((function(t,e,n){var r=y&&t.as||h,i="",s=[],m=t;if(null==t.theme){for(var v in m={},t)m[v]=t[v];m.theme=o.useContext(l.T)}"string"==typeof t.className?i=(0,c.Rk)(e.registered,s,t.className):null!=t.className&&(i=t.className+" ");var x=(0,u.J)(b.concat(s),e.registered,m);i+=e.key+"-"+x.name,void 0!==a&&(i+=" "+a);var w=y&&void 0===f?p(r):d,k={};for(var S in t)y&&"as"===S||w(S)&&(k[S]=t[S]);return k.className=i,k.ref=n,o.createElement(o.Fragment,null,o.createElement(g,{cache:e,serialized:x,isStringTag:"string"==typeof r}),o.createElement(r,k))}));return k.displayName=void 0!==i?i:"Styled("+("string"==typeof h?h:h.displayName||h.name||"Component")+")",k.defaultProps=e.defaultProps,k.__emotion_real=k,k.__emotion_base=h,k.__emotion_styles=b,k.__emotion_forwardProp=f,Object.defineProperty(k,"toString",{value:function(){return"."+a}}),k.withComponent=function(e,o){return t(e,(0,r.A)({},n,o,{shouldForwardProp:m(k,o,!0)})).apply(void 0,b)},k}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(t){y[t]=y(t)}));var v=n(7437),b=n(1919),x=n(4848);let w;function k(t){const{injectFirst:e,children:n}=t;return e&&w?(0,x.jsx)(l.C,{value:w,children:n}):n}"object"==typeof document&&(w=(0,b.A)({key:"css",prepend:!0}));var S=n(9940);function O(t,e){return y(t,e)}const _=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}},771:(t,e,n)=>{"use strict";var r=n(4994);e.X4=function(t,e){return t=s(t),e=a(e),"rgb"!==t.type&&"hsl"!==t.type||(t.type+="a"),"color"===t.type?t.values[3]=`/${e}`:t.values[3]=e,l(t)},e.e$=function(t,e){if(t=s(t),e=a(e),-1!==t.type.indexOf("hsl"))t.values[2]*=1-e;else if(-1!==t.type.indexOf("rgb")||-1!==t.type.indexOf("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return l(t)},e.eM=function(t,e){const n=c(t),r=c(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},e.a=function(t,e){if(t=s(t),e=a(e),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*e;else if(-1!==t.type.indexOf("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(-1!==t.type.indexOf("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return l(t)};var o=r(n(2108)),i=r(n(6379));function a(t,e=0,n=1){return(0,i.default)(t,e,n)}function s(t){if(t.type)return t;if("#"===t.charAt(0))return s(function(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&1===n[0].length&&(n=n.map((t=>t+t))),n?`rgb${4===n.length?"a":""}(${n.map(((t,e)=>e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3)).join(", ")})`:""}(t));const e=t.indexOf("("),n=t.substring(0,e);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,o.default)(9,t));let r,i=t.substring(e+1,t.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,o.default)(10,r))}else i=i.split(",");return i=i.map((t=>parseFloat(t))),{type:n,values:i,colorSpace:r}}function l(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return-1!==e.indexOf("rgb")?r=r.map(((t,e)=>e<3?parseInt(t,10):t)):-1!==e.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==e.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${e}(${r})`}function c(t){let e="hsl"===(t=s(t)).type||"hsla"===t.type?s(function(t){t=s(t);const{values:e}=t,n=e[0],r=e[1]/100,o=e[2]/100,i=r*Math.min(o,1-o),a=(t,e=(t+n/30)%12)=>o-i*Math.max(Math.min(e-3,9-e,1),-1);let c="rgb";const u=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===t.type&&(c+="a",u.push(e[3])),l({type:c,values:u})}(t)).values:t.values;return e=e.map((e=>("color"!==t.type&&(e/=255),e<=.03928?e/12.92:((e+.055)/1.055)**2.4))),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}},6461:(t,e,n)=>{"use strict";var r=n(4994);e.Ay=function(t={}){const{themeId:e,defaultTheme:n=m,rootShouldForwardProp:r=p,slotShouldForwardProp:l=p}=t,u=t=>(0,c.default)((0,o.default)({},t,{theme:y((0,o.default)({},t,{defaultTheme:n,themeId:e}))}));return u.__mui_systemSx=!0,(t,c={})=>{(0,a.internal_processStyles)(t,(t=>t.filter((t=>!(null!=t&&t.__mui_systemSx)))));const{name:h,slot:d,skipVariantsResolver:m,skipSx:x,overridesResolver:w=v(g(d))}=c,k=(0,i.default)(c,f),S=void 0!==m?m:d&&"Root"!==d&&"root"!==d||!1,O=x||!1;let _=p;"Root"===d||"root"===d?_=r:d?_=l:function(t){return"string"==typeof t&&t.charCodeAt(0)>96}(t)&&(_=void 0);const E=(0,a.default)(t,(0,o.default)({shouldForwardProp:_,label:void 0},k)),C=t=>"function"==typeof t&&t.__emotion_real!==t||(0,s.isPlainObject)(t)?r=>b(t,(0,o.default)({},r,{theme:y({theme:r.theme,defaultTheme:n,themeId:e})})):t,A=(r,...i)=>{let a=C(r);const s=i?i.map(C):[];h&&w&&s.push((t=>{const r=y((0,o.default)({},t,{defaultTheme:n,themeId:e}));if(!r.components||!r.components[h]||!r.components[h].styleOverrides)return null;const i=r.components[h].styleOverrides,a={};return Object.entries(i).forEach((([e,n])=>{a[e]=b(n,(0,o.default)({},t,{theme:r}))})),w(t,a)})),h&&!S&&s.push((t=>{var r;const i=y((0,o.default)({},t,{defaultTheme:n,themeId:e}));return b({variants:null==i||null==(r=i.components)||null==(r=r[h])?void 0:r.variants},(0,o.default)({},t,{theme:i}))})),O||s.push(u);const l=s.length-i.length;if(Array.isArray(r)&&l>0){const t=new Array(l).fill("");a=[...r,...t],a.raw=[...r.raw,...t]}const c=E(a,...s);return t.muiName&&(c.muiName=t.muiName),c};return E.withConfig&&(A.withConfig=E.withConfig),A}},e.MC=p;var o=r(n(4634)),i=r(n(4893)),a=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=d(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var a=o?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=t[i]}return r.default=t,n&&n.set(t,r),r}(n(2532)),s=n(819),l=(r(n(8217)),r(n(1172)),r(n(3142))),c=r(n(3857));const u=["ownerState"],h=["variants"],f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(d=function(t){return t?n:e})(t)}function p(t){return"ownerState"!==t&&"theme"!==t&&"sx"!==t&&"as"!==t}const m=(0,l.default)(),g=t=>t?t.charAt(0).toLowerCase()+t.slice(1):t;function y({defaultTheme:t,theme:e,themeId:n}){return r=e,0===Object.keys(r).length?t:e[n]||e;var r}function v(t){return t?(e,n)=>n[t]:null}function b(t,e){let{ownerState:n}=e,r=(0,i.default)(e,u);const a="function"==typeof t?t((0,o.default)({ownerState:n},r)):t;if(Array.isArray(a))return a.flatMap((t=>b(t,(0,o.default)({ownerState:n},r))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:t=[]}=a;let e=(0,i.default)(a,h);return t.forEach((t=>{let i=!0;"function"==typeof t.props?i=t.props((0,o.default)({ownerState:n},r,n)):Object.keys(t.props).forEach((e=>{(null==n?void 0:n[e])!==t.props[e]&&r[e]!==t.props[e]&&(i=!1)})),i&&(Array.isArray(e)||(e=[e]),e.push("function"==typeof t.style?t.style((0,o.default)({ownerState:n},r,n)):t.style))})),e}return a}},9452:(t,e,n)=>{"use strict";n.d(e,{EU:()=>a,NI:()=>i,vf:()=>s,zu:()=>r});const r={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${r[t]}px)`};function i(t,e,n){const i=t.theme||{};if(Array.isArray(e)){const t=i.breakpoints||o;return e.reduce(((r,o,i)=>(r[t.up(t.keys[i])]=n(e[i]),r)),{})}if("object"==typeof e){const t=i.breakpoints||o;return Object.keys(e).reduce(((o,i)=>{if(-1!==Object.keys(t.values||r).indexOf(i))o[t.up(i)]=n(e[i],i);else{const t=i;o[t]=e[t]}return o}),{})}return n(e)}function a(t={}){var e;return(null==(e=t.keys)?void 0:e.reduce(((e,n)=>(e[t.up(n)]={},e)),{}))||{}}function s(t,e){return t.reduce(((t,e)=>{const n=t[e];return(!n||0===Object.keys(n).length)&&delete t[e],t}),e)}},8336:(t,e,n)=>{"use strict";function r(t,e){const n=this;return n.vars&&"function"==typeof n.getColorSchemeSelector?{[n.getColorSchemeSelector(t).replace(/(\[[^\]]+\])/,"*:where($1)")]:e}:n.palette.mode===t?e:{}}n.d(e,{A:()=>r})},8094:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(8587),o=n(8168);const i=["values","unit","step"],a=t=>{const e=Object.keys(t).map((e=>({key:e,val:t[e]})))||[];return e.sort(((t,e)=>t.val-e.val)),e.reduce(((t,e)=>(0,o.A)({},t,{[e.key]:e.val})),{})};function s(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=t,l=(0,r.A)(t,i),c=a(e),u=Object.keys(c);function h(t){return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n})`}function f(t){return`@media (max-width:${("number"==typeof e[t]?e[t]:t)-s/100}${n})`}function d(t,r){const o=u.indexOf(r);return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n}) and (max-width:${(-1!==o&&"number"==typeof e[u[o]]?e[u[o]]:r)-s/100}${n})`}return(0,o.A)({keys:u,values:c,up:h,down:f,between:d,only:function(t){return u.indexOf(t)+1<u.length?d(t,u[u.indexOf(t)+1]):h(t)},not:function(t){const e=u.indexOf(t);return 0===e?h(u[1]):e===u.length-1?f(u[e]):d(t,u[u.indexOf(t)+1]).replace("@media","@media not all and")},unit:n},l)}},8749:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var r=n(8168),o=n(8587),i=n(4521),a=n(8094);const s={borderRadius:4};var l=n(8248),c=n(3571),u=n(4188),h=n(8336);const f=["breakpoints","palette","spacing","shape"],d=function(t={},...e){const{breakpoints:n={},palette:d={},spacing:p,shape:m={}}=t,g=(0,o.A)(t,f),y=(0,a.A)(n),v=function(t=8){if(t.mui)return t;const e=(0,l.LX)({spacing:t}),n=(...t)=>(0===t.length?[1]:t).map((t=>{const n=e(t);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(p);let b=(0,i.A)({breakpoints:y,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},d),spacing:v,shape:(0,r.A)({},s,m)},g);return b.applyStyles=h.A,b=e.reduce(((t,e)=>(0,i.A)(t,e)),b),b.unstable_sxConfig=(0,r.A)({},u.A,null==g?void 0:g.unstable_sxConfig),b.unstable_sx=function(t){return(0,c.A)({sx:t,theme:this})},b}},3142:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>i.A});var r=n(8749),o=n(8094),i=n(8336)},4620:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(4521);const o=function(t,e){return e?(0,r.A)(t,e,{clone:!1}):t}},8248:(t,e,n)=>{"use strict";n.d(e,{LX:()=>p,MA:()=>d,_W:()=>m,Lc:()=>y,Ms:()=>v});var r=n(9452),o=n(6481),i=n(4620);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(t){const e={};return t=>(void 0===e[t]&&(e[t]=(t=>{if(t.length>2){if(!l[t])return[t];t=l[t]}const[e,n]=t.split(""),r=a[e],o=s[n]||"";return Array.isArray(o)?o.map((t=>r+t)):[r+o]})(t)),e[t])}(),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],h=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...u,...h];function d(t,e,n,r){var i;const a=null!=(i=(0,o.Yn)(t,e,!1))?i:n;return"number"==typeof a?t=>"string"==typeof t?t:a*t:Array.isArray(a)?t=>"string"==typeof t?t:a[t]:"function"==typeof a?a:()=>{}}function p(t){return d(t,"spacing",8)}function m(t,e){if("string"==typeof e||null==e)return e;const n=t(Math.abs(e));return e>=0?n:"number"==typeof n?-n:`-${n}`}function g(t,e){const n=p(t.theme);return Object.keys(t).map((o=>function(t,e,n,o){if(-1===e.indexOf(n))return null;const i=function(t,e){return n=>t.reduce(((t,r)=>(t[r]=m(e,n),t)),{})}(c(n),o),a=t[n];return(0,r.NI)(t,a,i)}(t,e,o,n))).reduce(i.A,{})}function y(t){return g(t,u)}function v(t){return g(t,h)}function b(t){return g(t,f)}y.propTypes={},y.filterProps=u,v.propTypes={},v.filterProps=h,b.propTypes={},b.filterProps=f},6481:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>s,BO:()=>a,Yn:()=>i});var r=n(8659),o=n(9452);function i(t,e,n=!0){if(!e||"string"!=typeof e)return null;if(t&&t.vars&&n){const n=`vars.${e}`.split(".").reduce(((t,e)=>t&&t[e]?t[e]:null),t);if(null!=n)return n}return e.split(".").reduce(((t,e)=>t&&null!=t[e]?t[e]:null),t)}function a(t,e,n,r=n){let o;return o="function"==typeof t?t(n):Array.isArray(t)?t[n]||r:i(t,n)||r,e&&(o=e(o,r,t)),o}const s=function(t){const{prop:e,cssProperty:n=t.prop,themeKey:s,transform:l}=t,c=t=>{if(null==t[e])return null;const c=t[e],u=i(t.theme,s)||{};return(0,o.NI)(t,c,(t=>{let o=a(u,l,t);return t===o&&"string"==typeof t&&(o=a(u,l,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===n?o:{[n]:o}}))};return c.propTypes={},c.filterProps=[e],c}},4188:(t,e,n)=>{"use strict";n.d(e,{A:()=>L});var r=n(8248),o=n(6481),i=n(4620);const a=function(...t){const e=t.reduce(((t,e)=>(e.filterProps.forEach((n=>{t[n]=e})),t)),{}),n=t=>Object.keys(t).reduce(((n,r)=>e[r]?(0,i.A)(n,e[r](t)):n),{});return n.propTypes={},n.filterProps=t.reduce(((t,e)=>t.concat(e.filterProps)),[]),n};var s=n(9452);function l(t){return"number"!=typeof t?t:`${t}px solid`}function c(t,e){return(0,o.Ay)({prop:t,themeKey:"borders",transform:e})}const u=c("border",l),h=c("borderTop",l),f=c("borderRight",l),d=c("borderBottom",l),p=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),y=c("borderRightColor"),v=c("borderBottomColor"),b=c("borderLeftColor"),x=c("outline",l),w=c("outlineColor"),k=t=>{if(void 0!==t.borderRadius&&null!==t.borderRadius){const e=(0,r.MA)(t.theme,"shape.borderRadius",4,"borderRadius"),n=t=>({borderRadius:(0,r._W)(e,t)});return(0,s.NI)(t,t.borderRadius,n)}return null};k.propTypes={},k.filterProps=["borderRadius"],a(u,h,f,d,p,m,g,y,v,b,k,x,w);const S=t=>{if(void 0!==t.gap&&null!==t.gap){const e=(0,r.MA)(t.theme,"spacing",8,"gap"),n=t=>({gap:(0,r._W)(e,t)});return(0,s.NI)(t,t.gap,n)}return null};S.propTypes={},S.filterProps=["gap"];const O=t=>{if(void 0!==t.columnGap&&null!==t.columnGap){const e=(0,r.MA)(t.theme,"spacing",8,"columnGap"),n=t=>({columnGap:(0,r._W)(e,t)});return(0,s.NI)(t,t.columnGap,n)}return null};O.propTypes={},O.filterProps=["columnGap"];const _=t=>{if(void 0!==t.rowGap&&null!==t.rowGap){const e=(0,r.MA)(t.theme,"spacing",8,"rowGap"),n=t=>({rowGap:(0,r._W)(e,t)});return(0,s.NI)(t,t.rowGap,n)}return null};function E(t,e){return"grey"===e?e:t}function C(t){return t<=1&&0!==t?100*t+"%":t}_.propTypes={},_.filterProps=["rowGap"],a(S,O,_,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"})),a((0,o.Ay)({prop:"color",themeKey:"palette",transform:E}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:E}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:E}));const A=(0,o.Ay)({prop:"width",transform:C}),j=t=>{if(void 0!==t.maxWidth&&null!==t.maxWidth){const e=e=>{var n,r;const o=(null==(n=t.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[e])||s.zu[e];return o?"px"!==(null==(r=t.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${t.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:C(e)}};return(0,s.NI)(t,t.maxWidth,e)}return null};j.filterProps=["maxWidth"];const P=(0,o.Ay)({prop:"minWidth",transform:C}),M=(0,o.Ay)({prop:"height",transform:C}),R=(0,o.Ay)({prop:"maxHeight",transform:C}),T=(0,o.Ay)({prop:"minHeight",transform:C}),L=((0,o.Ay)({prop:"size",cssProperty:"width",transform:C}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:C}),a(A,j,P,M,R,T,(0,o.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:k},color:{themeKey:"palette",transform:E},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:E},backgroundColor:{themeKey:"palette",transform:E},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:S},rowGap:{style:_},columnGap:{style:O},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:C},maxWidth:{style:j},minWidth:{transform:C},height:{transform:C},maxHeight:{transform:C},minHeight:{transform:C},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},9599:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(8168),o=n(8587),i=n(4521),a=n(4188);const s=["sx"],l=t=>{var e,n;const r={systemProps:{},otherProps:{}},o=null!=(e=null==t||null==(n=t.theme)?void 0:n.unstable_sxConfig)?e:a.A;return Object.keys(t).forEach((e=>{o[e]?r.systemProps[e]=t[e]:r.otherProps[e]=t[e]})),r};function c(t){const{sx:e}=t,n=(0,o.A)(t,s),{systemProps:a,otherProps:c}=l(n);let u;return u=Array.isArray(e)?[a,...e]:"function"==typeof e?(...t)=>{const n=e(...t);return(0,i.Q)(n)?(0,r.A)({},a,n):a}:(0,r.A)({},a,e),(0,r.A)({},c,{sx:u})}},3857:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r.A,extendSxProp:()=>o.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>i.A});var r=n(3571),o=n(9599),i=n(4188)},3571:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,k:()=>l});var r=n(8659),o=n(4620),i=n(6481),a=n(9452),s=n(4188);function l(){function t(t,e,n,o){const s={[t]:e,theme:n},l=o[t];if(!l)return{[t]:e};const{cssProperty:c=t,themeKey:u,transform:h,style:f}=l;if(null==e)return null;if("typography"===u&&"inherit"===e)return{[t]:e};const d=(0,i.Yn)(n,u)||{};return f?f(s):(0,a.NI)(s,e,(e=>{let n=(0,i.BO)(d,h,e);return e===n&&"string"==typeof e&&(n=(0,i.BO)(d,h,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===c?n:{[c]:n}}))}return function e(n){var r;const{sx:i,theme:l={}}=n||{};if(!i)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"==typeof n)r=n(l);else if("object"!=typeof n)return n;if(!r)return null;const i=(0,a.EU)(l.breakpoints),s=Object.keys(i);let u=i;return Object.keys(r).forEach((n=>{const i="function"==typeof(s=r[n])?s(l):s;var s;if(null!=i)if("object"==typeof i)if(c[n])u=(0,o.A)(u,t(n,i,l,c));else{const t=(0,a.NI)({theme:l},i,(t=>({[n]:t})));!function(...t){const e=t.reduce(((t,e)=>t.concat(Object.keys(e))),[]),n=new Set(e);return t.every((t=>n.size===Object.keys(t).length))}(t,i)?u=(0,o.A)(u,t):u[n]=e({sx:i,theme:l})}else u=(0,o.A)(u,t(n,i,l,c))})),(0,a.vf)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}const c=l();c.filterProps=["sx"];const u=c},8659:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(5697);function o(t){if("string"!=typeof t)throw new Error((0,r.A)(7));return t.charAt(0).toUpperCase()+t.slice(1)}},8217:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r.A});var r=n(8659)},6379:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r=function(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}},4521:(t,e,n)=>{"use strict";n.d(e,{A:()=>a,Q:()=>o});var r=n(8168);function o(t){if("object"!=typeof t||null===t)return!1;const e=Object.getPrototypeOf(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)}function i(t){if(!o(t))return t;const e={};return Object.keys(t).forEach((n=>{e[n]=i(t[n])})),e}function a(t,e,n={clone:!0}){const s=n.clone?(0,r.A)({},t):t;return o(t)&&o(e)&&Object.keys(e).forEach((r=>{"__proto__"!==r&&(o(e[r])&&r in t&&o(t[r])?s[r]=a(t[r],e[r],n):n.clone?s[r]=o(e[r])?i(e[r]):e[r]:s[r]=e[r])})),s}},819:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(4521)},5697:(t,e,n)=>{"use strict";function r(t){let e="https://mui.com/production-error/?code="+t;for(let t=1;t<arguments.length;t+=1)e+="&args[]="+encodeURIComponent(arguments[t]);return"Minified MUI error #"+t+"; visit "+e+" for the full message."}n.d(e,{A:()=>r})},2108:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r.A});var r=n(5697)},1172:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l,getFunctionName:()=>i});var r=n(5492);const o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function i(t){const e=`${t}`.match(o);return e&&e[1]||""}function a(t,e=""){return t.displayName||t.name||i(t)||e}function s(t,e,n){const r=a(e);return t.displayName||(""!==r?`${n}(${r})`:n)}function l(t){if(null!=t){if("string"==typeof t)return t;if("function"==typeof t)return a(t,"Component");if("object"==typeof t)switch(t.$$typeof){case r.ForwardRef:return s(t,t.render,"ForwardRef");case r.Memo:return s(t,t.type,"memo");default:return}}}},7064:(t,e)=>{"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context");var n=Symbol.for("react.forward_ref"),r=(Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"));Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference"),e.ForwardRef=n,e.Memo=r},5492:(t,e,n)=>{"use strict";t.exports=n(7064)},4300:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M13 13h-2V7h2m0 10h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/>'}},9057:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M11 4h2v12l5.5-5.5l1.42 1.42L12 19.84l-7.92-7.92L5.5 10.5L11 16V4Z"/>'}},3860:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="m12 7l5 5h-3v4h-4v-4H7l5-5m0 15A10 10 0 0 1 2 12A10 10 0 0 1 12 2a10 10 0 0 1 10 10a10 10 0 0 1-10 10m0-2a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8Z"/>'}},6304:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M13 20h-2V8l-5.5 5.5l-1.42-1.42L12 4.16l7.92 7.92l-1.42 1.42L13 8v12Z"/>'}},2600:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M7.5 5.6L5 7l1.4-2.5L5 2l2.5 1.4L10 2L8.6 4.5L10 7L7.5 5.6m12 9.8L22 14l-1.4 2.5L22 19l-2.5-1.4L17 19l1.4-2.5L17 14l2.5 1.4M22 2l-1.4 2.5L22 7l-2.5-1.4L17 7l1.4-2.5L17 2l2.5 1.4L22 2m-8.66 10.78l2.44-2.44l-2.12-2.12l-2.44 2.44l2.12 2.12m1.03-5.49l2.34 2.34c.39.37.39 1.02 0 1.41L5.04 22.71c-.39.39-1.04.39-1.41 0l-2.34-2.34c-.39-.37-.39-1.02 0-1.41L12.96 7.29c.39-.39 1.04-.39 1.41 0Z"/>'}},4196:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M9 10v2H7v-2h2m4 0v2h-2v-2h2m4 0v2h-2v-2h2m2-7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h1V1h2v2h8V1h2v2h1m0 16V8H5v11h14M9 14v2H7v-2h2m4 0v2h-2v-2h2m4 0v2h-2v-2h2Z"/>'}},2849:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="m12 8l-1.33.09C9.81 7.07 7.4 4.5 5 4.5c0 0-1.97 2.96-.04 6.91c-.55.83-.89 1.26-.96 2.25l-1.93.29l.21.98l1.76-.26l.14.71l-1.57.94l.47.89l1.45-.89C5.68 18.76 8.59 20 12 20s6.32-1.24 7.47-3.68l1.45.89l.47-.89l-1.57-.94l.14-.71l1.76.26l.21-.98l-1.93-.29c-.07-.99-.41-1.42-.96-2.25C20.97 7.46 19 4.5 19 4.5c-2.4 0-4.81 2.57-5.67 3.59L12 8m-3 3a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m6 0a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m-4 3h2l-.7 1.39c.2.64.76 1.11 1.45 1.11a1.5 1.5 0 0 0 1.5-1.5h.5a2 2 0 0 1-2 2c-.75 0-1.4-.41-1.75-1c-.35.59-1 1-1.75 1a2 2 0 0 1-2-2h.5a1.5 1.5 0 0 0 1.5 1.5c.69 0 1.25-.47 1.45-1.11L11 14Z"/>'}},3594:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2m-2 15l-5-5l1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9Z"/>'}},4501:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7Z"/>'}},2027:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M12 20a8 8 0 0 1-8-8a8 8 0 0 1 8-8a8 8 0 0 1 8 8a8 8 0 0 1-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/>'}},5962:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M18.41 7.41L17 6l-6 6l6 6l1.41-1.41L13.83 12l4.58-4.59m-6 0L11 6l-6 6l6 6l1.41-1.41L7.83 12l4.58-4.59Z"/>'}},6029:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M5.59 7.41L7 6l6 6l-6 6l-1.41-1.41L10.17 12L5.59 7.41m6 0L13 6l6 6l-6 6l-1.41-1.41L16.17 12l-4.58-4.59Z"/>'}},4555:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z"/>'}},5074:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6l6 6l1.41-1.42Z"/>'}},21:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.42Z"/>'}},6382:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41Z"/>'}},5241:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"/>'}},858:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M12 15.5A3.5 3.5 0 0 1 8.5 12A3.5 3.5 0 0 1 12 8.5a3.5 3.5 0 0 1 3.5 3.5a3.5 3.5 0 0 1-3.5 3.5m7.43-2.53c.04-.32.07-.64.07-.97c0-.33-.03-.66-.07-1l2.11-1.63c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.31-.61-.22l-2.49 1c-.52-.39-1.06-.73-1.69-.98l-.37-2.65A.506.506 0 0 0 14 2h-4c-.25 0-.46.18-.5.42l-.37 2.65c-.63.25-1.17.59-1.69.98l-2.49-1c-.22-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64L4.57 11c-.04.34-.07.67-.07 1c0 .33.03.65.07.97l-2.11 1.66c-.19.15-.25.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1.01c.52.4 1.06.74 1.69.99l.37 2.65c.04.24.25.42.5.42h4c.25 0 .46-.18.5-.42l.37-2.65c.63-.26 1.17-.59 1.69-.99l2.49 1.01c.22.08.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.66Z"/>'}},3104:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M11 17H4a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h12v2H4v12h7v-2l4 3l-4 3v-2m8 4V7H8v6H6V7a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-2h2v2h11Z"/>'}},9300:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M15 9H5V5h10m-3 14a3 3 0 0 1-3-3a3 3 0 0 1 3-3a3 3 0 0 1 3 3a3 3 0 0 1-3 3m5-16H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7l-4-4Z"/>'}},7073:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M18.68 12.32a4.49 4.49 0 0 0-6.36.01a4.49 4.49 0 0 0 0 6.36a4.508 4.508 0 0 0 5.57.63L21 22.39L22.39 21l-3.09-3.11c1.13-1.77.87-4.09-.62-5.57m-1.41 4.95c-.98.98-2.56.97-3.54 0c-.97-.98-.97-2.56.01-3.54c.97-.97 2.55-.97 3.53 0c.97.98.97 2.56 0 3.54M10.9 20.1a6.527 6.527 0 0 1-1.48-2.32C6.27 17.25 4 15.76 4 14v3c0 2.21 3.58 4 8 4c-.4-.26-.77-.56-1.1-.9M4 9v3c0 1.68 2.07 3.12 5 3.7v-.2c0-.93.2-1.85.58-2.69C6.34 12.3 4 10.79 4 9m8-6C7.58 3 4 4.79 4 7c0 2 3 3.68 6.85 4h.05c1.2-1.26 2.86-2 4.6-2c.91 0 1.81.19 2.64.56A3.215 3.215 0 0 0 20 7c0-2.21-3.58-4-8-4Z"/>'}},1860:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M12 3C7.58 3 4 4.79 4 7s3.58 4 8 4s8-1.79 8-4s-3.58-4-8-4M4 9v3c0 2.21 3.58 4 8 4s8-1.79 8-4V9c0 2.21-3.58 4-8 4s-8-1.79-8-4m0 5v3c0 2.21 3.58 4 8 4s8-1.79 8-4v-3c0 2.21-3.58 4-8 4s-8-1.79-8-4Z"/>'}},4142:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6v12Z"/>'}},9728:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M12 9a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3m0 8a5 5 0 0 1-5-5a5 5 0 0 1 5-5a5 5 0 0 1 5 5a5 5 0 0 1-5 5m0-12.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5Z"/>'}},257:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M12 2.04c-5.5 0-10 4.49-10 10.02c0 5 3.66 9.15 8.44 9.9v-7H7.9v-2.9h2.54V9.85c0-2.51 1.49-3.89 3.78-3.89c1.09 0 2.23.19 2.23.19v2.47h-1.26c-1.24 0-1.63.77-1.63 1.56v1.88h2.78l-.45 2.9h-2.33v7a10 10 0 0 0 8.44-9.9c0-5.53-4.5-10.02-10-10.02Z"/>'}},7326:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M13 9h5.5L13 3.5V9M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m6.16 12.31c-1.56 0-2.97.58-4.05 1.52L6 13.72V19h5.28l-2.13-2.12c.82-.68 1.85-1.1 3.01-1.1c2.07 0 3.84 1.35 4.45 3.22l1.39-.46c-.81-2.45-3.12-4.23-5.84-4.23Z"/>'}},4611:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M14 12v7.88c.04.3-.06.62-.29.83a.996.996 0 0 1-1.41 0l-2.01-2.01a.989.989 0 0 1-.29-.83V12h-.03L4.21 4.62a1 1 0 0 1 .17-1.4c.19-.14.4-.22.62-.22h14c.22 0 .43.08.62.22a1 1 0 0 1 .17 1.4L14.03 12H14Z"/>'}},9538:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M19 20H4a2 2 0 0 1-2-2V6c0-1.11.89-2 2-2h6l2 2h7a2 2 0 0 1 2 2H4v10l2.14-8h17.07l-2.28 8.5c-.23.87-1.01 1.5-1.93 1.5Z"/>'}},9966:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M13 19c0 .34.04.67.09 1H4a2 2 0 0 1-2-2V6c0-1.11.89-2 2-2h6l2 2h8a2 2 0 0 1 2 2v5.81c-.88-.51-1.9-.81-3-.81c-3.31 0-6 2.69-6 6m7-1v-3h-2v3h-3v2h3v3h2v-3h3v-2h-3Z"/>'}},4613:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M10 4H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2Z"/>'}},2477:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M7 5h14v2H7V5m0 8v-2h14v2H7M4 4.5A1.5 1.5 0 0 1 5.5 6A1.5 1.5 0 0 1 4 7.5A1.5 1.5 0 0 1 2.5 6A1.5 1.5 0 0 1 4 4.5m0 6A1.5 1.5 0 0 1 5.5 12A1.5 1.5 0 0 1 4 13.5A1.5 1.5 0 0 1 2.5 12A1.5 1.5 0 0 1 4 10.5M7 19v-2h14v2H7m-3-2.5A1.5 1.5 0 0 1 5.5 18A1.5 1.5 0 0 1 4 19.5A1.5 1.5 0 0 1 2.5 18A1.5 1.5 0 0 1 4 16.5Z"/>'}},7894:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M21 17H7V3h14m0-2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2M3 5H1v16a2 2 0 0 0 2 2h16v-2H3m12.96-10.71l-2.75 3.54l-1.96-2.36L8.5 15h11l-3.54-4.71Z"/>'}},6123:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M22 20.7L3.3 2L2 3.3l1 1V19c0 1.1.9 2 2 2h14.7l1 1l1.3-1.3M5 19V6.3l7.6 7.6l-1.5 1.9L9 13.1L6 17h9.7l2 2H5M8.8 5l-2-2H19c1.1 0 2 .9 2 2v12.2l-2-2V5H8.8"/>'}},9829:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M18 15v3h-3v2h3v3h2v-3h3v-2h-3v-3h-2m-4.7 6H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v8.3c-.6-.2-1.3-.3-2-.3c-1.1 0-2.2.3-3.1.9L14.5 12L11 16.5l-2.5-3L5 18h8.1c-.1.3-.1.7-.1 1c0 .7.1 1.4.3 2Z"/>'}},3102:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M11 9h2V7h-2m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m-1 15h2v-6h-2v6Z"/>'}},9077:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8A1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5a5 5 0 0 1-5 5a5 5 0 0 1-5-5a5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3Z"/>'}},8841:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M16.84 2.73c-.39 0-.77.15-1.07.44l-2.12 2.12l5.3 5.31l2.12-2.1c.6-.61.6-1.56 0-2.14L17.9 3.17c-.3-.29-.68-.44-1.06-.44M12.94 6l-8.1 8.11l2.56.28l.18 2.29l2.28.17l.29 2.56l8.1-8.11m-14 3.74L2.5 21.73l6.7-1.79l-.24-2.16l-2.31-.17l-.18-2.32"/>'}},4753:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M10.59 13.41c.41.39.41 1.03 0 1.42c-.39.39-1.03.39-1.42 0a5.003 5.003 0 0 1 0-7.07l3.54-3.54a5.003 5.003 0 0 1 7.07 0a5.003 5.003 0 0 1 0 7.07l-1.49 1.49c.01-.82-.12-1.64-.4-2.42l.47-.48a2.982 2.982 0 0 0 0-4.24a2.982 2.982 0 0 0-4.24 0l-3.53 3.53a2.982 2.982 0 0 0 0 4.24m2.82-4.24c.39-.39 1.03-.39 1.42 0a5.003 5.003 0 0 1 0 7.07l-3.54 3.54a5.003 5.003 0 0 1-7.07 0a5.003 5.003 0 0 1 0-7.07l1.49-1.49c-.01.82.12 1.64.4 2.43l-.47.47a2.982 2.982 0 0 0 0 4.24a2.982 2.982 0 0 0 4.24 0l3.53-3.53a2.982 2.982 0 0 0 0-4.24a.973.973 0 0 1 0-1.42Z"/>'}},2079:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77Z"/>'}},3271:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M19 13c.34 0 .67.04 1 .09V10a2 2 0 0 0-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6a2 2 0 0 0-2 2v10c0 1.11.89 2 2 2h7.81c-.51-.88-.81-1.9-.81-3c0-3.31 2.69-6 6-6M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6m3 11a2 2 0 1 1 2-2c0 1.11-.89 2-2 2m10.5.25L17.75 22L15 19l1.16-1.16l1.59 1.59l3.59-3.59l1.16 1.41Z"/>'}},5207:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M18 1c-2.76 0-5 2.24-5 5v2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12c1.11 0 2-.89 2-2V10a2 2 0 0 0-2-2h-1V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2h2V6c0-2.76-2.24-5-5-5m-8 12a2 2 0 0 1 2 2c0 1.11-.89 2-2 2a2 2 0 1 1 0-4Z"/>'}},146:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M20.94 14c-.28 1.41-2.44 2.96-4.97 3.26c-1.31.15-2.6.3-3.97.24c-2.25-.11-4-.54-4-.54v.62c.32 2.22 2.22 2.35 4.03 2.42c1.82.05 3.44-.46 3.44-.46l.08 1.65s-1.28.68-3.55.81c-1.25.07-2.81-.03-4.62-.5c-3.92-1.05-4.6-5.24-4.7-9.5l-.01-3.43c0-4.34 2.83-5.61 2.83-5.61C6.95 2.3 9.41 2 11.97 2h.06c2.56 0 5.02.3 6.47.96c0 0 2.83 1.27 2.83 5.61c0 0 .04 3.21-.39 5.43M18 8.91c0-1.08-.3-1.91-.85-2.56c-.56-.63-1.3-.96-2.23-.96c-1.06 0-1.87.41-2.42 1.23l-.5.88l-.5-.88c-.56-.82-1.36-1.23-2.43-1.23c-.92 0-1.66.33-2.23.96C6.29 7 6 7.83 6 8.91v5.26h2.1V9.06c0-1.06.45-1.62 1.36-1.62c1 0 1.5.65 1.5 1.93v2.79h2.07V9.37c0-1.28.5-1.93 1.51-1.93c.9 0 1.35.56 1.35 1.62v5.11H18V8.91Z"/>'}},1299:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M14 19h4V5h-4M6 19h4V5H6v14Z"/>'}},6268:(t,e)=>{},9931:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2A10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34c-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41c.86 0 1.26.63 1.26 1.44c0 .86-.57 2.09-.86 3.27c-.17.98.52 1.84 1.52 1.84c1.78 0 3.16-1.9 3.16-4.58c0-2.4-1.72-4.04-4.19-4.04c-2.82 0-4.48 2.1-4.48 4.31c0 .86.28 1.73.74 2.3c.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11c-1.28-.56-2.02-2.38-2.02-3.85c0-3.16 2.24-6.03 6.56-6.03c3.44 0 6.12 2.47 6.12 5.75c0 3.44-2.13 6.2-5.18 6.2c-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03Z"/>'}},8843:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M8 5.14v14l11-7l-11-7Z"/>'}},7297:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2Z"/>'}},6761:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 7a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3Z"/>'}},1086:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M12 5V1L7 6l5 5V7a6 6 0 0 1 6 6a6 6 0 0 1-6 6a6 6 0 0 1-6-6H4a8 8 0 0 0 8 8a8 8 0 0 0 8-8a8 8 0 0 0-8-8Z"/>'}},1097:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="m13.13 22.19l-1.63-3.83c1.57-.58 3.04-1.36 4.4-2.27l-2.77 6.1M5.64 12.5l-3.83-1.63l6.1-2.77C7 9.46 6.22 10.93 5.64 12.5M21.61 2.39S16.66.269 11 5.93c-2.19 2.19-3.5 4.6-4.35 6.71c-.28.75-.09 1.57.46 2.13l2.13 2.12c.55.56 1.37.74 2.12.46A19.1 19.1 0 0 0 18.07 13c5.66-5.66 3.54-10.61 3.54-10.61m-7.07 7.07c-.78-.78-.78-2.05 0-2.83s2.05-.78 2.83 0c.77.78.78 2.05 0 2.83c-.78.78-2.05.78-2.83 0m-5.66 7.07l-1.41-1.41l1.41 1.41M6.24 22l3.64-3.64c-.34-.09-.67-.24-.97-.45L4.83 22h1.41M2 22h1.41l4.77-4.76l-1.42-1.41L2 20.59V22m0-2.83l4.09-4.08c-.21-.3-.36-.62-.45-.97L2 17.76v1.41Z"/>'}},2693:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="m18 21l-4-4h3V7h-3l4-4l4 4h-3v10h3M2 19v-2h10v2M2 13v-2h7v2M2 7V5h4v2H2Z"/>'}},757:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.62L12 2L9.19 8.62L2 9.24l5.45 4.73L5.82 21L12 17.27Z"/>'}},8957:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M18 18H6V6h12v12Z"/>'}},67:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M12 20a7 7 0 0 1-7-7a7 7 0 0 1 7-7a7 7 0 0 1 7 7a7 7 0 0 1-7 7m7.03-12.61l1.42-1.42c-.45-.51-.9-.97-1.41-1.41L17.62 6c-1.55-1.26-3.5-2-5.62-2a9 9 0 0 0-9 9a9 9 0 0 0 9 9c5 0 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M11 14h2V8h-2m4-7H9v2h6V1Z"/>'}},6982:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="m21.71 20.29l-1.42 1.42a1 1 0 0 1-1.41 0L7 9.85A3.81 3.81 0 0 1 6 10a4 4 0 0 1-3.78-5.3l2.54 2.54l.53-.53l1.42-1.42l.53-.53L4.7 2.22A4 4 0 0 1 10 6a3.81 3.81 0 0 1-.15 1l11.86 11.88a1 1 0 0 1 0 1.41M2.29 18.88a1 1 0 0 0 0 1.41l1.42 1.42a1 1 0 0 0 1.41 0l5.47-5.46l-2.83-2.83M20 2l-4 2v2l-2.17 2.17l2 2L18 8h2l2-4Z"/>'}},552:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9m0 5h2v9H9V8m4 0h2v9h-2V8Z"/>'}},9014:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M22.46 6c-.77.35-1.6.58-2.46.69c.88-.53 1.56-1.37 1.88-2.38c-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29c0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15c0 1.49.75 2.81 1.91 3.56c-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07a4.28 4.28 0 0 0 4 2.98a8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21C16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56c.84-.6 1.56-1.36 2.14-2.23Z"/>'}},7695:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88c3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8Z"/>'}},1373:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M13 3v6h8V3m-8 18h8V11h-8M3 21h8v-6H3m0-2h8V3H3v10Z"/>'}},1333:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M3 11h8V3H3m0 18h8v-8H3m10 8h8v-8h-8m0-10v8h8V3"/>'}},6200:(t,e)=>{e.A={width:24,height:24,body:'<path fill="currentColor" d="M9 2a7 7 0 0 1 7 7c0 1.57-.5 3-1.39 4.19l.8.81H16l6 6l-2 2l-6-6v-.59l-.81-.8A6.916 6.916 0 0 1 9 16a7 7 0 0 1-7-7a7 7 0 0 1 7-7M8 5v3H5v2h3v3h2v-3h3V8h-3V5H8Z"/>'}},5977:(t,e,n)=>{"use strict";e.L3=e.In=void 0;var r,o=(r=n(1594))&&r.__esModule?r:{default:r};function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=0,l=/(-?[0-9.]*[0-9]+[0-9.]*)/g,c=/^-?[0-9.]*[0-9]+[0-9.]*$/g,u=["width","height","inline","hFlip","vFlip","flip","rotate","align","color","box"],h={left:0,top:0,width:16,height:16,rotate:0,hFlip:!1,vFlip:!1},f=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._item=e}var e,n,r;return e=t,r=[{key:"splitAttributes",value:function(t){var e={icon:Object.create(null),node:Object.create(null)};return Object.keys(t).forEach((function(n){e[-1===u.indexOf(n)?"node":"icon"][n]=t[n]})),e}},{key:"calculateDimension",value:function(t,e,n){if(1===e)return t;if(n=void 0===n?100:n,"number"==typeof t)return Math.ceil(t*e*n)/n;var r=t.split(l);if(null===r||!r.length)return null;for(var o,i=[],a=r.shift(),s=c.test(a);;){if(s?(o=parseFloat(a),isNaN(o)?i.push(a):i.push(Math.ceil(o*e*n)/n)):i.push(a),void 0===(a=r.shift()))return i.join("");s=!s}}},{key:"replaceIDs",value:function(t){var e,n,r=/\sid="(\S+)"/g,o=[];function i(t,e,n){for(var r=0;-1!==(r=n.indexOf(t,r));)n=n.slice(0,r)+e+n.slice(r+t.length),r+=e.length;return n}for(;e=r.exec(t);)o.push(e[1]);return o.length?(n="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",o.forEach((function(e){var r=n+s;s++,t=i('="'+e+'"','="'+r+'"',t),t=i('="#'+e+'"','="#'+r+'"',t),t=i("(#"+e+")","(#"+r+")",t)})),t):t}}],(n=[{key:"getAttributes",value:function(e){var n=this._item;"object"!==i(e)&&(e=Object.create(null));var r={horizontal:"center",vertical:"middle",slice:!1},o={rotate:n.rotate,hFlip:n.hFlip,vFlip:n.vFlip},a=Object.create(null),s=Object.create(null),l=!0===e.inline||"true"===e.inline||"1"===e.inline,c={left:n.left,top:l?n.inlineTop:n.top,width:n.width,height:l?n.inlineHeight:n.height};if(["hFlip","vFlip"].forEach((function(t){void 0===e[t]||!0!==e[t]&&"true"!==e[t]&&"1"!==e[t]||(o[t]=!o[t])})),void 0!==e.flip&&e.flip.toLowerCase().split(/[\s,]+/).forEach((function(t){switch(t){case"horizontal":o.hFlip=!o.hFlip;break;case"vertical":o.vFlip=!o.vFlip}})),void 0!==e.rotate){var u=e.rotate;if("number"==typeof u)o.rotate+=u;else if("string"==typeof u){var h=u.replace(/^-?[0-9.]*/,"");if(""===h)u=parseInt(u),isNaN(u)||(o.rotate+=u);else if(h!==u){var f=!1;switch(h){case"%":f=25;break;case"deg":f=90}f&&(u=parseInt(u.slice(0,u.length-h.length)),isNaN(u)||(o.rotate+=Math.round(u/f)))}}}var d,p=[];switch(o.hFlip?o.vFlip?o.rotate+=2:(p.push("translate("+(c.width+c.left)+" "+(0-c.top)+")"),p.push("scale(-1 1)"),c.top=c.left=0):o.vFlip&&(p.push("translate("+(0-c.left)+" "+(c.height+c.top)+")"),p.push("scale(1 -1)"),c.top=c.left=0),o.rotate%4){case 1:d=c.height/2+c.top,p.unshift("rotate(90 "+d+" "+d+")"),0===c.left&&0===c.top||(d=c.left,c.left=c.top,c.top=d),c.width!==c.height&&(d=c.width,c.width=c.height,c.height=d);break;case 2:p.unshift("rotate(180 "+(c.width/2+c.left)+" "+(c.height/2+c.top)+")");break;case 3:d=c.width/2+c.left,p.unshift("rotate(-90 "+d+" "+d+")"),0===c.left&&0===c.top||(d=c.left,c.left=c.top,c.top=d),c.width!==c.height&&(d=c.width,c.width=c.height,c.height=d)}var m,g,y=e.width?e.width:null,v=e.height?e.height:null;null===y&&null===v&&(v="1em"),null!==y&&null!==v?(m=y,g=v):null!==y?(m=y,g=t.calculateDimension(m,c.height/c.width)):(g=v,m=t.calculateDimension(g,c.width/c.height)),!1!==m&&(s.width="auto"===m?c.width:m),!1!==g&&(s.height="auto"===g?c.height:g),l&&0!==n.verticalAlign&&(a["vertical-align"]=n.verticalAlign+"em"),void 0!==e.align&&e.align.toLowerCase().split(/[\s,]+/).forEach((function(t){switch(t){case"left":case"right":case"center":r.horizontal=t;break;case"top":case"bottom":case"middle":r.vertical=t;break;case"crop":r.slice=!0;break;case"meet":r.slice=!1}})),s.preserveAspectRatio=function(t){var e;switch(t.horizontal){case"left":e="xMin";break;case"right":e="xMax";break;default:e="xMid"}switch(t.vertical){case"top":e+="YMin";break;case"bottom":e+="YMax";break;default:e+="YMid"}return e+(t.slice?" slice":" meet")}(r),s.viewBox=c.left+" "+c.top+" "+c.width+" "+c.height;var b=t.replaceIDs(n.body);return void 0!==e.color&&(b=b.replace(/currentColor/g,e.color)),p.length&&(b='<g transform="'+p.join(" ")+'">'+b+"</g>"),!0!==e.box&&"true"!==e.box&&"1"!==e.box||(b+='<rect x="'+c.left+'" y="'+c.top+'" width="'+c.width+'" height="'+c.height+'" fill="rgba(0, 0, 0, 0)" />'),{attributes:s,body:b,style:a}}},{key:"getSVG",value:function(e,n){var r=t.splitAttributes(e),o=this.getAttributes(r.icon),i='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"';return n&&Object.keys(r.node).forEach((function(t){i+=" "+t+'="'+r.node[t]+'"'})),Object.keys(o.attributes).forEach((function(t){i+=" "+t+'="'+o.attributes[t]+'"'})),i+=' style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);',Object.keys(o.style).forEach((function(t){i+=" "+t+": "+o.style[t]+";"})),e&&void 0!==e.style&&(i+=e.style),i+='">',i+=o.body+"</svg>"}}])&&a(e.prototype,n),r&&a(e,r),t}();function d(t,e){if("object"!==i(t.icon))return null;var n=f.splitAttributes(t),r=n.icon,a=n.node;delete a.icon,void 0===r.inline&&(r.inline=e);var s=new f(function(t){var e,n=Object.create(null);for(e in h)n[e]=h[e];for(e in t)n[e]=t[e];return void 0===n.inlineTop&&(n.inlineTop=n.top),void 0===n.inlineHeight&&(n.inlineHeight=n.height),void 0===n.verticalAlign&&(n.verticalAlign=n.height%7==0&&n.height%8!=0?-.143:-.125),n}(t.icon)),l=s.getAttributes(r),c={transform:"rotate(360deg)"};if(void 0!==l.style["vertical-align"]&&(c.verticalAlign=l.style["vertical-align"]),void 0!==t.style)for(var u in t.style)c[u]=t.style[u];var d,p={xmlns:"http://www.w3.org/2000/svg",focusable:!1,style:c};for(d in a)p[d]=a[d];for(d in l.attributes)p[d]=l.attributes[d];return p.dangerouslySetInnerHTML={__html:l.body},o.default.createElement("svg",p,null)}e.In=function(t){return d(t,!1)},e.L3=function(t){return d(t,!0)}},5627:t=>{"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function i(t,e,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||t,a),l=n?n+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],s]:t._events[l].push(s):(t._events[l]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var t,r,o=[];if(0===this._eventsCount)return o;for(r in t=this._events)e.call(t,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},s.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},s.prototype.emit=function(t,e,r,o,i,a){var s=n?n+t:t;if(!this._events[s])return!1;var l,c,u=this._events[s],h=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),h){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return u.fn.call(u.context,e,r),!0;case 4:return u.fn.call(u.context,e,r,o),!0;case 5:return u.fn.call(u.context,e,r,o,i),!0;case 6:return u.fn.call(u.context,e,r,o,i,a),!0}for(c=1,l=new Array(h-1);c<h;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var f,d=u.length;for(c=0;c<d;c++)switch(u[c].once&&this.removeListener(t,u[c].fn,void 0,!0),h){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,e);break;case 3:u[c].fn.call(u[c].context,e,r);break;case 4:u[c].fn.call(u[c].context,e,r,o);break;default:if(!l)for(f=1,l=new Array(h-1);f<h;f++)l[f-1]=arguments[f];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(t,e,n){return i(this,t,e,n,!1)},s.prototype.once=function(t,e,n){return i(this,t,e,n,!0)},s.prototype.removeListener=function(t,e,r,o){var i=n?n+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==e||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==e||o&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&a(this,e)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,t.exports=s},3948:(t,e,n)=>{var r;function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};"object"===o(n.amdO)&&n.amdO?void 0===(r=function(){return a}.call(e,n,e,t))||(t.exports=r):t.exports?t.exports=a:window.ExecutionEnvironment=a}()},9186:t=>{"use strict";t.exports=function(t,e){return e=e||function(){},t.then((function(t){return new Promise((function(t){t(e())})).then((function(){return t}))}),(function(t){return new Promise((function(t){t(e())})).then((function(){throw t}))}))}},6815:(t,e,n)=>{"use strict";function r(){r=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new R(r||[]);return i(a,"_invoke",{value:A(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",m="suspendedYield",g="executing",y="completed",v={};function b(){}function x(){}function w(){}var k={};h(k,l,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(T([])));O&&O!==n&&o.call(O,l)&&(k=O);var _=w.prototype=b.prototype=Object.create(k);function E(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,i,s,l){var c=d(t[r],t,i);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==a(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(h).then((function(t){u.value=t,s(u)}),(function(t){return n("throw",t,s,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(t,o){function i(){return new e((function(e,r){n(t,o,e,r)}))}return r=r?r.then(i,i):i()}})}function A(e,n,r){var o=p;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=j(s,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?y:m,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=y,r.method="throw",r.arg=c.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(o.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(a(e)+" is not iterable")}return x.prototype=w,i(_,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:x,configurable:!0}),x.displayName=h(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},E(C.prototype),h(C.prototype,c,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new C(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(_),h(_,u,"Generator"),h(_,l,(function(){return this})),h(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function o(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,l,"next",t)}function l(t){o(a,r,i,s,l,"throw",t)}s(void 0)}))}}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function l(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:String(e)}function c(t,e,n){return e=h(e),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var d=n(5627),p=n(8198),m=n(4093),g=function(){},y=new p.TimeoutError,v=function(t){function e(t){var n,r,o,i,s;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=c(this,e))._intervalCount=0,n._intervalEnd=0,n._pendingCount=0,n._resolveEmpty=g,n._resolveIdle=g,!("number"==typeof(t=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:m.default},t)).intervalCap&&t.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(o=null===(r=t.intervalCap)||void 0===r?void 0:r.toString())&&void 0!==o?o:"","` (").concat(a(t.intervalCap),")"));if(void 0===t.interval||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(s=null===(i=t.interval)||void 0===i?void 0:i.toString())&&void 0!==s?s:"","` (").concat(a(t.interval),")"));return n._carryoverConcurrencyCount=t.carryoverConcurrencyCount,n._isIntervalIgnored=t.intervalCap===1/0||0===t.interval,n._intervalCap=t.intervalCap,n._interval=t.interval,n._queue=new t.queueClass,n._queueClass=t.queueClass,n.concurrency=t.concurrency,n._timeout=t.timeout,n._throwOnTimeout=!0===t.throwOnTimeout,n._isPaused=!1===t.autoStart,n}var n,o,l,u,h,d;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,o=[{key:"_doesIntervalAllowAnother",get:function(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}},{key:"_doesConcurrentAllowAnother",get:function(){return this._pendingCount<this._concurrency}},{key:"_next",value:function(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}},{key:"_resolvePromises",value:function(){this._resolveEmpty(),this._resolveEmpty=g,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=g,this.emit("idle"))}},{key:"_onResumeInterval",value:function(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}},{key:"_isIntervalPaused",value:function(){var t=this,e=Date.now();if(void 0===this._intervalId){var n=this._intervalEnd-e;if(!(n<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((function(){t._onResumeInterval()}),n)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}},{key:"_tryToStartAnother",value:function(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){var t=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){var e=this._queue.dequeue();return!!e&&(this.emit("active"),e(),t&&this._initializeIntervalIfNeeded(),!0)}}return!1}},{key:"_initializeIntervalIfNeeded",value:function(){var t=this;this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((function(){t._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}},{key:"_onInterval",value:function(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}},{key:"_processQueue",value:function(){for(;this._tryToStartAnother(););}},{key:"concurrency",get:function(){return this._concurrency},set:function(t){if(!("number"==typeof t&&t>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(t,"` (").concat(a(t),")"));this._concurrency=t,this._processQueue()}},{key:"add",value:(d=i(r().mark((function t(e){var n,o=this,a=arguments;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",new Promise((function(t,a){var s=function(){var s=i(r().mark((function i(){var s;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o._pendingCount++,o._intervalCount++,r.prev=2,s=void 0===o._timeout&&void 0===n.timeout?e():p.default(Promise.resolve(e()),void 0===n.timeout?o._timeout:n.timeout,(function(){(void 0===n.throwOnTimeout?o._throwOnTimeout:n.throwOnTimeout)&&a(y)})),r.t0=t,r.next=7,s;case 7:r.t1=r.sent,(0,r.t0)(r.t1),r.next=14;break;case 11:r.prev=11,r.t2=r.catch(2),a(r.t2);case 14:o._next();case 15:case"end":return r.stop()}}),i,null,[[2,11]])})));return function(){return s.apply(this,arguments)}}();o._queue.enqueue(s,n),o._tryToStartAnother(),o.emit("add")})));case 2:case"end":return t.stop()}}),t)}))),function(t){return d.apply(this,arguments)})},{key:"addAll",value:(h=i(r().mark((function t(e,n){var o=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.all(e.map(function(){var t=i(r().mark((function t(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o.add(e,n));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())));case 1:case"end":return t.stop()}}),t)}))),function(t,e){return h.apply(this,arguments)})},{key:"start",value:function(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}},{key:"pause",value:function(){this._isPaused=!0}},{key:"clear",value:function(){this._queue=new this._queueClass}},{key:"onEmpty",value:(u=i(r().mark((function t(){var e=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==this._queue.size){t.next=2;break}return t.abrupt("return");case 2:return t.abrupt("return",new Promise((function(t){var n=e._resolveEmpty;e._resolveEmpty=function(){n(),t()}})));case 3:case"end":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})},{key:"onIdle",value:(l=i(r().mark((function t(){var e=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==this._pendingCount||0!==this._queue.size){t.next=2;break}return t.abrupt("return");case 2:return t.abrupt("return",new Promise((function(t){var n=e._resolveIdle;e._resolveIdle=function(){n(),t()}})));case 3:case"end":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)})},{key:"size",get:function(){return this._queue.size}},{key:"sizeBy",value:function(t){return this._queue.filter(t).length}},{key:"pending",get:function(){return this._pendingCount}},{key:"isPaused",get:function(){return this._isPaused}},{key:"timeout",get:function(){return this._timeout},set:function(t){this._timeout=t}}],o&&s(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),e}(d);e.A=v},6011:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){for(var r=0,o=t.length;o>0;){var i=o/2|0,a=r+i;n(t[a],e)<=0?(r=++a,o-=i+1):o=i}return r}},4093:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:String(e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(6011),s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._queue=[]}var e,n;return e=t,(n=[{key:"enqueue",value:function(t,e){var n={priority:(e=Object.assign({priority:0},e)).priority,run:t};if(this.size&&this._queue[this.size-1].priority>=e.priority)this._queue.push(n);else{var r=a.default(this._queue,n,(function(t,e){return e.priority-t.priority}));this._queue.splice(r,0,n)}}},{key:"dequeue",value:function(){var t=this._queue.shift();return null==t?void 0:t.run}},{key:"filter",value:function(t){return this._queue.filter((function(e){return e.priority===t.priority})).map((function(t){return t.run}))}},{key:"size",get:function(){return this._queue.length}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=s},8198:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t){var e="function"==typeof Map?new Map:void 0;return o=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(i())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&a(o,n.prototype),o}(t,arguments,s(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,t)},o(t)}function i(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(i=function(){return!!t})()}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var l=n(9186),c=function(t){function e(t){var n,o,a,l;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(o=this,a=e,l=[t],a=s(a),n=function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(o,i()?Reflect.construct(a,l||[],s(o).constructor):a.apply(o,l))).name="TimeoutError",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(e,t),n=e,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(o(Error)),u=function(t,e,n){return new Promise((function(r,o){if("number"!=typeof e||e<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(e!==1/0){var i=setTimeout((function(){if("function"!=typeof n){var i="string"==typeof n?n:"Promise timed out after ".concat(e," milliseconds"),a=n instanceof Error?n:new c(i);"function"==typeof t.cancel&&t.cancel(),o(a)}else try{r(n())}catch(t){o(t)}}),e);l(t.then(r,o),(function(){clearTimeout(i)}))}else r(t)}))};t.exports=u,t.exports.default=u,t.exports.TimeoutError=c},3873:(t,e,n)=>{"use strict";var r=n(1274);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},6365:(t,e,n)=>{t.exports=n(3873)()},1274:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9092:(t,e,n)=>{"use strict";function r(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function o(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!=n?n:null}.bind(this))}function i(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,s=null;if("function"==typeof e.componentWillMount?n="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?s="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=t.displayName||t.name,c="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=r,e.componentWillReceiveProps=o),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=i;var u=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,t,e,r)}}return t}n.r(e),n.d(e,{polyfill:()=>a}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},2781:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.bodyOpenClassName=e.portalClassName=void 0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(1594),s=m(a),l=m(n(5206)),c=m(n(6365)),u=m(n(9463)),h=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(915)),f=n(9853),d=m(f),p=n(9092);function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==r(e)&&"function"!=typeof e?t:e}var y=e.portalClassName="ReactModalPortal",v=e.bodyOpenClassName="ReactModal__Body--open",b=f.canUseDOM&&void 0!==l.default.createPortal,x=function(t){return document.createElement(t)},w=function(){return b?l.default.createPortal:l.default.unstable_renderSubtreeIntoContainer};function k(t){return t()}var S=function(t){function e(){var t,n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=Array(i),c=0;c<i;c++)a[c]=arguments[c];return n=r=g(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(a))),r.removePortal=function(){!b&&l.default.unmountComponentAtNode(r.node);var t=k(r.props.parentSelector);t&&t.contains(r.node)?t.removeChild(r.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},r.portalRef=function(t){r.portal=t},r.renderPortal=function(t){var n=w()(r,s.default.createElement(u.default,o({defaultStyles:e.defaultStyles},t)),r.node);r.portalRef(n)},g(r,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+r(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"componentDidMount",value:function(){f.canUseDOM&&(b||(this.node=x("div")),this.node.className=this.props.portalClassName,k(this.props.parentSelector).appendChild(this.node),!b&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(t){return{prevParent:k(t.parentSelector),nextParent:k(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(t,e,n){if(f.canUseDOM){var r=this.props,o=r.isOpen,i=r.portalClassName;t.portalClassName!==i&&(this.node.className=i);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(t.isOpen||o)&&!b&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(f.canUseDOM&&this.node&&this.portal){var t=this.portal.state,e=Date.now(),n=t.isOpen&&this.props.closeTimeoutMS&&(t.closesAt||e+this.props.closeTimeoutMS);n?(t.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-e)):this.removePortal()}}},{key:"render",value:function(){return f.canUseDOM&&b?(!this.node&&b&&(this.node=x("div")),w()(s.default.createElement(u.default,o({ref:this.portalRef,defaultStyles:e.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(t){h.setElement(t)}}]),e}(a.Component);S.propTypes={isOpen:c.default.bool.isRequired,style:c.default.shape({content:c.default.object,overlay:c.default.object}),portalClassName:c.default.string,bodyOpenClassName:c.default.string,htmlOpenClassName:c.default.string,className:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),overlayClassName:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),appElement:c.default.oneOfType([c.default.instanceOf(d.default),c.default.instanceOf(f.SafeHTMLCollection),c.default.instanceOf(f.SafeNodeList),c.default.arrayOf(c.default.instanceOf(d.default))]),onAfterOpen:c.default.func,onRequestClose:c.default.func,closeTimeoutMS:c.default.number,ariaHideApp:c.default.bool,shouldFocusAfterRender:c.default.bool,shouldCloseOnOverlayClick:c.default.bool,shouldReturnFocusAfterClose:c.default.bool,preventScroll:c.default.bool,parentSelector:c.default.func,aria:c.default.object,data:c.default.object,role:c.default.string,contentLabel:c.default.string,shouldCloseOnEsc:c.default.bool,overlayRef:c.default.func,contentRef:c.default.func,id:c.default.string,overlayElement:c.default.func,contentElement:c.default.func},S.defaultProps={isOpen:!1,portalClassName:y,bodyOpenClassName:v,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(t,e){return s.default.createElement("div",t,e)},contentElement:function(t,e){return s.default.createElement("div",t,e)}},S.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(S),e.default=S},9463:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(1594),l=y(n(6365)),c=g(n(6518)),u=y(n(2374)),h=g(n(915)),f=g(n(5553)),d=n(9853),p=y(d),m=y(n(6551));function g(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function y(t){return t&&t.__esModule?t:{default:t}}n(9574);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},b=0,x=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==r(e)&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.setOverlayRef=function(t){n.overlay=t,n.props.overlayRef&&n.props.overlayRef(t)},n.setContentRef=function(t){n.content=t,n.props.contentRef&&n.props.contentRef(t)},n.afterClose=function(){var t=n.props,e=t.appElement,r=t.ariaHideApp,o=t.htmlOpenClassName,i=t.bodyOpenClassName,a=t.parentSelector,s=a&&a().ownerDocument||document;i&&f.remove(s.body,i),o&&f.remove(s.getElementsByTagName("html")[0],o),r&&b>0&&0==(b-=1)&&h.show(e),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(c.returnFocus(n.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),m.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(c.setupScopedFocus(n.node),c.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var t=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:t},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(t){(function(t){return"Tab"===t.code||9===t.keyCode})(t)&&(0,u.default)(n.content,t),n.props.shouldCloseOnEsc&&function(t){return"Escape"===t.code||27===t.keyCode}(t)&&(t.stopPropagation(),n.requestClose(t))},n.handleOverlayOnClick=function(t){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(t):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(t){n.props.shouldCloseOnOverlayClick||t.target!=n.overlay||t.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(t){return n.ownerHandlesClose()&&n.props.onRequestClose(t)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(t,e){var r="object"===(void 0===e?"undefined":i(e))?e:{base:v[t],afterOpen:v[t]+"--after-open",beforeClose:v[t]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof e&&e?o+" "+e:o},n.attributesFromObject=function(t,e){return Object.keys(e).reduce((function(n,r){return n[t+"-"+r]=e[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+r(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(t,e){this.props.isOpen&&!t.isOpen?this.open():!this.props.isOpen&&t.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!e.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var t=this.props,e=t.appElement,n=t.ariaHideApp,r=t.htmlOpenClassName,o=t.bodyOpenClassName,i=t.parentSelector,a=i&&i().ownerDocument||document;o&&f.add(a.body,o),r&&f.add(a.getElementsByTagName("html")[0],r),n&&(b+=1,h.hide(e)),m.default.register(this)}},{key:"render",value:function(){var t=this.props,e=t.id,n=t.className,r=t.overlayClassName,i=t.defaultStyles,a=t.children,s=n?{}:i.content,l=r?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=o({id:e,ref:this.setContentRef,style:o({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),h=this.props.contentElement(u,a);return this.props.overlayElement(c,h)}}]),e}(s.Component);x.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},x.propTypes={isOpen:l.default.bool.isRequired,defaultStyles:l.default.shape({content:l.default.object,overlay:l.default.object}),style:l.default.shape({content:l.default.object,overlay:l.default.object}),className:l.default.oneOfType([l.default.string,l.default.object]),overlayClassName:l.default.oneOfType([l.default.string,l.default.object]),parentSelector:l.default.func,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,ariaHideApp:l.default.bool,appElement:l.default.oneOfType([l.default.instanceOf(p.default),l.default.instanceOf(d.SafeHTMLCollection),l.default.instanceOf(d.SafeNodeList),l.default.arrayOf(l.default.instanceOf(p.default))]),onAfterOpen:l.default.func,onAfterClose:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,role:l.default.string,contentLabel:l.default.string,aria:l.default.object,data:l.default.object,children:l.default.node,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func,testId:l.default.string},e.default=x,t.exports=e.default},915:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach((function(t){return t.removeAttribute("aria-hidden")})):document.querySelectorAll(a).forEach((function(t){return t.removeAttribute("aria-hidden")}))),a=null},e.log=function(){},e.assertNodeList=s,e.setElement=function(t){var e=t;if("string"==typeof e&&i.canUseDOM){var n=document.querySelectorAll(e);s(n,e),e=n}return a=e||a},e.validateElement=l,e.hide=function(t){var e=!0,n=!1,r=void 0;try{for(var o,i=l(t)[Symbol.iterator]();!(e=(o=i.next()).done);e=!0)o.value.setAttribute("aria-hidden","true")}catch(t){n=!0,r=t}finally{try{!e&&i.return&&i.return()}finally{if(n)throw r}}},e.show=function(t){var e=!0,n=!1,r=void 0;try{for(var o,i=l(t)[Symbol.iterator]();!(e=(o=i.next()).done);e=!0)o.value.removeAttribute("aria-hidden")}catch(t){n=!0,r=t}finally{try{!e&&i.return&&i.return()}finally{if(n)throw r}}},e.documentNotReadyOrSSRTesting=function(){a=null};var r,o=(r=n(1392))&&r.__esModule?r:{default:r},i=n(9853),a=null;function s(t,e){if(!t||!t.length)throw new Error("react-modal: No elements were found for selector "+e+".")}function l(t){var e=t||a;return e?Array.isArray(e)||e instanceof HTMLCollection||e instanceof NodeList?e:[e]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},9574:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){for(var t=[i,a],e=0;e<t.length;e++){var n=t[e];n&&n.parentNode&&n.parentNode.removeChild(n)}i=a=null,s=[]},e.log=function(){console.log("bodyTrap ----------"),console.log(s.length);for(var t=[i,a],e=0;e<t.length;e++){var n=t[e]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=(r=n(6551))&&r.__esModule?r:{default:r},i=void 0,a=void 0,s=[];function l(){0!==s.length&&s[s.length-1].focusContent()}o.default.subscribe((function(t,e){i||a||((i=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),i.style.position="absolute",i.style.opacity="0",i.setAttribute("tabindex","0"),i.addEventListener("focus",l),(a=i.cloneNode()).addEventListener("focus",l)),(s=e).length>0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(i.parentElement&&i.parentElement.removeChild(i),a.parentElement&&a.parentElement.removeChild(a))}))},5553:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){var t=document.getElementsByTagName("html")[0];for(var e in n)o(t,n[e]);var i=document.body;for(var a in r)o(i,r[a]);n={},r={}},e.log=function(){};var n={},r={};function o(t,e){t.classList.remove(e)}e.add=function(t,e){return o=t.classList,i="html"==t.nodeName.toLowerCase()?n:r,void e.split(" ").forEach((function(t){!function(t,e){t[e]||(t[e]=0),t[e]+=1}(i,t),o.add(t)}));var o,i},e.remove=function(t,e){return o=t.classList,i="html"==t.nodeName.toLowerCase()?n:r,void e.split(" ").forEach((function(t){!function(t,e){t[e]&&(t[e]-=1)}(i,t),0===i[t]&&o.remove(t)}));var o,i}},6518:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){i=[]},e.log=function(){},e.handleBlur=l,e.handleFocus=c,e.markForFocusLater=function(){i.push(document.activeElement)},e.returnFocus=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=null;try{return void(0!==i.length&&(e=i.pop()).focus({preventScroll:t}))}catch(t){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},e.popWithoutFocus=function(){i.length>0&&i.pop()},e.setupScopedFocus=function(t){a=t,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},e.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var r,o=(r=n(1602))&&r.__esModule?r:{default:r},i=[],a=null,s=!1;function l(){s=!0}function c(){if(s){if(s=!1,!a)return;setTimeout((function(){a.contains(document.activeElement)||((0,o.default)(a)[0]||a).focus()}),0)}}},6551:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(t){return console.log(t)})),console.log("end portalOpenInstances ----------")},e.resetState=function(){r=new n};var n=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.register=function(t){-1===e.openInstances.indexOf(t)&&(e.openInstances.push(t),e.emit("register"))},this.deregister=function(t){var n=e.openInstances.indexOf(t);-1!==n&&(e.openInstances.splice(n,1),e.emit("deregister"))},this.subscribe=function(t){e.subscribers.push(t)},this.emit=function(t){e.subscribers.forEach((function(n){return n(t,e.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;e.default=r},9853:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.canUseDOM=e.SafeNodeList=e.SafeHTMLCollection=void 0;var r,o=((r=n(3948))&&r.__esModule?r:{default:r}).default,i=o.canUseDOM?window.HTMLElement:{};e.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},e.SafeNodeList=o.canUseDOM?window.NodeList:{},e.canUseDOM=o.canUseDOM,e.default=i},2374:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=(0,o.default)(t);if(n.length){var r=void 0,a=e.shiftKey,s=n[0],l=n[n.length-1],c=i();if(t===c){if(!a)return;r=l}if(l!==c||a||(r=s),s===c&&a&&(r=l),r)return e.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var h=n.indexOf(c);if(h>-1&&(h+=a?-1:1),void 0===(r=n[h]))return e.preventDefault(),void(r=a?l:s).focus();e.preventDefault(),r.focus()}}else e.preventDefault()};var r,o=(r=n(1602))&&r.__esModule?r:{default:r};function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?i(t.activeElement.shadowRoot):t.activeElement}t.exports=e.default},1602:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){return[].slice.call(e.querySelectorAll("*"),0).reduce((function(e,n){return e.concat(n.shadowRoot?t(n.shadowRoot):[n])}),[]).filter(a)};var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function i(t){var e=t.offsetWidth<=0&&t.offsetHeight<=0;if(e&&!t.innerHTML)return!0;try{var o=window.getComputedStyle(t),i=o.getPropertyValue("display");return e?i!==r&&function(t,e){return"visible"!==e.getPropertyValue("overflow")||t.scrollWidth<=0&&t.scrollHeight<=0}(t,o):i===n}catch(t){return console.warn("Failed to inspect element style"),!1}}function a(t){var e=t.getAttribute("tabindex");null===e&&(e=void 0);var n=isNaN(e);return(n||e>=0)&&function(t,e){var n=t.nodeName.toLowerCase();return(o.test(n)&&!t.disabled||"a"===n&&t.href||e)&&function(t){for(var e=t,n=t.getRootNode&&t.getRootNode();e&&e!==document.body;){if(n&&e===n&&(e=n.host.parentNode),i(e))return!1;e=e.parentNode}return!0}(t)}(t,!n)}t.exports=e.default},8187:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=(r=n(2781))&&r.__esModule?r:{default:r};e.default=o.default,t.exports=e.default},1392:t=>{"use strict";t.exports=function(){}},2564:(t,e,n)=>{"use strict";n.d(e,{A:()=>h,z:()=>c});var r,o,i,a=n(3185),s={white:"white",black:"black",blue:"hsl(204.25deg 100% 36.47%)",green:"hsl(165deg 100% 34.51%)",red:"hsl(22, 100%, 36%)",orange:"hsl(36deg 73.28% 54.51%)",yellow:"hsl(44.43deg 77.41% 53.14%)",purple:"hsl(270, 38%, 59%)",gray30:"hsl(200deg 10.45% 26.27%)",gray60:"hsl(200deg 10.45% 60%)",gray98:"hsl(0deg 0% 98%)"},l=(0,a.DU)(r||(o=["\n  :root {\n    // Base colors\n    --neko-blue: ",";\n    --neko-white: ",";\n    --neko-black: ",";\n    --neko-purple: ",";\n    --neko-orange: ",";\n    --neko-yellow: ",";\n    --neko-green: ",";\n    --neko-red: ",";\n\n    // Main color\n    --neko-main-color: var(--neko-blue);\n\n    // Variants\n    --neko-success: var(--neko-blue);\n    --neko-primary: var(--neko-main-color);\n    --neko-secondary: #EBF3FF; // TODO: This needs to be updated to a proper color\n    --neko-danger: var(--neko-red);\n\n    // Base styles\n    --neko-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;\n    --neko-font-size: 13px; \n    --neko-small-font-size: 12px; \n    --neko-h1-font-size: 23px;\n    --neko-h2-font-size: 20px;\n    --neko-h3-font-size: 18px;\n    --neko-h4-font-size: 16px;\n    --neko-h5-font-size: 14px;\n    --neko-font-color: var(--neko-gray-30);\n\n    // Gray shades\n    --neko-gray-30: ",";\n    --neko-gray-60: ",";\n    --neko-gray-98: ",";\n    --neko-wp-background-color: #f0f0f1;\n\n    // Main color shades\n    --neko-main-overlay-color: rgb(30 124 186 / 85%);\n    --neko-main-color-10: hsl(206deg 100% 22.35%);\n    --neko-main-color-50: hsl(206deg 61.04% 54.71%);\n    --neko-main-color-80: hsl(206deg 55.93% 88.43%);\n    --neko-main-color-98: hsl(200deg 100% 98.82%);\n\n    // Neko UI\n    --neko-background-color: var(--neko-wp-background-color);\n    --neko-disabled-color: var(--neko-gray-60);\n    --neko-main-color-alternative: var(--neko-main-color-10);\n    --neko-main-color-disabled: var(--neko-main-color-50);\n    --neko-input-background: var(--neko-main-color-98);\n    --neko-input-border: var(--neko-main-color-80);\n  }\n"],i||(i=o.slice(0)),r=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(i)}}))),s.blue,s.white,s.black,s.purple,s.orange,s.yellow,s.green,s.red,s.gray30,s.gray60,s.gray98),c=function(){return{colors:s}},u=function(t){var e=t.children;return React.createElement(React.Fragment,null,React.createElement(l,{key:"neko-ui-styles"}),e)};const h=function(t){var e=t.children;return React.createElement(u,null,e)}},9296:(t,e,n)=>{"use strict";n.d(e,{M:()=>x});var r,o=n(1594),i=n(6365),a=n.n(i),s=n(3185),l=n(5977),c=n(6087),u=n(8922),h=n(1329),f=n(6897),d=["className","disabled","icon","color","onClick","rounded","isBusy","spinning","disabledColor","busyText","hideBusyIcon","busyIconSize","requirePro","isPro","small","width","height","fullWidth","startTime","children"];function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},p.apply(this,arguments)}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var g,y,v=(0,s.Ay)((function(t){var e=t.className,n=void 0===e?"primary":e,r=t.disabled,i=void 0!==r&&r,a=t.icon,s=void 0===a?null:a,l=t.color,g=void 0===l?null:l,y=t.onClick,v=void 0===y?function(){}:y,b=t.rounded,x=t.isBusy,w=void 0!==x&&x,k=t.spinning,S=void 0!==k&&k,O=(t.disabledColor,t.busyText),_=t.hideBusyIcon,E=void 0!==_&&_,C=t.busyIconSize,A=t.requirePro,j=void 0!==A&&A,P=t.isPro,M=void 0!==P&&P,R=t.small,T=t.width,L=(t.height,t.fullWidth),I=t.startTime,N=void 0===I?null:I,z=t.children,D=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,d);i=i&&!w;var F,B,$=!!s,H=j&&!M,W=(0,o.useMemo)((function(){var t=null!=T?T:30;return b?t-10:t-6}),[T,b]),q=(0,o.useMemo)((function(){return C||"22px"}),[C]),V=(F=(0,o.useState)(null),B=2,function(t){if(Array.isArray(t))return t}(F)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(F,B)||function(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}(F,B)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),U=V[0],K=V[1];(0,f.$$)((function(){return K(new Date)}),N?1e3:null),(0,o.useEffect)((function(){N||K(null)}),[N]);var Q=(0,o.useMemo)((function(){if(!N||!U)return null;var t=Math.floor((U-N)/1e3),e=Math.floor(t/60),n=t%60;return"".concat(e.toString().padStart(2,"0"),":").concat(n.toString().padStart(2,"0"))}),[U,N]),G=(0,f.gR)("neko-button",n,{"has-icon":$},{"custom-color":g},{small:R},{rounded:b},{busy:w},{"is-pro":H},{full:L});return React.createElement("button",p({type:"button",className:G,onClick:function(t){i||v(),t.stopPropagation(),t.preventDefault()},disabled:i||H},D),w&&!E&&React.createElement(React.Fragment,null,React.createElement(c.X,{type:"circle",color:"#fff",size:q})),w&&Q&&React.createElement("span",{className:"chrono-time"},Q),w&&!!O&&React.createElement("span",{style:{marginLeft:E?0:"4px",marginRight:"2px"}},O),$&&!w&&React.createElement(u.z,{raw:!0,icon:s,width:W,height:W,spinning:S,style:b?{margin:"0 auto"}:{}}),!!z&&!w&&React.createElement("span",{style:{marginLeft:$?"4px":0,marginRight:$?"2px":0}},z),H&&React.createElement(h.K,{style:{marginLeft:"8px"}}))}))(r||(g=["\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  box-sizing: border-box;\n  height: 30px;\n  min-height: 30px;\n  min-width: 40px;\n  border: none;\n  border-radius: 4px;\n  text-align: center;\n  padding: 0 15px;\n  vertical-align: middle;\n  background-color: var(--neko-main-color);\n  color: white;\n\n  span {\n    white-space: nowrap;\n    text-overflow: ellipsis;\n    display: flex;\n    align-items: center;\n  }\n\n  .chrono-time {\n    font-size: 11px;\n    margin-left: 5px;\n  }\n\n  &:not([disabled]):hover {\n    cursor: pointer;\n    background-image: none;\n    filter: brightness(1.1);\n  }\n\n  &:disabled {\n    opacity: 0.35;\n  }\n\n  &:focus {\n    outline: none;\n  }\n\n  &.is-pro {\n    background-image: none;\n    background-color: var(--neko-main-color-disabled);\n    rgb(255 255 255 / 65%);\n    align-items: center;\n    opacity: 1;\n  }\n\n  &.has-icon {\n    align-items: center;\n    padding: 2.5px 8px;\n\n    svg {\n      color: white;\n    }\n  }\n\n  &.secondary {\n    background-image: none;\n    background-color: var(--neko-secondary);\n    color: var(--neko-main-color);\n    border: 1px solid var(--neko-primary);\n\n    svg {\n      color: var(--neko-main-color);\n    }\n\n    &:hover {\n      background-color: var(--neko-secondary);\n      border: 1px solid var(--neko-primary);\n      filter: brightness(1.1);\n    }\n  }\n\n  &.danger {\n    background-image: none;\n    background-color: var(--neko-danger);\n    border-color: var(--neko-danger);\n  }\n\n  &.success {\n    background-image: none;\n    background-color: var(--neko-green);\n    border-color: var(--neko-green);\n\n    &:hover {\n      background-color: var(--neko-lighten-green);\n    }\n  }\n\n  & + button {\n    margin-left: .25rem;\n  }\n\n  &.small {\n    font-size: var(--neko-small-font-size);\n    height: 24px;\n    min-height: 24px;\n  }\n\n  &.header {\n    background-image: none;\n    filter: brightness(1.1);\n    background-color: var(--neko-main-color);\n    height: 40px;\n    padding: 0 20px;\n\n    &:hover {\n      background-color: var(--neko-main-color);\n      filter: brightness(1.2);\n    }\n  }\n\n  &.rounded {\n    border-radius: 100%;\n    min-width: 30px;\n    height: ","px;\n    width: ","px;\n    padding: 3px;\n  }\n\n  &.busy {\n    pointer-events: none;\n  }\n\n  &.full {\n    width: 100%;\n  }\n\n  ","\n"],y||(y=g.slice(0)),r=Object.freeze(Object.defineProperties(g,{raw:{value:Object.freeze(y)}}))),(function(t){var e,n;return null!==(e=t.height)&&void 0!==e?e:null!==(n=t.width)&&void 0!==n?n:30}),(function(t){var e;return null!==(e=t.width)&&void 0!==e?e:30}),(function(t){return b(t.color)})),b=function(t){if(t)return"\n      &.custom-color {\n        background-color: ".concat(t,";\n        border: 1px solid ").concat(t,";\n\n        &:hover {\n          background-color: ").concat(t,";\n          filter: brightness(1.1);\n        }\n      }\n    ")},x=function(t){return React.createElement(v,t)};x.propTypes={className:a().oneOf(["primary","primary-block","secondary","danger","success","header"]),disabled:a().bool,icon:a().oneOfType([a().instanceOf(l.In),a().oneOf(["setting","edit","trash"])]),color:a().string,onClick:a().func.isRequired,rounded:a().bool,isBusy:a().bool,spinning:a().bool,busyText:a().string,hideBusyIcon:a().bool,busyIconSize:a().string,requirePro:a().bool,isPro:a().bool,disabledColor:a().string}},2557:(t,e,n)=>{"use strict";n.d(e,{A:()=>p});var r=n(1594),o=n.n(r),i=n(6365),a=n.n(i),s=n(6897);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c.apply(this,arguments)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var d=function(t){var e,n,i=t.spinner,a=void 0===i||i,l=t.busy,u=void 0!==l&&l,d=t.overlayStyle,p=(e=(0,r.useState)(!0),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=p[0],g=p[1];(0,r.useEffect)((function(){var t;return u?g(!0):t=setTimeout((function(){g(!1),t=null}),250),function(){t&&clearTimeout(t)}}),[u]);var y=(0,s.gR)("neko-overlay",{overlayHidden:!u}),v=m?o().createElement(o().Fragment,null,o().createElement("div",{className:y,style:d},Boolean(a)&&o().createElement("div",{className:"lds-ellipsis "+(u?"":"spinnerHidden")},o().createElement("div",null),o().createElement("div",null),o().createElement("div",null),o().createElement("div",null))),o().createElement("style",{jsx:"true"},"\n        .neko-overlay {\n          position: absolute;\n          top: 0;\n          left: 0;\n          bottom: 0;\n          width: 100%;\n          height: 100%;\n          background: var(--neko-main-overlay-color);\n          border-radius: 8px;\n          transition: opacity 1s ease-out;\n          z-index: 10;\n          display: flex;\n          align-items: center;\n          flex-direction: column;\n          justify-content: center;\n          overflow: hidden;\n        }\n\n        .overlayHidden {\n          opacity: 0;\n          transition: opacity 0.25s ease-out;\n        }\n        .spinnerHidden {\n          opacity: 0;\n          transition: opacity 0.25s ease-out;\n        }\n        .lds-ellipsis {\n          position: relative;\n          width: 80px;\n          height: 80px;\n          display: flex;\n          justify-items: center;\n          align-items: center;\n        }\n        .lds-ellipsis div {\n          position: absolute;\n          width: 13px;\n          height: 13px;\n          border-radius: 50%;\n          background: white;\n          animation-timing-function: cubic-bezier(0, 1, 1, 0);\n        }\n        .lds-ellipsis div:nth-child(1) {\n          left: 8px;\n          animation: lds-ellipsis1 0.6s infinite;\n        }\n        .lds-ellipsis div:nth-child(2) {\n          left: 8px;\n          animation: lds-ellipsis2 0.6s infinite;\n        }\n        .lds-ellipsis div:nth-child(3) {\n          left: 32px;\n          animation: lds-ellipsis2 0.6s infinite;\n        }\n        .lds-ellipsis div:nth-child(4) {\n          left: 56px;\n          animation: lds-ellipsis3 0.6s infinite;\n        }\n        @keyframes lds-ellipsis1 {\n          0% {\n            transform: scale(0);\n          }\n          100% {\n            transform: scale(1);\n          }\n        }\n        @keyframes lds-ellipsis3 {\n          0% {\n            transform: scale(1);\n          }\n          100% {\n            transform: scale(0);\n          }\n        }\n        @keyframes lds-ellipsis2 {\n          0% {\n            transform: translate(0, 0);\n          }\n          100% {\n            transform: translate(24px, 0);\n          }\n        }\n      ")):null,b=h(h({},t),{},{busy:void 0,spinner:void 0});return o().createElement("div",c({style:{position:"relative"}},b),v,t.children)};d.propTypes={busy:a().bool.isRequired,spinner:a().bool,children:a().oneOfType([a().arrayOf(a().node),a().node]).isRequired};const p=d},5263:(t,e,n)=>{"use strict";n.d(e,{R:()=>y});var r,o=n(1594),i=n.n(o),a=n(6365),s=n.n(a),l=n(3185),c=n(1329),u=n(6087),h=n(6897),f=["name","checked","indeterminate","onChange","label","description","isPro","disabled","requirePro","isBusy","small"];function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d.apply(this,arguments)}var p,m,g=l.Ay.div(r||(p=["\n  user-select: none;\n  transition: color 0.3s ease;\n\n  &.disabled {\n    color: var(--neko-disabled-color);\n\n    .neko-content {\n      cursor: default;\n    }\n\n    .neko-checkbox-check-container, .neko-label, .description {\n      opacity: 0.35;\n    }\n  }\n\n  input {\n    display: none;\n  }\n\n  .neko-content {\n    cursor: pointer;\n    display: flex;\n  }\n\n  .neko-checkbox-check-container {\n    display: flex;\n    padding-top: 2px;\n    align-content: center;\n\n    .neko-checkbox-busy-container {\n      position: relative;\n    }\n  }\n\n  .neko-checkbox-inner-container {\n    margin-left: 6px;\n\n    .neko-label-container {\n      display: flex;\n      margin-top: 5px;\n\n      .neko-label {\n        display: block;\n        ","\n      }\n    }\n\n    .neko-content {\n      display: block;\n      font-size: var(--neko-font-size);\n      line-height: 28px;\n    }\n\n    .description {\n      display: block;\n      font-size: var(--neko-small-font-size);\n      margin-top: 1px;\n      line-height: 14px;\n      color: var(--neko-gray-60);\n\n      * {\n        font-size: var(--neko-small-font-size);\n        line-height: inherit;\n        margin: 0;\n      }\n    }\n  }\n\n  .neko-checkbox {\n    width: 22px;\n    height: 22px;\n    border: 2px solid var(--neko-input-border);\n    border-radius: 5px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    position: relative;\n\n    .neko-checked-mark {\n      position: absolute;\n      opacity: 0;\n      transition: opacity 0.2s ease-in-out;\n      transform: rotate(45deg);\n      transform-origin: center;\n      margin-top: -8%;\n      height: 45%;\n      width: 18%;\n      border-bottom: 2.5px solid white;\n      border-right: 2.5px solid white;\n    }\n\n    &.small {\n      width: 20px;\n      height: 20px;\n      border: 2px solid var(--neko-input-border);\n      border-radius: 8px;\n\n      .neko-checked-mark {\n        border-bottom-width: 1.5px;\n        border-right-width: 1.5px;\n      }\n    }\n\n    .neko-indeterminate-mark {\n      position: absolute;\n      opacity: 0;\n      transition: opacity 0.2s ease-in-out;\n      width: 50%;\n      border-bottom: 1.5px solid white;\n      border-right: 1.5px solid white;\n    }\n\n    &.disabled {\n      border: 1.5px solid var(--neko-disabled-color);\n      cursor: not-allowed;\n      filter: grayscale(1);\n    }\n  }\n\n  .neko-checked {\n    border: 2px solid var(--neko-main-color);\n\n    &.neko-checkbox {\n      background-color: var(--neko-main-color);\n\n      .neko-checked-mark {\n        opacity: 1;\n      }\n    }\n  }\n\n  .neko-indeterminate {\n    &.neko-checkbox {\n      background-color: var(--neko-main-color);\n\n      .neko-indeterminate-mark {\n        opacity: 1;\n      }\n    }\n  }\n\n  &:hover {\n    .neko-checkbox {\n      ","\n    }\n\n    ","\n    }\n  }\n"],m||(m=p.slice(0)),r=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(m)}}))),(function(t){var e=t.checked;return!t.disabled&&e?"color: var(--neko-main-color); font-weight: 600;":""}),(function(t){var e=t.checked;return!t.disabled&&e?"filter: brightness(1.1);":""}),(function(t){var e=t.checked;return t.disabled||e?"":"border-color: var(--neko-main-color);"})),y=function(t){var e=t.name,n=t.checked,r=void 0!==n&&n,o=t.indeterminate,a=void 0!==o&&o,s=t.onChange,l=t.label,p=t.description,m=t.isPro,y=void 0!==m&&m,v=t.disabled,b=t.requirePro,x=void 0!==b&&b,w=t.isBusy,k=void 0!==w&&w,S=t.small,O=void 0!==S&&S,_=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,f),E=x&&!y,C=v||E,A=(0,h.gR)("neko-checkbox",t.className,{disabled:C},{small:O}),j=(0,h.gR)("neko-checkbox",{disabled:C,"neko-checked":r,"neko-indeterminate":a,small:O}),P=(0,h.gR)("neko-checked-mark"),M=(0,h.gR)("neko-indeterminate-mark");return i().createElement(g,d({className:A,checked:r,disabled:C,onClick:function(t){return t.stopPropagation()}},_),i().createElement("div",{className:"neko-checkbox-container"},i().createElement("div",{className:"neko-content",onClick:function(n){C||(s?s(!r,e,n):console.log("The onChange handler is not set for the NekoCheckbox.",t))}},i().createElement("div",{className:"neko-checkbox-check-container"},k&&i().createElement("div",{className:"neko-checkbox-busy-container"},i().createElement("div",{className:j},i().createElement(u.X,{type:"circle",size:"16px"}))),!k&&i().createElement(i().Fragment,null,i().createElement("div",{className:j},i().createElement("div",{className:P}),i().createElement("div",{className:M})))),(l||E||p)&&i().createElement("div",{className:"neko-checkbox-inner-container"},i().createElement("span",{className:"neko-label-container"},i().createElement("span",{className:"neko-label"},l),i().createElement(c.K,{className:"inline",show:E,style:{position:"relative",top:-1}})),p?i().createElement("small",{className:"description"},p):null))))};y.propTypes={name:s().string,checked:s().bool,label:s().string,description:s().string,isPro:s().bool,requirePro:s().bool,isBusy:s().bool,small:s().bool}},4536:(t,e,n)=>{"use strict";n.d(e,{E:()=>h});var r,o,i,a=n(1594),s=n.n(a),l=n(6365),c=n.n(l),u=(0,n(3185).Ay)((function(t){var e=t.name,n=(t.max,t.isPro),r=void 0!==n&&n;return s().Children.map(t.children,(function(t){return t.props.name?t:s().cloneElement(t,{name:e,isPro:r})}))}))(r||(o=["\n"],i||(i=o.slice(0)),r=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(i)}})))),h=function(t){return s().createElement(u,t)};h.propTypes={name:c().string,max:c().number,isPro:c().bool}},8696:(t,e,n)=>{"use strict";n.d(e,{A:()=>b});var r,o=n(1594),i=n.n(o),a=n(6365),s=n.n(a),l=n(3185),c=n(8922),u=n(6897),h=["type","name","value","description","placeholder","onChange","onEnter","onBlur","onFinalChange","readOnly","step","min","max","maxLength","natural","onReset","isCommaSeparatedArray","className","style","inputStyle"];function f(){return f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f.apply(this,arguments)}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var p,m,g=function(t){return t.split(",").map((function(t){return t.trim()})).filter((function(t){return t.length>0}))},y=function(t,e){var n,r,a=t.type,s=void 0===a?"text":a,l=t.name,p=t.value,m=void 0===p?"":p,y=t.description,v=t.placeholder,b=void 0===v?"":v,x=t.onChange,w=t.onEnter,k=t.onBlur,S=t.onFinalChange,O=t.readOnly,_=void 0!==O&&O,E=t.step,C=void 0===E?1:E,A=t.min,j=void 0===A?1:A,P=t.max,M=void 0===P?999:P,R=t.maxLength,T=t.natural,L=void 0!==T&&T,I=t.onReset,N=t.isCommaSeparatedArray,z=void 0!==N&&N,D=t.className,F=t.style,B=t.inputStyle,$=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,h),H=(n=(0,o.useState)(m||0===m?m:""),r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),W=H[0],q=H[1],V=!!x,U=R||("number"===s?3:void 0);(0,o.useEffect)((function(){S&&(w||k)&&console.warn("NekoInput: Since onFinalChange is used, onEnter and onBlur are redundant.")}),[S,w,k]),(0,o.useEffect)((function(){var t;V||q(z?(t=m,Array.isArray(t)||(console.warn("The provided value is not an array. Falling back to an empty array."),t=[]),t.join(", ")):m)}),[m]);var K=function(t){var e=t.target.value,n=z?g(e):e;t.stopPropagation(),t.preventDefault(),V?x(n,l):q(e)},Q=function(t){if("Enter"===t.key){t.preventDefault();var e=t.target.value,n=z?g(e):e;S?S(n,l):w&&w(n,l)}},G=function(t){var e=t.target.value,n=z?g(e):e;(z?function(t,e){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}(m,n):m===n)||(S?S(n,l):k&&k(n,l))},Y=(0,u.gR)("neko-input",{natural:L});return i().createElement("div",{className:D,style:F},i().createElement("div",{style:{position:"relative"}},"number"===s?i().createElement("input",f({ref:e,className:Y,name:l,value:V?m:W,type:s,disabled:_,step:C,min:j,max:M,maxLength:U,onInput:function(t){t.target.value<j?t.target.value=j:t.target.value>M&&(t.target.value=M)},autoComplete:"off","data-form-type":"other",placeholder:b,style:B,onChange:K,onKeyPress:Q,onBlur:G,readOnly:_},$)):i().createElement("input",f({ref:e,className:Y},$,{name:l,value:V?m:W,type:s,disabled:_,spellCheck:"false",autoComplete:"off","data-form-type":"other",placeholder:b,style:B,maxLength:U,onChange:K,onKeyPress:Q,onBlur:G,readOnly:_},$)),!!m&&!!I&&i().createElement(c.z,{icon:"close",width:24,style:{position:"absolute",top:"3px",right:"3px"},variant:"blue",onClick:function(){return I()}})),y&&i().createElement("p",{className:"neko-input-description"},y))},v=(0,l.Ay)((0,o.forwardRef)(y))(r||(p=["\n  .neko-input {\n    font-family: var(--neko-font-family);\n    font-size: var(--neko-font-size);\n    border: 1.5px solid var(--neko-input-border);\n    box-sizing: border-box;\n    height: 30px;\n    background: var(--neko-input-background);\n    color: black;\n    padding: 0 10px;\n    width: 100%;\n    transition: background 0.3s ease;\n\n    &.natural {\n      border-color: gray;\n      border-width: 1px;\n    }\n\n    &:placeholder {\n      color: rgba(0, 0, 0, 0.25);\n    }\n\n    &:focus {\n      background-color: white;\n    }\n\n    &:read-only {\n      color: var(--neko-gray-60);\n    }\n\n    &:disabled {\n      color: var(--neko-gray-60);\n      background: var(--neko-gray-98);\n      border: none;\n      box-shadow: none;\n    }\n  }\n\n  .neko-input-description {\n    font-size: var(--neko-small-font-size);\n    color: var(--neko-gray-60);\n    line-height: 14px;\n    margin-top: 5px;\n    margin-bottom: 0;\n  }\n"],m||(m=p.slice(0)),r=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(m)}})))),b=i().forwardRef((function(t,e){return i().createElement(v,f({ref:e},t))}));b.propTypes={type:s().oneOf(["number","text"]),name:s().string,value:s().oneOfType([s().string,s().array]),description:s().string,placeholder:s().string,onChange:s().func,onEnter:s().func,onBlur:s().func,onFinalChange:s().func,readOnly:s().bool,step:s().number,min:s().number,max:s().number,maxLength:s().number,natural:s().bool,onReset:s().func,isCommaSeparatedArray:s().bool}},4677:(t,e,n)=>{"use strict";n.d(e,{j:()=>$,u:()=>B});var r,o,i,a,s,l,c,u=n(1594),h=n.n(u),f=n(6365),d=n.n(f),p=n(1329),m=n(6897),g=n(6087),y=n(5977),v=n(2027),b=n(6761),x=n(4555),w=n(6382),k=n(8922),S=n(8696),O=n(374),_=n(3185);function E(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var C=_.Ay.div(r||(r=E(["\n  border-radius: 8px;\n  user-select: none;\n  cursor: pointer;\n  transition: background 0.3s ease, color 0.3s ease;\n  color: black;\n\n  .neko-select-option-label {\n    overflow: hidden;\n    height: 100%;\n    display: flex;\n    align-items: center;\n  }\n\n  &.show-options {\n    border-radius: 8px 8px 0 0;\n  }\n\n  &[data-is-disabled=true], &.disabled {\n    cursor: none;\n    pointer-events: none;\n    color: var(--neko-gray-60);\n\n    .neko-select-option {\n      pointer-events: none;\n      background: var(--neko-gray-98);\n      border-color: var(--neko-gray-60);\n    }\n  }\n\n  &.neko-dropdown-up {\n    background: red !important;\n  }\n"]))),A=_.Ay.div(o||(o=E(["\n  align-items: center;\n  background-color: var(--neko-input-background);\n  border: 1.5px solid var(--neko-input-border);\n  border-radius: 8px;\n  display: flex;\n  font-size: var(--neko-font-size); \n  padding: 0 5px 0 10px;\n  box-sizing: border-box;\n  height: 30px;\n\n  &.isBusy {\n    padding-left: 5px;\n  }\n\n  .rightContent {\n    align-items: center;\n    display: flex;\n    margin-left: auto;\n  }\n"]))),j=_.Ay.div(i||(i=E(["\n  display: block;\n  margin-top: 5px;\n  font-size: var(--neko-small-font-size);\n  line-height: 14px;\n  color: var(--neko-gray-60);\n\n  * {\n    line-height: inherit;\n    margin: 0;\n  }\n"]))),P=_.Ay.div(a||(a=E(["\n  border-radius: 8px;\n  overflow: hidden;\n  position: absolute;\n  top: 0;\n  width: 100%;\n\n  &.hidden {\n    opacity: 0;\n  }\n\n  &.neko-dropdown-up {\n    margin-top: calc(-200% + 22px);\n  }\n"]))),M=_.Ay.div(s||(s=E(["\n  overflow-y: auto;\n  max-height: 300px;\n  background-color: var(--neko-main-color-alternative);\n\n  &.neko-select-filter-container {\n    background-color: var(--neko-main-color-alternative);\n    padding: 6px;\n    margin-top: 2px;\n    overflow: hidden;\n\n    div {\n      overflow: hidden;\n    }\n  }\n"]))),R=_.Ay.div(l||(l=E(["\n  margin-bottom: 0px;\n\n  input {\n    display: none;\n  }\n\n  label {\n    cursor: pointer;\n    display: flex;\n  }\n\n  .inner-container {\n    margin-left: 4px;\n\n    .label {\n      display: block;\n      font-size: var(--neko-font-size);\n      line-height: 17px;\n      padding-top: 4.5px;\n      padding-bottom: 4px;\n    }\n    .description {\n      display: block;\n      font-size: var(--neko-small-font-size);\n    }\n  }\n\n  &.disabled {\n    color: var(--neko-disabled-color);\n\n    label {\n      cursor: default;\n    }\n  }\n"]))),T=_.Ay.div(c||(c=E(["\n  background-color: var(--neko-main-color-alternative);\n  cursor: pointer;\n  font-size: var(--neko-font-size); \n  padding: 6px 12px;\n\n  &:hover {\n    filter: brightness(80%);\n  }\n\n  input {\n    display: none;\n  }\n\n  .option {\n    align-items: center;\n    color: var(--neko-white);\n    display: flex;\n    justify-content: space-between;\n    font-size: var(--neko-font-size); \n    line-height: 17px;\n\n    .option-group {\n      align-items: center;\n      display: flex;\n    }\n  }\n\n  &.disabled {\n    background-color: rgb(224 156 54);\n    pointer-events: none;\n\n    .option {\n      color: rgb(255 255 255 / 35%);\n    }\n  }\n"]))),L=["name","description","scrolldown","isPro","onChange","isBusy","chevronIconSize","textFiltering","value","className","disabled","requirePro"];function I(){return I=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},I.apply(this,arguments)}function N(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return z(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var D=function(t){var e,n=t.name,r=t.description,o=t.scrolldown,i=void 0!==o&&o,a=t.isPro,s=void 0!==a&&a,l=t.onChange,c=t.isBusy,f=void 0!==c&&c,d=t.chevronIconSize,v=void 0===d?24:d,b=t.textFiltering,_=t.value,E=t.className,R=t.disabled,T=(t.requirePro,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,L)),z=null===(e=h().Children.toArray(t.children).find((function(t){return t.props.value===_||t.props.checked})))||void 0===e?void 0:e.props,D=(null==z?void 0:z.label)||"Select",F=(null==z?void 0:z.description)||r,B=(null==z?void 0:z.requirePro)||!1,$=null==z?void 0:z.icon,H=null==z?void 0:z.iconSize,W=N((0,u.useState)(!1),2),q=W[0],V=W[1],U=N((0,u.useState)(""),2),K=U[0],Q=U[1],G=(0,u.useRef)(),Y=B&&!s,Z=function(e){if(e!==_){if(!l)return void console.log("The onChange handler it not set for this checkbox.",t);l(e,n)}i&&V(!1)},X=h().Children.map(t.children,(function(t){return t?h().cloneElement(t,{name:t.props.name||n,checked:t.props.value===_||t.props.checked,onClick:Z,scrolldown:i,isPro:s,disabled:R}):null})),J=(0,u.useMemo)((function(){if(!K||!X.length)return X;var t=[];return h().Children.forEach(X,(function(e){(e.props.label.includes(K)||e.props.value.includes(K))&&t.push(e)})),t}),[X,K]),tt=(0,m.gR)("neko-select",E,{"show-options":q,disabled:R||f}),et=(0,m.gR)("neko-select-options",{hidden:!q}),nt=(0,m.gR)("neko-select-option",{isBusy:f});return i?h().createElement(C,I({name:n},T,{onClick:function(){return V(!q)},className:tt,"data-is-disabled":R||f}),h().createElement(A,{className:nt,ref:G},f?h().createElement(h().Fragment,null,h().createElement(g.X,{type:"circle",size:"20px"})):h().createElement(h().Fragment,null,$&&h().createElement(k.z,{icon:$,width:H,height:H,style:{marginRight:"".concat(Math.max(H-15,4),"px")}}),h().createElement("span",{className:"neko-select-option-label"},D),h().createElement("div",{className:"rightContent"},Y&&h().createElement(p.K,null),h().createElement(y.In,{icon:q?w.A:x.A,width:v})))),F&&h().createElement(j,null,F),h().createElement(O.G,{visible:q,targetRef:G,onClose:function(){q&&V(!1)}},h().createElement(P,{className:et},b&&h().createElement(M,{className:"neko-select-filter-container"},h().createElement(S.A,{value:K,placeholder:"Search...",onChange:function(t){return Q(t)},onClick:function(t){return t.stopPropagation()},style:{background:"var(--neko-white)"},inputStyle:{margin:0,borderRadius:0},autoFocus:!0})),h().createElement(M,null,[J])))):X},F=function(t){var e=t.id,n=t.name,r=t.value,o=t.checked,i=void 0!==o&&o,a=t.label,s=t.description,l=t.onClick,c=t.scrolldown,u=void 0!==c&&c,f=t.isPro,d=void 0!==f&&f,g=t.optionDisabled,x=void 0!==g&&g,w=t.requirePro,S=void 0!==w&&w,O=t.icon,_=t.iconSize,E=void 0===_?20:_,C=S&&!d,A=(0,m.gR)({"neko-radio":!u},{"neko-select-option":u},t.className,{disabled:C||x}),j=h().createElement(R,{className:A,onClick:function(){return l(r,n)}},h().createElement("label",{htmlFor:e},h().createElement(y.In,{icon:i?b.A:v.A,width:"24px",color:C?"var(--neko-disabled-color)":i?"var(--neko-main-color)":"var(--neko-input-border)"}),h().createElement("div",{className:"inner-container"},h().createElement("span",{className:"label"},a,h().createElement(p.K,{className:"inline",style:{top:-1},show:C})),s?h().createElement("small",{className:"description"},s):null))),P=h().createElement(T,{className:A,onClick:function(){return l(r,n)}},h().createElement("div",{className:"option"},h().createElement("div",{className:"option-group"},O&&h().createElement(k.z,{icon:O,width:E,height:E,style:{marginRight:"".concat(Math.max(E-11,4),"px")}}),a),h().createElement(p.K,{show:C})));return u?P:j},B=function(t){return h().createElement(D,t)};B.propTypes={name:d().string,description:d().string,scrolldown:d().bool,isPro:d().bool,onChange:d().func,isBusy:d().bool,chevronIconSize:d().number,textFiltering:d().bool};var $=function(t){return h().createElement(F,t)};$.propTypes={id:d().string,name:d().string,value:d().string,checked:d().bool,label:d().string,description:d().string,onClick:d().func,scrolldown:d().bool,isPro:d().bool,optionDisabled:d().bool,requirePro:d().bool,icon:d().string,iconSize:d().number}},8482:(t,e,n)=>{"use strict";n.d(e,{S:()=>m});var r,o=n(1594),i=n(6365),a=n.n(i),s=n(3185),l=n(6897),c=["width","height","fontSize","onLabel","offLabel","onBackgroundColor","offBackgroundColor","onValue","offValue","small","checked","onChange","disabled"];function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function h(t){return"number"==typeof t?"".concat(t,"px"):t}var f,d,p=s.Ay.div(r||(f=["\n  color: var(--neko-white);\n  font-family: var(--neko-font-family);\n  font-size: ",";\n  position: relative;\n  display: inline-block;\n  width: ",";\n  height: ",";\n\n  &[data-is-disabled=disabled] {\n    opacity: 0.4;\n\n    .neko-slider {\n      cursor: auto;\n    }\n  }\n\n  input {\n    opacity: 0;\n    width: 0;\n    height: 0;\n    border: 0;\n  }\n\n  .neko-slider {\n    background-color: ",';\n    border-radius: 35px;\n    align-items: center;\n    cursor: pointer;\n    display: inline-flex;\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n    transition: .4s;\n    margin-bottom: -2px;\n  }\n\n  .neko-slider:before {\n    border-radius: 50%;\n    position: absolute;\n    content: "";\n    height: ',";\n    width: ",';\n    left: 4px;\n    bottom: 5px;\n    background-color: white;\n    transition: .3s;\n  }\n\n  .neko-slider:after {\n    content: "','";\n    margin-left: auto;\n    margin-right: ',";\n  }\n\n  &.neko-checked .neko-slider {\n    background-color: ",";\n  }\n\n  &.neko-checked .neko-slider:before {\n    transform: translateX(",');\n  }\n\n  &.neko-checked .neko-slider:after {\n    content: "','";\n    margin-left: ',";\n    margin-right: auto;\n  }\n"],d||(d=f.slice(0)),r=Object.freeze(Object.defineProperties(f,{raw:{value:Object.freeze(d)}}))),(function(t){return t.fontSize}),(function(t){return h(t.width)}),(function(t){return h(t.height)}),(function(t){return t.$offBackgroundColor||"var(--neko-disabled-color)"}),(function(t){return"calc(".concat(h(t.height)," - 8px)")}),(function(t){return"calc(".concat(h(t.height)," - 8px)")}),(function(t){return t.$offLabel}),(function(t){return"calc(".concat(h(t.height)," / 2)")}),(function(t){return t.$onBackgroundColor}),(function(t){return"calc(".concat(h(t.width)," - ").concat(h(t.height),")")}),(function(t){return t.$onLabel}),(function(t){return"calc(".concat(h(t.height)," / 2)")})),m=function(t){var e=t.width,n=void 0===e?40:e,r=t.height,i=void 0===r?24:r,a=t.fontSize,s=void 0===a?"13px":a,h=t.onLabel,f=void 0===h?"Yes":h,d=t.offLabel,m=void 0===d?"No":d,g=t.onBackgroundColor,y=void 0===g?"var(--neko-success)":g,v=t.offBackgroundColor,b=void 0===v?"var(--neko-disabled-color)":v,x=t.onValue,w=t.offValue,k=t.small,S=t.checked,O=void 0!==S&&S,_=t.onChange,E=t.disabled,C=void 0!==E&&E,A=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,c),j=(0,l.gR)("neko-switch",{small:k,"neko-checked":O}),P=(0,o.useCallback)((function(t){C||_(t?void 0===x||x:void 0!==w&&w)}),[x,w,_,C]);return k&&(i=20,s="11px"),React.createElement(p,u({className:j,width:n,height:i,fontSize:s},A,{$offBackgroundColor:b,$onBackgroundColor:y,$onLabel:f,$offLabel:m,"data-is-disabled":C?"disabled":""}),React.createElement("span",{className:"neko-slider",onClick:function(){return P(!O)}}))};m.propTypes={width:a().number,height:a().number,fontSize:a().string,onValue:a().string,offValue:a().string,checked:a().bool,onBackgroundColor:a().string,offBackgroundColor:a().string,onLabel:a().string,offLabel:a().string}},3896:(t,e,n)=>{"use strict";n.d(e,{m:()=>x});var r=n(1594),o=n.n(r),i=n(6365),a=n.n(i),s=n(3185),l=n(6897);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}var u,h=["name","value","rows","description","placeholder","onEnter","onBlurForce","readOnly","avoidOnEnterWithShift","fullHeight","maxLength","className","style","textAreaStyle","countable","disabled","tabToSpaces"];function f(){return f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f.apply(this,arguments)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var y,v,b=(0,s.Ay)((function(t){var e,n=t.name,i=t.value,a=void 0===i?"":i,s=t.rows,c=void 0===s?6:s,u=t.description,d=t.placeholder,g=void 0===d?"":d,y=t.onEnter,v=void 0===y?null:y,b=t.onBlurForce,x=void 0!==b&&b,w=t.readOnly,k=void 0!==w&&w,S=t.avoidOnEnterWithShift,O=void 0!==S&&S,_=t.fullHeight,E=void 0!==_&&_,C=t.maxLength,A=void 0===C?null:C,j=t.className,P=t.style,M=t.textAreaStyle,R=void 0===M?{}:M,T=t.countable,L=void 0!==T&&T,I=t.disabled,N=t.tabToSpaces,z=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,h),D=m((0,r.useState)(a),2),F=D[0],B=D[1],$=m((0,r.useState)(0),2),H=$[0],W=$[1],q=m((0,r.useState)(!1),2),V=q[0],U=q[1],K=!!t.onChange,Q=(0,r.useRef)(null),G=(0,r.useCallback)((function(t){if(N&&"Tab"===t.key){t.preventDefault();var e=Q.current.selectionStart,n=Q.current.selectionEnd,r=Q.current.value;Q.current.value=r.substring(0,e)+"  "+r.substring(n),Q.current.selectionStart=Q.current.selectionEnd=e+2}else U(t.shiftKey)}),[]),Y=(0,r.useCallback)((function(){U(!1)}),[]);(0,r.useEffect)((function(){return document.addEventListener("keydown",G,!1),document.addEventListener("keyup",Y,!1),function(){document.removeEventListener("keydown",G,!1),document.removeEventListener("keyup",Y,!1)}}),[]),(0,r.useEffect)((function(){if(K||B(a),"words"===L){var t=a.split(" ").filter((function(t){return""!==t})).length;W(t)}else L&&W(a.length)}),[a,L,K]);var Z=(0,r.useCallback)((function(e){var r=A?e.target.value.substr(0,A):e.target.value;e.stopPropagation(),K?t.onChange(r,n):B(r,n)}),[A,K,t,n]),X=(0,l.gR)(j,{disabled:I});return o().createElement("div",{className:X,style:P},o().createElement("div",{className:"neko-textarea-container"},o().createElement("textarea",f({ref:Q,className:"neko-textarea",rows:c,disabled:I},z,{name:n,spellCheck:"false",placeholder:g,onChange:Z,onKeyPress:function(e){if(v&&!e.shiftKey&&"Enter"===e.key){if(O&&V)return;e.preventDefault(),t.onEnter(e.target.value,n)}},onBlur:function(e){(x||t.onBlur&&a!==e.target.value)&&t.onBlur(e.target.value,n)},readOnly:k,style:p(p({},R),{},{height:E?"100%":null!==(e=R.height)&&void 0!==e?e:void 0}),value:K?a:F})),o().createElement("div",{className:"neko-text-area-extra"},u&&o().createElement("div",{className:"neko-input-description"},u),L&&o().createElement("div",{className:"neko-textarea-count"},H,A?" / ".concat(A):""," ","words"===L?"words":"chars"))))}))(u||(y=["\n  .neko-textarea-container {\n    position: relative;\n    height: ","\n  }\n\n  .neko-textarea {\n    font-size: var(--neko-font-size);\n    border: 1.5px solid var(--neko-input-border);\n    box-sizing: border-box;\n    background: var(--neko-input-background);\n    color: black;\n    padding: 5px 10px;\n    width: 100%;\n\n    &::placeholder {\n      color: rgba(0, 0, 0, 0.25);\n    }\n\n    :focus {\n      background-color: white;\n      border-color: #2271b1;\n      box-shadow: 0 0 0 1px #2271b1;\n      outline: 2px solid transparent;\n    }\n\n    :read-only {\n      background-color: var(--neko-gray-60);\n      border: none;\n    }\n  }\n\n  .neko-text-area-extra {\n    display: flex;\n    justify-content: space-between;\n    color: var(--neko-gray-60);\n    font-size: var(--neko-small-font-size);\n    line-height: 14px;\n\n    .neko-textarea-count {\n      margin: 5px 0 0 10px;\n      text-align: right;\n      min-width: 130px;\n      display: block;\n    }\n  \n    .neko-input-description {\n      margin-top: 5px;\n      margin-bottom: 0;\n      flex: auto;\n      font-size: var(--neko-small-font-size);\n    }\n  }\n\n  &.disabled {\n    .neko-textarea {\n      border: 1.5px solid var(--neko-disabled-color);\n      cursor: not-allowed;\n      opacity: 0.35;\n    }\n  }\n"],v||(v=y.slice(0)),u=Object.freeze(Object.defineProperties(y,{raw:{value:Object.freeze(v)}}))),(function(t){return t.fullHeight?"100%":void 0})),x=function(t){return o().createElement(b,t)};x.propTypes={name:a().string,value:a().string,rows:a().number,description:a().string,placeholder:a().string,onChange:a().func,onEnter:a().func,onBlur:a().func,onBlurForce:a().bool,readOnly:a().bool,avoidOnEnterWithShift:a().bool,fullHeight:a().bool}},8135:(t,e,n)=>{"use strict";n.d(e,{YS:()=>T,z3:()=>P,IU:()=>A,F1:()=>_,Tb:()=>j,yy:()=>M,FE:()=>R});var r=n(1594),o=n.n(r);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:String(e)}var c=s((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.url=r,this.message=e,this.code=n,this.body=o,this.debug=i,this.cancelledByUser="USER-ABORTED"===n}));function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function h(t,e,n){return e=d(e),function(t,e){if(e&&("object"===S(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function m(t){var e=function(t,e){if("object"!=S(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==S(e)?e:String(e)}function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||w(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(){y=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new R(r||[]);return o(a,"_invoke",{value:A(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",m="completed",g={};function v(){}function b(){}function x(){}var w={};c(w,a,(function(){return this}));var k=Object.getPrototypeOf,O=k&&k(k(T([])));O&&O!==n&&r.call(O,a)&&(w=O);var _=x.prototype=v.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(o,i,a,s){var l=h(t[o],t,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==S(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,n,r){var o=f;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=j(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var c=h(e,n,r);if("normal"===c.type){if(o=r.done?m:d,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(S(e)+" is not iterable")}return b.prototype=x,o(_,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:b,configurable:!0}),b.displayName=c(x,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,c(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},E(C.prototype),c(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(_),c(_,l,"Generator"),c(_,a,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function v(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function b(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){v(i,r,o,a,s,"next",t)}function s(t){v(i,r,o,a,s,"throw",t)}a(void 0)}))}}function w(t,e){if(t){if("string"==typeof t)return k(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(t,e):void 0}}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}var O=function(t){var e=[];return function(n,r){if("object"===S(r)&&null!==r){if(-1!==e.indexOf(r)){if(!t)throw console.warn("Circular reference found.",{key:n,value:r,cache:e,cacheIndex:e.indexOf(r)}),new Error("Circular reference found. Cancelled.");return}e.push(r)}return r}};function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return JSON.stringify(t,O(n),e)}var E=function(t){if(!t.data)return t;if(t.data.length>0&&t.data[0].meta){var e,n=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=w(t))){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(t.data);try{for(n.s();!(e=n.n()).done;){var r=e.value;try{r.meta=JSON.parse(r.meta)}catch(t){console.error("[JsonFetcher]","Could not decode meta.",r.meta)}}}catch(t){n.e(t)}finally{n.f()}}else if(t.data.meta)try{t.data.meta=JSON.parse(t.data.meta)}catch(t){console.error("[JsonFetcher]","Could not decode meta.",x.meta)}return t},C=function(){var t=b(y().mark((function t(e){var n,r,o,i,a,s,l,u,h,f=arguments;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=f.length>1&&void 0!==f[1]?f[1]:{},r=null,o={},i=null,a=null,t.prev=5,(n=n||{}).headers=n.headers?n.headers:{},n.headers.Pragma="no-cache",n.headers["Cache-Control"]="no-cache",t.next=12,fetch("".concat(e),n);case 12:return a=t.sent,t.next=15,a.text();case 15:r=t.sent,(o=JSON.parse(r)).success||(s=!1===o.success?"NOT-SUCCESS":"N/A",l=o.message?o.message:"Unknown error. Check your Console Logs.","rest_no_route"===o.code?(l="The API can't be accessed. Are you sure the WP REST API is enabled? Check this article: https://meowapps.com/fix-wordpress-rest-api/.",s="NO-ROUTE"):"internal_server_error"===o.code&&(l="Server error. Please check your PHP Error Logs.",s="SERVER-ERROR"),i=new c(l,s,e,r||a)),t.next=27;break;case 20:t.prev=20,t.t0=t.catch(5),console.error("[nekoFetch]",t.t0),u="BROKEN-REPLY",h="The reply sent by the server is broken.","AbortError"===t.t0.name?(u="USER-ABORTED",h="The request was aborted by the user."):a&&a.status&&408===a.status&&(u="REQUEST-TIMEOUT",h="The request generated a timeout."),i=new c(h,u,e,r||a,t.t0);case 27:return i&&(o.success=!1,o.message=i.message,o.error=i),t.abrupt("return",E(o));case 29:case"end":return t.stop()}}),t,null,[[5,20]])})));return function(e){return t.apply(this,arguments)}}(),A=function(){var t=b(y().mark((function t(e){var n,r,o,i,a,s,l,c,u,h,f,d,p,m,v,b,x,w,k,S,O=arguments;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=(n=O.length>1&&void 0!==O[1]?O[1]:{}).json,o=void 0===r?null:r,i=n.method,a=void 0===i?"GET":i,s=n.signal,l=n.file,c=n.nonce,u=n.bearerToken,"GET"!==a||!o){t.next=4;break}throw new Error("NekoFetch: GET method does not support json argument (".concat(e,")."));case 4:if(h=l?new FormData:null,l)for(h.append("file",l),f=0,d=Object.entries(o);f<d.length;f++)p=g(d[f],2),m=p[0],v=p[1],h.append(m,v);return b={},c&&(b["X-WP-Nonce"]=c),u&&(b.Authorization="Bearer ".concat(u)),h||(b["Content-Type"]="application/json"),x={method:a,headers:b,body:h||(o?_(o):null),signal:s},w=null,t.prev=12,t.next=15,C(e,x);case 15:if((w=t.sent).success){t.next=18;break}throw new Error(null!==(k=null===(S=w)||void 0===S?void 0:S.message)&&void 0!==k?k:"Unknown error.");case 18:return t.abrupt("return",w);case 21:throw t.prev=21,t.t0=t.catch(12),t.t0;case 24:case"end":return t.stop()}}),t,null,[[12,21]])})));return function(e){return t.apply(this,arguments)}}(),j=function(){var t=b(y().mark((function t(e){var n,r,o,i,a,s,l,c,u,h,f,d,p,m,v=arguments;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=(n=v.length>1&&void 0!==v[1]?v[1]:{}).json,o=void 0===r?{}:r,i=n.signal,a=n.file,s=n.nonce,l=n.bearerToken,c=a?new FormData:null,a)for(c.append("file",a),u=0,h=Object.entries(o);u<h.length;u++)f=g(h[u],2),d=f[0],p=f[1],c.append(d,p);return m=s?{"X-WP-Nonce":s}:{},l&&(m.Authorization="Bearer ".concat(l)),c||(m["Content-Type"]="application/json"),t.abrupt("return",C(e,{method:"POST",headers:m,body:c||_(o),signal:i}));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),P=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=e<0?0:e,r=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=t>0?Math.floor(Math.log(t)/Math.log(1024)):0;return"Bytes"===r[o]&&(o=1),(t=parseFloat((t/Math.pow(1024,o)).toFixed(n))).toFixed(Math.max(n,(t.toString().split(".")[1]||[]).length))+" "+r[o]};function M(t){return new Promise((function(e){return setTimeout(e,t)}))}var R=function(t){return o().createElement("span",{style:{display:"inline"},dangerouslySetInnerHTML:{__html:t}})},T=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=h(this,e,[t])).state={hasError:!1},n}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,i=[{key:"getDerivedStateFromError",value:function(t){return{hasError:t}}}],(r=[{key:"render",value:function(){if(this.state.hasError){var t;return t="string"==typeof this.state.hasError?this.state.hasError:this.state.hasError.message?this.state.hasError.message:this.state.hasError.toString?this.state.hasError.toString():_(this.state.hasError),o().createElement(o().Fragment,null,o().createElement("div",{style:{background:"var(--neko-red)",color:"white",margin:15,padding:15,borderRadius:15}},o().createElement("pre",{style:{margin:0,whiteSpace:"pre-wrap"}},"⚠️ ",o().createElement("b",null,"Error"),o().createElement("br",null),"Sorry, an error occured! Don't worry, I will fix this, so simply let me know about it.",o().createElement("br",null),"Here is some information about it:",o().createElement("br",null),o().createElement("br",null),t)))}return this.props.children}}])&&u(n.prototype,r),i&&u(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}(o().Component)},6897:(t,e,n)=>{"use strict";n.d(e,{$$:()=>x,Kt:()=>g,XS:()=>v,gR:()=>w,jz:()=>y,v_:()=>b});var r=n(1594),o=n(6815),i=n(8135),a=n(9794),s=n(9296);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(){c=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),s=new R(r||[]);return o(a,"_invoke",{value:A(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",m="suspendedYield",g="executing",y="completed",v={};function b(){}function x(){}function w(){}var k={};h(k,a,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(T([])));O&&O!==n&&r.call(O,a)&&(k=O);var _=w.prototype=b.prototype=Object.create(k);function E(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(o,i,a,s){var c=d(t[o],t,i);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==l(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,n,r){var o=p;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=j(s,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?y:m,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=y,r.method="throw",r.arg=c.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(l(e)+" is not iterable")}return x.prototype=w,o(_,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:x,configurable:!0}),x.displayName=h(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},E(C.prototype),h(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new C(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(_),h(_,u,"Generator"),h(_,a,(function(){return this})),h(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function u(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function h(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){u(i,r,o,a,s,"next",t)}function s(t){u(i,r,o,a,s,"throw",t)}a(void 0)}))}}function f(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=p(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var g=function(){var t=(0,r.useRef)(),e=d((0,r.useState)({}),2),n=e[0],o=e[1];return(0,r.useEffect)((function(){var e=new ResizeObserver((function(t){var e=t[0];e.contentRect&&o({width:e.contentRect.left+e.contentRect.right,height:e.contentRect.top+e.contentRect.bottom})}));if(t.current)return e.observe(t.current),function(){t.current&&e.unobserve(t.current)}}),[t]),{ref:t,width:n.width?n.width:0,height:n.height?n.height:0}},y=function(t,e){var n=(0,r.useRef)(),o=e?Array.isArray(e)?e:[e]:[n],i=function(e){if(t){var n,r=!1,i=f(o);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(null!=a&&a.current&&a.current.contains(e.target)){r=!0;break}}}catch(t){i.e(t)}finally{i.f()}r||t()}};return(0,r.useEffect)((function(){return document.addEventListener("mousedown",i),function(){document.removeEventListener("mousedown",i)}})),n},v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.i18n,n=void 0===e?null:e,l=t.onStop,u=void 0===l?function(){}:l,p=d((0,r.useState)(new o.A({concurrency:1,autoStart:!1})),2),m=p[0],g=p[1],y=d((0,r.useState)(new AbortController),2),v=y[0],b=y[1],x=(0,r.useRef)(!1),w=(0,r.useRef)(0),k=(0,r.useRef)(null),S=(0,r.useRef)(0),O=(0,r.useRef)(0),_=d((0,r.useState)(!1),2),E=_[0],C=_[1],A=d((0,r.useState)(null),2),j=A[0],P=A[1],M=d((0,r.useState)(!1),2),R=M[0],T=M[1],L=d((0,r.useState)(0),2),I=L[0],N=L[1],z=d((0,r.useState)(!1),2),D=z[0],F=z[1],B=d((0,r.useState)(!1),2),$=B[0],H=B[1],W=d((0,r.useState)(0),2),q=W[0],V=W[1],U=function(){var t=h(c().mark((function t(){var e;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=new AbortController,b(e),F(!1),w.current=0,x.current=!1,T(!1),H(!1),V(0),N(0),g(new o.A({concurrency:1,autoStart:!1}));case 10:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),K=function(){var t=h(c().mark((function t(e){var n;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new Promise(function(){var t=h(c().mark((function t(n,r){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return F(!1),S.current=0,O.current=0,w.current=0,x.current=!1,T(!1),H(!1),nt(e),P(!0),m.start(),t.next=13,m.onIdle();case 13:J(),n();case 15:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()),t.abrupt("return",n);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Q=(0,r.useCallback)(h(c().mark((function t(){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:m.pause(),T(!0);case 3:case"end":return t.stop()}}),t)}))),[m]),G=(0,r.useCallback)(h(c().mark((function t(){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:F(!1),T(!1),m.start();case 4:case"end":return t.stop()}}),t)}))),[m]),Y=(0,r.useCallback)(h(c().mark((function t(){var e,n=arguments;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=n.length>0&&void 0!==n[0]?n[0]:5,S.current=e,O.current=e,Z();case 4:case"end":return t.stop()}}),t)}))),[Z]),Z=(0,r.useCallback)(h(c().mark((function t(){var e,n;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(F(!1),T(!1),!(O.current>0)){t.next=13;break}if(!(O.current<S.current)){t.next=12;break}return e=S.current-O.current,C(!0),n=5e3*e,t.next=11,(0,i.yy)(n);case 11:C(!1);case 12:O.current--;case 13:if(!k.current){t.next=16;break}return t.next=16,tt(k.current,!0);case 16:case"end":return t.stop()}}),t)}))),[tt]),X=(0,r.useCallback)(h(c().mark((function t(){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:m.pause(),v.abort(),P(!1),F(!1),H(!1),u();case 7:case"end":return t.stop()}}),t)}))),[v,u,m]),J=function(){var t=h(c().mark((function t(){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:H(!0),P(!1);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),tt=(0,r.useCallback)(function(){var t=h(c().mark((function t(e){var n,r,o=arguments;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.length>1&&void 0!==o[1]&&o[1],t.prev=1,n&&(w.current--,V((function(t){return t-1}))),k.current=e,t.next=6,e(v.signal);case 6:if(!1!==(null==(r=t.sent)?void 0:r.success)){t.next=9;break}throw new Error(r.message);case 9:n&&(O.current=S.current,m.start()),t.next=28;break;case 12:if(t.prev=12,t.t0=t.catch(1),"AbortError"!==(null===t.t0||void 0===t.t0?void 0:t.t0.name)){t.next=19;break}return console.log("[useNekoTasks] Aborted"),t.abrupt("return");case 19:if(w.current++,x.current){t.next=28;break}if(Q(),!(O.current>0)){t.next=27;break}return Z(),t.abrupt("return");case 27:F(t.t0);case 28:return t.prev=28,V((function(t){return t+1})),t.finish(28);case 31:case"end":return t.stop()}}),t,null,[[1,12,28,31]])})));return function(e){return t.apply(this,arguments)}}(),[v.signal,Q,Z,m]),et=function(){var t=h(c().mark((function t(e){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:m.add(h(c().mark((function t(){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",tt(e));case 1:case"end":return t.stop()}}),t)})))),N((function(t){return t+1}));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),nt=function(){var t=h(c().mark((function t(e){var n,r,o;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:m.clear(),n=f(e);try{for(n.s();!(r=n.n()).done;)o=r.value,et(o)}catch(t){n.e(t)}finally{n.f()}V(0);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),rt=(0,r.useCallback)((function(){x.current=!0}),[]),ot=(0,r.useCallback)((function(){return w.current}),[]),it=(0,r.useMemo)((function(){return React.createElement(a.n,{isOpen:D,onRequestClose:X,title:n?n.COMMON.ERROR:"Error",content:React.createElement(React.Fragment,null,React.createElement("b",null,null!=D&&D.message?D.message:D||"Unknown error."),React.createElement("p",null)),customButtons:React.createElement("div",{style:{display:"flex",width:"100%",flexDirection:"column"}},React.createElement("div",{style:{display:"flex",alignItems:"center"}},React.createElement(s.M,{style:{flex:2},className:"primary",onClick:Z},n?n.COMMON.RETRY:"Retry"),React.createElement(s.M,{style:{flex:1},className:"secondary",onClick:function(){Y(10)}},React.createElement("small",null,n?n.COMMON.AUTO_RETRY:"Auto Retry")),React.createElement(s.M,{style:{flex:2},className:"primary",onClick:G},n?n.COMMON.SKIP:"Skip"),React.createElement(s.M,{style:{flex:1},className:"secondary",onClick:function(){rt(),G()}},React.createElement("small",null,n?n.COMMON.AUTO_SKIP:"Auto Skip")),React.createElement(s.M,{style:{flex:2},className:"danger",onClick:X},n?n.COMMON.STOP:"Stop")),React.createElement("small",{style:{marginTop:10,lineHeight:"13px"}},n?n.COMMON.AUTO_RETRY_DESCRIPTION:"Auto Retry will retry the task 10 times."))})}),[Y,D,n,G,Z,rt,X]);return{start:K,stop:X,pause:Q,resume:G,reset:U,retry:Z,autoRetry:Y,isSleeping:E,addTask:et,setAlwaysSkip:rt,getErrorCount:ot,TasksErrorModal:it,error:D,success:$,busy:j,paused:R,value:q,max:I}},b=function(){var t=d((0,r.useState)(!1),2),e=t[0],n=t[1],o=d((0,r.useState)(!1),2),i=o[0],a=o[1],s=(0,r.useCallback)((function(t){n(t.shiftKey),a(t.ctrlKey||t.metaKey)}),[]),l=(0,r.useCallback)((function(){n(!1),a(!1)}),[]);return(0,r.useEffect)((function(){return document.addEventListener("keydown",s,!1),document.addEventListener("keyup",l,!1),function(){document.removeEventListener("keydown",s,!1),document.removeEventListener("keyup",l,!1)}}),[]),{pressShift:e,pressControl:i}},x=function(t,e){var n=(0,r.useRef)();(0,r.useEffect)((function(){n.current=t}),[t]),(0,r.useEffect)((function(){if(null!==e){var t=setInterval((function(){n.current()}),e);return function(){return clearInterval(t)}}}),[e])},w=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(0,r.useMemo)((function(){var t=[];return e.forEach((function(e){"string"==typeof e?e.trim().split(" ").filter((function(t){return t.length>0})).forEach((function(e){return t.push(e)})):"object"===l(e)&&Object.keys(e).forEach((function(n){e[n]&&t.push(n)}))})),t.join(" ")}),[e])}},1329:(t,e,n)=>{"use strict";n.d(e,{K:()=>g});var r,o=n(1594),i=n.n(o),a=n(6365),s=n.n(a),l=n(3185),c=n(6897),u=["show","className"];function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},h.apply(this,arguments)}var f,d,p=l.Ay.a(r||(f=["\n  background-color: var(--neko-yellow);\n  position: relative;\n  border-radius: 10px;\n  color: white !important;\n  font-size: 9px;\n  line-height: 10px;\n  padding: 5px 8px;\n  text-transform: uppercase;\n  text-decoration: none;\n  white-space: nowrap;\n\n  &:hover {\n    filter: brightness(1.1);\n  }\n\n  &.inline {\n    display: inline;\n    margin-left: 5px;\n    vertical-align: middle;\n  }\n"],d||(d=f.slice(0)),r=Object.freeze(Object.defineProperties(f,{raw:{value:Object.freeze(d)}})))),m=function(t){var e=t.show,n=void 0===e||e,r=t.className,o=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,u),a=(0,c.gR)("neko-pro-only",r);return n?i().createElement(p,h({href:"https://meowapps.com",target:"_blank",className:a},o),"Pro Only"):null},g=function(t){return i().createElement(m,t)};g.propTypes={show:s().bool,className:s().string}},4461:(t,e,n)=>{"use strict";n.d(e,{z:()=>g});var r,o,i,a=n(1594),s=n.n(a),l=n(6365),c=n.n(l),u=n(3185),h=n(4977),f=n(2557),d=n(6897),p=u.Ay.div(r||(o=["\n  font-size: var(--neko-font-size);\n  margin-bottom: 15px;\n\n  .neko-block-header {\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n  }\n\n  .neko-block-title {\n    padding: 5px 10px;\n    margin-bottom: 5px;\n  }\n\n  .neko-block-content {\n    background: white;\n    color: var(--neko-font-color);\n    padding: 15px 15px;\n    box-shadow: 0px 8px 8px -8px rgba(0, 0, 0, 0.35);\n    border-radius: 8px;\n\n    p:first-child {\n      margin-top: 0;\n    }\n\n    p:last-child {\n      margin-bottom: 0;\n    }\n  }\n\n  &.primary {\n    padding: 8px;\n    background-color: var(--neko-main-color);\n    color: white;\n\n    .neko-block-title {\n      color: white;\n    }\n\n    .neko-block-content {\n      background-color: white;\n    }\n  }\n\n  &.standard {\n    .neko-block-content {\n      box-shadow: none;\n    }\n  }\n\n  &.raw {\n    padding: 8px;\n    background-color: var(--neko-main-color);\n    color: white;\n\n    .neko-block-title {\n      color: white;\n    }\n\n    .neko-block-content {\n      padding: 0;\n      background: none;\n    }\n\n    .neko-block-content {\n      box-shadow: none;\n    }\n  }\n"],i||(i=o.slice(0)),r=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(i)}})))),m=function(t){var e=t.title,n=t.children,r=t.className,o=void 0===r?"":r,i=t.busy,a=void 0!==i&&i,l=t.style,c=void 0===l?{}:l,u=t.contentStyle,m=void 0===u?{}:u,g=t.action,y=(0,d.gR)("neko-block",o);return s().createElement(p,{className:y,style:c},e&&s().createElement("div",{className:"neko-block-header"},s().createElement(h.s,{h2:!0,className:"neko-block-title"},e),!!g&&g),s().createElement(f.A,{busy:a},s().createElement("div",{className:"neko-block-content",style:m},n)))},g=function(t){return s().createElement(m,t)};g.propTypes={title:c().string,className:c().oneOf(["","primary","standard","raw"]),style:c().object,action:c().element}},8668:(t,e,n)=>{"use strict";n.d(e,{Y:()=>x,a:()=>b});var r,o,i,a,s=n(1594),l=n.n(s),c=n(6365),u=n.n(c),h=n(3185);function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var m=h.Ay.div(r||(r=p(["\n  margin-bottom: 10px;\n"]))),g=h.Ay.div(o||(o=p(["\n  margin-bottom: 0px;\n  padding-bottom: 2px;\n  border-bottom: 2px solid #d1e3f2;\n  color: var(--neko-main-color);\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  cursor: pointer;\n  font-weight: 600;\n"]))),y=h.Ay.span(i||(i=p(["\n  border: solid var(--neko-main-color);\n  border-width: 0 2px 2px 0;\n  display: inline-block;\n  padding: 3px;\n  transform: ",";\n  transition: transform 0.15s ease-in-out;\n"])),(function(t){return t.$isCollapsed?"rotate(45deg)":"rotate(-135deg)"})),v=h.Ay.div(a||(a=p(["\n  max-height: ",";\n  overflow: hidden;\n  transition: ",";\n"])),(function(t){return t.$isCollapsed?"0":"".concat(t.$contentHeight+15,"px")}),(function(t){return t.$animate?"max-height 0.15s ease-in-out":"none"})),b=function(t){var e=t.children,n=t.keepState,r=f((0,s.useState)(n?JSON.parse(localStorage.getItem(n)):null),2),o=r[0],i=r[1];return(0,s.useEffect)((function(){n&&localStorage.setItem(n,JSON.stringify(o))}),[o,n]),l().createElement("div",null,l().Children.map(e,(function(t,e){return(null==t?void 0:t.type)===x?l().cloneElement(t,{isCollapsed:o!==e,onClick:function(){var t;i(o===(t=e)?null:t)},keepState:n?"".concat(n,"-").concat(e):t.props.keepState}):t})))};b.propTypes={children:u().node.isRequired,keepState:u().string};var x=function(t){var e,n,r=t.isCollapsed,o=void 0!==r&&r,i=t.children,a=t.onClick,c=void 0===a?function(){}:a,u=t.keepState,h=t.disabled,d=void 0!==h&&h,p=t.hide,b=void 0!==p&&p,x=t.title,w=t.style,k=f((0,s.useState)(o),2),S=k[0],O=k[1],_=f((0,s.useState)(!1),2),E=_[0],C=_[1],A=l().Children.count(i)>0,j=(0,s.useRef)(null),P=f((0,s.useState)(0),2),M=P[0],R=P[1];return e=j,n=function(){j.current&&R(j.current.scrollHeight)},(0,s.useEffect)((function(){var t=e.current;if(t){var r=new ResizeObserver((function(t){n()}));return r.observe(t),function(){return r.disconnect()}}}),[e,n]),(0,s.useEffect)((function(){if(u){var t=JSON.parse(localStorage.getItem(u));O(null!==t?t:o)}}),[u,o]),(0,s.useEffect)((function(){u&&localStorage.setItem(u,JSON.stringify(S))}),[S,u]),(0,s.useEffect)((function(){O(o)}),[o]),b?null:l().createElement(m,{style:w},l().createElement(g,{onClick:function(){A&&!d&&(C(!0),O(!S),c())},style:{opacity:d?.5:1,pointerEvents:d?"none":"auto"}},x,A&&l().createElement(y,{$isCollapsed:S})),l().createElement(v,{$isCollapsed:S,$contentHeight:M,$animate:E},l().createElement("div",{ref:j},i)))};x.propTypes={title:u().string.isRequired,isCollapsed:u().bool,children:u().node,onClick:u().func,keepState:u().string,disabled:u().bool,hide:u().bool}},1543:(t,e,n)=>{"use strict";n.d(e,{L:()=>m});var r,o,i=n(1594),a=n.n(i),s=n(6365),l=n.n(s),c=n(3185),u=n(6897);function h(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var f=c.Ay.div(r||(r=h(["\n  font-size: var(--neko-font-size);\n  font-family: var(--neko-font-family);\n  background-color: white;\n  color: var(--neko-font-color);\n  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05);\n  margin-bottom: 25px;\n  display: flex;\n  flex-direction: column;\n\n  &.primary {\n    background-color: var(--neko-main-color);\n  }\n\n  p:first-child {\n    margin-top: 0px;\n  }\n\n  p:last-child {\n    margin-bottom: 0px;\n  }\n\n  .neko-container-content {\n    padding: 20px 20px;\n  }\n"]))),d=c.Ay.div(o||(o=h(["\n  justify-content: flex-start;\n  background-color: var(--neko-gray-98);\n  display: flex;\n  align-items: center;\n  padding: 8px 10px;\n\n  &.align-right {\n    justify-content: flex-end;\n  }\n"]))),p=function(t){var e=t.header,n=t.headerAlign,r=void 0===n?"left":n,o=t.footer,i=t.footerAlign,s=void 0===i?"right":i,l=t.className,c=t.style,h=void 0===c?{}:c,p=t.contentStyle,m=void 0===p?{}:p,g=t.children,y=(0,u.gR)("neko-container",l);return a().createElement(f,{className:y,style:h},e&&a().createElement(d,{className:"align-".concat(r)},e),a().createElement("div",{className:"neko-container-content",style:m},g),o&&a().createElement(a().Fragment,null,a().createElement("div",{style:{flex:"auto"}}),a().createElement(d,{className:"align-".concat(s)},o)))},m=function(t){return a().createElement(p,t)};m.propTypes={header:l().element,headerAlign:l().oneOf(["left","right"]),footer:l().element,footerAlign:l().oneOf(["left","right"]),className:l().string,style:l().object,contentStyle:l().object}},6913:(t,e,n)=>{"use strict";n.d(e,{z:()=>v});var r,o=n(1594),i=n.n(o),a=n(6365),s=n.n(a),l=n(3185),c=n(9296),u=n(6897);function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||f(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var p,m,g=l.Ay.div(r||(p=["\n  position: relative;\n  margin-left: -20px;\n  background: var(--neko-background-color);\n  padding-bottom: 50px;\n  margin-bottom: -26px;\n\n  .neko-rest-error {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    background: #1e232deb;\n    z-index: 100;\n\n    .container {\n      color: white;\n      padding: 5px 20px 15px 20px;\n      min-width: 480px;\n      max-width: 600px;\n      border-radius: 20px;\n      background: #883131;\n      margin-left: 50%;\n      transform: translateX(-50%);\n      margin-top: 100px;\n\n      h3 {\n        color: white;\n      }\n\n      .neko-debug {\n        padding: 5px 10px;\n        background: #692426;\n        border-radius: 10px;\n\n        * {\n          margin: 0px;\n          padding: 0px;\n        }\n      }\n    }\n  }\n"],m||(m=p.slice(0)),r=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(m)}})))),y=function(t){var e=t.className,n=t.children,r=t.nekoErrors,a=void 0===r?[]:r,s=t.style,l=void 0===s?{}:s,d=h((0,o.useState)(!1),2),p=d[0],m=d[1],y=h((0,o.useState)(!1),2),v=y[0],b=y[1],x=(0,u.gR)("neko-page",e);if(a&&!p){var w,k=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=f(t))){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(a);try{for(k.s();!(w=k.n()).done;){var S=w.value;if(S){m(S);break}}}catch(t){k.e(t)}finally{k.f()}}return i().createElement(g,{className:x,style:l},p&&i().createElement("div",{className:"neko-rest-error"},i().createElement("div",{className:"container"},!v&&i().createElement(i().Fragment,null,i().createElement("h3",null,"The Rest API is disabled or broken 😢"),i().createElement("p",null,"The Rest API is required for this plugin to work. It is enabled in WordPress by default since December 2016 and used by the Gutenberg Editor since 2019. In short, it allows more robustness and a much cleaner infrastructure. Soon, Wordpress will entirely depends on it, so it is important to keep it enabled."),i().createElement("p",null,i().createElement("i",null,"Last but not least: check your PHP Error Logs and your Debugging Console.")),i().createElement("p",{className:"neko-debug"},i().createElement("small",null,"URL: ",p.url,i().createElement("br",null),"CODE: ",p.code,i().createElement("br",null),"MESSAGE: ",p.message,i().createElement("br",null)))),p.body&&v&&i().createElement("p",{className:"neko-debug"},i().createElement("div",{dangerouslySetInnerHTML:{__html:p.body}})),p.body&&i().createElement(c.M,{color:"#a94242",onClick:function(){return b(!v)}},v?"Hide":"Display"," response from server"),i().createElement(c.M,{color:"#a94242",onClick:function(){window.open("https://meowapps.com/fix-wordpress-rest-api/","_blank")}},"Learn about WordPress Debugging"))),n)},v=function(t){return i().createElement(y,t)};v.propTypes={className:s().string,style:s().object,nekoErrors:s().bool}},7039:(t,e,n)=>{"use strict";n.d(e,{d:()=>m});var r,o=n(1594),i=n.n(o),a=n(6365),s=n.n(a),l=n(3185),c=n(6897),u=["title","contentAlign","titleStyle"];function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},h.apply(this,arguments)}var f,d,p=(0,l.Ay)((function(t){var e=t.title,n=void 0===e?"":e,r=t.contentAlign,o=void 0===r?"left":r,a=t.titleStyle,s=void 0===a?{}:a,l=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,u),f=(0,c.gR)("neko-settings",t.className);return i().createElement("div",h({className:f},l),n?i().createElement("div",{className:"neko-settings-head",style:s},n):null,i().createElement("div",{className:"neko-settings-content neko-settings-content-align-".concat(o)},t.children))}))(r||(f=["\n  display: flex;\n  font-family: var(--neko-font-family);\n\n  > .neko-settings-head {\n    font-family: var(--neko-font-family);\n    font-size: var(--neko-font-size); \n    line-height: 17px;\n    width: 120px;\n    margin-right: 16px;\n    font-weight: 500;\n    color: var(--neko-main-color);\n  }\n\n  /* Select, Checkbox, Input need to be a bit higher to be in front of the settings title */\n\n  .neko-settings-content > .neko-select:first-child {\n    position: relative;\n    margin-top: -5px;\n  }\n  \n  .neko-settings-content > div:first-child .neko-checkbox-container {\n    margin-top: -5px;\n  }\n\n  .neko-settings-content > .neko-button:first-child {\n    position: relative;\n    margin-top: -5px;\n  }\n\n  .neko-settings-content > div:first-child > .neko-input {\n    position: relative;\n    margin-top: -5px;\n  }\n\n  > .neko-settings-content {\n    flex: 1;\n\n    &.neko-settings-content-align-right {\n      flex: none;\n      margin-left: auto;\n    }\n\n    input[type=text] {\n      width: 100%;\n    }\n\n\n  }\n\n  & + div {\n    margin-top: 10px;\n  }\n"],d||(d=f.slice(0)),r=Object.freeze(Object.defineProperties(f,{raw:{value:Object.freeze(d)}})))),m=function(t){return i().createElement(p,t)};m.propTypes={title:s().string,className:s().string,contentAlign:s().string,titleStyle:s().object}},6734:(t,e,n)=>{"use strict";n.d(e,{g:()=>y});var r,o,i,a=n(1594),s=n.n(a),l=n(6365),c=n.n(l),u=n(3185),h=["height","tiny","small","medium","large","line","style","children"];function f(){return f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f.apply(this,arguments)}function d(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var p=u.Ay.div(r||(r=d(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 100%;\n  height: ",";\n"])),(function(t){var e=t.height;return"".concat(e,"px")})),m=u.Ay.div(o||(o=d(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 100%;\n\n  hr {\n    width: 100%;\n    border: none;\n    border-top: 1px solid var(--neko-secondary);\n  }\n"]))),g=u.Ay.span(i||(i=d(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  position: relative;\n  width: 100%;\n  text-align: center;\n\n  &::before,\n  &::after {\n    content: '';\n    flex-grow: 1;\n    border-top: ",";\n    height: 0;\n  }\n\n  &::before {\n    margin-right: 0.5em;\n  }\n\n  &::after {\n    margin-left: 0.5em;\n  }\n"])),(function(t){return t.line?"1px solid var(--neko-secondary)":"none"})),y=function(t){var e=t.height,n=void 0===e?null:e,r=t.tiny,o=void 0!==r&&r,i=t.small,a=void 0===i||i,l=t.medium,c=void 0!==l&&l,u=t.large,d=void 0!==u&&u,y=t.line,v=void 0!==y&&y,b=t.style,x=t.children,w=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,h);return n||(x||c?(n=30,a=!1):o?n=5:a?n=15:d&&(n=45)),s().createElement(p,f({height:n,style:b},w),x&&s().createElement(g,{line:v},x),!x&&s().createElement(m,null,v&&s().createElement("hr",null)))};y.propTypes={height:c().number,line:c().bool,tiny:c().bool,small:c().bool,medium:c().bool,large:c().bool,style:c().object}},4547:(t,e,n)=>{"use strict";n.d(e,{N:()=>b,Y:()=>x});var r,o,i=n(1594),a=n.n(i),s=n(6365),l=n.n(s),c=n(3185),u=n(6897),h=n(8135),f=["fullWidth","minimal"];function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d.apply(this,arguments)}function p(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var m=c.Ay.div(r||(r=p(["\n  display: flex;\n  flex-wrap: wrap;\n"]))),g=c.Ay.div(o||(o=p(["\n  flex: 1;\n  padding: 32px 30px;\n\n  .neko-block:not(:first-child) {\n    margin-top: -20px;\n  }\n\n  .neko-block:last-child {\n    margin-bottom: 0px;\n  }\n\n  &.minimal {\n    padding: 0;\n  }\n\n  &.full {\n    flex-basis: 100%;\n    padding-bottom: 0;\n  }\n\n  & + .full {\n    padding-bottom: 32px;\n    padding-top: 0;\n  }\n\n  &:not(.full) + div:not(.full) {\n    padding-left: 0;\n  }\n"]))),y=function(t){return a().createElement(m,{className:"neko-wrapper"},t.children)},v=function(t){var e=t.fullWidth,n=t.minimal,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,f),o=(0,u.gR)("neko-column",{full:e},{minimal:n});return a().createElement(g,d({className:o},r),t.children)},b=function(t){return a().createElement(h.YS,null,a().createElement(y,t))},x=function(t){return a().createElement(h.YS,null,a().createElement(v,t))};b.propTypes={},x.propTypes={fullWidth:l().any}},374:(t,e,n)=>{"use strict";n.d(e,{G:()=>h});var r=n(1594),o=n(5206),i=n.n(o),a=n(6365),s=n.n(a),l=n(6897),c=n(2564);function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var h=function(t){var e,n,o=t.children,a=t.visible,s=void 0!==a&&a,h=t.targetRef,f=t.onClose,d=(0,r.useRef)(),p=(e=(0,r.useState)(0),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=p[0],g=p[1];(0,l.jz)((function(){s&&f()}),[h,d]),(0,r.useEffect)((function(){var t=document.createElement("div");return d.current=t,function(){d.current=null}}),[]);var y=function(){s&&d.current&&h.current&&requestAnimationFrame((function(){for(var t=h.current.getBoundingClientRect(),e=window.innerHeight,n=d.current.querySelector(".neko-portal-content");n&&!n.offsetHeight;)n=n.firstChild;var r=n?n.offsetHeight:0,o=e-t.bottom<r?t.top-r:t.bottom;Object.assign(d.current.style,{position:"fixed",top:"".concat(o,"px"),left:"".concat(t.left,"px"),width:"".concat(t.width,"px"),zIndex:"9999"})}))};if((0,r.useEffect)((function(){if(s&&d.current){document.body.appendChild(d.current);var t=setTimeout((function(){y(),g(1)}),5);return function(){return clearTimeout(t)}}if(d.current){var e=d.current.parentNode;e&&e.removeChild(d.current),g(0)}}),[s,d,h]),(0,r.useLayoutEffect)((function(){y();var t=function(){return y()};return window.addEventListener("resize",t),window.addEventListener("scroll",t),function(){window.removeEventListener("resize",t),window.removeEventListener("scroll",t)}}),[s,d,h]),!s||!d.current)return null;var v={opacity:m,transition:"opacity 0.2s cubic-bezier(0.22, 0.61, 0.36, 1)"};return i().createPortal(React.createElement("div",{className:"neko-portal-content",style:v},React.createElement(c.A,null,o)),d.current)};h.propTypes={children:s().node.isRequired,visible:s().bool,targetRef:s().object.isRequired,onClose:s().func}},197:(t,e,n)=>{"use strict";n.d(e,{X:()=>h});var r,o,i,a=n(1594),s=n.n(a),l=n(6365),c=n.n(l),u=n(3185).Ay.section(r||(o=["\n  .mask {\n    position: absolute;\n    overflow: hidden;\n    display: block;\n    width: ","px;\n    height: ","px;\n  }\n\n  .semi-circle {\n    position: relative;\n    display: block;\n    width: ","px;\n    height: ",'px;\n    background: linear-gradient(to right, #27b775 0%, #f3f32c 50%, #f71b1b 100%);\n    border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n\n    &::before {\n      content: "";\n      position: absolute;\n      bottom: 0;\n      left: 50%;\n      z-index: 2;\n      display: block;\n      width: 140px;\n      height: 70px;\n      margin-left: -70px;\n      background: ',";\n      border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n    }      \n  }\n\n  .semi-circle--mask {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: ","px;\n    height: ",'px;\n    background: transparent;\n    transform-origin: center center;\n    backface-visibility: hidden;\n    transition: all .3s ease-in-out;\n\n    &::before {\n      content: "";\n      position: absolute;\n      top: 0;\n      left: 0%;\n      z-index: 2;\n      display: block;\n      width: ',"px;\n      height: ","px;\n      margin-top: -1px;\n      margin-left: -1px;\n      background: #5396c1d6;\n      border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n    }      \n  }\n\n  .gauge { \n    width: ","px;\n    height: ","px;\n    \n    .semi-circle--mask {\n      transform: rotate(","deg) translate3d(0,0,0);\n    }\n  }\n\n  .child-container {\n    position: absolute;\n    font-size: 16px;\n    display: flex;\n    width: ","px;\n    height: ","px;\n    z-index: 10;\n\n    .spacing {\n      flex: auto;\n    }\n\n    .child {\n      color: white;\n      flex: 1;\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n    }\n  }\n"],i||(i=o.slice(0)),r=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(i)}}))),(function(t){return t.width}),(function(t){return t.width/2}),(function(t){return t.width}),(function(t){return t.width/2}),(function(t){return t.backgroundColor}),(function(t){return t.width}),(function(t){return t.width}),(function(t){return t.width+2}),(function(t){return t.width/2+2}),(function(t){return t.width}),(function(t){return t.width/2}),(function(t){return t.degrees}),(function(t){return t.width+2}),(function(t){return t.width/2})),h=function(t){var e=t.value,n=void 0===e?1e3:e,r=(t.min,t.max),o=void 0===r?2500:r,i=t.width,a=void 0===i?200:i,l=t.background,c=void 0===l?"#007cba":l,h=t.children,f=180*(n<=o?n:o)/o;return s().createElement(u,{className:"neko-gauge",backgroundColor:c,degrees:f,width:a},s().createElement("div",{class:"gauge"},s().createElement("div",{class:"mask"},s().createElement("div",{class:"semi-circle"}),s().createElement("div",{class:"semi-circle--mask"})),s().createElement("div",{class:"child-container"},s().createElement("div",{class:"child"},s().createElement("div",{class:"spacing"}),h))))};h.propTypes={value:c().number,min:c().number,max:c().number,width:c().number,background:c().string}},3804:(t,e,n)=>{"use strict";n.d(e,{n:()=>b});var r,o,i,a=n(1594),s=n.n(a),l=n(6365),c=n.n(l),u=n(3185),h=u.Ay.div(r||(o=["\n  display: flex;\n  max-width: 128px;\n  max-height: 128px;\n\n  & > * {\n    width: 100%;\n    height: auto;\n    object-fit: contain;\n  }\n"],i||(i=o.slice(0)),r=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(i)}})))),f=function(){return s().createElement(h,{className:"neko-logo"},s().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 1434 947"},s().createElement("path",{fill:"#000",d:"M805 777a792 792 0 0 1-262-43 811 811 0 0 1-286-164A959 959 0 0 1 6 200 158 158 0 0 1 304 97c41 96 94 175 159 233a497 497 0 0 0 376 129 60 60 0 0 1 67 60l27 186c4 33-18 63-51 68-6 0-34 4-77 4ZM122 168l2 5a841 841 0 0 0 212 307 692 692 0 0 0 469 177l-11-76a616 616 0 0 1-412-162 769 769 0 0 1-188-276 38 38 0 0 0-50-20c-18 7-27 27-22 45Z"}),s().createElement("path",{fill:"#FDA960",d:"m64 184 4 12a900 900 0 0 0 228 329 752 752 0 0 0 577 188l-27-194a563 563 0 0 1-423-144 709 709 0 0 1-174-255 98 98 0 0 0-185 64Z"}),s().createElement("mask",{id:"a",width:"814",height:"657",x:"60",y:"60",maskUnits:"userSpaceOnUse"},s().createElement("path",{fill:"#fff",d:"m64 184 4 12a900 900 0 0 0 228 329 752 752 0 0 0 577 188l-27-194a563 563 0 0 1-423-144 709 709 0 0 1-174-255 98 98 0 0 0-185 64Z"})),s().createElement("g",{mask:"url(#a)"},s().createElement("path",{fill:"#804625",d:"M120 532c-41 0-84-5-130-15l31-145c101 21 180 12 233-27 70-51 80-141 80-142l149 13a363 363 0 0 1-139 248 351 351 0 0 1-224 68Zm369 175c47-31 84-71 110-116 32-56 46-123 42-192-3-51-15-87-16-91l-141 48a225 225 0 0 1-15 161c-33 58-101 99-203 120l30 146c76-16 141-41 193-76ZM62 269c64-4 122-22 174-53A413 413 0 0 0 421-47L184-92v-1s-16 71-73 103C92 21 70 27 44 29 7 31-37 24-86 8l-74 229a623 623 0 0 0 222 32Z"})),s().createElement("path",{fill:"#000",d:"M1373 947h-110c-33 0-60-27-60-60v-97l-36 87a62 62 0 0 1-56 37h-79c-25 0-46-14-56-37l-36-87v97c0 33-27 60-60 60H769c-33 0-60-27-60-60V316c0-33 27-60 60-60h141c24 0 46 15 55 37l106 258 107-258c9-22 31-37 55-37h140c34 0 60 27 60 60v571c0 33-26 60-60 60Zm-316-188 14 34 15-34-11 1h-7l-11-1Zm199-314h7c21 0 40 11 50 28v-97h-40l-29 70 12-1Zm-427-69v97c11-17 29-28 51-28h6l13 1-29-70h-41Z"}),s().createElement("path",{fill:"#fff",d:"M769 887V316h141l158 384h7l158-384h140v571h-110V505h-7l-145 349h-79L886 505h-6v382H769Z"})))},d=function(t){return s().createElement(f,t)};d.propTypes={};var p,m=n(8922),g=n(9300),y=u.Ay.div(p||(p=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n  position: relative;\n  color: white;\n  font-family: var(--neko-font-family);\n  font-size: var(--neko-font-size);\n  display: flex;\n  height: 60px;\n  overflow: hidden;\n  align-items: center;\n  padding: 15px 32px;\n  background-color: var(--neko-main-color);\n  display: flex;\n\n  .neko-header-logo-container {\n    width: 40px;\n    height: 40px;\n    padding: 10px;\n    margin-right: 15px;\n    background: rgba(0, 0, 0, 0.1);\n    border-radius: 100%;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n  }\n\n  .neko-header-title-container {\n    flex-direction: column;\n    display: flex;\n\n    .neko-header-title {\n      color: white;\n      font-family: var(--neko-font-family);\n      font-size: 23px;\n      line-height: normal;\n      margin: 0;\n    }\n\n    .neko-header-subtitle {\n      color: white;\n      font-family: var(--neko-font-family);\n      line-height: normal;\n      font-size: var(--neko-font-size);\n    }\n  }\n\n  .neko-header-extra-content {\n    flex: 1;\n    margin: 0 20px;\n  }\n"]))),v=function(t){var e=t.title,n=void 0===e?"NekoUI":e,r=t.subtitle,o=void 0===r?"♥️ By Meow Apps":r,i=t.children,a=t.saving,l=void 0!==a&&a;return s().createElement(y,{className:"neko-header"},s().createElement("div",{className:"neko-header-logo-container"},s().createElement(d,null)),s().createElement("div",{className:"neko-header-title-container"},s().createElement("h1",{className:"neko-header-title"},n),s().createElement("small",{className:"neko-header-subtitle"},s().createElement("a",{target:"_blank",href:"https://meowapps.com",style:{color:"white",textDecoration:"none"}},o))),s().createElement("div",{className:"neko-header-extra-content"},i),l&&s().createElement(m.z,{icon:g.A,width:"36",height:"36"}))},b=function(t){return s().createElement(v,t)};b.propTypes={title:c().string,subtitle:c().string,saving:c().bool}},8922:(t,e,n)=>{"use strict";n.d(e,{z:()=>Rt});var r=n(1594),o=n.n(r),i=n(6365),a=n.n(i),s=n(3185),l=n(5977),c=n(3271),u=n(5207),h=n(7326),f=n(5962),d=n(6029),p=n(5074),m=n(21),g=n(4555),y=n(6382),v=n(1299),b=n(8843),x=n(1086),w=n(4501),k=n(3594),S=n(8957),O=n(4142),_=n(7695),E=n(4300),C=n(1860),A=(n(6268),n(6982)),j=n(858),P=n(5241),M=n(2849),R=n(552),T=n(8841),L=n(1373),I=n(7073),N=n(4613),z=n(9538),D=n(7894),F=n(7297),B=n(9966),$=n(9829),H=n(1333),W=n(2477),q=n(9014),V=n(9077),U=n(257),K=n(757),Q=n(67),G=n(3860),Y=n(4753),Z=n(2079),X=n(9931),J=n(6200),tt=n(3102),et=n(6123),nt=n(6304),rt=n(9057),ot=n(2693),it=n(9728),at=n(1097),st=n(4196),lt=n(2600),ct=n(146),ut=n(4611);const ht={duplicate:n(3104).A,lock:c.A,"lock-open":u.A,"file-undo":h.A,"chevron-double-left":f.A,"chevron-double-right":d.A,"chevron-left":p.A,"chevron-right":m.A,"chevron-down":g.A,"chevron-up":y.A,pause:v.A,play:b.A,replay:x.A,check:w.A,"check-circle":k.A,stop:S.A,delete:O.A,undo:_.A,alert:E.A,database:C.A,tools:A.A,cog:j.A,close:P.A,cat:M.A,upload:G.A,trash:R.A,pencil:T.A,dashboard:L.A,search:I.A,folder:N.A,"folder-open":z.A,"image-multiple-outline":D.A,plus:F.A,"folder-plus":B.A,"image-plus":$.A,"view-grid":H.A,"format-list-bulleted":W.A,twitter:q.A,instagram:V.A,facebook:U.A,star:K.A,"timer-outline":Q.A,link:Y.A,linkedin:Z.A,pinterest:X.A,"zoom-in":J.A,"info-outline":tt.A,"image-off-outline":et.A,"arrow-up":nt.A,"arrow-down":rt.A,sort:ot.A,eye:it.A,"rocket-launch":at.A,"calendar-month":st.A,wand:lt.A,mastodon:ct.A,filter:ut.A};var ft,dt,pt=n(6897);function mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function gt(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var yt=s.Ay.div(ft||(ft=gt(["\n\tdisplay: flex;\n"]))),vt=s.Ay.div(dt||(dt=gt(["\n\tbackground-color: rgba(0, 0, 0, 0.8);\n\tborder-radius: 4px;\n\tcolor: var(--neko-white);\n\tfont-family: var(--neko-font-family);\n\tfont-weight: normal;\n\tmin-width: 180px;\n\tmax-width: 280px;\n\tfont-size: var(--neko-font-size);\n\tpadding: 8px 12px;\n\tposition: absolute;\n \tmax-width: 280px;\n\tword-break: break-word;\n\tdisplay: ",';\n\tz-index: 100;\n\twhite-space: pre-wrap;\n\n\t&:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\tborder: 4px solid transparent;\n\t}\n\n\t&.top {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: 100%;\n\t\t\tleft: 50%;\n\t\t\tborder-top: 4px solid rgba(0, 0, 0, 0.8);\n\t\t}\n\t}\n\n\t&.left {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tright: -8px;\n\t\t\tborder-left: 4px solid rgba(0, 0, 0, 0.8);\n\t\t}\n\t}\n\n\t&.right {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tleft: -8px;\n\t\t\tborder-right: 4px solid rgba(0, 0, 0, 0.8);\n\t\t}\n\t}\n\n\t&.bottom {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: -8px;\n\t\t\tleft: 50%;\n\t\t\tborder-bottom: 4px solid rgba(0, 0, 0, 0.8);\n\t\t}\n\t}\n\n\t',"\n"])),(function(t){return t.visible?"inline-block":"none"}),(function(t){return t.style})),bt=function(t){var e,n,i=t.text,a=void 0===i?"Hello world!":i,s=t.position,l=void 0===s?"top":s,c=(e=(0,r.useState)(!1),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(t,e){if(t){if("string"==typeof t)return mt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mt(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],h=c[1],f=(0,pt.Kt)(),d=f.ref,p=f.width,m=f.height,g=(0,pt.Kt)(),y=g.ref,v=g.width,b=g.height,x=(0,r.useMemo)((function(){var t=0,e=0;return"top"===l?(t=-1*m-5,e=p/2*-1+v/2):"bottom"===l?(t=b+5,e=p/2*-1+v/2):"left"===l?(t=(m-b)/2*-1,e=-1*p-5):"right"===l&&(t=(m-b)/2*-1,e=v+5),{transform:"translateX(".concat(e,"px) translateY(").concat(t,"px)")}}),[l,p,m,v,b]);return o().createElement(yt,{className:"neko-tooltip"},o().createElement(vt,{ref:d,visible:u,className:l,style:x},a),o().createElement("div",{ref:y,onMouseEnter:function(){return a&&h(!0)},onMouseLeave:function(){return h(!1)}},t.children))},xt=function(t){return o().createElement(bt,t)};xt.propTypes={text:a().string,position:a().oneOf(["top","right","bottom","left"])};var wt,kt,St,Ot=["icon","color","spinning","className","tooltip","raw","isBusy","variant","title","containerStyle","hoverColor","disabled"];function _t(){return _t=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_t.apply(this,arguments)}function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function Ct(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var At=s.Ay.div(wt||(wt=Ct(["\n  display: flex;\n  align-items: center;\n"]))),jt=(0,s.Ay)(l.In)(kt||(kt=Ct(["\n  path {\n    fill: ",";\n  }\n\n  ","\n\n  &.neko-clickable {\n    cursor: pointer;\n  }\n\n  &.spin {\n    animation-name: spin;\n    animation-duration: 700ms;\n    animation-iteration-count: infinite;\n    animation-timing-function: linear;\n\n    @keyframes spin {\n      from {\n        transform: rotate(0deg);\n      }\n      to {\n        transform: rotate(360deg);\n      }\n    }\n  }\n\n  &.disabled {\n    pointer-events: none;\n    opacity: 0.35;\n    cursor: default;\n  }\n"])),(function(t){return t.color}),(function(t){return e=t.color,(n=t.hoverColor)?"\n      &:hover {\n        path {\n          fill: ".concat(n,";\n        }\n      }\n    "):e?"\n      &:hover {\n        path {\n          filter: brightness(1.03);\n        }\n      }\n    ":void 0;var e,n})),Pt=s.Ay.div(St||(St=Ct(["\n  width: 25px;\n  height: auto;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  img {\n    width: auto !important;\n    height: 25px !important;\n  }\n"]))),Mt={primary:{color:"var(--neko-blue)"},success:{color:"var(--neko-green)"},warning:{color:"var(--neko-yellow)"},danger:{color:"var(--neko-red)"}},Rt=function(t){var e=t.icon,n=t.color,i=t.spinning,a=void 0!==i&&i,s=t.className,l=void 0===s?"":s,c=t.tooltip,u=t.raw,h=t.isBusy,f=void 0!==h&&h,d=t.variant,p=t.title,m=t.containerStyle,g=t.hoverColor,y=t.disabled,v=void 0!==y&&y,b=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Ot),x=d&&Mt[d]?Mt[d].color:n,w=d&&Mt[d]?Mt[d].hoverColor:g;b.width||b.height||(b.width=b.height=30);var k=(0,r.useMemo)((function(){return"string"==typeof e&&ht[e]?ht[e]:e}),[e]),S=(0,r.useMemo)((function(){return!!ht[e]||"object"===Et(e)}),[e]),O=(0,pt.gR)("neko-icon",l,{"neko-clickable":!!b.onClick},{spin:a},{disabled:v});return c?o().createElement(xt,{text:c.text,position:c.position||"top"},o().createElement(At,{style:m},o().createElement(jt,_t({icon:k,className:O,color:x,hoverColor:w},b)))):u?S?o().createElement(jt,_t({icon:k,className:O,color:x,hoverColor:w},b)):o().createElement(Pt,null,k):f&&!v?o().createElement(Pt,null,o().createElement("img",{src:"/wp-includes/images/spinner-2x.gif",alt:"loading"})):o().createElement(At,{style:m,title:p},S&&o().createElement(jt,_t({icon:k,className:O,color:x,hoverColor:w},b)),!S&&o().createElement(Pt,_t({className:O,color:x,hoverColor:w},b),k),c?o().createElement(xt,null,c):null)};Rt.propTypes={icon:a().oneOfType([a().instanceOf(l.In),a().oneOf(["duplicate","lock","lock-open","file-undo","chevron-double-left","chevron-double-right","chevron-left","chevron-right","chevron-down","chevron-up","pause","play","replay","check","check-circle","stop","delete","undo","alert","database","tools","cog","close","cat","upload","trash","pencil","dashboard","search","folder","folder-open","image-multiple-outline","plus","folder-plus","image-plus","view-grid","format-list-bulleted","twitter","instagram","facebook","star","timer-outline","link","linkedin","pinterest","zoom-in","info-outline","image-off-outline","arrow-up","arrow-down","sort","eye","rocket-launch","calendar-month","wand","mastodon","filter"])]),color:a().string,spinning:a().bool,className:a().string,tooltip:a().string,raw:a().bool,isBusy:a().bool,variant:a().string}},1843:(t,e,n)=>{"use strict";n.d(e,{K:()=>v,o:()=>y});var r,o,i=n(1594),a=n.n(i),s=n(6365),l=n.n(s),c=n(3185),u=n(8922),h=n(6897);function f(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var d=c.Ay.div(r||(r=f(["\n  display: flex;\n  align-items: center;\n"]))),p=c.Ay.span(o||(o=f(['\n  color: var(--neko-main-color);\n  cursor: pointer;\n  font-family: var(--neko-font-family);\n  font-style: normal;\n  font-weight: normal;\n  line-height: 17px;\n\n  &:hover:not(.active) {\n    filter: brightness(1.2);\n  }\n\n  &.active {\n    cursor: default;\n    color: var(--neko-gray-30);\n    font-weight: bold;\n  }\n\n  &::after {\n    content: "|";\n    color: var(--neko-disabled-color);\n    font-weight: normal;\n    padding: 0 4px;\n  }\n\n  &:last-child::after {\n    content: none;\n  }\n\n  span {\n    color: var(--neko-disabled-color);\n    font-weight: normal;\n    margin-left: 4px;\n  }\n']))),m=function(t){var e=t.name,n=t.value,r=t.onChange,o=t.busy,i=void 0!==o&&o,s=t.className,l=(0,h.gR)("neko-quick-links",s),c=a().Children.toArray(t.children).filter((function(t){return!!t})).map((function(t){return a().cloneElement(t,{busy:i,isActive:t.props.value===n,onClick:function(t){t!==n&&r(t,e)}})}));return a().createElement(d,{className:l},c)},g=function(t){var e=t.title,n=t.value,r=void 0===n?0:n,o=t.count,i=t.onClick,s=t.busy,l=t.isActive,c=void 0!==l&&l,f=t.className,d=(0,h.gR)("neko-link",f,{active:c});return a().createElement(p,{onClick:function(){return i(r)},className:d},e,void 0===o?null:a().createElement("span",null,"(",s?a().createElement(u.z,{icon:"replay",spinning:!0,width:12,containerStyle:{display:"inline"}}):o,")"))},y=function(t){return a().createElement(m,t)};y.propTypes={name:l().string,value:l().string,onChange:l().func};var v=function(t){return a().createElement(g,t)};v.propTypes={title:l().string,value:l().string,count:l().number,onClick:l().func,isActive:l().bool}},7213:(t,e,n)=>{"use strict";n.d(e,{X:()=>g});var r,o=n(1594),i=n.n(o),a=n(6365),s=n.n(a),l=n(3185),c=n(6897),u=["variant","children"];function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},h.apply(this,arguments)}var f,d,p=l.Ay.div(r||(f=["\n  padding: 20px;\n  color: white;\n  border-radius: 5px;\n\n  &.danger {\n    background: #ba341e;\n  }\n\n  &.success {\n    background: var(--neko-green);\n  }\n\n  &.special {\n    background: var(--neko-purple);\n  }\n\n  &.warning {\n    background: var(--neko-orange);\n  }\n\n  &.info {\n    background: var(--neko-blue);\n  }\n\n  a {\n    color: white;\n    font-weight: bold;\n  }\n"],d||(d=f.slice(0)),r=Object.freeze(Object.defineProperties(f,{raw:{value:Object.freeze(d)}})))),m=function(t){var e=t.variant,n=t.children,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,u);e||(e="info");var o=(0,c.gR)("neko-message",{danger:"danger"===e},{success:"success"===e},{info:"info"===e},{warning:"warning"===e},{special:"special"===e});return i().createElement(p,h({className:o},r),n)},g=function(t){return i().createElement(m,t)};g.propTypes={variant:s().string,children:s().node}},520:(t,e,n)=>{"use strict";n.d(e,{Q:()=>b});var r,o=n(1594),i=n.n(o),a=n(6365),s=n.n(a),l=n(3185),c=n(5977),u=n(5962),h=n(5074),f=n(6029),d=n(21);function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var m,g,y=l.Ay.div(r||(m=["\n  align-items: center;\n  display: flex;\n  user-select: none;\n\n  .neko-paging-text {\n    font-family: var(--neko-font-family);\n    font-style: normal;\n    font-weight: normal;\n    font-size: 15px;\n    line-height: 14px;\n    margin-right: 15px;\n  }\n\n  .neko-paging-controller {\n    box-sizing: border-box;\n    height: 30px;\n    align-items: center;\n    background: var(--neko-main-color);\n    border-radius: 15px;\n    display: flex;\n    padding: 3px 5px;\n\n    .nako-paging-controller-icon {\n      background-color: white;\n      border-radius: 100%;\n      cursor: pointer;\n      margin-right: 2px;\n      height: 22px;\n      width: 22px;\n      transition: transform 0.1s ease-in;\n      box-sizing: border-box;\n\n      :last-child {\n        margin-right: 0;\n      }\n\n      &.disabled {\n        color: var(--neko-disabled-color);\n        cursor: default;\n        pointer-events: none;\n      }\n\n      &:hover {\n        transform: scale(1.2) !important;\n        z-index: 10;\n        position: relative;\n      }\n    }\n\n    .nako-paging-controller-text {\n      color: white;\n      font-family: var(--neko-font-family);\n      font-style: normal;\n      font-weight: normal;\n      font-size: var(--neko-font-size);\n      margin: 0 40px;\n      user-select: none;\n    }\n\n    span.neko-paging-current-page {\n      cursor: pointer;\n      text-decoration: underline;\n    }\n\n    input.neko-paging-current-page {\n      width: 1.5rem;\n    }\n  }\n"],g||(g=m.slice(0)),r=Object.freeze(Object.defineProperties(m,{raw:{value:Object.freeze(g)}})))),v=function(t){var e,n,r=t.currentPage,a=t.limit,s=void 0===a?0:a,l=t.onClick,m=t.total,g=void 0===m?0:m,v=t.onCurrentPageChanged,b=t.infinite,x=void 0!==b&&b,w=t.maxInfinite,k=void 0!==w&&w,S=t.controllerText,O=!!v,_=(0,o.useMemo)((function(){return x||k?0:Math.ceil(0===g?1:s>0?g/s:1)}),[x,k,s,g]),E="nako-paging-controller-icon ".concat(x||1!==r?"":"disabled"),C="nako-paging-controller-icon ".concat(x||k||r!==_?"":"disabled"),A=(e=(0,o.useState)(!1),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),j=A[0],P=A[1],M=function(t){P(!1),l(t)},R=function(t){if(x)return t;var e=Number(t);return k?e<1?1:e:e>_?_:e<1?1:e},T=function(t){var e=t.target.value;isNaN(e)||v(R(e)),P(!1)},L=function(t){if("Enter"===event.key){t.preventDefault();var e=t.target.value;isNaN(e)||v(R(e)),P(!1)}},I=(0,o.useMemo)((function(){return j?i().createElement("input",{autoFocus:!0,type:"text",className:O?"neko-paging-current-page":"",defaultValue:r,onBlur:T,onKeyPress:L}):i().createElement("span",{className:O?"neko-paging-current-page":"",onClick:function(){O&&P(!0)}},r)}),[r,j,v]),N=function(t){j&&t.target===t.currentTarget&&P(!1)};return i().createElement(y,{className:"nako-paging"},!!g&&i().createElement("span",{className:"neko-paging-text"},g," result",g>0?"s":""),i().createElement("div",{className:"neko-paging-controller",onClick:N},!x&&!k&&i().createElement(c.In,{icon:u.A,className:E,onClick:function(){return M(1)}}),i().createElement(c.In,{icon:h.A,className:E,onClick:function(){return M(r-1)}}),i().createElement("p",{className:"nako-paging-controller-text",onClick:N},S||i().createElement(i().Fragment,null,"Page ",I," of ",_)),i().createElement(c.In,{icon:d.A,className:C,onClick:function(){return M(r+1)}}),!x&&!k&&i().createElement(c.In,{icon:f.A,className:C,onClick:function(){return M(_)}})))},b=function(t){return i().createElement(v,t)};b.propTypes={currentPage:s().number,limit:s().number,total:s().number,onClick:s().func,lastPage:s().number,infinite:s().bool,maxInfinite:s().bool,controllerText:s().object}},851:(t,e,n)=>{"use strict";n.d(e,{j:()=>w});var r,o,i=n(1594),a=n.n(i),s=n(6365),l=n.n(s),c=n(3185),u=n(5977),h=n(1299),f=n(8957),d=n(8843),p=n(6897),m=["value","max","busy","paused","status","className"];function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function y(){return y=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},y.apply(this,arguments)}function v(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var b=(0,c.Ay)((function(t){var e=t.value,n=void 0===e?0:e,r=t.max,o=void 0===r?100:r,i=t.busy,s=void 0!==i&&i,l=t.paused,c=void 0!==l&&l,g=t.status,v=t.className,b=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,m);n=Math.min(n,o);var w=parseFloat(n)/parseFloat(o),k=(0,p.gR)("neko-progress",v);return a().createElement("div",y({className:k},b),a().createElement(x,{ratio:w,busy:t.busy,status:g}),a().createElement("div",{className:"neko-progress-buttons"},s&&t.onPauseClick&&a().createElement("div",{className:"neko-progress-button pause",onClick:t.onPauseClick},c?a().createElement(u.L3,{icon:d.A}):a().createElement(u.L3,{icon:h.A})),s&&t.onStopClick&&a().createElement("div",{className:"neko-progress-button stop",onClick:t.onStopClick},a().createElement(u.L3,{icon:f.A}))))}))(r||(r=v(["\n  position: relative;\n  box-sizing: border-box;\n  height: 30px;\n  background: linear-gradient(\n    180deg,\n    rgba(0, 0, 0, 0.06) 0%,\n    rgba(0, 0, 0, 0.02) 50%,\n    rgba(0, 0, 0, 0.10) 100%\n  );\n  border-radius: 12px;\n\n  .neko-progress-buttons {\n    position: absolute;\n    height: 100%;\n    right: 0px;\n    display: flex;\n    align-items: center;\n    padding-right: 5px;\n\n    .neko-progress-button {\n      border: none;\n      display: flex;\n      justify-content: center;\n      align-items: center;\n      margin-left: 2px;\n      border-radius: 100%;\n      color: white;\n      padding: 2px;\n      width: 18px;\n      height: 18px;\n      background-color: var(--neko-main-color);\n\n      &:hover {\n        background-color: var(--neko-lighten-blue);\n      }\n\n      &.stop {\n        background: var(--neko-red);\n\n        &:hover {\n          background-color: var(--neko-lighten-red);\n        }\n      }\n    }\n  }\n"]))),x=(0,c.Ay)((function(t){var e,n,r,o,i=isNaN(t.ratio)?0:parseInt(Math.round(100*t.ratio)),s=g(t.status),l=(0,p.gR)("neko-progress-current",t.className),c="undefined"!==s?"string"===s?t.status:t.status(i):"".concat(i,"%");return a().createElement("div",{className:l,style:(e={minWidth:28},n="minWidth",r=i+"%",o=function(t,e){if("object"!=g(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n),(n="symbol"==g(o)?o:String(o))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e)},a().createElement("div",null,c))}))(o||(o=v(["\n  box-sizing: border-box;\n  position: absolute;\n  overflow: hidden;\n  top: 0; left: 0;\n  height: 100%;\n  background-color: var(--neko-main-color);\n  border-radius: 12px;\n  text-align: center;\n  padding: 0 10px;\n  vertical-align: middle;\n  color: white;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  transition: min-width .2s ease-out;\n  background-size: 30px 30px;\n  background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%,\n                    transparent 25%,\n                    transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,\n                    transparent 75%, transparent);\n  animation: ",";\n\n  @keyframes animate-stripes {\n    0% { background-position: 0 0; }\n    100% { background-position: 60px 0; }\n  }\n"])),(function(t){return t.busy?"animate-stripes 1.6s linear infinite":"none"})),w=function(t){return a().createElement(b,t)};w.propTypes={value:l().number,max:l().number,busy:l().bool,paused:l().bool,onPauseClick:l().func,onStopClick:l().func,status:l().oneOf([l().string,l().func])}},6087:(t,e,n)=>{"use strict";n.d(e,{X:()=>b});var r,o=n(1594),i=n.n(o),a=n(6365),s=n.n(a),l=n(3185),c=n(6897),u=["className","size"],h=["type"];function f(){return f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f.apply(this,arguments)}function d(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var p,m,g=l.Ay.div(r||(p=["\n  width: ",";\n  padding-top: ",";\n  position: relative;\n  margin: 0 auto;\n\n  .double-bounce1, .double-bounce2 {\n    width: 100%;\n    height: 100%;\n    border-radius: 50%;\n    background-color: ",";\n    opacity: 0.6;\n    position: absolute;\n    top: 0;\n    left: 0;\n\n    -webkit-animation: sk-bounce 2.0s infinite ease-in-out;\n    animation: sk-bounce 2.0s infinite ease-in-out;\n  }\n\n  .double-bounce2 {\n    -webkit-animation-delay: -1.0s;\n    animation-delay: -1.0s;\n  }\n\n  @-webkit-keyframes sk-bounce {\n    0%, 100% { -webkit-transform: scale(0.0) }\n    50% { -webkit-transform: scale(1.0) }\n  }\n\n  @keyframes sk-bounce {\n    0%, 100% {\n      transform: scale(0.0);\n      -webkit-transform: scale(0.0);\n    } 50% {\n      transform: scale(1.0);\n      -webkit-transform: scale(1.0);\n    }\n  }\n"],m||(m=p.slice(0)),r=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(m)}}))),(function(t){return t.size||"50%"}),(function(t){return t.size||"50%"}),(function(t){return t.color||"#333"})),y=function(t){t.className;var e=t.size,n=d(t,u),r=(0,c.gR)("neko-spinner",n.className);return i().createElement(g,f({className:r,size:e},n),i().createElement("div",{className:"double-bounce1"}),i().createElement("div",{className:"double-bounce2"}))},v=function(t){var e=t.type,n=void 0===e?"circle":e,r=d(t,h);return"circle"===n?i().createElement(y,r):null},b=function(t){return i().createElement(v,t)};b.propTypes={type:s().string}},4977:(t,e,n)=>{"use strict";n.d(e,{s:()=>I});var r=n(1594),o=n.n(r),i=n(6365),a=n.n(i),s=n(3185),l=n(6897);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}var u,h,f,d,p,m,g,y,v,b=["children","style","className","bold","h1","h2","h3","h4","h5","h6","p","span","label"];function x(){return x=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},x.apply(this,arguments)}function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function S(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var O="\n  font-family: var(--neko-font-family);\n  font-weight: normal;\n  line-height: normal;\n  margin-top: 0;\n  margin-bottom: 16px;\n  padding: 0;\n",_=s.Ay.h1(u||(u=S(["\n  ","\n  font-size: var(--neko-h1-font-size);\n"])),O),E=s.Ay.h2(h||(h=S(["\n  ","\n  font-size: var(--neko-h2-font-size);\n"])),O),C=s.Ay.h3(f||(f=S(["\n  ","\n  font-size: var(--neko-h3-font-size);\n"])),O),A=s.Ay.h4(d||(d=S(["\n  ","\n  font-size: var(--neko-h4-font-size);\n"])),O),j=s.Ay.h5(p||(p=S(["\n  ","\n  font-size: var(--neko-h5-font-size);\n"])),O),P=s.Ay.h6(m||(m=S(["\n  ","\n  font-size: var(--neko-h6-font-size);\n"])),O),M=s.Ay.p(g||(g=S(["\n  font-family: var(--neko-font-family);\n  font-size: var(--neko-font-size);\n  line-height: normal;\n  margin: 16px 0 24px;\n  padding: 0;\n"]))),R=s.Ay.span(y||(y=S(["\n  font-family: var(--neko-font-family);\n  font-size: var(--neko-font-size);\n  line-height: normal;\n  margin: 0;\n  padding: 0;\n"]))),T=s.Ay.label(v||(v=S(["\n  font-family: var(--neko-font-family);\n  font-size: var(--neko-font-size);\n  line-height: normal;\n  margin: 0;\n  padding: 0;\n"]))),L=function(t){var e=t.children,n=void 0===e?null:e,r=t.style,i=void 0===r?{}:r,a=t.className,s=void 0===a?"":a,c=t.bold,u=void 0!==c&&c,h=t.h1,f=t.h2,d=t.h3,p=t.h4,m=t.h5,g=t.h6,y=t.p,v=(t.span,t.label),w=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,b),S=u?{fontWeight:"bold"}:{},O=(0,l.gR)("neko-typo",s,{"neko-typo-h1":h},{"neko-typo-h2":f},{"neko-typo-h3":d},{"neko-typo-h4":p},{"neko-typo-h5":m},{"neko-typo-h6":g},{"neko-typo-p":y},{"neko-typo-label":v});return h?o().createElement(_,x({style:k(k({},S),i),className:O},w),n):f?o().createElement(E,x({style:k(k({},S),i),className:O},w),n):d?o().createElement(C,x({style:k(k({},S),i),className:O},w),n):p?o().createElement(A,x({style:k(k({},S),i),className:O},w),n):m?o().createElement(j,x({style:k(k({},S),i),className:O},w),n):g?o().createElement(P,x({style:k(k({},S),i),className:O},w),n):y?o().createElement(M,x({style:k(k({},S),i),className:O},w),n):v?o().createElement(T,x({style:k(k({},S),i),className:O},w),n):o().createElement(R,x({style:k(k({},S),i),className:O},w),n)},I=function(t){return o().createElement(L,t)};I.propTypes={h1:a().any,h2:a().any,h3:a().any,h4:a().any,h5:a().any,h6:a().any,p:a().any,span:a().any,label:a().any,bold:a().bool,style:a().object,className:a().string,children:a().node}},209:(t,e,n)=>{"use strict";n.d(e,{Z:()=>_});var r=n(1594),o=n.n(r),i=n(6365),a=n.n(i),s=n(3185),l=n(8135),c=n(2557),u=n(6897);function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}var f,d=["onSuccess","onFailure","apiUrl","onSelectFiles","apiConfig","className","disabled","children","multiple","accept"];function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},p.apply(this,arguments)}function m(t){return function(t){if(Array.isArray(t))return w(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||x(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(){g=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),s=new R(r||[]);return o(a,"_invoke",{value:A(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",m="executing",y="completed",v={};function b(){}function x(){}function w(){}var k={};c(k,a,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(T([])));O&&O!==n&&r.call(O,a)&&(k=O);var _=w.prototype=b.prototype=Object.create(k);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(o,i,a,s){var l=f(t[o],t,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==h(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,n,r){var o=d;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=j(s,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var c=f(e,n,r);if("normal"===c.type){if(o=r.done?y:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=y,r.method="throw",r.arg=c.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(h(e)+" is not iterable")}return x.prototype=w,o(_,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:x,configurable:!0}),x.displayName=c(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},E(C.prototype),c(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(_),c(_,l,"Generator"),c(_,a,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function y(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function v(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){y(i,r,o,a,s,"next",t)}function s(t){y(i,r,o,a,s,"throw",t)}a(void 0)}))}}function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||x(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){if(t){if("string"==typeof t)return w(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(t,e):void 0}}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var k,S,O=s.Ay.div(f||(k=["\n  &.dropping {\n    background: #a4d5ff;\n  }\n"],S||(S=k.slice(0)),f=Object.freeze(Object.defineProperties(k,{raw:{value:Object.freeze(S)}})))),_=(0,r.forwardRef)((function(t,e){var n=t.onSuccess,i=void 0===n?function(){}:n,a=t.onFailure,s=void 0===a?function(){}:a,h=t.apiUrl,f=t.onSelectFiles,y=void 0===f?function(){}:f,x=t.apiConfig,w=t.className,k=t.disabled,S=void 0!==k&&k,_=t.children,E=t.multiple,C=(t.accept,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,d)),A=b((0,r.useState)(!1),2),j=A[0],P=A[1],M=b((0,r.useState)(!1),2),R=M[0],T=M[1],L=h,I=(0,r.useCallback)(function(){var t=v(g().mark((function t(e){var n,r,o,a;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return T(!0),n=function(){var t=v(g().mark((function t(e){return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return x.file=e,t.next=3,(0,l.Tb)(h,x);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),t.next=4,Promise.all(e.map(function(){var t=v(g().mark((function t(e){return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 4:r=t.sent,o=r.filter((function(t){return t.success})),a=r.filter((function(t){return!t.success})),o.length&&i(E?o:o[0]),a.length&&s(E?a:a[0]),T(!1);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[h,E,x,i,s]),N=(0,r.useCallback)((function(t,e){e.preventDefault(),e.stopPropagation(),P(!1),L?I(t):y(t)}),[L,I]),z=(0,r.useCallback)((function(t){t.preventDefault(),t.stopPropagation()}),[]),D=(0,r.useCallback)((function(t){t.preventDefault(),t.stopPropagation(),S||P(!0)}),[S]),F=(0,r.useCallback)((function(t){t.preventDefault(),t.stopPropagation(),S||P(!1)}),[S]),B=(0,r.useCallback)((function(t){if(!S){var e=m(t.dataTransfer.files);t.target.value=null,N(e,t)}}),[S,N]),$=(0,r.useCallback)((function(t){var e=m(t.target.files);t.target.value=null,N(e,t)}),[N]),H=(0,u.gR)("neko-upload-drop-area",w,{dropping:j});return o().createElement(c.A,{busy:R},o().createElement("input",{type:"file",accept:".csv, .json, .jsonl, .txt",ref:e,onChange:$,style:{display:"none"},multiple:E,disabled:S}),o().createElement(O,p({className:H,onDragOver:z,onDragEnter:D,onDragLeave:F,onDrop:B},C),_))}));_.propTypes={ref:a().ref,onSuccess:a().func,onFailure:a().func,onSelectFiles:a().func,apiUrl:a().string,apiConfig:a().object,disabled:a().bool}},9794:(t,e,n)=>{"use strict";n.d(e,{n:()=>O});var r,o,i=n(1594),a=n.n(i),s=n(6365),l=n.n(s),c=n(8187),u=n.n(c),h=n(3185),f=n(9296),d=n(6897),p=["className","style","title","content","contentWidth","customButtons","okOnEnter","thumbnail","okButton","cancelButton","isOpen","children","customButtonsPosition","fullSize"],m=["label"],g=["label"];function y(){return y=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},y.apply(this,arguments)}function v(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function b(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var x=(0,h.DU)(r||(r=b(["\n  .ReactModal__Overlay {\n    z-index: 9999;\n    display: flex;\n    justify-content: center;\n    flex-direction: column;\n    align-items: center;\n    backdrop-filter: blur(2px);\n    background-color: rgba(0, 0, 0, 0.35) !important;\n    opacity: 0;\n    transition: opacity 200ms ease-in-out;\n  }\n  .ReactModal__Overlay--after-open {\n    opacity: 1;\n  }\n  .ReactModal__Overlay--before-close {\n    opacity: 0;\n  }\n  .ReactModal__Overlay .neko-modal {\n    opacity: 0;\n    transform: scale(0.85);\n    transition: all 200ms ease-in-out;\n  }\n  .ReactModal__Overlay--after-open .neko-modal {\n    transform: scale(1);\n    opacity: 1;\n  }\n  .ReactModal__Overlay--before-close .neko-modal {\n    transform: scale(0.85);\n    opacity: 0;\n  }\n  .neko-modal {\n    background: white;\n    color: var(--neko-font-color);\n    position: relative;\n    box-shadow: 0 1px 2px rgba(0,0,0,0.07), \n                0 2px 4px rgba(0,0,0,0.07), \n                0 4px 8px rgba(0,0,0,0.07), \n                0 8px 16px rgba(0,0,0,0.07),\n                0 16px 32px rgba(0,0,0,0.07), \n                0 32px 64px rgba(0,0,0,0.07);\n    outline: none;\n    padding: 15px;\n    max-width: 1200px;\n    border-radius: 5px;\n    display: flex;\n    flex-direction: column;\n  }\n  .neko-modal.full-size {\n    margin-top: 32px;\n    width: 90vw;\n    height: 85vh;\n    max-width: none;\n    max-height: none;\n  }\n"]))),w=h.Ay.div(o||(o=b(["\n  width: ",";\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n\n  p {\n    margin: 0;\n  }\n  .title {\n    font-family: var(--neko-font-family);\n    font-style: normal;\n    font-weight: bold;\n    font-size: 18px;\n    line-height: 22px;\n    margin-bottom: 15px;\n  }\n  .content-container {\n    display: flex;\n    position: relative;\n    z-index: 1;\n    flex: 1;\n    overflow-y: clip;\n\n    .thumbnail {\n      margin-right: 15px;\n      width: 240px;\n      overflow: hidden;\n\n      img {\n        width: 100%;\n        height: 100%;\n        object-fit: cover;\n      }\n    }\n    .content {\n      flex: auto;\n      font-family: var(--neko-font-family);\n      font-style: normal;\n      font-weight: normal;\n      font-size: var(--neko-font-size);\n      line-height: 14px;\n      width: 100%;\n      margin: 0px !important;\n      padding: 0px !important;\n    }\n  }\n  .button-group {\n    align-items: center;\n    display: flex;\n    justify-content: flex-end;\n    margin-top: 15px;\n    font-size: inherit;\n    white-space: normal;\n  }\n"])),(function(t){var e;return t.fullSize?"100%":null!==(e=t.width)&&void 0!==e?e:"518px"})),k=["disabled","ok","okOnClick","okDisabled","cancel","cancelOnClick","cancelDisabled"],S=function(t){var e=t.className,n=t.style,r=t.title,o=void 0===r?"":r,s=t.content,l=void 0===s?"":s,c=t.contentWidth,h=t.customButtons,b=void 0===h?null:h,S=t.okOnEnter,O=void 0!==S&&S,_=t.thumbnail,E=t.okButton,C=void 0===E?{}:E,A=t.cancelButton,j=void 0===A?{}:A,P=t.isOpen,M=t.children,R=t.customButtonsPosition,T=void 0===R?"right":R,L=t.fullSize,I=void 0!==L&&L,N=v(t,p),z=null!==b,D=(0,d.gR)("neko-modal",e,{"custom-modal":n,"full-size":I}),F=C.label,B=void 0===F?"OK":F,$=v(C,m),H=j.label,W=void 0===H?"Cancel":H,q=v(j,g);(0,i.useEffect)((function(){var e=[];k.forEach((function(n){void 0!==t[n]&&e.push(n)})),e.length>0&&console.warn("[Deprecated] NekoUI: The button attributes, ".concat(e.join(", "),', are deprecated in the NekoModal. Please use an object attribute like this: okButton={{ label: “OK", onClick, disabled }} cancelButton={{ label: “OK", onClick, disabled }}\''),{props:t})}),[t]);var V=(0,i.useRef)(null),U=((0,i.useCallback)((function(){return V.current}),[]),(0,i.useCallback)((function(t){"Enter"===t.key&&$.onClick()}),[$.onClick]));(0,i.useEffect)((function(){if(O&&P)return window.addEventListener("keyup",U),function(){window.removeEventListener("keyup",U)}}),[O,P,U]);var K=M||a().createElement(w,{width:c,fullSize:I},o&&a().createElement("p",{className:"title"},o),a().createElement("div",{className:"content-container"},_&&a().createElement("div",{className:"thumbnail"},_),l&&a().createElement("p",{className:"content"},l)),a().createElement("div",{className:"button-group ".concat(e)},z&&"left"===T&&b,q.onClick&&a().createElement(f.M,y({className:"danger"},q),W),$.onClick&&a().createElement(f.M,$,B),z&&"right"===T&&b));return a().createElement(a().Fragment,null,a().createElement(x,null),a().createElement(u(),y({ariaHideApp:!1,closeTimeoutMS:200,className:D,isOpen:P},N),K))},O=function(t){return a().createElement(S,t)};O.propTypes={className:l().string,style:l().object,title:l().string,content:l().string,contentWidth:l().string,customButtons:l().object,okOnEnter:l().bool,thumbnail:l().element,okButton:l().object,cancelButton:l().object,fullSize:l().bool}},5900:(t,e,n)=>{"use strict";n.d(e,{o:()=>W});var r=n(1594),o=n.n(r),i=n(6365),a=n.n(i),s=n(3185),l=n(5977),c=n(4555),u=n(6382),h=n(2557),f=n(5263),d=n(6897);function p(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var g,y=n(8922),v=n(374),b=n(4536),x=n(4677),w=n(9296),k=n(6734),S=n(8696);function O(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||_(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){if(t){if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(t,e):void 0}}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var C,A,j,P=s.Ay.div(g||(C=["\n  min-width: 160px;\n  padding: 8px;\n  border-radius: 8px;\n  overflow: hidden;\n  background: var(--neko-main-color-alternative);\n  color: white;\n  \n  .neko-context-content {\n    max-height: 202px;\n    overflow-y: auto;\n  }\n\n  .neko-checkbox {\n    margin-bottom: 5px;\n\n    &:last-child {\n      margin-bottom: 0;\n    }\n  }\n\n  .neko-radio:last-child {\n    margin-bottom: 0;\n  }\n\n  svg {\n    color: var(--neko-disabled-color);\n\n    &.neko-active {\n      color: white;\n    }\n  }\n"],A||(A=C.slice(0)),g=Object.freeze(Object.defineProperties(C,{raw:{value:Object.freeze(A)}})))),M=function(t){var e=t.accessor,n=t.options,o=t.type,i=void 0===o?"checkbox":o,a=t.onChange,s=t.description,l=t.filters,c=O((0,r.useState)(!1),2),u=c[0],h=c[1],d=O((0,r.useState)(""),2),p=d[0],m=d[1],g=O((0,r.useState)(""),2),C=g[0],A=g[1],j=(0,r.useRef)(null),M=(0,r.useRef)(null),R=l&&l.length>0||p.length>0,T="checkbox"===i,L="select"===i,I="text"===i,N=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;void 0!==t&&t!==p&&m((function(){return t})),C!==p&&(a(e,C),m(C))};return(0,r.useEffect)((function(){N(),u&&setTimeout((function(){M.current&&M.current.focus()}),10)}),[u]),React.createElement(React.Fragment,null,React.createElement("div",{ref:j},React.createElement(y.z,{icon:"filter",className:R?"neko-active":"",onClick:function(){return h(!u)},width:16,height:16})),React.createElement(v.G,{visible:u,targetRef:j,onClose:function(){return h(!1)}},React.createElement(P,null,React.createElement("div",{className:"neko-context-menu"},!!s&&React.createElement("p",{style:{marginTop:0,marginBottom:5}},s),React.createElement("div",{className:"neko-context-content"},T&&React.createElement(b.E,{name:"neko-context-menu-checkboxes"},n.map((function(t){return React.createElement(f.R,{small:!0,key:t.value,label:t.label,checked:null==l?void 0:l.includes(t.value),onChange:function(n){if(l)return a(e,n?[].concat(function(t){if(Array.isArray(t))return E(t)}(r=l)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||_(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[t.value]):l.filter((function(e){return e!=t.value})));var r;console.error("[NekoUI] filters needs to be set for the NekoTable.",{accessor:e,option:t.value})}})}))),L&&React.createElement(x.u,{name:"neko-context-menu-select",onChange:function(t){return a(e,t)}},n.map((function(t){return React.createElement(x.j,{id:t.value,key:t.value,label:t.label,value:t.value,checked:l===t.value})})))),I&&React.createElement(S.A,{ref:M,name:"neko-context-menu-text",value:C,onChange:function(t){return A(t)},onEnter:function(t){N(t),h(!1)}}),React.createElement(k.g,{tiny:!0}),React.createElement("div",{className:"neko-context-menu-bottom-actions"},React.createElement(w.M,{fullWidth:!0,disabled:!R,onClick:function(){a(e,T?[]:null),A(""),h(!1),m("")}},"Reset"))))))};function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function T(){return T=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},T.apply(this,arguments)}function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==R(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}M.propTypes={accessor:a().string,options:a().array,type:a().oneOf(["checkbox","select","text"]),onChange:a().func,filters:a().oneOfType([a().string,a().array])};var N=s.Ay.table(j||(j=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n  font-family: var(--neko-font-family);\n  border-spacing: 0;\n  width: 100%;\n  word-break: break-all;\n\n  th, td {\n    margin: 0;\n    padding: 5px;\n    border-bottom: 1px solid rgba(0, 0, 0, 0.05);\n    border-right: 1px solid rgba(0, 0, 0, 0.05);\n    height: 1px;\n\n    a {\n      text-decoration: none;\n    }\n  }\n\n  th:last-child, td:last-child {\n    border-right: 0;\n  }\n\n  th, tfoot td {\n    height: 30px;\n    background-color: var(--neko-main-color);\n    color: var(--neko-white);\n    font-style: normal;\n    font-weight: normal;\n    font-size: var(--neko-font-size);\n    line-height: 16px;\n    text-align: left;\n\n    div {\n      display: flex;\n      align-items: center;\n      justify-content: space-between;\n\n      &.neko-column-action {\n        cursor: pointer;\n\n        svg {\n          color: rgba(255, 255, 255, 0.5);\n        }\n\n        svg.neko-active {\n          color: white;\n        }\n      }\n    }\n  }\n\n  &.neko-table-raw {\n    th, td {\n      border: 0;\n\n      .neko-column-action {\n\n        > svg {\n          color: black;\n          opacity: 0.5;\n        }\n\n        > svg.neko-active {\n          opacity: 1;\n        }\n      }\n    }\n  }\n\n  &.neko-table-raw {\n    th {\n      font-weight: bold;\n    }\n    th, tfoot td {\n      background-color: white;\n      color: var(--neko-font-color);\n    }\n  }\n\n  tbody {\n    background-color: white;\n    color: var(--neko-font-color);\n    \n    tr:nth-child(even) {\n        background-color: var(--neko-gray-98);\n    }\n\n    tr.selected, tr.selected:nth-child(even) {\n        background-color: var(--neko-main-color);\n        filter: brightness(1.2);\n        color: white;\n\n        a {\n          color: #81e8ff;\n        }\n    }\n    \n    img {\n      vertical-align: bottom;\n    }\n}\n\n  &.neko-table-raw {\n\n    svg {\n      &.neko-active {\n        color: var(--neko-main-color) !important;\n        opacity: 1;\n      }\n    }\n\n    tbody {\n      tr {\n        &.selected, &.selected :nth-child(even) {\n          background-color: white;\n          color: var(--neko-black);\n        }\n      }\n    }\n  }\n\n  tfoot tr:last-child {\n    td {\n      border-bottom: 0;\n    }\n  }\n\n  .table-checkbox-cell {\n    width: 23px;\n    text-align: center;\n\n    svg {\n      padding: 5px;\n      cursor: pointer;\n    }\n  }\n\n  &.neko-row-selectable {\n    tbody tr {\n      cursor: pointer;\n    }\n  }\n"]))),z=function(t){var e=t.checked,n=t.indeterminate,r=t.onSelect,i=void 0===r?function(){}:r,a=t.onUnselect,s=void 0===a?function(){}:a,l=t.isBusy,c=void 0!==l&&l;return o().createElement(f.R,{small:!0,onChange:function(t,e,n){return t?i(n):s(n)},checked:e,indeterminate:n,isBusy:e&&c,disabled:c})},D={left:"start",center:"center",right:"end"},F=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};return t.align&&(n={textAlign:t.align,justifyContent:D[t.align]}),e&&t.verticalAlign&&(n=I(I({},n),{},{verticalAlign:t.verticalAlign})),t.width&&(n=I(I({},n),{},{width:t.width})),t.style&&(n=I(I({},n),t.style)),n},B=function(t){return!0===t?"#edf8ff":t},$=function(t,e){console.log("[NekoUI] Missing implementation for onFilterChange.",{filter:t,value:e})},H=function(t){var e=t.data,n=void 0===e?[]:e,i=t.selectedItems,a=void 0===i?[]:i,s=t.selectedRow,f=t.filters,m=t.onFilterChange,g=void 0===m?$:m,y=t.columns,v=void 0===y?[]:y,b=t.busy,x=void 0!==b&&b,w=t.onSelect,k=t.onSelectRow,S=t.selectOnRowClick,O=void 0===S||S,_=t.onUnselect,E=t.onSortChange,C=void 0===E?function(){}:E,A=t.variant,j=void 0===A?"default":A,P=t.alternateRowColor,R=void 0!==P&&P,L=t.sort,D=t.emptyMessage,H=void 0===D?"Empty.":D,W=v.length+(w?1:0);n.some((function(t){return void 0===t.id}))&&(console.warn('Table data is missing the "id" field. Using the index as id instead, and disabling the row selection.'),n.forEach((function(t,e){t.id||(t.disabled_row=!0,t.id=-e)})));var q,V,U,K,Q,G,Y,Z,X=function(t){return t?{backgroundColor:B(t)}:{}}(R),J=n.map((function(t){var e=v.map((function(e){return{value:t[e.accessor],style:F(e,!0)}}));return{id:t.id,disabled_row:null==t?void 0:t.disabled_row,isBusy:t.isBusy||!1,cells:e}})),tt=(q={list:n.map((function(t){return{id:t.id}})),selectedList:a,callback:w},V=q.list,U=q.selectedList,K=q.callback,G=void 0===(Q=q.key)?"id":Q,Y=(0,d.v_)().pressShift,Z=(0,r.useMemo)((function(){if(!Y||!U.length)return null;var t=U[U.length-1];return V.findIndex((function(e){return e[G]===t}))}),[G,V,Y,U]),{onSelect:(0,r.useCallback)((function(t){if(K)if(null!==Z){var e=t[0],n=V.findIndex((function(t){return t[G]===e})),r=(Z<n?Z:n)+1,o=Z<n?n:Z,i=V.slice(r,o).map((function(t){return t[G]})).filter((function(t){return!U.some((function(e){return e===t}))}));K([].concat(p(i),p(t)))}else K(p(t))}),[Z,V,K,U,G])}).onSelect,et=J.map((function(t){return t.id})),nt=0===et.length,rt=et.filter((function(t){return a.includes(t)})),ot=!nt&&rt.length===et.length,it=!ot&&a.length>0,at=v.reduce((function(t,e,n){return!1===e.visible&&t.push(n),t}),[]),st=o().createElement("tr",null,w&&!nt&&o().createElement("th",{className:"table-checkbox-cell"},o().createElement(z,{checked:ot,indeterminate:it,onSelect:function(t){return w(et,t)},onUnselect:function(t){_(it?a:et,t)}})),v.filter((function(t,e){return!at.includes(e)})).map((function(t){var e,n,r,i=L&&L.accessor===t.accessor,a=L&&"asc"===L.by,s=F(t);return o().createElement("th",{style:s,key:t.accessor},o().createElement("div",{style:I(I({},s),{},{width:"auto"})},o().createElement("div",null,t.title),o().createElement("div",{style:{flex:"auto"}}),o().createElement("div",{className:"neko-column-action"},t.filters&&o().createElement(M,T({accessor:t.accessor},t.filters,{onChange:function(t,e){return g(t,e)},filters:(r=null!==(e=null==f?void 0:f.find((function(e){return e.accessor===t.accessor})))&&void 0!==e?e:null,null!==(n=null==r?void 0:r.value)&&void 0!==n?n:null)}))),o().createElement("div",{className:"neko-column-action",onClick:t.sortable?function(e){var n=L&&L.accessor!==t.accessor;C(t.accessor,n||i&&a?"desc":"asc",e)}:void 0},t.sortable&&o().createElement(l.In,{className:i?"neko-active":"",icon:i&&a?u.A:c.A,width:"26px",height:"26px"}))))}))),lt=(0,d.gR)("neko-table","neko-table-".concat(j),{"neko-row-selectable":!!k});return o().createElement(h.A,{busy:x,overlaystyle:{top:"36px",height:"calc(100% - 76px)"}},o().createElement(N,{className:lt},o().createElement("thead",null,st),o().createElement("tbody",null,!J.length&&o().createElement("tr",null,o().createElement("td",{colspan:W,style:{textAlign:"center",height:40,color:"gray"}},H)),J.map((function(t,e){var n=e%2==0?X:{},r=!!s&&s===t.id||a.includes(t.id);return o().createElement("tr",{key:"neko-row-".concat(t.id),className:r?"selected":"",style:n,onClick:function(e){e.stopPropagation(),k&&O&&k(t.id,e)}},w&&o().createElement("td",{className:"table-checkbox-cell"},o().createElement(z,{checked:a.includes(t.id),onSelect:function(e){e.stopPropagation(),tt([t.id],e)},onUnselect:function(e){e.stopPropagation(),_([t.id],e)},isBusy:t.isBusy||(null==t?void 0:t.disabled_row)})),t.cells.filter((function(t,e){return!at.includes(e)})).map((function(n,r){return o().createElement("td",{key:"".concat(t.id).concat(e).concat(r),style:n.style},n.value)})))}))),"default"===j&&o().createElement("tfoot",null,st)))},W=function(t){return o().createElement(H,t)};W.propTypes={columns:a().arrayOf(a().any),data:a().arrayOf(a().any),busy:a().bool,onSelect:a().func,onSelectRow:a().func,selectOnRowClick:a().bool,onUnselect:a().func,selectedItems:a().arrayOf(a().any),onSortChange:a().func,variant:a().string,alternateRowColor:a().oneOfType([a().bool,a().string])}},3676:(t,e,n)=>{"use strict";n.d(e,{V:()=>L,_:()=>T});var r,o,i,a,s,l,c=n(1594),u=n.n(c),h=n(6365),f=n.n(h),d=n(3185),p=n(1329),m=n(8922),g=n(6897),y=n(2557),v=n(9296),b=["inversed","children","action"];function x(){return x=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},x.apply(this,arguments)}function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return k(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function S(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var O=d.Ay.div(r||(r=S(["\n  display: flex;\n  justify-content: space-between;\n  position: relative;\n  height: 39px;\n"]))),_=d.Ay.div(o||(o=S(["\n  display: flex;\n  height: 39px;\n  position: absolute;\n  overflow: hidden;\n  max-width: ",";\n"])),(function(t){return t.$needsMoreSpace?"calc(100% - 75px - ".concat(t.$actionWidth,"px)"):"100%"})),E=d.Ay.div(i||(i=S(["\n  z-index: 1;\n  display: flex;\n  align-items: center;\n  height: 39px;\n  margin-left: auto;\n"]))),C=d.Ay.div(a||(a=S(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  height: 39px;\n  margin-right: 5px;\n"]))),A=d.Ay.button(s||(s=S(["\n  border-radius: 8px 8px 0px 0px;\n  border: 0;\n  background-color: var(--neko-main-color-disabled);\n  color: rgb(255 255 255 / 65%);\n  display: flex;\n  align-items: center;\n\n  cursor: pointer;\n  margin: 0 5px 0 0;\n  text-align: left;\n  padding: 12px 15px 12px 15px;\n\n  &:not(.active):not(.disabled):hover {\n    filter: brightness(1.1);\n  }\n\n  &:focus {\n    outline: none;\n  }\n\n  &.active {\n    background-color: var(--neko-main-color);\n    color: var(--neko-white);\n  }\n\n  &.disabled {\n    cursor: default;\n    display: inline-flex;\n    padding-bottom: 7px;\n  }\n\n  &.hidden {\n    display: none;\n  }\n\n  &.inversed {\n    &.active {\n      background-color: var(--neko-white);\n      color: var(--neko-font-color);\n    }\n  }\n"]))),j=d.Ay.div(l||(l=S(["\n  background-color: var(--neko-main-color);\n  color: white;\n  display: none;\n  padding: 10px;\n  border-radius: 0px 0px 8px 8px;\n  box-shadow: 0px 8px 8px -8px rgba(0, 0, 0, 0.35);\n\n  &.active {\n    display: block;\n  }\n\n  &.inversed {\n    background-color: var(--neko-white);\n    color: var(--neko-black);\n  }\n"]))),P=function(t,e){var n=t.props,r="tab-"+(e+1);return t.key?r=t.key:"string"==typeof n.title&&(r=(r=n.title.toLowerCase().replace(/[^a-z0-9\u4e00-\u9fa5\u3040-\u309f\u30a0-\u30ff\u2e80-\u2eff\u31f0-\u31ff\u3200-\u32ff\u3400-\u4dbf\uf900-\ufaff ]/gi,"")).replace(/ /g,"-")),r},M=function(t){var e,n=t.inversed,r=t.children,o=t.action,i=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,b),a=(0,c.useRef)(null),s=(0,c.useRef)(null),l=(0,c.useRef)(null),h=w((0,c.useState)([]),2),f=h[0],d=h[1],y=w((0,c.useState)([]),2),k=y[0],S=y[1],j=w((0,c.useState)(0),2),M=j[0],R=j[1],T=w((0,c.useState)(0),2),L=T[0],I=T[1],N=w((0,c.useState)(!1),2),z=N[0],D=N[1],F=w((0,c.useState)(!1),2),B=F[0],$=F[1],H=w((0,c.useState)(null!==(e=t.currentTab)&&void 0!==e?e:f[0]),2),W=H[0],q=H[1],V=(0,c.useRef)([]);(0,c.useLayoutEffect)((function(){s.current&&(R(s.current.offsetWidth),$(!0)),l.current&&I(l.current.offsetWidth)}),[]),(0,c.useLayoutEffect)((function(){var t=V.current.reduce((function(t,e){return t+(e?e.offsetWidth+10:0)}),0);D(t>M-L)}),[f,M,L]);var U=(0,c.useMemo)((function(){return r?r.length?r.filter((function(t){return!!t})):[r]:[]}),[r]);(0,c.useEffect)((function(){var t=[],e=u().Children.map(U,(function(e,n){var r=P(e,n);return-1!==t.indexOf(r)&&(console.log("NekoTabs: Duplicated key found!",r,e),r=r+"-"+function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6,e="",n=0;n<t;n++)e+="abcdefghijklmnopqrstuvwxyz0123456789"[Math.floor(36*Math.random())];return e}()),t.push(r),r}));e.length===f.length||d(e)}),[U]),(0,c.useEffect)((function(){var e=u().Children.map(U,(function(e,n){var r=e.props.title||"Untitled Tab ".concat(n+1);return{key:P(e,n),title:r,onClick:e.props.onClick||null,requirePro:!t.isPro&&(e.props.requirePro||!1),hidden:e.props.hidden||!1,icon:e.props.icon||!1}}));S(e)}),[U,t.isPro]);var K=(0,g.gR)("neko-tabs",{inversed:n});(0,c.useEffect)((function(){void 0!==t.currentTab?f.includes(t.currentTab)?q(t.currentTab):f.length>0&&q(f[0]):!f.includes(W)&&f.length>0&&q(f[0])}),[t.currentTab,f,W]),(0,c.useLayoutEffect)((function(){if(t.keepTabOnReload){var e=new URL(window.location.href).searchParams.get("nekoTab");if(!e)return q(f[0]),void(t.callOnTabChangeFirst&&G(0,k[0]));var n=decodeURIComponent(e),r=f.indexOf(n);if(-1===r)return q(f[0]),void(t.callOnTabChangeFirst&&G(0,k[0]));q(f[r]),t.callOnTabChangeFirst&&G(r,k[r])}else if(t.callOnTabChangeFirst){var o=f.indexOf(W);G(o,k[o])}}),[t.keepTabOnReload,t.callOnTabChangeFirst,f,W,k,G]);var Q=(0,c.useCallback)((function(t){if(history.pushState&&"string"==typeof t){var e=new URLSearchParams(window.location.search);e.set("nekoTab",t);var n=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+e.toString();window.history.replaceState({path:n},"",n)}}),[]),G=(0,c.useCallback)((function(e,n,r){n&&!n.requirePro&&(void 0===t.currentTab&&q(n.key),t.onChange&&t.onChange(e,n,r),t.keepTabOnReload&&Q(n.key))}),[t,Q]),Y=(0,c.useMemo)((function(){return u().Children.map(U,(function(t,e){var r=P(t,e),o=r===W,i=t.props.hidden;if(o&&i){var a=f.find((function(t){var e;return!(null!==(e=k.find((function(e){return e.key===t})))&&void 0!==e&&e.hidden)}));q(a)}return u().cloneElement(t,{isActive:o&&!i,inversed:n,key:r})}))}),[U,W,f,n,k]);return u().createElement("div",x({ref:s,className:K},i),u().createElement(O,null,u().createElement(_,{ref:a,$needsMoreSpace:z,$actionWidth:L},B&&k.map((function(t,e){return u().createElement(A,{key:t.key,ref:function(t){return V.current[e]=t},onClick:function(n){return G(e,t,n)},className:"neko-tab-title ".concat(t.key===W?"active":""," ").concat(t.requirePro?"disabled":""," ").concat(t.hidden?"hidden":""," ").concat(n?"inversed":"")},t.icon&&u().createElement(m.z,{icon:t.icon,width:15,height:15,style:{marginRight:"2px"},raw:!0}),t.title,u().createElement(p.K,{className:"inline",show:t.requirePro,style:{marginLeft:10,marginRight:-5,top:-1}}))}))),(!!o||z)&&u().createElement(E,{ref:l},z&&u().createElement(C,null,u().createElement(v.M,{rounded:!0,className:"secondary",icon:"chevron-left",onClick:function(){a.current&&a.current.scrollTo({left:a.current.scrollLeft-200,behavior:"smooth"})}}),u().createElement(v.M,{rounded:!0,className:"secondary",icon:"chevron-right",onClick:function(){a.current&&a.current.scrollTo({left:a.current.scrollLeft+200,behavior:"smooth"})}})),!!o&&o)),Y)},R=function(t){var e=t.children,n=t.isActive,r=void 0!==n&&n,o=t.busy,i=void 0!==o&&o,a=t.inversed,s=(0,g.gR)("neko-tab-content",{active:r,inversed:a});return u().createElement(y.A,{busy:i},u().createElement(j,{className:s},r&&e))},T=function(t){return u().createElement(M,t)};T.propTypes={isPro:f().bool,onChange:f().func,action:f().node,currentTab:f().string,keepTabOnReload:f().bool,callOnTabChangeFirst:f().bool};var L=function(t){return u().createElement(R,t)};L.propTypes={isActive:f().bool,requirePro:f().bool,title:f().string,icon:f().string}},7494:(t,e,n)=>{"use strict";n.d(e,{V:()=>m});var r,o=n(1594),i=n.n(o),a=n(6365),s=n.n(a),l=n(3185),c=["align"];function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}var h,f,d=l.Ay.div(r||(h=["\n  box-sizing: border-box;\n  display: flex;\n  width: 100%;\n  padding: 10px 10px;\n  background: white;\n  color: var(--neko-font-color);\n  border-radius: 10px;\n  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);\n  align-items: center;\n\n  &.neko-align-left {\n    justify-content: flex-start;\n  }\n\n  &.neko-align-right {\n    justify-content: flex-end;\n  }\n\n  > *:not(:last-child) {\n    margin-right: 5px;\n  }\n"],f||(f=h.slice(0)),r=Object.freeze(Object.defineProperties(h,{raw:{value:Object.freeze(f)}})))),p=function(t){var e=t.align,n=void 0===e?"left":e,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,c);return i().createElement(d,u({className:"neko-toolbar neko-align-".concat(n)},r),r.children)},m=function(t){return i().createElement(p,t)};m.propTypes={align:s().oneOf(["left","right"])}},7965:(t,e,n)=>{"use strict";var r=n(6426),o={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,e){var n,i,a,s,l,c,u=!1;e||(e={}),n=e.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=t,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),e.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[e.format]||o.default;window.clipboardData.setData(i,t)}else r.clipboardData.clearData(),r.clipboardData.setData(e.format,t);e.onCopy&&(r.preventDefault(),e.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in e?e.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,t)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},4146:(t,e,n)=>{"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(t){return r.isMemo(t)?a:s[t.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(p){var o=d(n);o&&o!==p&&t(e,o,r)}var a=u(n);h&&(a=a.concat(h(n)));for(var s=l(e),m=l(n),g=0;g<a.length;++g){var y=a[g];if(!(i[y]||r&&r[y]||m&&m[y]||s&&s[y])){var v=f(n,y);try{c(e,y,v)}catch(t){}}}}return e}},4809:function(t,e){var n,r;n=function t(){"use strict";var e="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},n=!e.document&&!!e.postMessage,r=e.IS_PAPA_WORKER||!1,o={},i=0,a={parse:function(n,r){var s=(r=r||{}).dynamicTyping||!1;if(w(s)&&(r.dynamicTypingFunction=s,s={}),r.dynamicTyping=s,r.transform=!!w(r.transform)&&r.transform,r.worker&&a.WORKERS_SUPPORTED){var l=function(){if(!a.WORKERS_SUPPORTED)return!1;var n,r,s=(n=e.URL||e.webkitURL||null,r=t.toString(),a.BLOB_URL||(a.BLOB_URL=n.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",r,")();"],{type:"text/javascript"})))),l=new e.Worker(s);return l.onmessage=g,l.id=i++,o[l.id]=l}();return l.userStep=r.step,l.userChunk=r.chunk,l.userComplete=r.complete,l.userError=r.error,r.step=w(r.step),r.chunk=w(r.chunk),r.complete=w(r.complete),r.error=w(r.error),delete r.worker,void l.postMessage({input:n,config:r,workerId:l.id})}var d=null;return a.NODE_STREAM_INPUT,"string"==typeof n?(n=function(t){return 65279===t.charCodeAt(0)?t.slice(1):t}(n),d=r.download?new c(r):new h(r)):!0===n.readable&&w(n.read)&&w(n.on)?d=new f(r):(e.File&&n instanceof File||n instanceof Object)&&(d=new u(r)),d.stream(n)},unparse:function(t,e){var n=!1,r=!0,o=",",i="\r\n",s='"',l=s+s,c=!1,u=null,h=!1;!function(){if("object"==typeof e){if("string"!=typeof e.delimiter||a.BAD_DELIMITERS.filter((function(t){return-1!==e.delimiter.indexOf(t)})).length||(o=e.delimiter),("boolean"==typeof e.quotes||"function"==typeof e.quotes||Array.isArray(e.quotes))&&(n=e.quotes),"boolean"!=typeof e.skipEmptyLines&&"string"!=typeof e.skipEmptyLines||(c=e.skipEmptyLines),"string"==typeof e.newline&&(i=e.newline),"string"==typeof e.quoteChar&&(s=e.quoteChar),"boolean"==typeof e.header&&(r=e.header),Array.isArray(e.columns)){if(0===e.columns.length)throw new Error("Option columns is empty");u=e.columns}void 0!==e.escapeChar&&(l=e.escapeChar+s),("boolean"==typeof e.escapeFormulae||e.escapeFormulae instanceof RegExp)&&(h=e.escapeFormulae instanceof RegExp?e.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var f=new RegExp(p(s),"g");if("string"==typeof t&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return d(null,t,c);if("object"==typeof t[0])return d(u||Object.keys(t[0]),t,c)}else if("object"==typeof t)return"string"==typeof t.data&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||u),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:"object"==typeof t.data[0]?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||"object"==typeof t.data[0]||(t.data=[t.data])),d(t.fields||[],t.data||[],c);throw new Error("Unable to serialize unrecognized input");function d(t,e,n){var a="";"string"==typeof t&&(t=JSON.parse(t)),"string"==typeof e&&(e=JSON.parse(e));var s=Array.isArray(t)&&0<t.length,l=!Array.isArray(e[0]);if(s&&r){for(var c=0;c<t.length;c++)0<c&&(a+=o),a+=m(t[c],c);0<e.length&&(a+=i)}for(var u=0;u<e.length;u++){var h=s?t.length:e[u].length,f=!1,d=s?0===Object.keys(e[u]).length:0===e[u].length;if(n&&!s&&(f="greedy"===n?""===e[u].join("").trim():1===e[u].length&&0===e[u][0].length),"greedy"===n&&s){for(var p=[],g=0;g<h;g++){var y=l?t[g]:g;p.push(e[u][y])}f=""===p.join("").trim()}if(!f){for(var v=0;v<h;v++){0<v&&!d&&(a+=o);var b=s&&l?t[v]:v;a+=m(e[u][b],v)}u<e.length-1&&(!n||0<h&&!d)&&(a+=i)}}return a}function m(t,e){if(null==t)return"";if(t.constructor===Date)return JSON.stringify(t).slice(1,25);var r=!1;h&&"string"==typeof t&&h.test(t)&&(t="'"+t,r=!0);var i=t.toString().replace(f,l);return(r=r||!0===n||"function"==typeof n&&n(t,e)||Array.isArray(n)&&n[e]||function(t,e){for(var n=0;n<e.length;n++)if(-1<t.indexOf(e[n]))return!0;return!1}(i,a.BAD_DELIMITERS)||-1<i.indexOf(o)||" "===i.charAt(0)||" "===i.charAt(i.length-1))?s+i+s:i}}};if(a.RECORD_SEP=String.fromCharCode(30),a.UNIT_SEP=String.fromCharCode(31),a.BYTE_ORDER_MARK="\ufeff",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!n&&!!e.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=m,a.ParserHandle=d,a.NetworkStreamer=c,a.FileStreamer=u,a.StringStreamer=h,a.ReadableStreamStreamer=f,e.jQuery){var s=e.jQuery;s.fn.parse=function(t){var n=t.config||{},r=[];return this.each((function(t){if("INPUT"!==s(this).prop("tagName").toUpperCase()||"file"!==s(this).attr("type").toLowerCase()||!e.FileReader||!this.files||0===this.files.length)return!0;for(var o=0;o<this.files.length;o++)r.push({file:this.files[o],inputElem:this,instanceConfig:s.extend({},n)})})),o(),this;function o(){if(0!==r.length){var e,n,o,l=r[0];if(w(t.before)){var c=t.before(l.file,l.inputElem);if("object"==typeof c){if("abort"===c.action)return"AbortError",e=l.file,n=l.inputElem,o=c.reason,void(w(t.error)&&t.error({name:"AbortError"},e,n,o));if("skip"===c.action)return void i();"object"==typeof c.config&&(l.instanceConfig=s.extend(l.instanceConfig,c.config))}else if("skip"===c)return void i()}var u=l.instanceConfig.complete;l.instanceConfig.complete=function(t){w(u)&&u(t,l.file,l.inputElem),i()},a.parse(l.file,l.instanceConfig)}else w(t.complete)&&t.complete()}function i(){r.splice(0,1),o()}}}function l(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(t){var e=b(t);e.chunkSize=parseInt(e.chunkSize),t.step||t.chunk||(e.chunkSize=null),this._handle=new d(e),(this._handle.streamer=this)._config=e}.call(this,t),this.parseChunk=function(t,n){if(this.isFirstChunk&&w(this._config.beforeFirstChunk)){var o=this._config.beforeFirstChunk(t);void 0!==o&&(t=o)}this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+t;this._partialLine="";var s=this._handle.parse(i,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var l=s.meta.cursor;this._finished||(this._partialLine=i.substring(l-this._baseIndex),this._baseIndex=l),s&&s.data&&(this._rowCount+=s.data.length);var c=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(r)e.postMessage({results:s,workerId:a.WORKER_ID,finished:c});else if(w(this._config.chunk)&&!n){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);s=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!c||!w(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),c||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(t){w(this._config.error)?this._config.error(t):r&&this._config.error&&e.postMessage({workerId:a.WORKER_ID,error:t,finished:!1})}}function c(t){var e;(t=t||{}).chunkSize||(t.chunkSize=a.RemoteChunkSize),l.call(this,t),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(t){this._input=t,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),n||(e.onload=x(this._chunkLoaded,this),e.onerror=x(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var t=this._config.downloadRequestHeaders;for(var r in t)e.setRequestHeader(r,t[r])}if(this._config.chunkSize){var o=this._start+this._config.chunkSize-1;e.setRequestHeader("Range","bytes="+this._start+"-"+o)}try{e.send(this._config.downloadRequestBody)}catch(t){this._chunkError(t.message)}n&&0===e.status&&this._chunkError()}},this._chunkLoaded=function(){4===e.readyState&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:e.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(t){var e=t.getResponseHeader("Content-Range");return null===e?-1:parseInt(e.substring(e.lastIndexOf("/")+1))}(e),this.parseChunk(e.responseText)))},this._chunkError=function(t){var n=e.statusText||t;this._sendError(new Error(n))}}function u(t){var e,n;(t=t||{}).chunkSize||(t.chunkSize=a.LocalChunkSize),l.call(this,t);var r="undefined"!=typeof FileReader;this.stream=function(t){this._input=t,n=t.slice||t.webkitSlice||t.mozSlice,r?((e=new FileReader).onload=x(this._chunkLoaded,this),e.onerror=x(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var t=this._input;if(this._config.chunkSize){var o=Math.min(this._start+this._config.chunkSize,this._input.size);t=n.call(t,this._start,o)}var i=e.readAsText(t,this._config.encoding);r||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(t){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(t.target.result)},this._chunkError=function(){this._sendError(e.error)}}function h(t){var e;l.call(this,t=t||{}),this.stream=function(t){return e=t,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var t,n=this._config.chunkSize;return n?(t=e.substring(0,n),e=e.substring(n)):(t=e,e=""),this._finished=!e,this.parseChunk(t)}}}function f(t){l.call(this,t=t||{});var e=[],n=!0,r=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(t){this._input=t,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===e.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):n=!0},this._streamData=x((function(t){try{e.push("string"==typeof t?t:t.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(t){this._streamError(t)}}),this),this._streamError=x((function(t){this._streamCleanUp(),this._sendError(t)}),this),this._streamEnd=x((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=x((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function d(t){var e,n,r,o=Math.pow(2,53),i=-o,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,c=this,u=0,h=0,f=!1,d=!1,g=[],y={data:[],errors:[],meta:{}};if(w(t.step)){var v=t.step;t.step=function(e){if(y=e,S())k();else{if(k(),0===y.data.length)return;u+=e.data.length,t.preview&&u>t.preview?n.abort():(y.data=y.data[0],v(y,c))}}}function x(e){return"greedy"===t.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function k(){return y&&r&&(_("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),r=!1),t.skipEmptyLines&&(y.data=y.data.filter((function(t){return!x(t)}))),S()&&function(){if(y)if(Array.isArray(y.data[0])){for(var e=0;S()&&e<y.data.length;e++)y.data[e].forEach(n);y.data.splice(0,1)}else y.data.forEach(n);function n(e,n){w(t.transformHeader)&&(e=t.transformHeader(e,n)),g.push(e)}}(),function(){if(!y||!t.header&&!t.dynamicTyping&&!t.transform)return y;function e(e,n){var r,o=t.header?{}:[];for(r=0;r<e.length;r++){var i=r,a=e[r];t.header&&(i=r>=g.length?"__parsed_extra":g[r]),t.transform&&(a=t.transform(a,i)),a=O(i,a),"__parsed_extra"===i?(o[i]=o[i]||[],o[i].push(a)):o[i]=a}return t.header&&(r>g.length?_("FieldMismatch","TooManyFields","Too many fields: expected "+g.length+" fields but parsed "+r,h+n):r<g.length&&_("FieldMismatch","TooFewFields","Too few fields: expected "+g.length+" fields but parsed "+r,h+n)),o}var n=1;return!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(e),n=y.data.length):y.data=e(y.data,0),t.header&&y.meta&&(y.meta.fields=g),h+=n,y}()}function S(){return t.header&&0===g.length}function O(e,n){return r=e,t.dynamicTypingFunction&&void 0===t.dynamicTyping[r]&&(t.dynamicTyping[r]=t.dynamicTypingFunction(r)),!0===(t.dynamicTyping[r]||t.dynamicTyping)?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&(function(t){if(s.test(t)){var e=parseFloat(t);if(i<e&&e<o)return!0}return!1}(n)?parseFloat(n):l.test(n)?new Date(n):""===n?null:n):n;var r}function _(t,e,n,r){var o={type:t,code:e,message:n};void 0!==r&&(o.row=r),y.errors.push(o)}this.parse=function(o,i,s){var l=t.quoteChar||'"';if(t.newline||(t.newline=function(t,e){t=t.substring(0,1048576);var n=new RegExp(p(e)+"([^]*?)"+p(e),"gm"),r=(t=t.replace(n,"")).split("\r"),o=t.split("\n"),i=1<o.length&&o[0].length<r[0].length;if(1===r.length||i)return"\n";for(var a=0,s=0;s<r.length;s++)"\n"===r[s][0]&&a++;return a>=r.length/2?"\r\n":"\r"}(o,l)),r=!1,t.delimiter)w(t.delimiter)&&(t.delimiter=t.delimiter(o),y.meta.delimiter=t.delimiter);else{var c=function(e,n,r,o,i){var s,l,c,u;i=i||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var h=0;h<i.length;h++){var f=i[h],d=0,p=0,g=0;c=void 0;for(var y=new m({comments:o,delimiter:f,newline:n,preview:10}).parse(e),v=0;v<y.data.length;v++)if(r&&x(y.data[v]))g++;else{var b=y.data[v].length;p+=b,void 0!==c?0<b&&(d+=Math.abs(b-c),c=b):c=b}0<y.data.length&&(p/=y.data.length-g),(void 0===l||d<=l)&&(void 0===u||u<p)&&1.99<p&&(l=d,s=f,u=p)}return{successful:!!(t.delimiter=s),bestDelimiter:s}}(o,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess);c.successful?t.delimiter=c.bestDelimiter:(r=!0,t.delimiter=a.DefaultDelimiter),y.meta.delimiter=t.delimiter}var u=b(t);return t.preview&&t.header&&u.preview++,e=o,n=new m(u),y=n.parse(e,i,s),k(),f?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return f},this.pause=function(){f=!0,n.abort(),e=w(t.chunk)?"":e.substring(n.getCharIndex())},this.resume=function(){c.streamer._halted?(f=!1,c.streamer.parseChunk(e,!0)):setTimeout(c.resume,3)},this.aborted=function(){return d},this.abort=function(){d=!0,n.abort(),y.meta.aborted=!0,w(t.complete)&&t.complete(y),e=""}}function p(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(t){var e,n=(t=t||{}).delimiter,r=t.newline,o=t.comments,i=t.step,s=t.preview,l=t.fastMode,c=e=void 0===t.quoteChar||null===t.quoteChar?'"':t.quoteChar;if(void 0!==t.escapeChar&&(c=t.escapeChar),("string"!=typeof n||-1<a.BAD_DELIMITERS.indexOf(n))&&(n=","),o===n)throw new Error("Comment character same as delimiter");!0===o?o="#":("string"!=typeof o||-1<a.BAD_DELIMITERS.indexOf(o))&&(o=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var u=0,h=!1;this.parse=function(a,f,d){if("string"!=typeof a)throw new Error("Input must be a string");var m=a.length,g=n.length,y=r.length,v=o.length,b=w(i),x=[],k=[],S=[],O=u=0;if(!a)return U();if(t.header&&!f){var _=a.split(r)[0].split(n),E=[],C={},A=!1;for(var j in _){var P=_[j];w(t.transformHeader)&&(P=t.transformHeader(P,j));var M=P,R=C[P]||0;for(0<R&&(A=!0,M=P+"_"+R),C[P]=R+1;E.includes(M);)M=M+"_"+R;E.push(M)}if(A){var T=a.split(r);T[0]=E.join(n),a=T.join(r)}}if(l||!1!==l&&-1===a.indexOf(e)){for(var L=a.split(r),I=0;I<L.length;I++){if(S=L[I],u+=S.length,I!==L.length-1)u+=r.length;else if(d)return U();if(!o||S.substring(0,v)!==o){if(b){if(x=[],H(S.split(n)),K(),h)return U()}else H(S.split(n));if(s&&s<=I)return x=x.slice(0,s),U(!0)}}return U()}for(var N=a.indexOf(n,u),z=a.indexOf(r,u),D=new RegExp(p(c)+p(e),"g"),F=a.indexOf(e,u);;)if(a[u]!==e)if(o&&0===S.length&&a.substring(u,u+v)===o){if(-1===z)return U();u=z+y,z=a.indexOf(r,u),N=a.indexOf(n,u)}else if(-1!==N&&(N<z||-1===z))S.push(a.substring(u,N)),u=N+g,N=a.indexOf(n,u);else{if(-1===z)break;if(S.push(a.substring(u,z)),V(z+y),b&&(K(),h))return U();if(s&&x.length>=s)return U(!0)}else for(F=u,u++;;){if(-1===(F=a.indexOf(e,F+1)))return d||k.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:x.length,index:u}),q();if(F===m-1)return q(a.substring(u,F).replace(D,e));if(e!==c||a[F+1]!==c){if(e===c||0===F||a[F-1]!==c){-1!==N&&N<F+1&&(N=a.indexOf(n,F+1)),-1!==z&&z<F+1&&(z=a.indexOf(r,F+1));var B=W(-1===z?N:Math.min(N,z));if(a.substr(F+1+B,g)===n){S.push(a.substring(u,F).replace(D,e)),a[u=F+1+B+g]!==e&&(F=a.indexOf(e,u)),N=a.indexOf(n,u),z=a.indexOf(r,u);break}var $=W(z);if(a.substring(F+1+$,F+1+$+y)===r){if(S.push(a.substring(u,F).replace(D,e)),V(F+1+$+y),N=a.indexOf(n,u),F=a.indexOf(e,u),b&&(K(),h))return U();if(s&&x.length>=s)return U(!0);break}k.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:x.length,index:u}),F++}}else F++}return q();function H(t){x.push(t),O=u}function W(t){var e=0;if(-1!==t){var n=a.substring(F+1,t);n&&""===n.trim()&&(e=n.length)}return e}function q(t){return d||(void 0===t&&(t=a.substring(u)),S.push(t),u=m,H(S),b&&K()),U()}function V(t){u=t,H(S),S=[],z=a.indexOf(r,u)}function U(t){return{data:x,errors:k,meta:{delimiter:n,linebreak:r,aborted:h,truncated:!!t,cursor:O+(f||0)}}}function K(){i(U()),x=[],k=[]}},this.abort=function(){h=!0},this.getCharIndex=function(){return u}}function g(t){var e=t.data,n=o[e.workerId],r=!1;if(e.error)n.userError(e.error,e.file);else if(e.results&&e.results.data){var i={abort:function(){r=!0,y(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(w(n.userStep)){for(var a=0;a<e.results.data.length&&(n.userStep({data:e.results.data[a],errors:e.results.errors,meta:e.results.meta},i),!r);a++);delete e.results}else w(n.userChunk)&&(n.userChunk(e.results,i,e.file),delete e.results)}e.finished&&!r&&y(e.workerId,e.results)}function y(t,e){var n=o[t];w(n.userComplete)&&n.userComplete(e),n.terminate(),delete o[t]}function v(){throw new Error("Not implemented.")}function b(t){if("object"!=typeof t||null===t)return t;var e=Array.isArray(t)?[]:{};for(var n in t)e[n]=b(t[n]);return e}function x(t,e){return function(){t.apply(e,arguments)}}function w(t){return"function"==typeof t}return r&&(e.onmessage=function(t){var n=t.data;if(void 0===a.WORKER_ID&&n&&(a.WORKER_ID=n.workerId),"string"==typeof n.input)e.postMessage({workerId:a.WORKER_ID,results:a.parse(n.input,n.config),finished:!0});else if(e.File&&n.input instanceof File||n.input instanceof Object){var r=a.parse(n.input,n.config);r&&e.postMessage({workerId:a.WORKER_ID,results:r,finished:!0})}}),(c.prototype=Object.create(l.prototype)).constructor=c,(u.prototype=Object.create(l.prototype)).constructor=u,(h.prototype=Object.create(h.prototype)).constructor=h,(f.prototype=Object.create(l.prototype)).constructor=f,a},void 0===(r=n.apply(e,[]))||(t.exports=r)},2799:(t,e)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case u:case h:case i:case s:case a:case d:return t;default:switch(t=t&&t.$$typeof){case c:case f:case g:case m:case l:return t;default:return e}}case o:return e}}}function k(t){return w(t)===h}e.AsyncMode=u,e.ConcurrentMode=h,e.ContextConsumer=c,e.ContextProvider=l,e.Element=r,e.ForwardRef=f,e.Fragment=i,e.Lazy=g,e.Memo=m,e.Portal=o,e.Profiler=s,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(t){return k(t)||w(t)===u},e.isConcurrentMode=k,e.isContextConsumer=function(t){return w(t)===c},e.isContextProvider=function(t){return w(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return w(t)===f},e.isFragment=function(t){return w(t)===i},e.isLazy=function(t){return w(t)===g},e.isMemo=function(t){return w(t)===m},e.isPortal=function(t){return w(t)===o},e.isProfiler=function(t){return w(t)===s},e.isStrictMode=function(t){return w(t)===a},e.isSuspense=function(t){return w(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===h||t===s||t===a||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===g||t.$$typeof===m||t.$$typeof===l||t.$$typeof===c||t.$$typeof===f||t.$$typeof===v||t.$$typeof===b||t.$$typeof===x||t.$$typeof===y)},e.typeOf=w},4363:(t,e,n)=>{"use strict";t.exports=n(2799)},2192:(t,e,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{A:()=>y});var o=n(1594);const i=o.useLayoutEffect;var a=function(t,e){"function"!=typeof t?t.current=e:t(e)};var s={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},l=function(t){Object.keys(s).forEach((function(e){t.style.setProperty(e,s[e],"important")}))},c=null,u=function(t,e){var n=t.scrollHeight;return"border-box"===e.sizingStyle.boxSizing?n+e.borderSize:n-e.paddingSize},h=function(){},f=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],d=!!document.documentElement.currentStyle;function p(t,e,n){var r,a,s=(r=n,a=o.useRef(r),i((function(){a.current=r})),a);o.useLayoutEffect((function(){var n=function(t){return s.current(t)};if(t)return t.addEventListener(e,n),function(){return t.removeEventListener(e,n)}}),[])}var m=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],g=function(t,e){var n,i=t.cacheMeasurements,s=t.maxRows,g=t.minRows,y=t.onChange,v=void 0===y?h:y,b=t.onHeightChange,x=void 0===b?h:b,w=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,m),k=void 0!==w.value,S=o.useRef(null),O=function(t,e){var n=(0,o.useRef)();return(0,o.useCallback)((function(r){t.current=r,n.current&&a(n.current,null),n.current=e,e&&a(e,r)}),[e])}(S,e),_=o.useRef(0),E=o.useRef(),C=function(){var t=S.current,e=i&&E.current?E.current:function(t){var e=window.getComputedStyle(t);if(null===e)return null;var n,r=(n=e,f.reduce((function(t,e){return t[e]=n[e],t}),{})),o=r.boxSizing;return""===o?null:(d&&"border-box"===o&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})}(t);if(e){E.current=e;var n=function(t,e,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),c||((c=document.createElement("textarea")).setAttribute("tabindex","-1"),c.setAttribute("aria-hidden","true"),l(c)),null===c.parentNode&&document.body.appendChild(c);var o=t.paddingSize,i=t.borderSize,a=t.sizingStyle,s=a.boxSizing;Object.keys(a).forEach((function(t){var e=t;c.style[e]=a[e]})),l(c),c.value=e;var h=u(c,t);c.value=e,h=u(c,t),c.value="x";var f=c.scrollHeight-o,d=f*n;"border-box"===s&&(d=d+o+i),h=Math.max(d,h);var p=f*r;return"border-box"===s&&(p=p+o+i),[h=Math.min(p,h),f]}(e,t.value||t.placeholder||"x",g,s),r=n[0],o=n[1];_.current!==r&&(_.current=r,t.style.setProperty("height",r+"px","important"),x(r,{rowHeight:o}))}};return o.useLayoutEffect(C),p(window,"resize",C),n=C,p(document.fonts,"loadingdone",n),o.createElement("textarea",r({},w,{onChange:function(t){k||C(),v(t)},ref:O}))},y=o.forwardRef(g)},1020:(t,e,n)=>{"use strict";var r=n(1594),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(u=e.ref),e)a.call(e,r)&&!l.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===i[r]&&(i[r]=e[r]);return{$$typeof:o,type:t,key:c,ref:u,props:i,_owner:s.current}}e.Fragment=i,e.jsx=c,e.jsxs=c},4848:(t,e,n)=>{"use strict";t.exports=n(1020)},2833:t=>{t.exports=function(t,e,n,r){var o=n?n.call(r,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=t[c],h=e[c];if(!1===(o=n?n.call(r,u,h,c):void 0)||void 0===o&&u!==h)return!1}return!0}},3185:(t,e,n)=>{"use strict";n.d(e,{DU:()=>Ge,Ay:()=>Ke});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};function o(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var i=n(1594),a=n.n(i),s=n(2833),l=n.n(s),c="-ms-",u="-moz-",h="-webkit-",f="comm",d="rule",p="decl",m="@import",g="@keyframes",y="@layer",v=Math.abs,b=String.fromCharCode,x=Object.assign;function w(t){return t.trim()}function k(t,e){return(t=e.exec(t))?t[0]:t}function S(t,e,n){return t.replace(e,n)}function O(t,e,n){return t.indexOf(e,n)}function _(t,e){return 0|t.charCodeAt(e)}function E(t,e,n){return t.slice(e,n)}function C(t){return t.length}function A(t){return t.length}function j(t,e){return e.push(t),t}function P(t,e){return t.filter((function(t){return!k(t,e)}))}var M=1,R=1,T=0,L=0,I=0,N="";function z(t,e,n,r,o,i,a,s){return{value:t,root:e,parent:n,type:r,props:o,children:i,line:M,column:R,length:a,return:"",siblings:s}}function D(t,e){return x(z("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function F(t){for(;t.root;)t=D(t.root,{children:[t]});j(t,t.siblings)}function B(){return I=L>0?_(N,--L):0,R--,10===I&&(R=1,M--),I}function $(){return I=L<T?_(N,L++):0,R++,10===I&&(R=1,M++),I}function H(){return _(N,L)}function W(){return L}function q(t,e){return E(N,t,e)}function V(t){switch(t){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 U(t){return w(q(L-1,G(91===t?t+2:40===t?t+1:t)))}function K(t){for(;(I=H())&&I<33;)$();return V(t)>2||V(I)>3?"":" "}function Q(t,e){for(;--e&&$()&&!(I<48||I>102||I>57&&I<65||I>70&&I<97););return q(t,W()+(e<6&&32==H()&&32==$()))}function G(t){for(;$();)switch(I){case t:return L;case 34:case 39:34!==t&&39!==t&&G(I);break;case 40:41===t&&G(t);break;case 92:$()}return L}function Y(t,e){for(;$()&&t+I!==57&&(t+I!==84||47!==H()););return"/*"+q(e,L-1)+"*"+b(47===t?t:$())}function Z(t){for(;!V(H());)$();return q(t,L)}function X(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function J(t,e,n,r){switch(t.type){case y:if(t.children.length)break;case m:case p:return t.return=t.return||t.value;case f:return"";case g:return t.return=t.value+"{"+X(t.children,r)+"}";case d:if(!C(t.value=t.props.join(",")))return""}return C(n=X(t.children,r))?t.return=t.value+"{"+n+"}":""}function tt(t,e,n){switch(function(t,e){return 45^_(t,0)?(((e<<2^_(t,0))<<2^_(t,1))<<2^_(t,2))<<2^_(t,3):0}(t,e)){case 5103:return h+"print-"+t+t;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+t+t;case 4789:return u+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return h+t+u+t+c+t+t;case 5936:switch(_(t,e+11)){case 114:return h+t+c+S(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return h+t+c+S(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return h+t+c+S(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return h+t+c+t+t;case 6165:return h+t+c+"flex-"+t+t;case 5187:return h+t+S(t,/(\w+).+(:[^]+)/,h+"box-$1$2"+c+"flex-$1$2")+t;case 5443:return h+t+c+"flex-item-"+S(t,/flex-|-self/g,"")+(k(t,/flex-|baseline/)?"":c+"grid-row-"+S(t,/flex-|-self/g,""))+t;case 4675:return h+t+c+"flex-line-pack"+S(t,/align-content|flex-|-self/g,"")+t;case 5548:return h+t+c+S(t,"shrink","negative")+t;case 5292:return h+t+c+S(t,"basis","preferred-size")+t;case 6060:return h+"box-"+S(t,"-grow","")+h+t+c+S(t,"grow","positive")+t;case 4554:return h+S(t,/([^-])(transform)/g,"$1"+h+"$2")+t;case 6187:return S(S(S(t,/(zoom-|grab)/,h+"$1"),/(image-set)/,h+"$1"),t,"")+t;case 5495:case 3959:return S(t,/(image-set\([^]*)/,h+"$1$`$1");case 4968:return S(S(t,/(.+:)(flex-)?(.*)/,h+"box-pack:$3"+c+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+h+t+t;case 4200:if(!k(t,/flex-|baseline/))return c+"grid-column-align"+E(t,e)+t;break;case 2592:case 3360:return c+S(t,"template-","")+t;case 4384:case 3616:return n&&n.some((function(t,n){return e=n,k(t.props,/grid-\w+-end/)}))?~O(t+(n=n[e].value),"span",0)?t:c+S(t,"-start","")+t+c+"grid-row-span:"+(~O(n,"span",0)?k(n,/\d+/):+k(n,/\d+/)-+k(t,/\d+/))+";":c+S(t,"-start","")+t;case 4896:case 4128:return n&&n.some((function(t){return k(t.props,/grid-\w+-start/)}))?t:c+S(S(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return S(t,/(.+)-inline(.+)/,h+"$1$2")+t;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(C(t)-1-e>6)switch(_(t,e+1)){case 109:if(45!==_(t,e+4))break;case 102:return S(t,/(.+:)(.+)-([^]+)/,"$1"+h+"$2-$3$1"+u+(108==_(t,e+3)?"$3":"$2-$3"))+t;case 115:return~O(t,"stretch",0)?tt(S(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return S(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(e,n,r,o,i,a,s){return c+n+":"+r+s+(o?c+n+"-span:"+(i?a:+a-+r)+s:"")+t}));case 4949:if(121===_(t,e+6))return S(t,":",":"+h)+t;break;case 6444:switch(_(t,45===_(t,14)?18:11)){case 120:return S(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+h+(45===_(t,14)?"inline-":"")+"box$3$1"+h+"$2$3$1"+c+"$2box$3")+t;case 100:return S(t,":",":"+c)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return S(t,"scroll-","scroll-snap-")+t}return t}function et(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case p:return void(t.return=tt(t.value,t.length,n));case g:return X([D(t,{value:S(t.value,"@","@"+h)})],r);case d:if(t.length)return function(t,e){return t.map(e).join("")}(n=t.props,(function(e){switch(k(e,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":F(D(t,{props:[S(e,/:(read-\w+)/,":"+u+"$1")]})),F(D(t,{props:[e]})),x(t,{props:P(n,r)});break;case"::placeholder":F(D(t,{props:[S(e,/:(plac\w+)/,":"+h+"input-$1")]})),F(D(t,{props:[S(e,/:(plac\w+)/,":"+u+"$1")]})),F(D(t,{props:[S(e,/:(plac\w+)/,c+"input-$1")]})),F(D(t,{props:[e]})),x(t,{props:P(n,r)})}return""}))}}function nt(t){return function(t){return N="",t}(rt("",null,null,null,[""],t=function(t){return M=R=1,T=C(N=t),L=0,[]}(t),0,[0],t))}function rt(t,e,n,r,o,i,a,s,l){for(var c=0,u=0,h=a,f=0,d=0,p=0,m=1,g=1,y=1,x=0,w="",k=o,E=i,A=r,P=w;g;)switch(p=x,x=$()){case 40:if(108!=p&&58==_(P,h-1)){-1!=O(P+=S(U(x),"&","&\f"),"&\f",v(c?s[c-1]:0))&&(y=-1);break}case 34:case 39:case 91:P+=U(x);break;case 9:case 10:case 13:case 32:P+=K(p);break;case 92:P+=Q(W()-1,7);continue;case 47:switch(H()){case 42:case 47:j(it(Y($(),W()),e,n,l),l);break;default:P+="/"}break;case 123*m:s[c++]=C(P)*y;case 125*m:case 59:case 0:switch(x){case 0:case 125:g=0;case 59+u:-1==y&&(P=S(P,/\f/g,"")),d>0&&C(P)-h&&j(d>32?at(P+";",r,n,h-1,l):at(S(P," ","")+";",r,n,h-2,l),l);break;case 59:P+=";";default:if(j(A=ot(P,e,n,c,u,o,s,w,k=[],E=[],h,i),i),123===x)if(0===u)rt(P,e,A,A,k,i,h,s,E);else switch(99===f&&110===_(P,3)?100:f){case 100:case 108:case 109:case 115:rt(t,A,A,r&&j(ot(t,A,A,0,0,o,s,w,o,k=[],h,E),E),o,E,h,s,r?k:E);break;default:rt(P,A,A,A,[""],E,0,s,E)}}c=u=d=0,m=y=1,w=P="",h=a;break;case 58:h=1+C(P),d=p;default:if(m<1)if(123==x)--m;else if(125==x&&0==m++&&125==B())continue;switch(P+=b(x),x*m){case 38:y=u>0?1:(P+="\f",-1);break;case 44:s[c++]=(C(P)-1)*y,y=1;break;case 64:45===H()&&(P+=U($())),f=H(),u=h=C(w=P+=Z(W())),x++;break;case 45:45===p&&2==C(P)&&(m=0)}}return i}function ot(t,e,n,r,o,i,a,s,l,c,u,h){for(var f=o-1,p=0===o?i:[""],m=A(p),g=0,y=0,b=0;g<r;++g)for(var x=0,k=E(t,f+1,f=v(y=a[g])),O=t;x<m;++x)(O=w(y>0?p[x]+" "+k:S(k,/&\f/g,p[x])))&&(l[b++]=O);return z(t,e,n,0===o?d:s,l,c,u,h)}function it(t,e,n,r){return z(t,e,n,f,b(I),E(t,2,-2),0,r)}function at(t,e,n,r,o){return z(t,e,n,p,E(t,0,r),E(t,r+1,-1),r,o)}var st=n(3969),lt="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ct="active",ut="data-styled-version",ht="6.1.11",ft="/*!sc*/\n",dt="undefined"!=typeof window&&"HTMLElement"in window,pt=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),mt={},gt=(new Set,Object.freeze([])),yt=Object.freeze({});function vt(t,e,n){return void 0===n&&(n=yt),t.theme!==n.theme&&t.theme||e||n.theme}var bt=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"]),xt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,wt=/(^-|-$)/g;function kt(t){return t.replace(xt,"-").replace(wt,"")}var St=/(a)(d)/gi,Ot=52,_t=function(t){return String.fromCharCode(t+(t>25?39:97))};function Et(t){var e,n="";for(e=Math.abs(t);e>Ot;e=e/Ot|0)n=_t(e%Ot)+n;return(_t(e%Ot)+n).replace(St,"$1-$2")}var Ct,At=5381,jt=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},Pt=function(t){return jt(At,t)};function Mt(t){return Et(Pt(t)>>>0)}function Rt(t){return"string"==typeof t&&!0}var Tt="function"==typeof Symbol&&Symbol.for,Lt=Tt?Symbol.for("react.memo"):60115,It=Tt?Symbol.for("react.forward_ref"):60112,Nt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},zt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Dt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ft=((Ct={})[It]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ct[Lt]=Dt,Ct);function Bt(t){return("type"in(e=t)&&e.type.$$typeof)===Lt?Dt:"$$typeof"in t?Ft[t.$$typeof]:Nt;var e}var $t=Object.defineProperty,Ht=Object.getOwnPropertyNames,Wt=Object.getOwnPropertySymbols,qt=Object.getOwnPropertyDescriptor,Vt=Object.getPrototypeOf,Ut=Object.prototype;function Kt(t,e,n){if("string"!=typeof e){if(Ut){var r=Vt(e);r&&r!==Ut&&Kt(t,r,n)}var o=Ht(e);Wt&&(o=o.concat(Wt(e)));for(var i=Bt(t),a=Bt(e),s=0;s<o.length;++s){var l=o[s];if(!(l in zt||n&&n[l]||a&&l in a||i&&l in i)){var c=qt(e,l);try{$t(t,l,c)}catch(t){}}}}return t}function Qt(t){return"function"==typeof t}function Gt(t){return"object"==typeof t&&"styledComponentId"in t}function Yt(t,e){return t&&e?"".concat(t," ").concat(e):t||e||""}function Zt(t,e){if(0===t.length)return"";for(var n=t[0],r=1;r<t.length;r++)n+=e?e+t[r]:t[r];return n}function Xt(t){return null!==t&&"object"==typeof t&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function Jt(t,e,n){if(void 0===n&&(n=!1),!n&&!Xt(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)t[r]=Jt(t[r],e[r]);else if(Xt(e))for(var r in e)t[r]=Jt(t[r],e[r]);return t}function te(t,e){Object.defineProperty(t,"toString",{value:e})}function ee(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):""))}var ne=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return t.prototype.indexOfGroup=function(t){for(var e=0,n=0;n<t;n++)e+=this.groupSizes[n];return e},t.prototype.insertRules=function(t,e){if(t>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;t>=o;)if((o<<=1)<0)throw ee(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(t+1),s=(i=0,e.length);i<s;i++)this.tag.insertRule(a,e[i])&&(this.groupSizes[t]++,a++)},t.prototype.clearGroup=function(t){if(t<this.length){var e=this.groupSizes[t],n=this.indexOfGroup(t),r=n+e;this.groupSizes[t]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.prototype.getGroup=function(t){var e="";if(t>=this.length||0===this.groupSizes[t])return e;for(var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n,i=r;i<o;i++)e+="".concat(this.tag.getRule(i)).concat(ft);return e},t}(),re=new Map,oe=new Map,ie=1,ae=function(t){if(re.has(t))return re.get(t);for(;oe.has(ie);)ie++;var e=ie++;return re.set(t,e),oe.set(e,t),e},se=function(t,e){ie=e+1,re.set(t,e),oe.set(e,t)},le="style[".concat(lt,"][").concat(ut,'="').concat(ht,'"]'),ce=new RegExp("^".concat(lt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ue=function(t,e,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&t.registerName(e,r)},he=function(t,e){for(var n,r=(null!==(n=e.textContent)&&void 0!==n?n:"").split(ft),o=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(ce);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(se(u,c),ue(t,u,l[3]),t.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}};function fe(){return n.nc}var de=function(t){var e=document.head,n=t||e,r=document.createElement("style"),o=function(t){var e=Array.from(t.querySelectorAll("style[".concat(lt,"]")));return e[e.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(lt,ct),r.setAttribute(ut,ht);var a=fe();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},pe=function(){function t(t){this.element=de(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,n=0,r=e.length;n<r;n++){var o=e[n];if(o.ownerNode===t)return o}throw ee(17)}(this.element),this.length=0}return t.prototype.insertRule=function(t,e){try{return this.sheet.insertRule(e,t),this.length++,!0}catch(t){return!1}},t.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},t.prototype.getRule=function(t){var e=this.sheet.cssRules[t];return e&&e.cssText?e.cssText:""},t}(),me=function(){function t(t){this.element=de(t),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(t,e){if(t<=this.length&&t>=0){var n=document.createTextNode(e);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},t.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},t}(),ge=function(){function t(t){this.rules=[],this.length=0}return t.prototype.insertRule=function(t,e){return t<=this.length&&(this.rules.splice(t,0,e),this.length++,!0)},t.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},t.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},t}(),ye=dt,ve={isServer:!dt,useCSSOMInjection:!pt},be=function(){function t(t,e,n){void 0===t&&(t=yt),void 0===e&&(e={});var o=this;this.options=r(r({},ve),t),this.gs=e,this.names=new Map(n),this.server=!!t.isServer,!this.server&&dt&&ye&&(ye=!1,function(t){for(var e=document.querySelectorAll(le),n=0,r=e.length;n<r;n++){var o=e[n];o&&o.getAttribute(lt)!==ct&&(he(t,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),te(this,(function(){return function(t){for(var e=t.getTag(),n=e.length,r="",o=function(n){var o=function(t){return oe.get(t)}(n);if(void 0===o)return"continue";var i=t.names.get(o),a=e.getGroup(n);if(void 0===i||0===a.length)return"continue";var s="".concat(lt,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(t){t.length>0&&(l+="".concat(t,","))})),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(ft)},i=0;i<n;i++)o(i);return r}(o)}))}return t.registerId=function(t){return ae(t)},t.prototype.reconstructWithOptions=function(e,n){return void 0===n&&(n=!0),new t(r(r({},this.options),e),this.gs,n&&this.names||void 0)},t.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(t=function(t){var e=t.useCSSOMInjection,n=t.target;return t.isServer?new ge(n):e?new pe(n):new me(n)}(this.options),new ne(t)));var t},t.prototype.hasNameForId=function(t,e){return this.names.has(t)&&this.names.get(t).has(e)},t.prototype.registerName=function(t,e){if(ae(t),this.names.has(t))this.names.get(t).add(e);else{var n=new Set;n.add(e),this.names.set(t,n)}},t.prototype.insertRules=function(t,e,n){this.registerName(t,e),this.getTag().insertRules(ae(t),n)},t.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},t.prototype.clearRules=function(t){this.getTag().clearGroup(ae(t)),this.clearNames(t)},t.prototype.clearTag=function(){this.tag=void 0},t}(),xe=/&/g,we=/^\s*\/\/.*$/gm;function ke(t,e){return t.map((function(t){return"rule"===t.type&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map((function(t){return"".concat(e," ").concat(t)}))),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=ke(t.children,e)),t}))}function Se(t){var e,n,r,o=void 0===t?yt:t,i=o.options,a=void 0===i?yt:i,s=o.plugins,l=void 0===s?gt:s,c=function(t,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(e):t},u=l.slice();u.push((function(t){t.type===d&&t.value.includes("&")&&(t.props[0]=t.props[0].replace(xe,n).replace(r,c))})),a.prefix&&u.push(et),u.push(J);var h=function(t,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),e=s,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var l=t.replace(we,""),c=nt(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(c=ke(c,a.namespace));var h,f,d,p=[];return X(c,(h=u.concat((d=function(t){return p.push(t)},function(t){t.root||(t=t.return)&&d(t)})),f=A(h),function(t,e,n,r){for(var o="",i=0;i<f;i++)o+=h[i](t,e,n,r)||"";return o})),p};return h.hash=l.length?l.reduce((function(t,e){return e.name||ee(15),jt(t,e.name)}),At).toString():"",h}var Oe=new be,_e=Se(),Ee=a().createContext({shouldForwardProp:void 0,styleSheet:Oe,stylis:_e}),Ce=(Ee.Consumer,a().createContext(void 0));function Ae(){return(0,i.useContext)(Ee)}function je(t){var e=(0,i.useState)(t.stylisPlugins),n=e[0],r=e[1],o=Ae().styleSheet,s=(0,i.useMemo)((function(){var e=o;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target,o]),c=(0,i.useMemo)((function(){return Se({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:n})}),[t.enableVendorPrefixes,t.namespace,n]);(0,i.useEffect)((function(){l()(n,t.stylisPlugins)||r(t.stylisPlugins)}),[t.stylisPlugins]);var u=(0,i.useMemo)((function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:s,stylis:c}}),[t.shouldForwardProp,s,c]);return a().createElement(Ee.Provider,{value:u},a().createElement(Ce.Provider,{value:c},t.children))}var Pe=function(){function t(t,e){var n=this;this.inject=function(t,e){void 0===e&&(e=_e);var r=n.name+e.hash;t.hasNameForId(n.id,r)||t.insertRules(n.id,r,e(n.rules,r,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=e,te(this,(function(){throw ee(12,String(n.name))}))}return t.prototype.getName=function(t){return void 0===t&&(t=_e),this.name+t.hash},t}(),Me=function(t){return t>="A"&&t<="Z"};function Re(t){for(var e="",n=0;n<t.length;n++){var r=t[n];if(1===n&&"-"===r&&"-"===t[0])return t;Me(r)?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var Te=function(t){return null==t||!1===t||""===t},Le=function(t){var e,n,r=[];for(var i in t){var a=t[i];t.hasOwnProperty(i)&&!Te(a)&&(Array.isArray(a)&&a.isCss||Qt(a)?r.push("".concat(Re(i),":"),a,";"):Xt(a)?r.push.apply(r,o(o(["".concat(i," {")],Le(a),!1),["}"],!1)):r.push("".concat(Re(i),": ").concat((e=i,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||e in st.A||e.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ie(t,e,n,r){return Te(t)?[]:Gt(t)?[".".concat(t.styledComponentId)]:Qt(t)?!Qt(o=t)||o.prototype&&o.prototype.isReactComponent||!e?[t]:Ie(t(e),e,n,r):t instanceof Pe?n?(t.inject(n,r),[t.getName(r)]):[t]:Xt(t)?Le(t):Array.isArray(t)?Array.prototype.concat.apply(gt,t.map((function(t){return Ie(t,e,n,r)}))):[t.toString()];var o}function Ne(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(Qt(n)&&!Gt(n))return!1}return!0}var ze=Pt(ht),De=function(){function t(t,e,n){this.rules=t,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Ne(t),this.componentId=e,this.baseHash=jt(ze,e),this.baseStyle=n,be.registerId(e)}return t.prototype.generateAndInjectStyles=function(t,e,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,e,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&e.hasNameForId(this.componentId,this.staticRulesId))r=Yt(r,this.staticRulesId);else{var o=Zt(Ie(this.rules,t,e,n)),i=Et(jt(this.baseHash,o)>>>0);if(!e.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);e.insertRules(this.componentId,i,a)}r=Yt(r,i),this.staticRulesId=i}else{for(var s=jt(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u;else if(u){var h=Zt(Ie(u,t,e,n));s=jt(s,h+c),l+=h}}if(l){var f=Et(s>>>0);e.hasNameForId(this.componentId,f)||e.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),r=Yt(r,f)}}return r},t}(),Fe=a().createContext(void 0);Fe.Consumer;var Be={};function $e(t,e,n){var o=Gt(t),s=t,l=!Rt(t),c=e.attrs,u=void 0===c?gt:c,h=e.componentId,f=void 0===h?function(t,e){var n="string"!=typeof t?"sc":kt(t);Be[n]=(Be[n]||0)+1;var r="".concat(n,"-").concat(Mt(ht+n+Be[n]));return e?"".concat(e,"-").concat(r):r}(e.displayName,e.parentComponentId):h,d=e.displayName,p=void 0===d?function(t){return Rt(t)?"styled.".concat(t):"Styled(".concat(function(t){return t.displayName||t.name||"Component"}(t),")")}(t):d,m=e.displayName&&e.componentId?"".concat(kt(e.displayName),"-").concat(e.componentId):e.componentId||f,g=o&&s.attrs?s.attrs.concat(u).filter(Boolean):u,y=e.shouldForwardProp;if(o&&s.shouldForwardProp){var v=s.shouldForwardProp;if(e.shouldForwardProp){var b=e.shouldForwardProp;y=function(t,e){return v(t,e)&&b(t,e)}}else y=v}var x=new De(n,m,o?s.componentStyle:void 0);function w(t,e){return function(t,e,n){var o=t.attrs,s=t.componentStyle,l=t.defaultProps,c=t.foldedComponentIds,u=t.styledComponentId,h=t.target,f=a().useContext(Fe),d=Ae(),p=t.shouldForwardProp||d.shouldForwardProp,m=vt(e,f,l)||yt,g=function(t,e,n){for(var o,i=r(r({},e),{className:void 0,theme:n}),a=0;a<t.length;a+=1){var s=Qt(o=t[a])?o(i):o;for(var l in s)i[l]="className"===l?Yt(i[l],s[l]):"style"===l?r(r({},i[l]),s[l]):s[l]}return e.className&&(i.className=Yt(i.className,e.className)),i}(o,e,m),y=g.as||h,v={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===m||("forwardedAs"===b?v.as=g.forwardedAs:p&&!p(b,y)||(v[b]=g[b]));var x=function(t,e){var n=Ae();return t.generateAndInjectStyles(e,n.styleSheet,n.stylis)}(s,g),w=Yt(c,u);return x&&(w+=" "+x),g.className&&(w+=" "+g.className),v[Rt(y)&&!bt.has(y)?"class":"className"]=w,v.ref=n,(0,i.createElement)(y,v)}(k,t,e)}w.displayName=p;var k=a().forwardRef(w);return k.attrs=g,k.componentStyle=x,k.displayName=p,k.shouldForwardProp=y,k.foldedComponentIds=o?Yt(s.foldedComponentIds,s.styledComponentId):"",k.styledComponentId=m,k.target=o?s.target:t,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,o=e;r<o.length;r++)Jt(t,o[r],!0);return t}({},s.defaultProps,t):t}}),te(k,(function(){return".".concat(k.styledComponentId)})),l&&Kt(k,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function He(t,e){for(var n=[t[0]],r=0,o=e.length;r<o;r+=1)n.push(e[r],t[r+1]);return n}new Set;var We=function(t){return Object.assign(t,{isCss:!0})};function qe(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Qt(t)||Xt(t))return We(Ie(He(gt,o([t],e,!0))));var r=t;return 0===e.length&&1===r.length&&"string"==typeof r[0]?Ie(r):We(Ie(He(r,e)))}function Ve(t,e,n){if(void 0===n&&(n=yt),!e)throw ee(1,e);var i=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return t(e,n,qe.apply(void 0,o([r],i,!1)))};return i.attrs=function(o){return Ve(t,e,r(r({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},i.withConfig=function(o){return Ve(t,e,r(r({},n),o))},i}var Ue=function(t){return Ve($e,t)},Ke=Ue;bt.forEach((function(t){Ke[t]=Ue(t)}));var Qe=function(){function t(t,e){this.rules=t,this.componentId=e,this.isStatic=Ne(t),be.registerId(this.componentId+1)}return t.prototype.createStyles=function(t,e,n,r){var o=r(Zt(Ie(this.rules,e,n,r)),""),i=this.componentId+t;n.insertRules(i,i,o)},t.prototype.removeStyles=function(t,e){e.clearRules(this.componentId+t)},t.prototype.renderStyles=function(t,e,n,r){t>2&&be.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,e,n,r)},t}();function Ge(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=qe.apply(void 0,o([t],e,!1)),s="sc-global-".concat(Mt(JSON.stringify(i))),l=new Qe(i,s),c=function(t){var e=Ae(),n=a().useContext(Fe),r=a().useRef(e.styleSheet.allocateGSInstance(s)).current;return e.styleSheet.server&&u(r,t,e.styleSheet,n,e.stylis),a().useLayoutEffect((function(){if(!e.styleSheet.server)return u(r,t,e.styleSheet,n,e.stylis),function(){return l.removeStyles(r,e.styleSheet)}}),[r,t,e.styleSheet,n,e.stylis]),null};function u(t,e,n,o,i){if(l.isStatic)l.renderStyles(t,mt,n,i);else{var a=r(r({},e),{theme:vt(e,o,c.defaultProps)});l.renderStyles(t,a,n,i)}}return a().memo(c)}(function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString(),n=fe(),r=Zt([n&&'nonce="'.concat(n,'"'),"".concat(lt,'="true"'),"".concat(ut,'="').concat(ht,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw ee(2);return t._emitSheetCSS()},this.getStyleElement=function(){var e;if(t.sealed)throw ee(2);var n=((e={})[lt]="",e[ut]=ht,e.dangerouslySetInnerHTML={__html:t.instance.toString()},e),o=fe();return o&&(n.nonce=o),[a().createElement("style",r({},n,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new be({isServer:!0}),this.sealed=!1}t.prototype.collectStyles=function(t){if(this.sealed)throw ee(2);return a().createElement(je,{sheet:this.instance},t)},t.prototype.interleaveWithNodeStream=function(t){throw ee(3)}})(),"__sc-".concat(lt,"__")},6426:t=>{t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r<t.rangeCount;r++)n.push(t.getRangeAt(r));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||n.forEach((function(e){t.addRange(e)})),e&&e.focus()}}},1063:(t,e,n)=>{"use strict";var r=n(1594),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!o(t,n)}catch(t){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=i({inst:{value:n,getSnapshot:e}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=e,c(o)&&u({inst:o})}),[t,n,e]),a((function(){return c(o)&&u({inst:o}),t((function(){c(o)&&u({inst:o})}))}),[t]),l(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},8940:(t,e,n)=>{"use strict";var r=n(1594),o=n(9888),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=o.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,r,o){var h=s(null);if(null===h.current){var f={hasValue:!1,value:null};h.current=f}else f=h.current;h=c((function(){function t(t){if(!l){if(l=!0,a=t,t=r(t),void 0!==o&&f.hasValue){var e=f.value;if(o(e,t))return s=e}return s=t}if(e=s,i(a,t))return e;var n=r(t);return void 0!==o&&o(e,n)?e:(a=t,s=n)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return t(e())},null===c?void 0:function(){return t(c())}]}),[e,n,r,o]);var d=a(t,h[0],h[1]);return l((function(){f.hasValue=!0,f.value=d}),[d]),u(d),d}},9888:(t,e,n)=>{"use strict";t.exports=n(1063)},9242:(t,e,n)=>{"use strict";t.exports=n(8940)},4634:t=>{function e(){return t.exports=e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(this,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4994:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},4893:t=>{t.exports=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o},t.exports.__esModule=!0,t.exports.default=t.exports},8168:(t,e,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{A:()=>r})},8587:(t,e,n)=>{"use strict";function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,{A:()=>r})},9658:(t,e,n)=>{"use strict";n.d(e,{m:()=>i});var r=n(6500),o=n(4880),i=new class extends r.Q{#t;#e;#n;constructor(){super(),this.#n=t=>{if(!o.S$&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t((t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()}))}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){this.listeners.forEach((t=>{t()}))}isFocused(){return"boolean"==typeof this.#t?this.#t:"hidden"!==globalThis.document?.visibilityState}}},6158:(t,e,n)=>{"use strict";n.d(e,{$:()=>s,s:()=>a});var r=n(6261),o=n(1692),i=n(8904),a=class extends o.k{#r;#o;#i;#a;constructor(t){super(),this.mutationId=t.mutationId,this.#o=t.defaultOptions,this.#i=t.mutationCache,this.#r=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.#o,...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#r.includes(t)||(this.#r.push(t),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#r=this.#r.filter((e=>e!==t)),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#r.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>(this.#a=(0,i.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(t,e)=>{this.#s({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.#a.promise),n="pending"===this.state.status;try{if(!n){this.#s({type:"pending",variables:t}),await(this.#i.config.onMutate?.(t,this));const e=await(this.options.onMutate?.(t));e!==this.state.context&&this.#s({type:"pending",context:e,variables:t})}const r=await e();return await(this.#i.config.onSuccess?.(r,t,this.state.context,this)),await(this.options.onSuccess?.(r,t,this.state.context)),await(this.#i.config.onSettled?.(r,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(r,null,t,this.state.context)),this.#s({type:"success",data:r}),r}catch(e){try{throw await(this.#i.config.onError?.(e,t,this.state.context,this)),await(this.options.onError?.(e,t,this.state.context)),await(this.#i.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,e,t,this.state.context)),e}finally{this.#s({type:"error",error:e})}}}#s(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,i.v_)(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),r.j.batch((()=>{this.#r.forEach((e=>{e.onMutationUpdate(t)})),this.#i.notify({mutation:this,type:"updated",action:t})}))}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},6261:(t,e,n)=>{"use strict";n.d(e,{j:()=>r});var r=function(){let t=[],e=0,n=t=>{t()},r=t=>{t()},o=t=>setTimeout(t,0);const i=r=>{e?t.push(r):o((()=>{n(r)}))};return{batch:i=>{let a;e++;try{a=i()}finally{e--,e||(()=>{const e=t;t=[],e.length&&o((()=>{r((()=>{e.forEach((t=>{n(t)}))}))}))})()}return a},batchCalls:t=>(...e)=>{i((()=>{t(...e)}))},schedule:i,setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{r=t},setScheduler:t=>{o=t}}}()},6035:(t,e,n)=>{"use strict";n.d(e,{t:()=>i});var r=n(6500),o=n(4880),i=new class extends r.Q{#l=!0;#e;#n;constructor(){super(),this.#n=t=>{if(!o.S$&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t(this.setOnline.bind(this))}setOnline(t){this.#l!==t&&(this.#l=t,this.listeners.forEach((e=>{e(t)})))}isOnline(){return this.#l}}},5323:(t,e,n)=>{"use strict";n.d(e,{E:()=>g});var r=n(4880),o=n(6261),i=n(8904),a=n(1692),s=class extends a.k{#c;#u;#h;#f;#a;#r;#o;#d;constructor(t){super(),this.#d=!1,this.#o=t.defaultOptions,this.#p(t.options),this.#r=[],this.#h=t.cache,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#c=t.state||function(t){const e="function"==typeof t.initialData?t.initialData():t.initialData,n=void 0!==e,r=n?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=this.#c,this.scheduleGc()}get meta(){return this.options.meta}#p(t){this.options={...this.#o,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.#r.length||"idle"!==this.state.fetchStatus||this.#h.remove(this)}setData(t,e){const n=(0,r.pl)(this.state.data,t,this.options);return this.#s({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t,e){this.#s({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#f;return this.#a?.cancel(t),e?e.then(r.lQ).catch(r.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#c)}isActive(){return this.#r.some((t=>!1!==t.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||void 0===this.state.data||this.#r.some((t=>t.getCurrentResult().isStale))}isStaleByTime(t=0){return this.state.isInvalidated||void 0===this.state.data||!(0,r.j3)(this.state.dataUpdatedAt,t)}onFocus(){const t=this.#r.find((t=>t.shouldFetchOnWindowFocus()));t?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){const t=this.#r.find((t=>t.shouldFetchOnReconnect()));t?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(t){this.#r.includes(t)||(this.#r.push(t),this.clearGcTimeout(),this.#h.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.#r.includes(t)&&(this.#r=this.#r.filter((e=>e!==t)),this.#r.length||(this.#a&&(this.#d?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#h.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.#r.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}fetch(t,e){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#f)return this.#a?.continueRetry(),this.#f;if(t&&this.#p(t),!this.options.queryFn){const t=this.#r.find((t=>t.options.queryFn));t&&this.#p(t.options)}const n=new AbortController,o={queryKey:this.queryKey,meta:this.meta},a=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#d=!0,n.signal)})};a(o);const s={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn&&this.options.queryFn!==r.hT?(this.#d=!1,this.options.persister?this.options.persister(this.options.queryFn,o,this):this.options.queryFn(o)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`))};a(s),this.options.behavior?.onFetch(s,this),this.#u=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===s.fetchOptions?.meta||this.#s({type:"fetch",meta:s.fetchOptions?.meta});const l=t=>{(0,i.wm)(t)&&t.silent||this.#s({type:"error",error:t}),(0,i.wm)(t)||(this.#h.config.onError?.(t,this),this.#h.config.onSettled?.(this.state.data,t,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#a=(0,i.II)({fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:t=>{void 0!==t?(this.setData(t),this.#h.config.onSuccess?.(t,this),this.#h.config.onSettled?.(t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(t,e)=>{this.#s({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode}),this.#f=this.#a.promise,this.#f}#s(t){this.state=(e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:(0,i.v_)(this.options.networkMode)?"fetching":"paused",...void 0===e.data&&{error:null,status:"pending"}};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return(0,i.wm)(n)&&n.revert&&this.#u?{...this.#u,fetchStatus:"idle"}:{...e,error:n,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}})(this.state),o.j.batch((()=>{this.#r.forEach((t=>{t.onQueryUpdate()})),this.#h.notify({query:this,type:"updated",action:t})}))}},l=n(6500),c=class extends l.Q{constructor(t={}){super(),this.config=t,this.#m=new Map}#m;build(t,e,n){const o=e.queryKey,i=e.queryHash??(0,r.F$)(o,e);let a=this.get(i);return a||(a=new s({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){this.#m.has(t.queryHash)||(this.#m.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#m.get(t.queryHash);e&&(t.destroy(),e===t&&this.#m.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){o.j.batch((()=>{this.getAll().forEach((t=>{this.remove(t)}))}))}get(t){return this.#m.get(t)}getAll(){return[...this.#m.values()]}find(t){const e={exact:!0,...t};return this.getAll().find((t=>(0,r.MK)(e,t)))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter((e=>(0,r.MK)(t,e))):e}notify(t){o.j.batch((()=>{this.listeners.forEach((e=>{e(t)}))}))}onFocus(){o.j.batch((()=>{this.getAll().forEach((t=>{t.onFocus()}))}))}onOnline(){o.j.batch((()=>{this.getAll().forEach((t=>{t.onOnline()}))}))}},u=n(6158),h=class extends l.Q{constructor(t={}){super(),this.config=t,this.#g=[],this.#y=0}#g;#y;#v;build(t,e,n){const r=new u.s({mutationCache:this,mutationId:++this.#y,options:t.defaultMutationOptions(e),state:n});return this.add(r),r}add(t){this.#g.push(t),this.notify({type:"added",mutation:t})}remove(t){this.#g=this.#g.filter((e=>e!==t)),this.notify({type:"removed",mutation:t})}clear(){o.j.batch((()=>{this.#g.forEach((t=>{this.remove(t)}))}))}getAll(){return this.#g}find(t){const e={exact:!0,...t};return this.#g.find((t=>(0,r.nJ)(e,t)))}findAll(t={}){return this.#g.filter((e=>(0,r.nJ)(t,e)))}notify(t){o.j.batch((()=>{this.listeners.forEach((e=>{e(t)}))}))}resumePausedMutations(){return this.#v=(this.#v??Promise.resolve()).then((()=>{const t=this.#g.filter((t=>t.state.isPaused));return o.j.batch((()=>t.reduce(((t,e)=>t.then((()=>e.continue().catch(r.lQ)))),Promise.resolve())))})).then((()=>{this.#v=void 0})),this.#v}},f=n(9658),d=n(6035);function p(t,{pages:e,pageParams:n}){const r=e.length-1;return t.getNextPageParam(e[r],e,n[r],n)}function m(t,{pages:e,pageParams:n}){return t.getPreviousPageParam?.(e[0],e,n[0],n)}var g=class{#b;#i;#o;#x;#w;#k;#S;#O;constructor(t={}){this.#b=t.queryCache||new c,this.#i=t.mutationCache||new h,this.#o=t.defaultOptions||{},this.#x=new Map,this.#w=new Map,this.#k=0}mount(){this.#k++,1===this.#k&&(this.#S=f.m.subscribe((()=>{f.m.isFocused()&&(this.resumePausedMutations(),this.#b.onFocus())})),this.#O=d.t.subscribe((t=>{t&&(this.resumePausedMutations(),this.#b.onOnline())})))}unmount(){this.#k--,0===this.#k&&(this.#S?.(),this.#S=void 0,this.#O?.(),this.#O=void 0)}isFetching(t){return this.#b.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#i.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#b.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);return void 0!==e?Promise.resolve(e):this.fetchQuery(t)}getQueriesData(t){return this.getQueryCache().findAll(t).map((({queryKey:t,state:e})=>[t,e.data]))}setQueryData(t,e,n){const o=this.defaultQueryOptions({queryKey:t}),i=this.#b.get(o.queryHash),a=i?.state.data,s=(0,r.Zw)(e,a);if(void 0!==s)return this.#b.build(this,o).setData(s,{...n,manual:!0})}setQueriesData(t,e,n){return o.j.batch((()=>this.getQueryCache().findAll(t).map((({queryKey:t})=>[t,this.setQueryData(t,e,n)]))))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#b.get(e.queryHash)?.state}removeQueries(t){const e=this.#b;o.j.batch((()=>{e.findAll(t).forEach((t=>{e.remove(t)}))}))}resetQueries(t,e){const n=this.#b,r={type:"active",...t};return o.j.batch((()=>(n.findAll(t).forEach((t=>{t.reset()})),this.refetchQueries(r,e))))}cancelQueries(t={},e={}){const n={revert:!0,...e},i=o.j.batch((()=>this.#b.findAll(t).map((t=>t.cancel(n)))));return Promise.all(i).then(r.lQ).catch(r.lQ)}invalidateQueries(t={},e={}){return o.j.batch((()=>{if(this.#b.findAll(t).forEach((t=>{t.invalidate()})),"none"===t.refetchType)return Promise.resolve();const n={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(n,e)}))}refetchQueries(t={},e){const n={...e,cancelRefetch:e?.cancelRefetch??!0},i=o.j.batch((()=>this.#b.findAll(t).filter((t=>!t.isDisabled())).map((t=>{let e=t.fetch(void 0,n);return n.throwOnError||(e=e.catch(r.lQ)),"paused"===t.state.fetchStatus?Promise.resolve():e}))));return Promise.all(i).then(r.lQ)}fetchQuery(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const n=this.#b.build(this,e);return n.isStaleByTime(e.staleTime)?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(r.lQ).catch(r.lQ)}fetchInfiniteQuery(t){return t.behavior=(e=t.pages,{onFetch:(t,n)=>{const o=async()=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],a=t.state.data?.pageParams||[],s={pages:[],pageParams:[]};let l=!1;const c=t.options.queryFn&&t.options.queryFn!==r.hT?t.options.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`)),u=async(e,n,o)=>{if(l)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);const i={queryKey:t.queryKey,pageParam:n,direction:o?"backward":"forward",meta:t.options.meta};var a;a=i,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(t.signal.aborted?l=!0:t.signal.addEventListener("abort",(()=>{l=!0})),t.signal)});const s=await c(i),{maxPages:u}=t.options,h=o?r.ZZ:r.y9;return{pages:h(e.pages,s,u),pageParams:h(e.pageParams,n,u)}};let h;if(o&&i.length){const t="backward"===o,e={pages:i,pageParams:a},r=(t?m:p)(n,e);h=await u(e,r,t)}else{h=await u(s,a[0]??n.initialPageParam);const t=e??i.length;for(let e=1;e<t;e++){const t=p(n,h);h=await u(h,t)}}return h};t.options.persister?t.fetchFn=()=>t.options.persister?.(o,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=o}}),this.fetchQuery(t);var e}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(r.lQ).catch(r.lQ)}resumePausedMutations(){return d.t.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#b}getMutationCache(){return this.#i}getDefaultOptions(){return this.#o}setDefaultOptions(t){this.#o=t}setQueryDefaults(t,e){this.#x.set((0,r.EN)(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#x.values()];let n={};return e.forEach((e=>{(0,r.Cp)(t,e.queryKey)&&(n={...n,...e.defaultOptions})})),n}setMutationDefaults(t,e){this.#w.set((0,r.EN)(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#w.values()];let n={};return e.forEach((e=>{(0,r.Cp)(t,e.mutationKey)&&(n={...n,...e.defaultOptions})})),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#o.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=(0,r.F$)(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),!0!==e.enabled&&e.queryFn===r.hT&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#o.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#b.clear(),this.#i.clear()}}},1692:(t,e,n)=>{"use strict";n.d(e,{k:()=>o});var r=n(4880),o=class{#_;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.gn)(this.gcTime)&&(this.#_=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(r.S$?1/0:3e5))}clearGcTimeout(){this.#_&&(clearTimeout(this.#_),this.#_=void 0)}}},8904:(t,e,n)=>{"use strict";n.d(e,{II:()=>u,v_:()=>s,wm:()=>c});var r=n(9658),o=n(6035),i=n(4880);function a(t){return Math.min(1e3*2**t,3e4)}function s(t){return"online"!==(t??"online")||o.t.isOnline()}var l=class{constructor(t){this.revert=t?.revert,this.silent=t?.silent}};function c(t){return t instanceof l}function u(t){let e,n,c,u=!1,h=0,f=!1;const d=new Promise(((t,e)=>{n=t,c=e})),p=()=>!r.m.isFocused()||"always"!==t.networkMode&&!o.t.isOnline(),m=r=>{f||(f=!0,t.onSuccess?.(r),e?.(),n(r))},g=n=>{f||(f=!0,t.onError?.(n),e?.(),c(n))},y=()=>new Promise((n=>{e=t=>{const e=f||!p();return e&&n(t),e},t.onPause?.()})).then((()=>{e=void 0,f||t.onContinue?.()})),v=()=>{if(f)return;let e;try{e=t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(m).catch((e=>{if(f)return;const n=t.retry??(i.S$?0:3),r=t.retryDelay??a,o="function"==typeof r?r(h,e):r,s=!0===n||"number"==typeof n&&h<n||"function"==typeof n&&n(h,e);!u&&s?(h++,t.onFail?.(h,e),(0,i.yy)(o).then((()=>{if(p())return y()})).then((()=>{u?g(e):v()}))):g(e)}))};return s(t.networkMode)?v():y().then(v),{promise:d,cancel:e=>{f||(g(new l(e)),t.abort?.())},continue:()=>{const t=e?.();return t?d:Promise.resolve()},cancelRetry:()=>{u=!0},continueRetry:()=>{u=!1}}}},6500:(t,e,n)=>{"use strict";n.d(e,{Q:()=>r});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},4880:(t,e,n)=>{"use strict";n.d(e,{Cp:()=>f,EN:()=>h,F$:()=>u,MK:()=>l,S$:()=>r,ZZ:()=>w,Zw:()=>i,f8:()=>p,gn:()=>a,hT:()=>k,j3:()=>s,lQ:()=>o,nJ:()=>c,pl:()=>b,y9:()=>x,yy:()=>v});var r="undefined"==typeof window||"Deno"in window;function o(){}function i(t,e){return"function"==typeof t?t(e):t}function a(t){return"number"==typeof t&&t>=0&&t!==1/0}function s(t,e){return Math.max(t+(e||0)-Date.now(),0)}function l(t,e){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=t;if(a)if(r){if(e.queryHash!==u(a,e.options))return!1}else if(!f(e.queryKey,a))return!1;if("all"!==n){const t=e.isActive();if("active"===n&&!t)return!1;if("inactive"===n&&t)return!1}return!("boolean"==typeof s&&e.isStale()!==s||o&&o!==e.state.fetchStatus||i&&!i(e))}function c(t,e){const{exact:n,status:r,predicate:o,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(h(e.options.mutationKey)!==h(i))return!1}else if(!f(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||o&&!o(e))}function u(t,e){return(e?.queryKeyHashFn||h)(t)}function h(t){return JSON.stringify(t,((t,e)=>g(e)?Object.keys(e).sort().reduce(((t,n)=>(t[n]=e[n],t)),{}):e))}function f(t,e){return t===e||typeof t==typeof e&&!(!t||!e||"object"!=typeof t||"object"!=typeof e)&&!Object.keys(e).some((n=>!f(t[n],e[n])))}function d(t,e){if(t===e)return t;const n=m(t)&&m(e);if(n||g(t)&&g(e)){const r=n?t:Object.keys(t),o=r.length,i=n?e:Object.keys(e),a=i.length,s=n?[]:{};let l=0;for(let o=0;o<a;o++){const a=n?o:i[o];!n&&void 0===t[a]&&void 0===e[a]&&r.includes(a)?(s[a]=void 0,l++):(s[a]=d(t[a],e[a]),s[a]===t[a]&&void 0!==t[a]&&l++)}return o===a&&l===o?t:s}return e}function p(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function m(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function g(t){if(!y(t))return!1;const e=t.constructor;if(void 0===e)return!0;const n=e.prototype;return!!y(n)&&!!n.hasOwnProperty("isPrototypeOf")}function y(t){return"[object Object]"===Object.prototype.toString.call(t)}function v(t){return new Promise((e=>{setTimeout(e,t)}))}function b(t,e,n){return"function"==typeof n.structuralSharing?n.structuralSharing(t,e):!1!==n.structuralSharing?d(t,e):e}function x(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function w(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var k=Symbol()},7665:(t,e,n)=>{"use strict";n.d(e,{Ht:()=>s,jE:()=>a});var r=n(1594),o=n(4848),i=r.createContext(void 0),a=t=>{const e=r.useContext(i);if(t)return t;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},s=({client:t,children:e})=>(r.useEffect((()=>(t.mount(),()=>{t.unmount()})),[t]),(0,o.jsx)(i.Provider,{value:t,children:e}))},7097:(t,e,n)=>{"use strict";n.d(e,{n:()=>h});var r=n(1594),o=n(6158),i=n(6261),a=n(6500),s=n(4880),l=class extends a.Q{#E;#C=void 0;#A;#j;constructor(t,e){super(),this.#E=t,this.setOptions(e),this.bindMethods(),this.#P()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const e=this.options;this.options=this.#E.defaultMutationOptions(t),(0,s.f8)(this.options,e)||this.#E.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#A,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,s.EN)(e.mutationKey)!==(0,s.EN)(this.options.mutationKey)?this.reset():this.#A?.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#A?.removeObserver(this)}onMutationUpdate(t){this.#P(),this.#M(t)}getCurrentResult(){return this.#C}reset(){this.#A?.removeObserver(this),this.#A=void 0,this.#P(),this.#M()}mutate(t,e){return this.#j=e,this.#A?.removeObserver(this),this.#A=this.#E.getMutationCache().build(this.#E,this.options),this.#A.addObserver(this),this.#A.execute(t)}#P(){const t=this.#A?.state??(0,o.$)();this.#C={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#M(t){i.j.batch((()=>{if(this.#j&&this.hasListeners()){const e=this.#C.variables,n=this.#C.context;"success"===t?.type?(this.#j.onSuccess?.(t.data,e,n),this.#j.onSettled?.(t.data,null,e,n)):"error"===t?.type&&(this.#j.onError?.(t.error,e,n),this.#j.onSettled?.(void 0,t.error,e,n))}this.listeners.forEach((t=>{t(this.#C)}))}))}},c=n(7665),u=n(4362);function h(t,e){const n=(0,c.jE)(e),[o]=r.useState((()=>new l(n,t)));r.useEffect((()=>{o.setOptions(t)}),[o,t]);const a=r.useSyncExternalStore(r.useCallback((t=>o.subscribe(i.j.batchCalls(t))),[o]),(()=>o.getCurrentResult()),(()=>o.getCurrentResult())),s=r.useCallback(((t,e)=>{o.mutate(t,e).catch(u.l)}),[o]);if(a.error&&(0,u.G)(o.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}},9270:(t,e,n)=>{"use strict";n.d(e,{I:()=>E});var r=n(4880),o=n(6261),i=n(9658),a=n(6500),s=n(8904),l=class extends a.Q{constructor(t,e){super(),this.options=e,this.#E=t,this.#R=null,this.bindMethods(),this.setOptions(e)}#E;#T=void 0;#L=void 0;#C=void 0;#I;#N;#R;#z;#D;#F;#B;#$;#H;#W=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#T.addObserver(this),c(this.#T,this.options)?this.#q():this.updateResult(),this.#V())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return u(this.#T,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u(this.#T,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#U(),this.#K(),this.#T.removeObserver(this)}setOptions(t,e){const n=this.options,o=this.#T;if(this.options=this.#E.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.#Q(),(0,r.f8)(this.options,n)||this.#E.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#T,observer:this});const i=this.hasListeners();i&&h(this.#T,o,this.options,n)&&this.#q(),this.updateResult(e),!i||this.#T===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.#G();const a=this.#Y();!i||this.#T===o&&this.options.enabled===n.enabled&&a===this.#H||this.#Z(a)}getOptimisticResult(t){const e=this.#E.getQueryCache().build(this.#E,t),n=this.createResult(e,t);return o=this,i=n,!(0,r.f8)(o.getCurrentResult(),i)&&(this.#C=n,this.#N=this.options,this.#I=this.#T.state),n;var o,i}getCurrentResult(){return this.#C}trackResult(t,e){const n={};return Object.keys(t).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),e?.(r),t[r])})})),n}trackProp(t){this.#W.add(t)}getCurrentQuery(){return this.#T}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#E.defaultQueryOptions(t),n=this.#E.getQueryCache().build(this.#E,e);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,e)))}fetch(t){return this.#q({...t,cancelRefetch:t.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#C)))}#q(t){this.#Q();let e=this.#T.fetch(this.options,t);return t?.throwOnError||(e=e.catch(r.lQ)),e}#G(){if(this.#U(),r.S$||this.#C.isStale||!(0,r.gn)(this.options.staleTime))return;const t=(0,r.j3)(this.#C.dataUpdatedAt,this.options.staleTime)+1;this.#B=setTimeout((()=>{this.#C.isStale||this.updateResult()}),t)}#Y(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#T):this.options.refetchInterval)??!1}#Z(t){this.#K(),this.#H=t,!r.S$&&!1!==this.options.enabled&&(0,r.gn)(this.#H)&&0!==this.#H&&(this.#$=setInterval((()=>{(this.options.refetchIntervalInBackground||i.m.isFocused())&&this.#q()}),this.#H))}#V(){this.#G(),this.#Z(this.#Y())}#U(){this.#B&&(clearTimeout(this.#B),this.#B=void 0)}#K(){this.#$&&(clearInterval(this.#$),this.#$=void 0)}createResult(t,e){const n=this.#T,o=this.options,i=this.#C,a=this.#I,l=this.#N,u=t!==n?t.state:this.#L,{state:d}=t;let p,{error:m,errorUpdatedAt:g,fetchStatus:y,status:v}=d,b=!1;if(e._optimisticResults){const r=this.hasListeners(),i=!r&&c(t,e),a=r&&h(t,n,e,o);(i||a)&&(y=(0,s.v_)(t.options.networkMode)?"fetching":"paused",void 0===d.data&&(v="pending")),"isRestoring"===e._optimisticResults&&(y="idle")}if(e.select&&void 0!==d.data)if(i&&d.data===a?.data&&e.select===this.#z)p=this.#D;else try{this.#z=e.select,p=e.select(d.data),p=(0,r.pl)(i?.data,p,e),this.#D=p,this.#R=null}catch(t){this.#R=t}else p=d.data;if(void 0!==e.placeholderData&&void 0===p&&"pending"===v){let t;if(i?.isPlaceholderData&&e.placeholderData===l?.placeholderData)t=i.data;else if(t="function"==typeof e.placeholderData?e.placeholderData(this.#F?.state.data,this.#F):e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),this.#R=null}catch(t){this.#R=t}void 0!==t&&(v="success",p=(0,r.pl)(i?.data,t,e),b=!0)}this.#R&&(m=this.#R,p=this.#D,g=Date.now(),v="error");const x="fetching"===y,w="pending"===v,k="error"===v,S=w&&x,O=void 0!==d.data;return{status:v,fetchStatus:y,isPending:w,isSuccess:"success"===v,isError:k,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!w,isLoadingError:k&&!O,isPaused:"paused"===y,isPlaceholderData:b,isRefetchError:k&&O,isStale:f(t,e),refetch:this.refetch}}updateResult(t){const e=this.#C,n=this.createResult(this.#T,this.options);if(this.#I=this.#T.state,this.#N=this.options,void 0!==this.#I.data&&(this.#F=this.#T),(0,r.f8)(n,e))return;this.#C=n;const o={};!1!==t?.listeners&&(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#W.size)return!0;const r=new Set(n??this.#W);return this.options.throwOnError&&r.add("error"),Object.keys(this.#C).some((t=>{const n=t;return this.#C[n]!==e[n]&&r.has(n)}))})()&&(o.listeners=!0),this.#M({...o,...t})}#Q(){const t=this.#E.getQueryCache().build(this.#E,this.options);if(t===this.#T)return;const e=this.#T;this.#T=t,this.#L=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#V()}#M(t){o.j.batch((()=>{t.listeners&&this.listeners.forEach((t=>{t(this.#C)})),this.#E.getQueryCache().notify({query:this.#T,type:"observerResultsUpdated"})}))}};function c(t,e){return function(t,e){return!1!==e.enabled&&void 0===t.state.data&&!("error"===t.state.status&&!1===e.retryOnMount)}(t,e)||void 0!==t.state.data&&u(t,e,e.refetchOnMount)}function u(t,e,n){if(!1!==e.enabled){const r="function"==typeof n?n(t):n;return"always"===r||!1!==r&&f(t,e)}return!1}function h(t,e,n,r){return!1!==n.enabled&&(t!==e||!1===r.enabled)&&(!n.suspense||"error"!==t.state.status)&&f(t,n)}function f(t,e){return t.isStaleByTime(e.staleTime)}var d=n(1594);n(4848);var p=d.createContext(function(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}()),m=()=>d.useContext(p),g=n(7665),y=d.createContext(!1),v=()=>d.useContext(y),b=(y.Provider,n(4362)),x=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},w=t=>{d.useEffect((()=>{t.clearReset()}),[t])},k=({result:t,errorResetBoundary:e,throwOnError:n,query:r})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(0,b.G)(n,[t.error,r]),S=t=>{t.suspense&&"number"!=typeof t.staleTime&&(t.staleTime=1e3)},O=(t,e)=>t?.suspense&&e.isPending,_=(t,e,n)=>e.fetchOptimistic(t).catch((()=>{n.clearReset()}));function E(t,e){return function(t,e,n){const r=(0,g.jE)(n),i=v(),a=m(),s=r.defaultQueryOptions(t);s._optimisticResults=i?"isRestoring":"optimistic",S(s),x(s,a),w(a);const[l]=d.useState((()=>new e(r,s))),c=l.getOptimisticResult(s);if(d.useSyncExternalStore(d.useCallback((t=>{const e=i?()=>{}:l.subscribe(o.j.batchCalls(t));return l.updateResult(),e}),[l,i]),(()=>l.getCurrentResult()),(()=>l.getCurrentResult())),d.useEffect((()=>{l.setOptions(s,{listeners:!1})}),[s,l]),O(s,c))throw _(s,l,a);if(k({result:c,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw c.error;return s.notifyOnChangeProps?c:l.trackResult(c)}(t,l,e)}},4362:(t,e,n)=>{"use strict";function r(t,e){return"function"==typeof t?t(...e):!!t}function o(){}n.d(e,{G:()=>r,l:()=>o})},421:(t,e,n)=>{"use strict";n.d(e,{p2:()=>cn});var r=n(4848),o=n(85),i=n(1594),a=(n(1919),n(4146),n(2142),n(1287),r.Fragment);function s(t,e,n){return o.h.call(e,"css")?r.jsx(o.E,(0,o.c)(t,e),n):r.jsx(t,e,n)}function l(t,e,n){return o.h.call(e,"css")?r.jsxs(o.E,(0,o.c)(t,e),n):r.jsxs(t,e,n)}var c=n(8168),u=n(8587);function h(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=h(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}const f=function(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=h(t))&&(r&&(r+=" "),r+=e);return r};var d=n(2532),p=n(3571),m=n(9599),g=n(8749);const y=function(t=null){const e=i.useContext(o.T);return e&&(n=e,0!==Object.keys(n).length)?e:t;var n},v=(0,g.A)(),b=function(t=v){return y(t)},x=["className","component"],w=t=>t,k=(()=>{let t=w;return{configure(e){t=e},generate:e=>t(e),reset(){t=w}}})();var S=n(5697),O=n(4521),_=n(4188),E=n(771);const C={black:"#000",white:"#fff"},A={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},j={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},P={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},M={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},R={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},T={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},L={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},I=["mode","contrastThreshold","tonalOffset"],N={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:C.white,default:C.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},z={text:{primary:C.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:C.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function D(t,e,n,r){const o=r.light||r,i=r.dark||1.5*r;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:"light"===e?t.light=(0,E.a)(t.main,o):"dark"===e&&(t.dark=(0,E.e$)(t.main,i)))}const F=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],B={textTransform:"uppercase"},$='"Roboto", "Helvetica", "Arial", sans-serif';function H(t,e){const n="function"==typeof e?e(t):e,{fontFamily:r=$,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:h=16,allVariants:f,pxToRem:d}=n,p=(0,u.A)(n,F),m=o/14,g=d||(t=>t/h*m+"rem"),y=(t,e,n,o,i)=>{return(0,c.A)({fontFamily:r,fontWeight:t,fontSize:g(e),lineHeight:n},r===$?{letterSpacing:(a=o/e,Math.round(1e5*a)/1e5+"em")}:{},i,f);var a},v={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,B),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,B),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,O.A)((0,c.A)({htmlFontSize:h,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},v),p,{clone:!1})}function W(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,0.2)`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,0.14)`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,0.12)`].join(",")}const q=["none",W(0,2,1,-1,0,1,1,0,0,1,3,0),W(0,3,1,-2,0,2,2,0,0,1,5,0),W(0,3,3,-2,0,3,4,0,0,1,8,0),W(0,2,4,-1,0,4,5,0,0,1,10,0),W(0,3,5,-1,0,5,8,0,0,1,14,0),W(0,3,5,-1,0,6,10,0,0,1,18,0),W(0,4,5,-2,0,7,10,1,0,2,16,1),W(0,5,5,-3,0,8,10,1,0,3,14,2),W(0,5,6,-3,0,9,12,1,0,3,16,2),W(0,6,6,-3,0,10,14,1,0,4,18,3),W(0,6,7,-4,0,11,15,1,0,4,20,3),W(0,7,8,-4,0,12,17,2,0,5,22,4),W(0,7,8,-4,0,13,19,2,0,5,24,4),W(0,7,9,-4,0,14,21,2,0,5,26,4),W(0,8,9,-5,0,15,22,2,0,6,28,5),W(0,8,10,-5,0,16,24,2,0,6,30,5),W(0,8,11,-5,0,17,26,2,0,6,32,5),W(0,9,11,-5,0,18,28,2,0,7,34,6),W(0,9,12,-6,0,19,29,2,0,7,36,6),W(0,10,13,-6,0,20,31,3,0,8,38,7),W(0,10,13,-6,0,21,33,3,0,8,40,7),W(0,10,14,-6,0,22,35,3,0,8,42,7),W(0,11,14,-7,0,23,36,3,0,9,44,8),W(0,11,15,-7,0,24,38,3,0,9,46,8)],V=["duration","easing","delay"],U={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},K={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Q(t){return`${Math.round(t)}ms`}function G(t){if(!t)return 0;const e=t/36;return Math.round(10*(4+15*e**.25+e/5))}function Y(t){const e=(0,c.A)({},U,t.easing),n=(0,c.A)({},K,t.duration);return(0,c.A)({getAutoHeightDuration:G,create:(t=["all"],r={})=>{const{duration:o=n.standard,easing:i=e.easeInOut,delay:a=0}=r;return(0,u.A)(r,V),(Array.isArray(t)?t:[t]).map((t=>`${t} ${"string"==typeof o?o:Q(o)} ${i} ${"string"==typeof a?a:Q(a)}`)).join(",")}},t,{easing:e,duration:n})}const Z={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},X=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const J=function(t={},...e){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=t,a=(0,u.A)(t,X);if(t.vars)throw new Error((0,S.A)(18));const s=function(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2}=t,o=(0,u.A)(t,I),i=t.primary||function(t="light"){return"dark"===t?{main:R[200],light:R[50],dark:R[400]}:{main:R[700],light:R[400],dark:R[800]}}(e),a=t.secondary||function(t="light"){return"dark"===t?{main:j[200],light:j[50],dark:j[400]}:{main:j[500],light:j[300],dark:j[700]}}(e),s=t.error||function(t="light"){return"dark"===t?{main:P[500],light:P[300],dark:P[700]}:{main:P[700],light:P[400],dark:P[800]}}(e),l=t.info||function(t="light"){return"dark"===t?{main:T[400],light:T[300],dark:T[700]}:{main:T[700],light:T[500],dark:T[900]}}(e),h=t.success||function(t="light"){return"dark"===t?{main:L[400],light:L[300],dark:L[700]}:{main:L[800],light:L[500],dark:L[900]}}(e),f=t.warning||function(t="light"){return"dark"===t?{main:M[400],light:M[300],dark:M[700]}:{main:"#ed6c02",light:M[500],dark:M[900]}}(e);function d(t){return(0,E.eM)(t,z.text.primary)>=n?z.text.primary:N.text.primary}const p=({color:t,name:e,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(t=(0,c.A)({},t)).main&&t[n]&&(t.main=t[n]),!t.hasOwnProperty("main"))throw new Error((0,S.A)(11,e?` (${e})`:"",n));if("string"!=typeof t.main)throw new Error((0,S.A)(12,e?` (${e})`:"",JSON.stringify(t.main)));return D(t,"light",o,r),D(t,"dark",i,r),t.contrastText||(t.contrastText=d(t.main)),t},m={dark:z,light:N};return(0,O.A)((0,c.A)({common:(0,c.A)({},C),mode:e,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:h,name:"success"}),grey:A,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},m[e]),o)}(r),l=(0,g.A)(t);let h=(0,O.A)(l,{mixins:(f=l.breakpoints,d=n,(0,c.A)({toolbar:{minHeight:56,[f.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[f.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:q.slice(),typography:H(s,i),transitions:Y(o),zIndex:(0,c.A)({},Z)});var f,d;return h=(0,O.A)(h,a),h=e.reduce(((t,e)=>(0,O.A)(t,e)),h),h.unstable_sxConfig=(0,c.A)({},_.A,null==a?void 0:a.unstable_sxConfig),h.unstable_sx=function(t){return(0,p.A)({sx:t,theme:this})},h},tt="$$material",et={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function nt(t,e,n="Mui"){const r=et[e];return r?`${n}-${r}`:`${k.generate(t)}-${e}`}function rt(t,e,n="Mui"){const r={};return e.forEach((e=>{r[e]=nt(t,e,n)})),r}const ot=rt("MuiBox",["root"]),it=J(),at=function(t={}){const{themeId:e,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:a}=t,s=(0,d.default)("div",{shouldForwardProp:t=>"theme"!==t&&"sx"!==t&&"as"!==t})(p.A);return i.forwardRef((function(t,i){const l=b(n),h=(0,m.A)(t),{className:d,component:p="div"}=h,g=(0,u.A)(h,x);return(0,r.jsx)(s,(0,c.A)({as:p,ref:i,className:f(d,a?a(o):o),theme:e&&l[e]||l},g))}))}({themeId:tt,defaultTheme:it,defaultClassName:ot.root,generateClassName:k.generate}),st=at;function lt(...t){return i.useMemo((()=>t.every((t=>null==t))?null:e=>{t.forEach((t=>{!function(t,e){"function"==typeof t?t(e):t&&(t.current=e)}(t,e)}))}),t)}function ct(t){const e=function(t){return t&&t.ownerDocument||document}(t);return e.defaultView||window}const ut="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,ht=["onChange","maxRows","minRows","style","value"];function ft(t){return parseInt(t,10)||0}const dt={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},pt=i.forwardRef((function(t,e){const{onChange:n,maxRows:o,minRows:a=1,style:s,value:l}=t,h=(0,u.A)(t,ht),{current:f}=i.useRef(null!=l),d=i.useRef(null),p=lt(e,d),m=i.useRef(null),g=i.useCallback((()=>{const e=d.current,n=ct(e).getComputedStyle(e);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const r=m.current;r.style.width=n.width,r.value=e.value||t.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const i=n.boxSizing,s=ft(n.paddingBottom)+ft(n.paddingTop),l=ft(n.borderBottomWidth)+ft(n.borderTopWidth),c=r.scrollHeight;r.value="x";const u=r.scrollHeight;let h=c;return a&&(h=Math.max(Number(a)*u,h)),o&&(h=Math.min(Number(o)*u,h)),h=Math.max(h,u),{outerHeightStyle:h+("border-box"===i?s+l:0),overflowing:Math.abs(h-c)<=1}}),[o,a,t.placeholder]),y=i.useCallback((()=>{const t=g();if(null==(e=t)||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflowing)return;var e;const n=d.current;n.style.height=`${t.outerHeightStyle}px`,n.style.overflow=t.overflowing?"hidden":""}),[g]);return ut((()=>{const t=()=>{y()};const e=function(t,e=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{t.apply(this,r)}),e)}return r.clear=()=>{clearTimeout(n)},r}(t),n=d.current,r=ct(n);let o;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(t),o.observe(n)),()=>{e.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",e),o&&o.disconnect()}}),[g,y]),ut((()=>{y()})),(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("textarea",(0,c.A)({value:l,onChange:t=>{f||y(),n&&n(t)},ref:p,rows:a},h)),(0,r.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:(0,c.A)({},dt,s,{paddingTop:0,paddingBottom:0})})]})}));function mt(t){return"string"==typeof t}function gt(t,e,n=void 0){const r={};return Object.keys(t).forEach((o=>{r[o]=t[o].reduce(((t,r)=>{if(r){const o=e(r);""!==o&&t.push(o),n&&n[r]&&t.push(n[r])}return t}),[]).join(" ")})),r}const yt=i.createContext(void 0);var vt=n(6461);const bt=J(),xt=(0,vt.Ay)({themeId:tt,defaultTheme:bt,rootShouldForwardProp:t=>(0,vt.MC)(t)&&"classes"!==t});function wt(t,e){const n=(0,c.A)({},e);return Object.keys(t).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=(0,c.A)({},t[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=t[r]||{},i=e[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=(0,c.A)({},i),Object.keys(o).forEach((t=>{n[r][t]=wt(o[t],i[t])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=t[r])})),n}function kt(t){const{theme:e,name:n,props:r}=t;return e&&e.components&&e.components[n]&&e.components[n].defaultProps?wt(e.components[n].defaultProps,r):r}function St({props:t,name:e}){return function({props:t,name:e,defaultTheme:n,themeId:r}){let o=b(n);return r&&(o=o[r]||o),kt({theme:o,name:e,props:t})}({props:t,name:e,defaultTheme:bt,themeId:tt})}const Ot=n(8659).A,_t=lt,Et=ut;var Ct=n(9940);const At=function({styles:t,themeId:e,defaultTheme:n={}}){const o=b(n),i="function"==typeof t?t(e&&o[e]||o):t;return(0,r.jsx)(Ct.A,{styles:i})},jt=function(t){return(0,r.jsx)(At,(0,c.A)({},t,{defaultTheme:bt,themeId:tt}))};function Pt(t){return null!=t&&!(Array.isArray(t)&&0===t.length)}function Mt(t){return nt("MuiInputBase",t)}const Rt=rt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Tt=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Lt=xt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.formControl&&e.formControl,n.startAdornment&&e.adornedStart,n.endAdornment&&e.adornedEnd,n.error&&e.error,"small"===n.size&&e.sizeSmall,n.multiline&&e.multiline,n.color&&e[`color${Ot(n.color)}`],n.fullWidth&&e.fullWidth,n.hiddenLabel&&e.hiddenLabel]}})((({theme:t,ownerState:e})=>(0,c.A)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Rt.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},e.multiline&&(0,c.A)({padding:"4px 0 5px"},"small"===e.size&&{paddingTop:1}),e.fullWidth&&{width:"100%"}))),It=xt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.input,"small"===n.size&&e.inputSizeSmall,n.multiline&&e.inputMultiline,"search"===n.type&&e.inputTypeSearch,n.startAdornment&&e.inputAdornedStart,n.endAdornment&&e.inputAdornedEnd,n.hiddenLabel&&e.inputHiddenLabel]}})((({theme:t,ownerState:e})=>{const n="light"===t.palette.mode,r=(0,c.A)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),o={opacity:"0 !important"},i=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,c.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Rt.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Rt.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===e.size&&{paddingTop:1},e.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===e.type&&{MozAppearance:"textfield"})})),Nt=(0,r.jsx)(jt,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),zt=i.forwardRef((function(t,e){var n;const o=St({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:s,autoFocus:l,className:h,components:d={},componentsProps:p={},defaultValue:m,disabled:g,disableInjectingGlobalStyles:y,endAdornment:v,fullWidth:b=!1,id:x,inputComponent:w="input",inputProps:k={},inputRef:O,maxRows:_,minRows:E,multiline:C=!1,name:A,onBlur:j,onChange:P,onClick:M,onFocus:R,onKeyDown:T,onKeyUp:L,placeholder:I,readOnly:N,renderSuffix:z,rows:D,slotProps:F={},slots:B={},startAdornment:$,type:H="text",value:W}=o,q=(0,u.A)(o,Tt),V=null!=k.value?k.value:W,{current:U}=i.useRef(null!=V),K=i.useRef(),Q=i.useCallback((t=>{}),[]),G=_t(K,O,k.ref,Q),[Y,Z]=i.useState(!1),X=i.useContext(yt),J=function({props:t,states:e,muiFormControl:n}){return e.reduce(((e,r)=>(e[r]=t[r],n&&void 0===t[r]&&(e[r]=n[r]),e)),{})}({props:o,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});J.focused=X?X.focused:Y,i.useEffect((()=>{!X&&g&&Y&&(Z(!1),j&&j())}),[X,g,Y,j]);const tt=X&&X.onFilled,et=X&&X.onEmpty,nt=i.useCallback((t=>{!function(t,e=!1){return t&&(Pt(t.value)&&""!==t.value||e&&Pt(t.defaultValue)&&""!==t.defaultValue)}(t)?et&&et():tt&&tt()}),[tt,et]);Et((()=>{U&&nt({value:V})}),[V,nt,U]),i.useEffect((()=>{nt(K.current)}),[]);let rt=w,ot=k;C&&"input"===rt&&(ot=D?(0,c.A)({type:void 0,minRows:D,maxRows:D},ot):(0,c.A)({type:void 0,maxRows:_,minRows:E},ot),rt=pt),i.useEffect((()=>{X&&X.setAdornedStart(Boolean($))}),[X,$]);const it=(0,c.A)({},o,{color:J.color||"primary",disabled:J.disabled,endAdornment:v,error:J.error,focused:J.focused,formControl:X,fullWidth:b,hiddenLabel:J.hiddenLabel,multiline:C,size:J.size,startAdornment:$,type:H}),at=(t=>{const{classes:e,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:h,size:f,startAdornment:d,type:p}=t;return gt({root:["root",`color${Ot(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&"medium"!==f&&`size${Ot(f)}`,u&&"multiline",d&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled","search"===p&&"inputTypeSearch",u&&"inputMultiline","small"===f&&"inputSizeSmall",c&&"inputHiddenLabel",d&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]},Mt,e)})(it),st=B.root||d.Root||Lt,lt=F.root||p.root||{},ct=B.input||d.Input||It;return ot=(0,c.A)({},ot,null!=(n=F.input)?n:p.input),(0,r.jsxs)(i.Fragment,{children:[!y&&Nt,(0,r.jsxs)(st,(0,c.A)({},lt,!mt(st)&&{ownerState:(0,c.A)({},it,lt.ownerState)},{ref:e,onClick:t=>{K.current&&t.currentTarget===t.target&&K.current.focus(),M&&M(t)}},q,{className:f(at.root,lt.className,h,N&&"MuiInputBase-readOnly"),children:[$,(0,r.jsx)(yt.Provider,{value:null,children:(0,r.jsx)(ct,(0,c.A)({ownerState:it,"aria-invalid":J.error,"aria-describedby":a,autoComplete:s,autoFocus:l,defaultValue:m,disabled:J.disabled,id:x,onAnimationStart:t=>{nt("mui-auto-fill-cancel"===t.animationName?K.current:{value:"x"})},name:A,placeholder:I,readOnly:N,required:J.required,rows:D,value:V,onKeyDown:T,onKeyUp:L,type:H},ot,!mt(ct)&&{as:rt,ownerState:(0,c.A)({},it,ot.ownerState)},{ref:G,className:f(at.input,ot.className,N&&"MuiInputBase-readOnly"),onBlur:t=>{j&&j(t),k.onBlur&&k.onBlur(t),X&&X.onBlur?X.onBlur(t):Z(!1)},onChange:(t,...e)=>{if(!U){const e=t.target||K.current;if(null==e)throw new Error((0,S.A)(1));nt({value:e.value})}k.onChange&&k.onChange(t,...e),P&&P(t,...e)},onFocus:t=>{J.disabled?t.stopPropagation():(R&&R(t),k.onFocus&&k.onFocus(t),X&&X.onFocus?X.onFocus(t):Z(!0))}}))}),v,z?z((0,c.A)({},J,{startAdornment:$})):null]}))]})}));function Dt(t){const{children:e,defer:n=!1,fallback:o=null}=t,[a,s]=i.useState(!1);return ut((()=>{n||s(!0)}),[n]),i.useEffect((()=>{n&&s(!0)}),[n]),(0,r.jsx)(i.Fragment,{children:a?e:o})}function Ft(t){return nt("MuiSvgIcon",t)}rt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Bt=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],$t=xt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,"inherit"!==n.color&&e[`color${Ot(n.color)}`],e[`fontSize${Ot(n.fontSize)}`]]}})((({theme:t,ownerState:e})=>{var n,r,o,i,a,s,l,c,u,h,f,d,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=t.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=t.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=t.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=t.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=t.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[e.fontSize],color:null!=(h=null==(f=(t.vars||t).palette)||null==(f=f[e.color])?void 0:f.main)?h:{action:null==(d=(t.vars||t).palette)||null==(d=d.action)?void 0:d.active,disabled:null==(p=(t.vars||t).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0}[e.color]}})),Ht=i.forwardRef((function(t,e){const n=St({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:s="inherit",component:l="svg",fontSize:h="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:m,viewBox:g="0 0 24 24"}=n,y=(0,u.A)(n,Bt),v=i.isValidElement(o)&&"svg"===o.type,b=(0,c.A)({},n,{color:s,component:l,fontSize:h,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:g,hasSvgAsChild:v}),x={};p||(x.viewBox=g);const w=(t=>{const{color:e,fontSize:n,classes:r}=t;return gt({root:["root","inherit"!==e&&`color${Ot(e)}`,`fontSize${Ot(n)}`]},Ft,r)})(b);return(0,r.jsxs)($t,(0,c.A)({as:l,className:f(w.root,a),focusable:"false",color:d,"aria-hidden":!m||void 0,role:m?"img":void 0,ref:e},x,y,v&&o.props,{ownerState:b,children:[v?o.props.children:o,m?(0,r.jsx)("title",{children:m}):null]}))}));Ht.muiName="SvgIcon";const Wt=Ht,qt=t=>{let e;return e=t<1?5.11916*t**2:4.5*Math.log(t+1)+2,(e/100).toFixed(2)};function Vt(t){return nt("MuiPaper",t)}rt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Ut=["className","component","elevation","square","variant"],Kt=xt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,"elevation"===n.variant&&e[`elevation${n.elevation}`]]}})((({theme:t,ownerState:e})=>{var n;return(0,c.A)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},"outlined"===e.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===e.variant&&(0,c.A)({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${(0,E.X4)("#fff",qt(e.elevation))}, ${(0,E.X4)("#fff",qt(e.elevation))})`},t.vars&&{backgroundImage:null==(n=t.vars.overlays)?void 0:n[e.elevation]}))})),Qt=i.forwardRef((function(t,e){const n=St({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=n,h=(0,u.A)(n,Ut),d=(0,c.A)({},n,{component:i,elevation:a,square:s,variant:l}),p=(t=>{const{square:e,elevation:n,variant:r,classes:o}=t;return gt({root:["root",r,!e&&"rounded","elevation"===r&&`elevation${n}`]},Vt,o)})(d);return(0,r.jsx)(Kt,(0,c.A)({as:i,ownerState:d,className:f(p.root,o),ref:e},h))})),Gt=i.createContext(null);function Yt(){return i.useContext(Gt)}const Zt="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Xt=function(t){const{children:e,theme:n}=t,o=Yt(),a=i.useMemo((()=>{const t=null===o?n:function(t,e){return"function"==typeof e?e(t):(0,c.A)({},t,e)}(o,n);return null!=t&&(t[Zt]=null!==o),t}),[n,o]);return(0,r.jsx)(Gt.Provider,{value:a,children:e})},Jt={};function te(t,e,n,r=!1){return i.useMemo((()=>{const o=t&&e[t]||e;if("function"==typeof n){const i=n(o),a=t?(0,c.A)({},e,{[t]:i}):i;return r?()=>a:a}return t?(0,c.A)({},e,{[t]:n}):(0,c.A)({},e,n)}),[t,e,n,r])}const ee=function(t){const{children:e,theme:n,themeId:i}=t,a=y(Jt),s=Yt()||Jt,l=te(i,a,n),c=te(i,s,n,!0);return(0,r.jsx)(Xt,{theme:c,children:(0,r.jsx)(o.T.Provider,{value:l,children:e})})},ne=["theme"];function re(t){let{theme:e}=t,n=(0,u.A)(t,ne);const o=e[tt];return(0,r.jsx)(ee,(0,c.A)({},n,{themeId:o?tt:void 0,theme:o||e}))}const oe=t=>{let e;const n=new Set,r=(t,r)=>{const o="function"==typeof t?t(e):t;if(!Object.is(o,e)){const t=e;e=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},e,o),n.forEach((n=>n(e,t)))}},o=()=>e,i={setState:r,getState:o,getInitialState:()=>a,subscribe:t=>(n.add(t),()=>n.delete(t)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=e=t(r,o,i);return i},ie=t=>t?oe(t):oe;var ae=n(9242);const{useDebugValue:se}=i,{useSyncExternalStoreWithSelector:le}=ae;let ce=!1;const ue=t=>t;function he(t,e=ue,n){n&&!ce&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),ce=!0);const r=le(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return se(r),r}const fe=t=>{"function"!=typeof t&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e="function"==typeof t?ie(t):t,n=(t,n)=>he(e,t,n);return Object.assign(n,e),n};var de=n(7965);function pe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function me(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){pe(t,e,n[e])}))}return t}function ge(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function ye(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ve(t,e){if(t){if("string"==typeof t)return ye(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(t,e):void 0}}function be(t){return function(t){if(Array.isArray(t))return ye(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ve(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xe(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=xe(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function we(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=xe(t))&&(r&&(r+=" "),r+=e);return r}function ke(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||ve(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}var Oe={scheme:"Light Theme",author:"mac gainor (https://github.com/mac-s-g)",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#ffd500",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},_e={scheme:"Dark Theme",author:"Chris Kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},Ee=function(){return null};Ee.when=function(){return!1};var Ce=(0,i.createContext)(void 0);Ce.Provider;var Ae=function(t,e){return he((0,i.useContext)(Ce),t,e)},je=function(){return Ae((function(t){return t.colorspace.base07}))};function Pe(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Me(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Pe(i,r,o,a,s,"next",t)}function s(t){Pe(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Re(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function Te(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}Object.prototype.constructor.toString();function Le(t){return null===t?0:Array.isArray(t)?t.length:Te(t,Map)||Te(t,Set)?t.size:Te(t,Date)?1:"object"==typeof t?Object.keys(t).length:"string"==typeof t?t.length:1}function Ie(t,e){for(var n=[],r=0;r<t.length;)n.push(t.slice(r,r+e)),r+=e;return n}function Ne(t){return ze.apply(this,arguments)}function ze(){return(ze=Me((function(t){return Re(this,(function(e){switch(e.label){case 0:if(!("clipboard"in navigator))return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,navigator.clipboard.writeText(t)];case 2:case 3:return e.sent(),[3,4];case 4:return de(t),[2]}}))}))).apply(this,arguments)}function De(t,e){var n=Ae((function(t){return t.value}));return(0,i.useMemo)((function(){return function(t,e,n){if(null===t||null===n)return!1;if("object"!=typeof t)return!1;if("object"!=typeof n)return!1;if(Object.is(t,n)&&0!==e.length)return"";for(var r=[],o=be(e),i=t;i!==n||0!==o.length;){if("object"!=typeof i||null===i)return!1;if(Object.is(i,n))return r.reduce((function(t,e,n){return"number"==typeof e?t+"[".concat(e,"]"):t+"".concat(0===n?"":".").concat(e)}),"");var a=o.shift();r.push(a),i=i[a]}return!1}(n,t,e)}),[t,e,n])}var Fe=function(t){return s(st,ge(me({component:"div"},t),{sx:me({display:"inline-block"},t.sx)}))},Be=function(t){var e=t.dataType,n=t.enable;return void 0===n||n?s(Fe,{className:"data-type-label",sx:{mx:.5,fontSize:"0.7rem",opacity:.8,userSelect:"none"},children:e}):null};function $e(t,e,n){var r=n.fromString,o=n.colorKey,a=n.displayTypeLabel,c=void 0===a||a,u=(0,i.memo)(e),h=function(e){var n=Ae((function(t){return t.displayDataTypes})),r=Ae((function(t){return t.colorspace[o]})),i=Ae((function(t){return t.onSelect}));return l(Fe,{onClick:function(){return null==i?void 0:i(e.path,e.value)},sx:{color:r},children:[c&&n&&s(Be,{dataType:t}),s(Fe,{className:"".concat(t,"-value"),children:s(u,{value:e.value})})]})};if(h.displayName="easy-".concat(t,"-type"),!r)return{Component:h};var f=function(t){var e=t.value,n=t.setValue,a=Ae((function(t){return t.colorspace[o]}));return s(zt,{value:e,onChange:(0,i.useCallback)((function(t){var e=r(t.target.value);n(e)}),[n]),size:"small",multiline:!0,sx:{color:a,padding:.5,borderStyle:"solid",borderColor:"black",borderWidth:1,fontSize:"0.8rem",fontFamily:"monospace",display:"inline-flex"}})};return f.displayName="easy-".concat(t,"-type-editor"),{Component:h,Editor:f}}var He=function(t){return l(Dt,{children:[s(Be,{dataType:"function"}),l(st,{component:"span",className:"data-function-start",sx:{letterSpacing:.5},children:[(e=t.value,n=e.toString(),-1!==n.indexOf("function")?n.substring(8,n.indexOf("{")).trim():n.substring(0,n.indexOf("=>")+2).trim())," ","{"]})]});var e,n},We=function(){return s(Dt,{children:s(st,{component:"span",className:"data-function-end",children:"}"})})},qe=function(t){var e,n,r,o,i,a=Ae((function(t){return t.colorspace.base05}));return s(Dt,{children:s(st,{className:"data-function",sx:{display:t.inspect?"block":"inline-block",pl:t.inspect?2:0,color:a},children:t.inspect?(e=t.value,n=e.toString(),r=!0,o=n.indexOf(")"),i=n.indexOf("=>"),-1!==i&&i>o&&(r=!1),r?n.substring(n.indexOf("{",o)+1,n.lastIndexOf("}")):n.substring(n.indexOf("=>")+2)):s(st,{component:"span",className:"data-function-body",onClick:function(){return t.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5},children:"…"})})})};var Ve=function(t){var e=t.d,n=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,["d"]);return s(Wt,ge(me({},n),{children:s("path",{d:e})}))},Ue=function(t){return s(Ve,me({d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},t))},Ke=function(t){return s(Ve,me({d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},t))},Qe=function(t){return s(Ve,me({d:"M 12 2 C 10.615 1.998 9.214625 2.2867656 7.890625 2.8847656 L 8.9003906 4.6328125 C 9.9043906 4.2098125 10.957 3.998 12 4 C 15.080783 4 17.738521 5.7633175 19.074219 8.3222656 L 17.125 9 L 21.25 11 L 22.875 7 L 20.998047 7.6523438 C 19.377701 4.3110398 15.95585 2 12 2 z M 6.5097656 4.4882812 L 2.2324219 5.0820312 L 3.734375 6.3808594 C 1.6515335 9.4550558 1.3615962 13.574578 3.3398438 17 C 4.0308437 18.201 4.9801562 19.268234 6.1601562 20.115234 L 7.1699219 18.367188 C 6.3019219 17.710187 5.5922656 16.904 5.0722656 16 C 3.5320014 13.332354 3.729203 10.148679 5.2773438 7.7128906 L 6.8398438 9.0625 L 6.5097656 4.4882812 z M 19.929688 13 C 19.794687 14.08 19.450734 15.098 18.927734 16 C 17.386985 18.668487 14.531361 20.090637 11.646484 19.966797 L 12.035156 17.9375 L 8.2402344 20.511719 L 10.892578 23.917969 L 11.265625 21.966797 C 14.968963 22.233766 18.681899 20.426323 20.660156 17 C 21.355156 15.801 21.805219 14.445 21.949219 13 L 19.929688 13 z"},t))},Ge=function(t){return s(Ve,me({d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},t))},Ye=function(t){return s(Ve,me({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"},t))},Ze=function(t){return s(Ve,me({d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"},t))},Xe=function(t){return s(Ve,me({d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},t))};function Je(t){var e=Le(t),n="";return(Te(t,Map)||Te(t,Set))&&(n=t[Symbol.toStringTag]),Object.prototype.hasOwnProperty.call(t,Symbol.toStringTag)&&(n=t[Symbol.toStringTag]),"".concat(e," Items").concat(n?" (".concat(n,")"):"")}var tn=(0,i.createContext)(void 0);tn.Provider;var en=function(t,e){return he((0,i.useContext)(tn),t,e)},nn={is:function(t){return"object"==typeof t},Component:function(t){var e=je(),n=Ae((function(t){return t.colorspace.base02})),r=Ae((function(t){return t.groupArraysAfterLength})),o=De(t.path,t.value),a=ke((0,i.useState)(Ae((function(t){return t.maxDisplayLength}))),2),c=a[0],u=a[1],h=Ae((function(t){return t.objectSortKeys})),f=(0,i.useMemo)((function(){if(!t.inspect)return null;var n=t.value,o=function(t){return"function"==typeof(null==t?void 0:t[Symbol.iterator])}(n);if(o&&!Array.isArray(n)){var i=[];if(Te(n,Map))n.forEach((function(e,n){var r=n.toString(),o=be(t.path).concat([r]);i.push(s(on,{path:o,value:e,prevValue:Te(t.prevValue,Map)?t.prevValue.get(n):void 0,editable:!1},r))}));else for(var a=n[Symbol.iterator](),f=a.next(),d=0;!f.done;)i.push(s(on,{path:be(t.path).concat(["iterator:".concat(d)]),value:f.value,nestedIndex:d,editable:!1},d)),d++,f=a.next();return i}if(Array.isArray(n)){if(n.length<=r){var p=n.slice(0,c).map((function(e,n){var r=be(t.path).concat([n]);return s(on,{path:r,value:e,prevValue:Array.isArray(t.prevValue)?t.prevValue[n]:void 0},n)}));if(n.length>c){var m=n.length-c;p.push(l(Fe,{sx:{cursor:"pointer",lineHeight:1.5,color:e,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:function(){return u((function(t){return 2*t}))},children:["hidden ",m," items…"]},"last"))}return p}var g=Ie(n,r),y=Array.isArray(t.prevValue)?Ie(t.prevValue,r):void 0;return g.map((function(e,n){var r=be(t.path);return s(on,{path:r,value:e,nestedIndex:n,prevValue:null==y?void 0:y[n]},n)}))}var v=Object.entries(n);h&&(v=!0===h?v.sort((function(t,e){var n=ke(t,1)[0],r=ke(e,1)[0];return n.localeCompare(r)})):v.sort((function(t,e){var n=ke(t,1)[0],r=ke(e,1)[0];return h(n,r)})));var b=v.slice(0,c).map((function(e){var n,r=ke(e,2),o=r[0],i=r[1],a=be(t.path).concat([o]);return s(on,{path:a,value:i,prevValue:null===(n=t.prevValue)||void 0===n?void 0:n[o]},o)}));if(v.length>c){var x=v.length-c;b.push(l(Fe,{sx:{cursor:"pointer",lineHeight:1.5,color:e,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:function(){return u((function(t){return 2*t}))},children:["hidden ",x," items…"]},"last"))}return b}),[t.inspect,t.value,t.prevValue,t.path,r,c,e,h]),d=t.inspect?.6:0,p=Ae((function(t){return t.indentWidth})),m=t.inspect?p-d:p;return(0,i.useMemo)((function(){return 0===Le(t.value)}),[t.value])?null:s(st,{className:"data-object",sx:{display:t.inspect?"block":"inline-block",pl:t.inspect?m-.6:0,marginLeft:d,color:e,borderLeft:t.inspect?"1px solid ".concat(n):"none"},children:t.inspect?f:!o&&s(st,{component:"span",className:"data-object-body",onClick:function(){return t.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5,userSelect:"none"},children:"…"})})},PreComponent:function(t){var e=Ae((function(t){return t.colorspace.base04})),n=je(),r=(0,i.useMemo)((function(){return Array.isArray(t.value)}),[t.value]),o=(0,i.useMemo)((function(){return 0===Le(t.value)}),[t.value]),c=(0,i.useMemo)((function(){return Je(t.value)}),[t.value]),u=Ae((function(t){return t.displayObjectSize})),h=De(t.path,t.value);return l(st,{component:"span",className:"data-object-start",sx:{letterSpacing:.5},children:[r?"[":"{",u&&t.inspect&&!o&&s(st,{component:"span",sx:{pl:.5,fontStyle:"italic",color:e,userSelect:"none"},children:c}),h&&!t.inspect&&l(a,{children:[s(Qe,{sx:{fontSize:12,color:n,mx:.5}}),h]})]})},PostComponent:function(t){var e=Ae((function(t){return t.colorspace.base04})),n=(0,i.useMemo)((function(){return Array.isArray(t.value)}),[t.value]),r=Ae((function(t){return t.displayObjectSize})),o=(0,i.useMemo)((function(){return 0===Le(t.value)}),[t.value]),a=(0,i.useMemo)((function(){return Je(t.value)}),[t.value]);return l(st,{component:"span",className:"data-object-end",children:[n?"]":"}",!r||!o&&t.inspect?null:s(st,{component:"span",sx:{pl:.5,fontStyle:"italic",color:e,userSelect:"none"},children:a})]})}};var rn=function(t){return s(st,ge(me({component:"span"},t),{sx:me({cursor:"pointer",paddingLeft:"0.7rem"},t.sx)}))},on=function(t){var e,n=t.value,r=t.prevValue,o=t.path,c=t.nestedIndex,u=null!==(e=t.editable)&&void 0!==e?e:void 0,h=Ae((function(t){return t.editable})),f=(0,i.useMemo)((function(){return!1!==h&&!1!==u&&("function"==typeof h?!!h(o,n):h)}),[o,u,h,n]),d=ke((0,i.useState)("function"==typeof n?function(){return n}:n),2),p=d[0],m=d[1],g=o.length,y=o[g-1],v=Ae((function(t){return t.hoverPath})),b=(0,i.useMemo)((function(){return v&&o.every((function(t,e){return t===v.path[e]&&c===v.nestedIndex}))}),[v,o,c]),x=Ae((function(t){return t.setHover})),w=Ae((function(t){return t.value})),k=ke(function(t,e,n){var r=t.length,o=De(t,e),a=Ae((function(t){return t.getInspectCache})),s=Ae((function(t){return t.setInspectCache})),l=Ae((function(t){return t.defaultInspectDepth}));(0,i.useEffect)((function(){void 0===a(t,n)&&(void 0!==n?s(t,!1,n):s(t,!o&&r<l))}),[l,r,a,o,n,t,s]);var c=ke((0,i.useState)((function(){var e=a(t,n);return void 0!==e?e:void 0===n&&!o&&r<l})),2),u=c[0],h=c[1];return[u,(0,i.useCallback)((function(e){h((function(r){var o="boolean"==typeof e?e:e(r);return s(t,o,n),o}))}),[n,t,s])]}(o,n,c),2),S=k[0],O=k[1],_=ke((0,i.useState)(!1),2),E=_[0],C=_[1],A=Ae((function(t){return t.onChange})),j=je(),P=Ae((function(t){return t.colorspace.base0C})),M=Ae((function(t){return t.colorspace.base0A})),R=function(t,e){var n=en((function(t){return t.registry}));return(0,i.useMemo)((function(){return function(t,e,n){var r,o=!0,i=!1,a=void 0;try{for(var s,l=n[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;if(c.is(t,e)&&(r=c,"object"==typeof t))return c}}catch(t){i=!0,a=t}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}if(void 0===r){if("object"==typeof t)return nn;throw new Error("this is not possible")}return r}(t,e,n)}),[t,e,n])}(n,o),T=R.Component,L=R.PreComponent,I=R.PostComponent,N=R.Editor,z=Ae((function(t){return t.quotesOnKeys})),D=Ae((function(t){return t.rootName})),F=w===n,B=Number.isInteger(Number(y)),$=Ae((function(t){return t.enableClipboard})),H=function(){var t,e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).timeout,n=void 0===e?2e3:e,r=ke((0,i.useState)(!1),2),o=r[0],a=r[1],s=(0,i.useRef)(null),l=(0,i.useCallback)((function(t){var e=s.current;e&&window.clearTimeout(e),s.current=window.setTimeout((function(){return a(!1)}),n),a(t)}),[n]),c=Ae((function(t){return t.onCopy})),u=(0,i.useCallback)((t=Me((function(t,e){var n,r,o;return Re(this,(function(i){switch(i.label){case 0:if("function"!=typeof c)return[3,5];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,c(t,e,Ne)];case 2:return i.sent(),l(!0),[3,4];case 3:return n=i.sent(),console.error("error when copy ".concat(0===t.length?"src":"src[".concat(t.join(".")),"]"),n),[3,4];case 4:return[3,8];case 5:return i.trys.push([5,7,,8]),a="function"==typeof e?e.toString():e,s=[],r=JSON.stringify(a,(function(t,e){if("bigint"===(void 0===e?"undefined":Se(e)))return e.toString();if(Te(e,Map)){if("toJSON"in e&&"function"==typeof e.toJSON)return e.toJSON();if(0===e.size)return{};if(s.includes(e))return"[Circular]";s.push(e);var n=Array.from(e.entries());return n.every((function(t){var e=ke(t,1)[0];return"string"==typeof e||"number"==typeof e}))?Object.fromEntries(n):{}}if(Te(e,Set))return"toJSON"in e&&"function"==typeof e.toJSON?e.toJSON():s.includes(e)?"[Circular]":(s.push(e),Array.from(e.values()));if("object"==typeof e&&null!==e&&Object.keys(e).length){var r=s.length;if(r){for(var o=r-1;o>=0&&s[o][t]!==e;--o)s.pop();if(s.includes(e))return"[Circular]"}s.push(e)}return e}),"  "),[4,Ne(r)];case 6:return i.sent(),l(!0),[3,8];case 7:return o=i.sent(),console.error("error when copy ".concat(0===t.length?"src":"src[".concat(t.join(".")),"]"),o),[3,8];case 8:return[2]}var a,s}))})),function(e,n){return t.apply(this,arguments)}),[l,c]);return{copy:u,reset:(0,i.useCallback)((function(){a(!1),s.current&&clearTimeout(s.current)}),[]),copied:o}}(),W=H.copy,q=H.copied,V=Ae((function(t){return t.highlightUpdates})),U=(0,i.useMemo)((function(){return!(!V||void 0===r||(void 0===n?"undefined":Se(n))===(void 0===r?"undefined":Se(r))&&("number"==typeof n?isNaN(n)&&isNaN(r)||n===r:Array.isArray(n)===Array.isArray(r)&&("object"==typeof n||"function"==typeof n||n===r)))}),[V,r,n]),K=(0,i.useRef)();(0,i.useEffect)((function(){K.current&&U&&"animate"in K.current&&K.current.animate([{backgroundColor:M},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})}),[M,U,r,n]);var Q=(0,i.useMemo)((function(){return l(a,E?{children:[s(rn,{children:s(Ge,{sx:{fontSize:".8rem"},onClick:function(){C(!1),m(n)}})}),s(rn,{children:s(Ue,{sx:{fontSize:".8rem"},onClick:function(){C(!1),A(o,n,p)}})})]}:{children:[$&&s(rn,{onClick:function(t){t.preventDefault();try{W(o,n,Ne)}catch(t){console.error(t)}},children:s(q?Ue:Ye,{sx:{fontSize:".8rem"}})}),N&&f&&s(rn,{onClick:function(t){t.preventDefault(),C(!0),m(n)},children:s(Ze,{sx:{fontSize:".8rem"}})})]})}),[N,q,W,f,E,$,A,o,p,n]),G=(0,i.useMemo)((function(){return 0===Le(n)}),[n]),Y=!G&&!(!L||!I),Z=Ae((function(t){return t.keyRenderer})),X=(0,i.useMemo)((function(){return{path:o,inspect:S,setInspect:O,value:n,prevValue:r}}),[S,o,O,n,r]);return l(st,{className:"data-key-pair","data-testid":"data-key-pair"+o.join("."),sx:{userSelect:"text"},onMouseEnter:(0,i.useCallback)((function(){return x(o,c)}),[x,o,c]),children:[l(Fe,{component:"span",className:"data-key",sx:{lineHeight:1.5,color:j,letterSpacing:.5,opacity:.8},onClick:(0,i.useCallback)((function(t){t.isDefaultPrevented()||G||O((function(t){return!t}))}),[G,O]),children:[Y?s(S?Xe:Ke,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):null,s(st,{ref:K,component:"span",children:F?!1!==D?z?l(a,{children:['"',D,'"']}):s(a,{children:D}):null:Z.when(X)?s(Z,me({},X)):void 0===c&&(B?s(st,{component:"span",style:{color:P},children:y}):z?l(a,{children:['"',y,'"']}):s(a,{children:y}))}),F?!1!==D&&s(Fe,{sx:{mr:.5},children:":"}):void 0===c&&s(Fe,{sx:{mr:.5},children:":"}),L&&s(L,me({},X)),b&&Y&&S&&Q]}),E&&f?N&&s(N,{value:p,setValue:m}):T?s(T,me({},X)):s(st,{component:"span",className:"data-value-fallback",children:"fallback: ".concat(n)}),I&&s(I,me({},X)),b&&Y&&!S&&Q,b&&!Y&&Q]})},an="(prefers-color-scheme: dark)";function sn(t,e){var n=(0,i.useContext)(Ce).setState;(0,i.useEffect)((function(){void 0!==e&&n(pe({},t,e))}),[t,e,n])}var ln=function(t){var e=(0,i.useContext)(Ce).setState;(0,i.useEffect)((function(){e((function(e){return{prevValue:e.value,value:t.value}}))}),[t.value,e]),sn("editable",t.editable),sn("indentWidth",t.indentWidth),sn("onChange",t.onChange),sn("groupArraysAfterLength",t.groupArraysAfterLength),sn("keyRenderer",t.keyRenderer),sn("maxDisplayLength",t.maxDisplayLength),sn("enableClipboard",t.enableClipboard),sn("highlightUpdates",t.highlightUpdates),sn("rootName",t.rootName),sn("displayDataTypes",t.displayDataTypes),sn("displayObjectSize",t.displayObjectSize),sn("onCopy",t.onCopy),sn("onSelect",t.onSelect),(0,i.useEffect)((function(){"light"===t.theme?e({colorspace:Oe}):"dark"===t.theme?e({colorspace:_e}):"object"==typeof t.theme&&e({colorspace:t.theme})}),[e,t.theme]);var n=(0,i.useMemo)((function(){return"object"==typeof t.theme?"json-viewer-theme-custom":"dark"===t.theme?"json-viewer-theme-dark":"json-viewer-theme-light"}),[t.theme]),r=(0,i.useRef)(!0),o=(0,i.useMemo)((function(){return function(){var t=function(t){function n(t,e){var n,r;return Object.is(t.value,e.value)&&t.inspect&&e.inspect&&(null===(n=t.path)||void 0===n?void 0:n.join("."))===(null===(r=e.path)||void 0===r?void 0:r.join("."))}t.Component=(0,i.memo)(t.Component,n),t.Editor&&(t.Editor=(0,i.memo)(t.Editor,(function(t,e){return Object.is(t.value,e.value)}))),t.PreComponent&&(t.PreComponent=(0,i.memo)(t.PreComponent,n)),t.PostComponent&&(t.PostComponent=(0,i.memo)(t.PostComponent,n)),e.push(t)},e=[];t(me({is:function(t){return"boolean"==typeof t}},$e("bool",(function(t){var e=t.value;return s(a,{children:e?"true":"false"})}),{colorKey:"base0E",fromString:function(t){return Boolean(t)}})));var n={weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};t(me({is:function(t){return Te(t,Date)}},$e("date",(function(t){var e=t.value;return s(a,{children:e.toLocaleTimeString("en-us",n)})}),{colorKey:"base0D"}))),t(me({is:function(t){return null===t}},$e("null",(function(){var t=Ae((function(t){return t.colorspace.base02}));return s(st,{sx:{fontSize:"0.8rem",backgroundColor:t,fontWeight:"bold",borderRadius:"3px",padding:"0.5px 2px"},children:"NULL"})}),{colorKey:"base08",displayTypeLabel:!1}))),t(me({is:function(t){return void 0===t}},$e("undefined",(function(){var t=Ae((function(t){return t.colorspace.base02}));return s(st,{sx:{fontSize:"0.7rem",backgroundColor:t,borderRadius:"3px",padding:"0.5px 2px"},children:"undefined"})}),{colorKey:"base05",displayTypeLabel:!1}))),t(me({is:function(t){return"string"==typeof t}},$e("string",(function(t){var e=ke((0,i.useState)(!1),2),n=e[0],r=e[1],o=Ae((function(t){return t.collapseStringsAfterLength})),a=n?t.value:t.value.slice(0,o),c=t.value.length>o;return l(st,{component:"span",sx:{overflowWrap:"anywhere",cursor:c?"pointer":"inherit"},onClick:function(){c&&r((function(t){return!t}))},children:['"',a,c&&!n&&s(st,{component:"span",sx:{padding:.5},children:"…"}),'"']})}),{colorKey:"base09",fromString:function(t){return t}}))),t({is:function(t){return"function"==typeof t},Component:qe,PreComponent:He,PostComponent:We});var r=function(t){return t%1==0};return t(me({is:function(t){return"number"==typeof t&&isNaN(t)}},$e("NaN",(function(){var t=Ae((function(t){return t.colorspace.base02}));return s(st,{sx:{backgroundColor:t,fontSize:"0.8rem",fontWeight:"bold",borderRadius:"3px"},children:"NaN"})}),{colorKey:"base08",displayTypeLabel:!1}))),t(me({is:function(t){return"number"==typeof t&&!r(t)}},$e("float",(function(t){var e=t.value;return s(a,{children:e})}),{colorKey:"base0B",fromString:function(t){return parseFloat(t)}}))),t(me({is:function(t){return"number"==typeof t&&r(t)}},$e("int",(function(t){var e=t.value;return s(a,{children:e})}),{colorKey:"base0F",fromString:function(t){return parseInt(t)}}))),t(me({is:function(t){return"bigint"===(void 0===t?"undefined":Se(t))}},$e("bigint",(function(t){var e=t.value;return s(a,{children:"".concat(e,"n")})}),{colorKey:"base0F",fromString:function(t){return BigInt(t.replace(/\D/g,""))}}))),e}()}),[]),c=en((function(t){return t.registerTypes}));if(r.current){var u=t.valueTypes?be(o).concat(be(t.valueTypes)):be(o);c(u),r.current=!1}(0,i.useEffect)((function(){var e=t.valueTypes?be(o).concat(be(t.valueTypes)):be(o);c(e)}),[t.valueTypes,o,c]);var h=Ae((function(t){return t.value})),f=Ae((function(t){return t.prevValue})),d=Ae((function(t){return t.setHover})),p=(0,i.useCallback)((function(){return d(null)}),[d]);return s(Qt,{elevation:0,className:we(n,t.className),style:t.style,sx:me({fontFamily:"monospace",userSelect:"none",contentVisibility:"auto"},t.sx),onMouseLeave:p,children:s(on,{value:h,prevValue:f,path:(0,i.useMemo)((function(){return[]}),[])})})},cn=function(t){var e,n,r,o,a=(n=(e=ke((0,i.useState)(!1),2))[0],r=e[1],(0,i.useEffect)((function(){var t=function(t){r(t.matches)};r(window.matchMedia(an).matches);var e=window.matchMedia(an);return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}}),[]),n),l=(0,i.useMemo)((function(){return"auto"===t.theme?a?"light":"dark":null!==(o=t.theme)&&void 0!==o?o:"light"}),[a,t.theme]),c=(0,i.useMemo)((function(){var t="object"==typeof l?l.base00:"dark"===l?_e.base00:Oe.base00;return J({components:{MuiPaper:{styleOverrides:{root:{backgroundColor:t}}}},palette:{mode:"dark"===l?"dark":"light",background:{default:t}}})}),[l]),u=ge(me({},t),{theme:l}),h=(0,i.useMemo)((function(){return function(t){var e,n,r,o,i,a,s,l,c,u,h,f,d,p,m,g,y,v;return(v?fe(v):fe)((function(v,b){return{enableClipboard:null===(e=t.enableClipboard)||void 0===e||e,highlightUpdates:null!==(n=t.highlightUpdates)&&void 0!==n&&n,indentWidth:null!==(r=t.indentWidth)&&void 0!==r?r:3,groupArraysAfterLength:null!==(o=t.groupArraysAfterLength)&&void 0!==o?o:100,collapseStringsAfterLength:!1===t.collapseStringsAfterLength?Number.MAX_VALUE:null!==(i=t.collapseStringsAfterLength)&&void 0!==i?i:50,maxDisplayLength:null!==(a=t.maxDisplayLength)&&void 0!==a?a:30,rootName:null!==(s=t.rootName)&&void 0!==s?s:"root",onChange:null!==(l=t.onChange)&&void 0!==l?l:function(){},onCopy:null!==(c=t.onCopy)&&void 0!==c?c:void 0,onSelect:null!==(u=t.onSelect)&&void 0!==u?u:void 0,keyRenderer:null!==(h=t.keyRenderer)&&void 0!==h?h:Ee,editable:null!==(f=t.editable)&&void 0!==f&&f,defaultInspectDepth:null!==(d=t.defaultInspectDepth)&&void 0!==d?d:5,objectSortKeys:null!==(p=t.objectSortKeys)&&void 0!==p&&p,quotesOnKeys:null===(m=t.quotesOnKeys)||void 0===m||m,displayDataTypes:null===(g=t.displayDataTypes)||void 0===g||g,inspectCache:{},hoverPath:null,colorspace:Oe,value:t.value,prevValue:void 0,displayObjectSize:null===(y=t.displayObjectSize)||void 0===y||y,getInspectCache:function(t,e){var n=void 0!==e?t.join(".")+"[".concat(e,"]nt"):t.join(".");return b().inspectCache[n]},setInspectCache:function(t,e,n){var r=void 0!==n?t.join(".")+"[".concat(n,"]nt"):t.join(".");v((function(t){return{inspectCache:ge(me({},t.inspectCache),pe({},r,"function"==typeof e?e(t.inspectCache[r]):e))}}))},setHover:function(t,e){v({hoverPath:t?{path:t,nestedIndex:e}:null})}}}))}(t)}),[]),f=(0,i.useMemo)((function(){return ie()((function(t){return{registry:[],registerTypes:function(e){t((function(t){return{registry:"function"==typeof e?e(t.registry):e}}))}}}))}),[]);return s(re,{theme:c,children:s(tn.Provider,{value:f,children:s(Ce.Provider,{value:h,children:s(ln,me({},u))})})})}},2262:(t,e,n)=>{"use strict";function r(t){return t+.5|0}n.d(e,{A6:()=>yn,E8:()=>Vr,PP:()=>fo,t1:()=>Dr,s$:()=>Gr,kc:()=>go,m_:()=>uo});const o=(t,e,n)=>Math.max(Math.min(t,n),e);function i(t){return o(r(2.55*t),0,255)}function a(t){return o(r(255*t),0,255)}function s(t){return o(r(t/2.55)/100,0,1)}function l(t){return o(r(100*t),0,100)}const c={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},u=[..."0123456789ABCDEF"],h=t=>u[15&t],f=t=>u[(240&t)>>4]+u[15&t],d=t=>(240&t)>>4==(15&t);const p=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function m(t,e,n){const r=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function g(t,e,n){const r=(r,o=(r+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function y(t,e,n){const r=m(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)r[o]*=1-e-n,r[o]+=e;return r}function v(t){const e=t.r/255,n=t.g/255,r=t.b/255,o=Math.max(e,n,r),i=Math.min(e,n,r),a=(o+i)/2;let s,l,c;return o!==i&&(c=o-i,l=a>.5?c/(2-o-i):c/(o+i),s=function(t,e,n,r,o){return t===o?(e-n)/r+(e<n?6:0):e===o?(n-t)/r+2:(t-e)/r+4}(e,n,r,c,o),s=60*s+.5),[0|s,l||0,a]}function b(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(a)}function x(t,e,n){return b(m,t,e,n)}function w(t){return(t%360+360)%360}const k={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"},S={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"};let O;const _=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,E=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,C=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function A(t,e,n){if(t){let r=v(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=x(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function j(t,e){return t?Object.assign(e||{},t):t}function P(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=a(t[3]))):(e=j(t,{r:0,g:0,b:0,a:1})).a=a(e.a),e}function M(t){return"r"===t.charAt(0)?function(t){const e=_.exec(t);let n,r,a,s=255;if(e){if(e[7]!==n){const t=+e[7];s=e[8]?i(t):o(255*t,0,255)}return n=+e[1],r=+e[3],a=+e[5],n=255&(e[2]?i(n):o(n,0,255)),r=255&(e[4]?i(r):o(r,0,255)),a=255&(e[6]?i(a):o(a,0,255)),{r:n,g:r,b:a,a:s}}}(t):function(t){const e=p.exec(t);let n,r=255;if(!e)return;e[5]!==n&&(r=e[6]?i(+e[5]):a(+e[5]));const o=w(+e[2]),s=+e[3]/100,l=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return b(y,t,e,n)}(o,s,l):"hsv"===e[1]?function(t,e,n){return b(g,t,e,n)}(o,s,l):x(o,s,l),{r:n[0],g:n[1],b:n[2],a:r}}(t)}class R{constructor(t){if(t instanceof R)return t;const e=typeof t;let n;var r,o,i;"object"===e?n=P(t):"string"===e&&(i=(r=t).length,"#"===r[0]&&(4===i||5===i?o={r:255&17*c[r[1]],g:255&17*c[r[2]],b:255&17*c[r[3]],a:5===i?17*c[r[4]]:255}:7!==i&&9!==i||(o={r:c[r[1]]<<4|c[r[2]],g:c[r[3]]<<4|c[r[4]],b:c[r[5]]<<4|c[r[6]],a:9===i?c[r[7]]<<4|c[r[8]]:255})),n=o||function(t){O||(O=function(){const t={},e=Object.keys(S),n=Object.keys(k);let r,o,i,a,s;for(r=0;r<e.length;r++){for(a=s=e[r],o=0;o<n.length;o++)i=n[o],s=s.replace(i,k[i]);i=parseInt(S[a],16),t[s]=[i>>16&255,i>>8&255,255&i]}return t}(),O.transparent=[0,0,0,0]);const e=O[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||M(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=j(this._rgb);return t&&(t.a=s(t.a)),t}set rgb(t){this._rgb=P(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${s(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(t=this._rgb,e=(t=>d(t.r)&&d(t.g)&&d(t.b)&&d(t.a))(t)?h:f,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=v(t),n=e[0],r=l(e[1]),o=l(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${o}%, ${s(t.a)})`:`hsl(${n}, ${r}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,r=t.rgb;let o;const i=e===o?.5:e,a=2*i-1,s=n.a-r.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;o=1-l,n.r=255&l*n.r+o*r.r+.5,n.g=255&l*n.g+o*r.g+.5,n.b=255&l*n.b+o*r.b+.5,n.a=i*n.a+(1-i)*r.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const r=C(s(t.r)),o=C(s(t.g)),i=C(s(t.b));return{r:a(E(r+n*(C(s(e.r))-r))),g:a(E(o+n*(C(s(e.g))-o))),b:a(E(i+n*(C(s(e.b))-i))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new R(this.rgb)}alpha(t){return this._rgb.a=a(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=r(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.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 A(this._rgb,2,t),this}darken(t){return A(this._rgb,2,-t),this}saturate(t){return A(this._rgb,1,t),this}desaturate(t){return A(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=v(t);n[0]=w(n[0]+e),n=x(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function T(){}const L=(()=>{let t=0;return()=>t++})();function I(t){return null==t}function N(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function z(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function D(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function F(t,e){return D(t)?t:e}function B(t,e){return void 0===t?e:t}function $(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function H(t,e,n,r){let o,i,a;if(N(t))if(i=t.length,r)for(o=i-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;o<i;o++)e.call(n,t[o],o);else if(z(t))for(a=Object.keys(t),i=a.length,o=0;o<i;o++)e.call(n,t[a[o]],a[o])}function W(t,e){let n,r,o,i;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(o=t[n],i=e[n],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function q(t){if(N(t))return t.map(q);if(z(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let o=0;for(;o<r;++o)e[n[o]]=q(t[n[o]]);return e}return t}function V(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function U(t,e,n,r){if(!V(t))return;const o=e[t],i=n[t];z(o)&&z(i)?K(o,i,r):e[t]=q(i)}function K(t,e,n){const r=N(e)?e:[e],o=r.length;if(!z(t))return t;const i=(n=n||{}).merger||U;let a;for(let e=0;e<o;++e){if(a=r[e],!z(a))continue;const o=Object.keys(a);for(let e=0,r=o.length;e<r;++e)i(o[e],t,a,n)}return t}function Q(t,e){return K(t,e,{merger:G})}function G(t,e,n){if(!V(t))return;const r=e[t],o=n[t];z(r)&&z(o)?Q(r,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=q(o))}const Y={"":t=>t,x:t=>t.x,y:t=>t.y};function Z(t,e){const n=Y[e]||(Y[e]=function(t){const e=function(t){const e=t.split("."),n=[];let r="";for(const t of e)r+=t,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function X(t){return t.charAt(0).toUpperCase()+t.slice(1)}const J=t=>void 0!==t,tt=t=>"function"==typeof t,et=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0},nt=Math.PI,rt=2*nt,ot=Number.POSITIVE_INFINITY,it=nt/180,at=nt/2,st=nt/4,lt=2*nt/3,ct=Math.log10,ut=Math.sign;function ht(t,e,n){return Math.abs(t-e)<n}function ft(t){const e=Math.round(t);t=ht(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(ct(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function dt(t){return!isNaN(parseFloat(t))&&isFinite(t)}function pt(t){return t*(nt/180)}function mt(t){if(!D(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function gt(t){return(t%rt+rt)%rt}function yt(t,e,n){return Math.max(e,Math.min(n,t))}function vt(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function bt(t,e,n){n=n||(n=>t[n]<e);let r,o=t.length-1,i=0;for(;o-i>1;)r=i+o>>1,n(r)?i=r:o=r;return{lo:i,hi:o}}const xt=(t,e,n,r)=>bt(t,n,r?r=>{const o=t[r][e];return o<n||o===n&&t[r+1][e]===n}:r=>t[r][e]<n),wt=(t,e,n)=>bt(t,n,(r=>t[r][e]>=n)),kt=["push","pop","shift","splice","unshift"];function St(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(e);-1!==o&&r.splice(o,1),r.length>0||(kt.forEach((e=>{delete t[e]})),delete t._chartjs)}const Ot="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function _t(t,e){let n=[],r=!1;return function(...o){n=o,r||(r=!0,Ot.call(window,(()=>{r=!1,t.apply(e,n)})))}}const Et=t=>"start"===t?"left":"end"===t?"right":"center",Ct=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,At=t=>0===t||1===t,jt=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*rt/n),Pt=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*rt/n)+1,Mt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*at),easeOutSine:t=>Math.sin(t*at),easeInOutSine:t=>-.5*(Math.cos(nt*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>At(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>At(t)?t:jt(t,.075,.3),easeOutElastic:t=>At(t)?t:Pt(t,.075,.3),easeInOutElastic(t){const e=.1125;return At(t)?t:t<.5?.5*jt(2*t,e,.45):.5+.5*Pt(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-Mt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*Mt.easeInBounce(2*t):.5*Mt.easeOutBounce(2*t-1)+.5};function Rt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Tt(t){return Rt(t)?t:new R(t)}function Lt(t){return Rt(t)?t:new R(t).saturate(.5).darken(.1).hexString()}const It=["x","y","borderWidth","radius","tension"],Nt=["color","borderColor","backgroundColor"],zt=new Map;function Dt(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let r=zt.get(n);return r||(r=new Intl.NumberFormat(t,e),zt.set(n,r)),r}(e,n).format(t)}const Ft={values:t=>N(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const r=this.chart.options.locale;let o,i=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),i=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}(t,n)}const a=ct(Math.abs(i)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Dt(t,r,l)},logarithmic(t,e,n){if(0===t)return"0";const r=n[e].significand||t/Math.pow(10,Math.floor(ct(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?Ft.numeric.call(this,t,e,n):""}};var Bt={formatters:Ft};const $t=Object.create(null),Ht=Object.create(null);function Wt(t,e){if(!e)return t;const n=e.split(".");for(let e=0,r=n.length;e<r;++e){const r=n[e];t=t[r]||(t[r]=Object.create(null))}return t}function qt(t,e,n){return"string"==typeof e?K(Wt(t,e),n):K(Wt(t,""),e)}class Vt{constructor(t,e){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=t=>t.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=(t,e)=>Lt(e.backgroundColor),this.hoverBorderColor=(t,e)=>Lt(e.borderColor),this.hoverColor=(t,e)=>Lt(e.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(e)}set(t,e){return qt(this,t,e)}get(t){return Wt(this,t)}describe(t,e){return qt(Ht,t,e)}override(t,e){return qt($t,t,e)}route(t,e,n,r){const o=Wt(this,t),i=Wt(this,n),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=i[r];return z(t)?Object.assign({},e,t):B(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach((t=>t(this)))}}var Ut=new Vt({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:Nt},numbers:{type:"number",properties:It}}),t.describe("animations",{_fallback:"animation"}),t.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=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.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,e)=>e.lineWidth,tickColor:(t,e)=>e.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:Bt.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function Kt(t,e,n,r,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,n.push(o)),i>r&&(r=i),r}function Qt(t,e,n){const r=t.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((e-o)*r)/r+o}function Gt(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Yt(t,e,n,r){Zt(t,e,n,r,null)}function Zt(t,e,n,r,o){let i,a,s,l,c,u,h,f;const d=e.pointStyle,p=e.rotation,m=e.radius;let g=(p||0)*it;if(d&&"object"==typeof d&&(i=d.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return t.save(),t.translate(n,r),t.rotate(g),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(m)||m<=0)){switch(t.beginPath(),d){default:o?t.ellipse(n,r,o/2,m,0,0,rt):t.arc(n,r,m,0,rt),t.closePath();break;case"triangle":u=o?o/2:m,t.moveTo(n+Math.sin(g)*u,r-Math.cos(g)*m),g+=lt,t.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*m),g+=lt,t.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*m),t.closePath();break;case"rectRounded":c=.516*m,l=m-c,a=Math.cos(g+st)*l,h=Math.cos(g+st)*(o?o/2-c:l),s=Math.sin(g+st)*l,f=Math.sin(g+st)*(o?o/2-c:l),t.arc(n-h,r-s,c,g-nt,g-at),t.arc(n+f,r-a,c,g-at,g),t.arc(n+h,r+s,c,g,g+at),t.arc(n-f,r+a,c,g+at,g+nt),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*m,u=o?o/2:l,t.rect(n-u,r-l,2*u,2*l);break}g+=st;case"rectRot":h=Math.cos(g)*(o?o/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(o?o/2:m),t.moveTo(n-h,r-s),t.lineTo(n+f,r-a),t.lineTo(n+h,r+s),t.lineTo(n-f,r+a),t.closePath();break;case"crossRot":g+=st;case"cross":h=Math.cos(g)*(o?o/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(o?o/2:m),t.moveTo(n-h,r-s),t.lineTo(n+h,r+s),t.moveTo(n+f,r-a),t.lineTo(n-f,r+a);break;case"star":h=Math.cos(g)*(o?o/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(o?o/2:m),t.moveTo(n-h,r-s),t.lineTo(n+h,r+s),t.moveTo(n+f,r-a),t.lineTo(n-f,r+a),g+=st,h=Math.cos(g)*(o?o/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(o?o/2:m),t.moveTo(n-h,r-s),t.lineTo(n+h,r+s),t.moveTo(n+f,r-a),t.lineTo(n-f,r+a);break;case"line":a=o?o/2:Math.cos(g)*m,s=Math.sin(g)*m,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(g)*(o?o/2:m),r+Math.sin(g)*m);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function Xt(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Jt(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function te(t){t.restore()}function ee(t,e,n,r,o){if(o.strikethrough||o.underline){const i=t.measureText(r),a=e-i.actualBoundingBoxLeft,s=e+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(a,u),t.lineTo(s,u),t.stroke()}}function ne(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function re(t,e,n,r,o,i={}){const a=N(e)?e:[e],s=i.strokeWidth>0&&""!==i.strokeColor;let l,c;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),I(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,i),l=0;l<a.length;++l)c=a[l],i.backdrop&&ne(t,i.backdrop),s&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),I(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(c,n,r,i.maxWidth)),t.fillText(c,n,r,i.maxWidth),ee(t,n,r,c,i),r+=Number(o.lineHeight);t.restore()}function oe(t,e){const{x:n,y:r,w:o,h:i,radius:a}=e;t.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*nt,nt,!0),t.lineTo(n,r+i-a.bottomLeft),t.arc(n+a.bottomLeft,r+i-a.bottomLeft,a.bottomLeft,nt,at,!0),t.lineTo(n+o-a.bottomRight,r+i),t.arc(n+o-a.bottomRight,r+i-a.bottomRight,a.bottomRight,at,0,!0),t.lineTo(n+o,r+a.topRight),t.arc(n+o-a.topRight,r+a.topRight,a.topRight,0,-at,!0),t.lineTo(n+a.topLeft,r)}const ie=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ae=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function se(t,e){const n=(""+t).match(ie);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}const le=t=>+t||0;function ce(t,e){const n={},r=z(e),o=r?Object.keys(e):e,i=z(t)?r?n=>B(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of o)n[t]=le(i(t));return n}function ue(t){return ce(t,{top:"y",right:"x",bottom:"y",left:"x"})}function he(t){return ce(t,["topLeft","topRight","bottomLeft","bottomRight"])}function fe(t){const e=ue(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function de(t,e){t=t||{},e=e||Ut.font;let n=B(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let r=B(t.style,e.style);r&&!(""+r).match(ae)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:B(t.family,e.family),lineHeight:se(B(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:B(t.weight,e.weight),string:""};return o.string=function(t){return!t||I(t.size)||I(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function pe(t,e,n,r){let o,i,a,s=!0;for(o=0,i=t.length;o<i;++o)if(a=t[o],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),s=!1),void 0!==n&&N(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function me(t,e){return Object.assign(Object.create(t),e)}function ge(t,e=[""],n,r,o=(()=>t[0])){const i=n||t;void 0===r&&(r=Ce("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:r,_getTarget:o,override:n=>ge([n,...t],e,i,r)};return new Proxy(a,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,r)=>we(n,r,(()=>function(t,e,n,r){let o;for(const i of e)if(o=Ce(be(i,t),n),void 0!==o)return xe(t,o)?_e(n,r,t,o):o}(r,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ae(t).includes(e),ownKeys:t=>Ae(t),set(t,e,n){const r=t._storage||(t._storage=o());return t[e]=r[e]=n,delete t._keys,!0}})}function ye(t,e,n,r){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:ve(t,r),setContext:e=>ye(t,e,n,r),override:o=>ye(t.override(o),e,n,r)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>we(t,e,(()=>function(t,e,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=t;let s=r[e];return tt(s)&&a.isScriptable(e)&&(s=function(t,e,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=e(i,a||r);return s.delete(t),xe(t,l)&&(l=_e(o._scopes,o,t,l)),l}(e,s,t,n)),N(s)&&s.length&&(s=function(t,e,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:s}=n;if(void 0!==i.index&&r(t))return e[i.index%e.length];if(z(e[0])){const n=e,r=o._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=_e(r,o,t,l);e.push(ye(n,i,a&&a[t],s))}}return e}(e,s,t,a.isIndexable)),xe(e,s)&&(s=ye(s,o,i&&i[e],a)),s}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}function ve(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:r,isScriptable:tt(n)?n:()=>n,isIndexable:tt(r)?r:()=>r}}const be=(t,e)=>t?t+X(e):e,xe=(t,e)=>z(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function we(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const r=n();return t[e]=r,r}function ke(t,e,n){return tt(t)?t(e,n):t}const Se=(t,e)=>!0===t?e:"string"==typeof t?Z(e,t):void 0;function Oe(t,e,n,r,o){for(const i of e){const e=Se(n,i);if(e){t.add(e);const i=ke(e._fallback,n,o);if(void 0!==i&&i!==n&&i!==r)return i}else if(!1===e&&void 0!==r&&n!==r)return null}return!1}function _e(t,e,n,r){const o=e._rootScopes,i=ke(e._fallback,n,r),a=[...t,...o],s=new Set;s.add(r);let l=Ee(s,a,n,i||n,r);return null!==l&&(void 0===i||i===n||(l=Ee(s,a,i,l,r),null!==l))&&ge(Array.from(s),[""],o,i,(()=>function(t,e,n){const r=t._getTarget();e in r||(r[e]={});const o=r[e];return N(o)&&z(n)?n:o||{}}(e,n,r)))}function Ee(t,e,n,r,o){for(;n;)n=Oe(t,e,n,r,o);return n}function Ce(t,e){for(const n of e){if(!n)continue;const e=n[t];if(void 0!==e)return e}}function Ae(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function je(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Pe(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Me(t,e,n){let r;return"string"==typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*e.parentNode[n])):r=t,r}Number.EPSILON;const Re=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),Te=["top","right","bottom","left"];function Le(t,e,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=Te[o];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const Ie=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function Ne(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,o=Re(n),i="border-box"===o.boxSizing,a=Le(o,"padding"),s=Le(o,"border","width"),{x:l,y:c,box:u}=function(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:o,offsetY:i}=r;let a,s,l=!1;if(Ie(o,i,t.target))a=o,s=i;else{const t=e.getBoundingClientRect();a=r.clientX-t.left,s=r.clientY-t.top,l=!0}return{x:a,y:s,box:l}}(t,n),h=a.left+(u&&s.left),f=a.top+(u&&s.top);let{width:d,height:p}=e;return i&&(d-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-h)/d*n.width/r),y:Math.round((c-f)/p*n.height/r)}}const ze=t=>Math.round(10*t)/10;function De(t,e,n){const r=e||1,o=Math.floor(t.height*r),i=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||a.height!==o||a.width!==i)&&(t.currentDevicePixelRatio=r,a.height=o,a.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0)}const Fe=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};je()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function Be(t,e){const n=function(t,e){return Re(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function $e(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function He(t,e){let n,r;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function We(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}class qe{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,r){const o=e.listeners[r],i=e.duration;o.forEach((r=>r({chart:t,initial:e.initial,numSteps:i,currentStep:Math.min(n-e.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=Ot.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,r)=>{if(!n.running||!n.items.length)return;const o=n.items;let i,a=o.length-1,s=!1;for(;a>=0;--a)i=o[a],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,n,t,"progress")),o.length||(n.running=!1,this._notify(r,n,t,"complete"),n.initial=!1),e+=o.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Ve=new qe;const Ue="transparent",Ke={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const r=Tt(t||Ue),o=r.valid&&Tt(e||Ue);return o&&o.valid?o.mix(r,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Qe{constructor(t,e,n,r){const o=e[n];r=pe([t.to,r,o,t.from]);const i=pe([t.from,o,r]);this._active=!0,this._fn=t.fn||Ke[t.type||typeof i],this._easing=Mt[t.easing]||Mt.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=i,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const r=this._target[this._prop],o=n-this._start,i=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=pe([t.to,e,r,t.from]),this._from=pe([t.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,r=this._prop,o=this._from,i=this._loop,a=this._to;let s;if(this._active=o!==a&&(i||e<n),!this._active)return this._target[r]=a,void this._notify(!0);e<0?this._target[r]=o:(s=e/n%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(o,a,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}class Ge{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!z(t))return;const e=Object.keys(Ut.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((r=>{const o=t[r];if(!z(o))return;const i={};for(const t of e)i[t]=o[t];(N(o.properties)&&o.properties||[r]).forEach((t=>{t!==r&&n.has(t)||n.set(t,i)}))}))}_animateOptions(t,e){const n=e.options,r=function(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}(t,n);if(!r)return[];const o=this._createAnimations(r,n);return n.$shared&&function(t,e){const n=[],r=Object.keys(e);for(let e=0;e<r.length;e++){const o=t[r[e]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),o}_createAnimations(t,e){const n=this._properties,r=[],o=t.$animations||(t.$animations={}),i=Object.keys(e),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const l=i[s];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(t,e));continue}const c=e[l];let u=o[l];const h=n.get(l);if(u){if(h&&u.active()){u.update(h,c,a);continue}u.cancel()}h&&h.duration?(o[l]=u=new Qe(h,t,l,c),r.push(u)):t[l]=c}return r}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(Ve.add(this._chart,n),!0):void 0}}function Ye(t,e){const n=t&&t.options||{},r=n.reverse,o=void 0===n.min?e:0,i=void 0===n.max?e:0;return{start:r?i:o,end:r?o:i}}function Ze(t,e){const n=[],r=t._getSortedDatasetMetas(e);let o,i;for(o=0,i=r.length;o<i;++o)n.push(r[o].index);return n}function Xe(t,e,n,r={}){const o=t.keys,i="single"===r.mode;let a,s,l,c;if(null!==e){for(a=0,s=o.length;a<s;++a){if(l=+o[a],l===n){if(r.all)continue;break}c=t.values[l],D(c)&&(i||0===e||ut(e)===ut(c))&&(e+=c)}return e}}function Je(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function tn(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function en(t,e,n,r){for(const o of e.getMatchingVisibleMetas(r).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function nn(t,e){const{chart:n,_cachedMeta:r}=t,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=r,l=i.axis,c=a.axis,u=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(i,a,r),h=e.length;let f;for(let t=0;t<h;++t){const n=e[t],{[l]:i,[c]:h}=n;f=(n._stacks||(n._stacks={}))[c]=tn(o,u,i),f[s]=h,f._top=en(f,a,!0,r.type),f._bottom=en(f,a,!1,r.type),(f._visualValues||(f._visualValues={}))[s]=h}}function rn(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function on(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[r]||void 0===e[r][n])return;delete e[r][n],void 0!==e[r]._visualValues&&void 0!==e[r]._visualValues[n]&&delete e[r]._visualValues[n]}}}const an=t=>"reset"===t||"none"===t,sn=(t,e)=>e?t:Object.assign({},t);class ln{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,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=Je(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&&on(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),r=(t,e,n,r)=>"x"===t?e:"r"===t?r:n,o=e.xAxisID=B(n.xAxisID,rn(t,"x")),i=e.yAxisID=B(n.yAxisID,rn(t,"y")),a=e.rAxisID=B(n.rAxisID,rn(t,"r")),s=e.indexAxis,l=e.iAxisID=r(s,o,i,a),c=e.vAxisID=r(s,i,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(i),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}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 e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&St(this._data,this),t._stacked&&on(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(z(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:n,vScale:r}=e,o="x"===n.axis?"x":"y",i="x"===r.axis?"x":"y",a=Object.keys(t),s=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],s[l]={[o]:u,[i]:t[u]};return s}(e,t)}else if(n!==e){if(n){St(n,this);const t=this._cachedMeta;on(t),t._parsed=[]}e&&Object.isExtensible(e)&&(this,(r=e)._chartjs?r._chartjs.listeners.push(this):(Object.defineProperty(r,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),kt.forEach((t=>{const e="_onData"+X(t),n=r[t];Object.defineProperty(r,t,{configurable:!0,enumerable:!1,value(...t){const o=n.apply(this,t);return r._chartjs.listeners.forEach((n=>{"function"==typeof n[e]&&n[e](...t)})),o}})})))),this._syncList=[],this._data=e}var r}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const o=e._stacked;e._stacked=Je(e.vScale,e),e.stack!==n.stack&&(r=!0,on(e),e.stack=n.stack),this._resyncElements(t),(r||o!==e._stacked)&&nn(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:r}=this,{iScale:o,_stacked:i}=n,a=o.axis;let s,l,c,u=0===t&&e===r.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,c=r;else{c=N(r[t])?this.parseArrayData(n,r,t,e):z(r[t])?this.parseObjectData(n,r,t,e):this.parsePrimitiveData(n,r,t,e);const o=()=>null===l[a]||h&&l[a]<h[a];for(s=0;s<e;++s)n._parsed[s+t]=l=c[s],u&&(o()&&(u=!1),h=l);n._sorted=u}i&&nn(this,c)}parsePrimitiveData(t,e,n,r){const{iScale:o,vScale:i}=t,a=o.axis,s=i.axis,l=o.getLabels(),c=o===i,u=new Array(r);let h,f,d;for(h=0,f=r;h<f;++h)d=h+n,u[h]={[a]:c||o.parse(l[d],d),[s]:i.parse(e[d],d)};return u}parseArrayData(t,e,n,r){const{xScale:o,yScale:i}=t,a=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=e[c],a[s]={x:o.parse(u[0],c),y:i.parse(u[1],c)};return a}parseObjectData(t,e,n,r){const{xScale:o,yScale:i}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(r);let c,u,h,f;for(c=0,u=r;c<u;++c)h=c+n,f=e[h],l[c]={x:o.parse(Z(f,a),h),y:i.parse(Z(f,s),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const r=this.chart,o=this._cachedMeta,i=e[t.axis];return Xe({keys:Ze(r,!0),values:e._stacks[t.axis]._visualValues},i,o.index,{mode:n})}updateRangeFromParsed(t,e,n,r){const o=n[e.axis];let i=null===o?NaN:o;const a=r&&n._stacks[e.axis];r&&a&&(r.values=a,i=Xe(r,o,this._cachedMeta.index)),t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}getMinMax(t,e){const n=this._cachedMeta,r=n._parsed,o=n._sorted&&t===n.iScale,i=r.length,a=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Ze(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(t){const{min:e,max:n,minDefined:r,maxDefined:o}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(a);let h,f;function d(){f=r[h];const e=f[a.axis];return!D(f[t.axis])||c>e||u<e}for(h=0;h<i&&(d()||(this.updateRangeFromParsed(l,t,f,s),!o));++h);if(o)for(h=i-1;h>=0;--h)if(!d()){this.updateRangeFromParsed(l,t,f,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let r,o,i;for(r=0,o=e.length;r<o;++r)i=e[r][t.axis],D(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,r=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:r?""+r.getLabelForValue(o[r.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,r,o;return z(t)?(e=t.top,n=t.right,r=t.bottom,o=t.left):e=n=r=o=t,{top:e,right:n,bottom:r,left:o,disabled:!1===t}}(B(this.options.clip,function(t,e,n){if(!1===n)return!1;const r=Ye(t,n),o=Ye(e,n);return{top:o.end,right:r.end,bottom:o.start,left:r.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,r=n.data||[],o=e.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||r.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,o,a,s),c=a;c<a+s;++c){const e=r[c];e.hidden||(e.active&&l?i.push(e):e.draw(t,o))}for(c=0;c<i.length;++c)i[c].draw(t,o)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const r=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,n){return me(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=r.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return me(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=r,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const r="active"===e,o=this._cachedDataOpts,i=t+"-"+e,a=o[i],s=this.enableOptionSharing&&J(n);if(a)return sn(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=r?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),c),f=Object.keys(Ut.elements[t]),d=l.resolveNamedOptions(h,f,(()=>this.getContext(n,r,e)),u);return d.$shared&&(d.$shared=s,o[i]=Object.freeze(sn(d,s))),d}_resolveAnimations(t,e,n){const r=this.chart,o=this._cachedDataOpts,i=`animation-${e}`,a=o[i];if(a)return a;let s;if(!1!==r.options.animation){const r=this.chart.config,o=r.datasetAnimationScopeKeys(this._type,e),i=r.getOptionScopes(this.getDataset(),o);s=r.createResolver(i,this.getContext(t,n,e))}const l=new Ge(r,s&&s.animations);return s&&s._cacheable&&(o[i]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||an(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),r=this._sharedOptions,o=this.getSharedOptions(n),i=this.includeOptions(e,o)||o!==r;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:i}}updateElement(t,e,n,r){an(r)?Object.assign(t,n):this._resolveAnimations(e,r).update(t,n)}updateSharedOptions(t,e,n){t&&!an(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,r){t.active=r;const o=this.getStyle(e,r);this._resolveAnimations(e,n,r).update(t,{options:!r&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,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 e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const r=n.length,o=e.length,i=Math.min(o,r);i&&this.parse(0,i),o>r?this._insertElements(r,o-r,t):o<r&&this._removeElements(o,r-o)}_insertElements(t,e,n=!0){const r=this._cachedMeta,o=r.data,i=t+e;let a;const s=t=>{for(t.length+=e,a=t.length-1;a>=i;a--)t[a]=t[a-e]};for(s(o),a=t;a<i;++a)o[a]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,r){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(t,e);n._stacked&&on(n,r)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,r]=t;this[e](n,r)}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,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function cn(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let r=[];for(let e=0,o=n.length;e<o;e++)r=r.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=function(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}(r.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let r,o,i,a,s=e._length;const l=()=>{32767!==i&&-32768!==i&&(J(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(r=0,o=n.length;r<o;++r)i=e.getPixelForValue(n[r]),l();for(a=void 0,r=0,o=e.ticks.length;r<o;++r)i=e.getPixelForTick(r),l();return s}function un(t,e,n,r){return N(t)?function(t,e,n,r){const o=n.parse(t[0],r),i=n.parse(t[1],r),a=Math.min(o,i),s=Math.max(o,i);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:i,min:a,max:s}}(t,e,n,r):e[n.axis]=n.parse(t,r),e}function hn(t,e,n,r){const o=t.iScale,i=t.vScale,a=o.getLabels(),s=o===i,l=[];let c,u,h,f;for(c=n,u=n+r;c<u;++c)f=e[c],h={},h[o.axis]=s||o.parse(a[c],c),l.push(un(f,h,i,c));return l}function fn(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function dn(t,e,n,r){let o=e.borderSkipped;const i={};if(!o)return void(t.borderSkipped=i);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:u}=function(t){let e,n,r,o,i;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.base<t.y,n="bottom",r="top"),e?(o="end",i="start"):(o="start",i="end"),{start:n,end:r,reverse:e,top:o,bottom:i}}(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?o=c:(n._bottom||0)===r?o=u:(i[pn(u,a,s,l)]=!0,o=c)),i[pn(o,a,s,l)]=!0,t.borderSkipped=i}function pn(t,e,n,r){var o,i,a;return r?(a=n,t=mn(t=(o=t)===(i=e)?a:o===a?i:o,n,e)):t=mn(t,e,n),t}function mn(t,e,n){return"start"===t?e:"end"===t?n:t}function gn(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class yn extends ln{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,n,r){return hn(t,e,n,r)}parseArrayData(t,e,n,r){return hn(t,e,n,r)}parseObjectData(t,e,n,r){const{iScale:o,vScale:i}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?a:s,c="x"===i.axis?a:s,u=[];let h,f,d,p;for(h=n,f=n+r;h<f;++h)p=e[h],d={},d[o.axis]=o.parse(Z(p,l),h),u.push(un(Z(p,c),d,i,h));return u}updateRangeFromParsed(t,e,n,r){super.updateRangeFromParsed(t,e,n,r);const o=n._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:r}=e,o=this.getParsed(t),i=o._custom,a=fn(i)?"["+i.start+", "+i.end+"]":""+r.getLabelForValue(o[r.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,r){const o="reset"===r,{index:i,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:h}=this._getSharedOptions(e,r);for(let f=e;f<e+n;f++){const e=this.getParsed(f),n=o||I(e[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(f),d=this._calculateBarIndexPixels(f,c),p=(e._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!p||fn(e._custom)||i===p._top||i===p._bottom,x:l?n.head:d.center,y:l?d.center:n.head,height:l?d.size:Math.abs(n.size),width:l?Math.abs(n.size):d.size};h&&(m.options=u||this.resolveDataElementOptions(f,t[f].active?"active":r));const g=m.options||t[f].options;dn(m,g,p,i),gn(m,g,c.ratio),this.updateElement(t[f],f,m,r)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=n.options.stacked,i=[],a=t=>{const n=t.controller.getParsed(e),r=n&&n[t.vScale.axis];if(I(r)||isNaN(r))return!0};for(const n of r)if((void 0===e||!a(n))&&((!1===o||-1===i.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&i.push(n.stack),n.index===t))break;return i.length||i.push(void 0),i}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const r=this._getStacks(t,n),o=void 0!==e?r.indexOf(e):-1;return-1===o?r.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,r=[];let o,i;for(o=0,i=e.data.length;o<i;++o)r.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const a=t.barThickness;return{min:a||cn(e),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:r},options:{base:o,minBarLength:i}}=this,a=o||0,s=this.getParsed(t),l=s._custom,c=fn(l);let u,h,f=s[e.axis],d=0,p=n?this.applyStack(e,s,n):f;p!==f&&(d=p-f,p=f),c&&(f=l.barStart,p=l.barEnd-l.barStart,0!==f&&ut(f)!==ut(l.barEnd)&&(d=0),d+=f);const m=I(o)||c?d:o;let g=e.getPixelForValue(m);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(d+p):g,h=u-g,Math.abs(h)<i){h=function(t,e,n){return 0!==t?ut(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(h,e,a)*i,f===a&&(g-=h/2);const t=e.getPixelForDecimal(0),o=e.getPixelForDecimal(1),l=Math.min(t,o),d=Math.max(t,o);g=Math.max(Math.min(g,d),l),u=g+h,n&&!c&&(s._stacks[e.axis]._visualValues[r]=e.getValueForPixel(u)-e.getValueForPixel(g))}if(g===e.getPixelForValue(a)){const t=ut(h)*e.getLineWidthForValue(a)/2;g+=t,h-=t}return{size:h,base:g,head:u,center:u+h/2}}_calculateBarIndexPixels(t,e){const n=e.scale,r=this.options,o=r.skipNull,i=B(r.maxBarThickness,1/0);let a,s;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,l="flex"===r.barThickness?function(t,e,n,r){const o=e.pixels,i=o[t];let a=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;null===a&&(a=i-(null===s?e.end-e.start:s-i)),null===s&&(s=i+i-a);const c=i-(i-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:c}}(t,e,r,n):function(t,e,n,r){const o=n.barThickness;let i,a;return I(o)?(i=e.min*n.categoryPercentage,a=n.barPercentage):(i=o*r,a=1),{chunk:i/r,ratio:a,start:e.pixels[t]-i/2}}(t,e,r,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=l.start+l.chunk*c+l.chunk/2,s=Math.min(i,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(i,e.min*e.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,r=n.length;let o=0;for(;o<r;++o)null===this.getParsed(o)[e.axis]||n[o].hidden||n[o].draw(this._ctx)}}function vn(t,e,n,r){const{controller:o,data:i,_sorted:a}=t,s=o._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&a&&i.length){const t=s._reversePixels?wt:xt;if(!r)return t(i,e,n);if(o._sharedOptions){const r=i[0],o="function"==typeof r.getRange&&r.getRange(e);if(o){const r=t(i,e,n-o),a=t(i,e,n+o);return{lo:r.lo,hi:a.hi}}}}return{lo:0,hi:i.length-1}}function bn(t,e,n,r,o){const i=t.getSortedVisibleDatasetMetas(),a=n[e];for(let t=0,n=i.length;t<n;++t){const{index:n,data:s}=i[t],{lo:l,hi:c}=vn(i[t],e,a,o);for(let t=l;t<=c;++t){const e=s[t];e.skip||r(e,n,t)}}}function xn(t,e,n,r,o){const i=[];return o||t.isPointInArea(e)?(bn(t,n,e,(function(n,a,s){(o||Xt(n,t.chartArea,0))&&n.inRange(e.x,e.y,r)&&i.push({element:n,datasetIndex:a,index:s})}),!0),i):i}function wn(t,e,n,r,o,i){return i||t.isPointInArea(e)?"r"!==n||r?function(t,e,n,r,o,i){let a=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,r){const o=e?Math.abs(t.x-r.x):0,i=n?Math.abs(t.y-r.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(i,2))}}(n);let l=Number.POSITIVE_INFINITY;return bn(t,n,e,(function(n,c,u){const h=n.inRange(e.x,e.y,o);if(r&&!h)return;const f=n.getCenterPoint(o);if(!i&&!t.isPointInArea(f)&&!h)return;const d=s(e,f);d<l?(a=[{element:n,datasetIndex:c,index:u}],l=d):d===l&&a.push({element:n,datasetIndex:c,index:u})})),a}(t,e,n,r,o,i):function(t,e,n,r){let o=[];return bn(t,n,e,(function(t,n,i){const{startAngle:a,endAngle:s}=t.getProps(["startAngle","endAngle"],r),{angle:l}=function(t,e){const n=e.x-t.x,r=e.y-t.y,o=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i<-.5*nt&&(i+=rt),{angle:i,distance:o}}(t,{x:e.x,y:e.y});(function(t,e,n,r){const o=gt(t),i=gt(e),a=gt(n),s=gt(i-o),l=gt(a-o),c=gt(o-i),u=gt(o-a);return o===i||o===a||r&&i===a||s>l&&c<u})(l,a,s)&&o.push({element:t,datasetIndex:n,index:i})})),o}(t,e,n,o):[]}function kn(t,e,n,r,o){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return bn(t,n,e,((t,r,l)=>{t[a](e[n],o)&&(i.push({element:t,datasetIndex:r,index:l}),s=s||t.inRange(e.x,e.y,o))})),r&&!s?[]:i}var Sn={evaluateInteractionItems:bn,modes:{index(t,e,n,r){const o=Ne(e,t),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?xn(t,o,i,r,a):wn(t,o,i,!1,r,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,n,r){const o=Ne(e,t),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?xn(t,o,i,r,a):wn(t,o,i,!1,r,a);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,r)=>xn(t,Ne(e,t),n.axis||"xy",r,n.includeInvisible||!1),nearest(t,e,n,r){const o=Ne(e,t),i=n.axis||"xy",a=n.includeInvisible||!1;return wn(t,o,i,n.intersect,r,a)},x:(t,e,n,r)=>kn(t,Ne(e,t),"x",n.intersect,r),y:(t,e,n,r)=>kn(t,Ne(e,t),"y",n.intersect,r)}};const On=["left","top","right","bottom"];function _n(t,e){return t.filter((t=>t.pos===e))}function En(t,e){return t.filter((t=>-1===On.indexOf(t.pos)&&t.box.axis===e))}function Cn(t,e){return t.sort(((t,n)=>{const r=e?n:t,o=e?t:n;return r.weight===o.weight?r.index-o.index:r.weight-o.weight}))}function An(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function jn(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Pn(t,e,n,r){const{pos:o,box:i}=n,a=t.maxPadding;if(!z(o)){n.size&&(t[o]-=n.size);const e=r[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?i.height:i.width),n.size=e.size/e.count,t[o]+=n.size}i.getPadding&&jn(a,i.getPadding());const s=Math.max(0,e.outerWidth-An(a,t,"left","right")),l=Math.max(0,e.outerHeight-An(a,t,"top","bottom")),c=s!==t.w,u=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Mn(t,e){const n=e.maxPadding;return function(t){const r={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{r[t]=Math.max(e[t],n[t])})),r}(t?["left","right"]:["top","bottom"])}function Rn(t,e,n,r){const o=[];let i,a,s,l,c,u;for(i=0,a=t.length,c=0;i<a;++i){s=t[i],l=s.box,l.update(s.width||e.w,s.height||e.h,Mn(s.horizontal,e));const{same:a,other:h}=Pn(e,n,s,r);c|=a&&o.length,u=u||h,l.fullSize||o.push(s)}return c&&Rn(o,e,n,r)||u}function Tn(t,e,n,r,o){t.top=n,t.left=e,t.right=e+r,t.bottom=n+o,t.width=r,t.height=o}function Ln(t,e,n,r){const o=n.padding;let{x:i,y:a}=e;for(const s of t){const t=s.box,l=r[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const r=e.w*c,i=l.size||t.height;J(l.start)&&(a=l.start),t.fullSize?Tn(t,o.left,a,n.outerWidth-o.right-o.left,i):Tn(t,e.left+l.placed,a,r,i),l.start=a,l.placed+=r,a=t.bottom}else{const r=e.h*c,a=l.size||t.width;J(l.start)&&(i=l.start),t.fullSize?Tn(t,i,o.top,a,n.outerHeight-o.bottom-o.top):Tn(t,i,e.top+l.placed,a,r),l.start=i,l.placed+=r,i=t.right}}e.x=i,e.y=a}var In={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const o=fe(t.options.layout.padding),i=Math.max(e-o.width,0),a=Math.max(n-o.height,0),s=function(t){const e=function(t){const e=[];let n,r,o,i,a,s;for(n=0,r=(t||[]).length;n<r;++n)o=t[n],({position:i,options:{stack:a,stackWeight:s=1}}=o),e.push({index:n,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&i+a,stackWeight:s});return e}(t),n=Cn(e.filter((t=>t.box.fullSize)),!0),r=Cn(_n(e,"left"),!0),o=Cn(_n(e,"right")),i=Cn(_n(e,"top"),!0),a=Cn(_n(e,"bottom")),s=En(e,"x"),l=En(e,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(l).concat(a).concat(s),chartArea:_n(e,"chartArea"),vertical:r.concat(o).concat(l),horizontal:i.concat(a).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;H(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const u=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),f=Object.assign({},o);jn(f,fe(r));const d=Object.assign({maxPadding:f,w:i,h:a,x:o.left,y:o.top},o),p=function(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:r,stackWeight:o}=n;if(!t||!On.includes(r))continue;const i=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=o}return e}(t),{vBoxMaxWidth:r,hBoxMaxHeight:o}=e;let i,a,s;for(i=0,a=t.length;i<a;++i){s=t[i];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*r:a&&e.availableWidth,s.height=o):(s.width=r,s.height=c?c*o:a&&e.availableHeight)}return n}(l.concat(c),h);Rn(s.fullSize,d,h,p),Rn(l,d,h,p),Rn(c,d,h,p)&&Rn(l,d,h,p),function(t){const e=t.maxPadding;function n(n){const r=Math.max(e[n]-t[n],0);return t[n]+=r,r}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(d),Ln(s.leftAndTop,d,h,p),d.x+=d.w,d.y+=d.h,Ln(s.rightAndBottom,d,h,p),t.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h,height:d.h,width:d.w},H(s.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(d.w,d.h,{left:0,top:0,right:0,bottom:0})}))}};class Nn{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,r){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):n)}}isAttached(t){return!0}updateConfig(t){}}class zn extends Nn{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Dn="$chartjs",Fn={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Bn=t=>null===t||""===t,$n=!!Fe&&{passive:!0};function Hn(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,$n)}function Wn(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function qn(t,e,n){const r=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Wn(n.addedNodes,r),e=e&&!Wn(n.removedNodes,r);e&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}function Vn(t,e,n){const r=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Wn(n.removedNodes,r),e=e&&!Wn(n.addedNodes,r);e&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}const Un=new Map;let Kn=0;function Qn(){const t=window.devicePixelRatio;t!==Kn&&(Kn=t,Un.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Gn(t,e,n){const r=t.canvas,o=r&&Pe(r);if(!o)return;const i=_t(((t,e)=>{const r=o.clientWidth;n(t,e),r<o.clientWidth&&n()}),window),a=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,r=e.contentRect.height;0===n&&0===r||i(n,r)}));return a.observe(o),function(t,e){Un.size||window.addEventListener("resize",Qn),Un.set(t,e)}(t,i),a}function Yn(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Un.delete(t),Un.size||window.removeEventListener("resize",Qn)}(t)}function Zn(t,e,n){const r=t.canvas,o=_t((e=>{null!==t.ctx&&n(function(t,e){const n=Fn[t.type]||t.type,{x:r,y:o}=Ne(t,e);return{type:n,chart:e,native:t,x:void 0!==r?r:null,y:void 0!==o?o:null}}(e,t))}),t);return function(t,e,n){t&&t.addEventListener(e,n,$n)}(r,e,o),o}class Xn extends Nn{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,r=t.getAttribute("height"),o=t.getAttribute("width");if(t[Dn]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Bn(o)){const e=Be(t,"width");void 0!==e&&(t.width=e)}if(Bn(r))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Be(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Dn])return!1;const n=e[Dn].initial;["height","width"].forEach((t=>{const r=n[t];I(r)?e.removeAttribute(t):e.setAttribute(t,r)}));const r=n.style||{};return Object.keys(r).forEach((t=>{e.style[t]=r[t]})),e.width=e.width,delete e[Dn],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const r=t.$proxies||(t.$proxies={}),o={attach:qn,detach:Vn,resize:Gn}[e]||Zn;r[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),r=n[e];r&&(({attach:Yn,detach:Yn,resize:Yn}[e]||Hn)(t,e,r),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,r){return function(t,e,n,r){const o=Re(t),i=Le(o,"margin"),a=Me(o.maxWidth,t,"clientWidth")||ot,s=Me(o.maxHeight,t,"clientHeight")||ot,l=function(t,e,n){let r,o;if(void 0===e||void 0===n){const i=t&&Pe(t);if(i){const t=i.getBoundingClientRect(),a=Re(i),s=Le(a,"border","width"),l=Le(a,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,r=Me(a.maxWidth,i,"clientWidth"),o=Me(a.maxHeight,i,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||ot,maxHeight:o||ot}}(t,e,n);let{width:c,height:u}=l;if("content-box"===o.boxSizing){const t=Le(o,"border","width"),e=Le(o,"padding");c-=e.width+t.width,u-=e.height+t.height}return c=Math.max(0,c-i.width),u=Math.max(0,r?c/r:u-i.height),c=ze(Math.min(c,a,l.maxWidth)),u=ze(Math.min(u,s,l.maxHeight)),c&&!u&&(u=ze(c/2)),(void 0!==e||void 0!==n)&&r&&l.height&&u>l.height&&(u=l.height,c=ze(Math.floor(u*r))),{width:c,height:u}}(t,e,n,r)}isAttached(t){const e=t&&Pe(t);return!(!e||!e.isConnected)}}class Jn{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return dt(this.x)&&dt(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const r={};return t.forEach((t=>{r[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),r}}function tr(t,e,n,r,o){const i=B(r,0),a=Math.min(B(o,t.length),t.length);let s,l,c,u=0;for(n=Math.ceil(n),o&&(s=o-r,n=s/Math.floor(s/n)),c=i;c<0;)u++,c=Math.round(i+u*n);for(l=Math.max(i,0);l<a;l++)l===c&&(e.push(t[l]),u++,c=Math.round(i+u*n))}const er=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,nr=(t,e)=>Math.min(e||t,t);function rr(t,e){const n=[],r=t.length/e,o=t.length;let i=0;for(;i<o;i+=r)n.push(t[Math.floor(i)]);return n}function or(t,e,n){const r=t.ticks.length,o=Math.min(e,r-1),i=t._startPixel,a=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(o);if(!(n&&(l=1===r?Math.max(c-i,a-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<i-s||c>a+s)))return c}function ir(t){return t.drawTicks?t.tickLength:0}function ar(t,e){if(!t.display)return 0;const n=de(t.font,e),r=fe(t.padding);return(N(t.text)?t.text.length:1)*n.lineHeight+r.height}function sr(t,e,n){let r=Et(t);return(n&&"right"!==e||!n&&"right"===e)&&(r=(t=>"left"===t?"right":"right"===t?"left":t)(r)),r}class lr extends Jn{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,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:r}=this;return t=F(t,Number.POSITIVE_INFINITY),e=F(e,Number.NEGATIVE_INFINITY),n=F(n,Number.POSITIVE_INFINITY),r=F(r,Number.NEGATIVE_INFINITY),{min:F(t,n),max:F(e,r),minDefined:D(t),maxDefined:D(e)}}getMinMax(t){let e,{min:n,max:r,minDefined:o,maxDefined:i}=this.getUserBounds();if(o&&i)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)e=a[s].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),i||(r=Math.max(r,e.max));return n=i&&n>r?r:n,r=o&&n>r?n:r,{min:F(n,F(r,n)),max:F(r,F(n,r))}}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(){$(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:r,grace:o,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,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=function(t,e,n){const{min:r,max:o}=t,i=(l=(o-r)/2,"string"==typeof(s=e)&&s.endsWith("%")?parseFloat(s)/100*l:+s),a=(t,e)=>n&&0===t?0:t+e;var s,l;return{min:a(r,-Math.abs(i)),max:a(o,i)}}(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?rr(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=function(t,e){const n=t.options.ticks,r=function(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(r,o))}(t),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?function(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}(e):[],a=i.length,s=i[0],l=i[a-1],c=[];if(a>o)return function(t,e,n,r){let o,i=0,a=n[0];for(r=Math.ceil(r),o=0;o<t.length;o++)o===a&&(e.push(t[o]),i++,a=n[i*r])}(e,c,i,a/o),c;const u=function(t,e,n){const r=function(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}(t),o=e.length/n;if(!r)return Math.max(o,1);const i=function(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r==0&&(e.push(r),e.push(t/r));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(r);for(let t=0,e=i.length-1;t<e;t++){const e=i[t];if(e>o)return e}return Math.max(o,1)}(i,e,o);if(a>0){let t,n;const r=a>1?Math.round((l-s)/(a-1)):null;for(tr(e,c,u,I(r)?0:s-r,s),t=0,n=a-1;t<n;t++)tr(e,c,u,i[t],i[t+1]);return tr(e,c,u,l,I(r)?e.length:l+r),c}return tr(e,c,u),c}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){$(this.options.afterUpdate,[this])}beforeSetDimensions(){$(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(){$(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),$(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){$(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,r,o;for(n=0,r=t.length;n<r;n++)o=t[n],o.label=$(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){$(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){$(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=nr(this.ticks.length,t.ticks.maxTicksLimit),r=e.minRotation||0,o=e.maxRotation;let i,a,s,l=r;if(!this._isVisible()||!e.display||r>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const c=this._getLabelSizes(),u=c.widest.width,h=c.highest.height,f=yt(this.chart.width-u,0,this.maxWidth);i=t.offset?this.maxWidth/n:f/(n-1),u+6>i&&(i=f/(n-(t.offset?.5:1)),a=this.maxHeight-ir(t.grid)-e.padding-ar(t.title,this.chart.options.font),s=Math.sqrt(u*u+h*h),l=Math.min(Math.asin(yt((c.highest.height+6)/i,-1,1)),Math.asin(yt(a/s,-1,1))-Math.asin(yt(h/s,-1,1)))*(180/nt),l=Math.max(r,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){$(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){$(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:r,grid:o}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=ar(r,e.options.font);if(a?(t.width=this.maxWidth,t.height=ir(o)+i):(t.height=this.maxHeight,t.width=ir(o)+i),n.display&&this.ticks.length){const{first:e,last:r,widest:o,highest:i}=this._getLabelSizes(),s=2*n.padding,l=pt(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const e=n.mirror?0:u*o.width+c*i.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*o.width+u*i.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,r,u,c)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,r){const{ticks:{align:o,padding:i},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,h=0;s?l?(u=r*t.width,h=n*e.height):(u=n*t.height,h=r*e.width):"start"===o?h=e.width:"end"===o?u=t.width:"inner"!==o&&(u=t.width/2,h=e.width/2),this.paddingLeft=Math.max((u-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((h-c+i)*this.width/(this.width-c),0)}else{let n=e.height/2,r=t.height/2;"start"===o?(n=0,r=t.height):"end"===o&&(n=e.height,r=0),this.paddingTop=n+i,this.paddingBottom=r+i}}_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(){$(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)I(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=rr(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:r,_longestTextCache:o}=this,i=[],a=[],s=Math.floor(e/nr(e,n));let l,c,u,h,f,d,p,m,g,y,v,b=0,x=0;for(l=0;l<e;l+=s){if(h=t[l].label,f=this._resolveTickFontOptions(l),r.font=d=f.string,p=o[d]=o[d]||{data:{},gc:[]},m=f.lineHeight,g=y=0,I(h)||N(h)){if(N(h))for(c=0,u=h.length;c<u;++c)v=h[c],I(v)||N(v)||(g=Kt(r,p.data,p.gc,g,v),y+=m)}else g=Kt(r,p.data,p.gc,g,h),y=m;i.push(g),a.push(y),b=Math.max(g,b),x=Math.max(y,x)}!function(t,e){H(t,(t=>{const n=t.gc,r=n.length/2;let o;if(r>e){for(o=0;o<r;++o)delete t.data[n[o]];n.splice(0,r)}}))}(o,e);const w=i.indexOf(b),k=a.indexOf(x),S=t=>({width:i[t]||0,height:a[t]||0});return{first:S(0),last:S(e-1),widest:S(w),highest:S(k),widths:i,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return yt(this._alignToPixels?Qt(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return me(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=me(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=pt(this.labelRotation),n=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),o=this._getLabelSizes(),i=t.autoSkipPadding||0,a=o?o.widest.width+i:0,s=o?o.highest.height+i:0;return this.isHorizontal()?s*n>a*r?a/n:s/r:s*r<a*n?s/n:a/r}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,r=this.options,{grid:o,position:i,border:a}=r,s=o.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),u=ir(o),h=[],f=a.setContext(this.getContext()),d=f.display?f.width:0,p=d/2,m=function(t){return Qt(n,t,d)};let g,y,v,b,x,w,k,S,O,_,E,C;if("top"===i)g=m(this.bottom),w=this.bottom-u,S=g-p,_=m(t.top)+p,C=t.bottom;else if("bottom"===i)g=m(this.top),_=t.top,C=m(t.bottom)-p,w=g+p,S=this.top+u;else if("left"===i)g=m(this.right),x=this.right-u,k=g-p,O=m(t.left)+p,E=t.right;else if("right"===i)g=m(this.left),O=t.left,E=m(t.right)-p,x=g+p,k=this.left+u;else if("x"===e){if("center"===i)g=m((t.top+t.bottom)/2+.5);else if(z(i)){const t=Object.keys(i)[0],e=i[t];g=m(this.chart.scales[t].getPixelForValue(e))}_=t.top,C=t.bottom,w=g+p,S=w+u}else if("y"===e){if("center"===i)g=m((t.left+t.right)/2);else if(z(i)){const t=Object.keys(i)[0],e=i[t];g=m(this.chart.scales[t].getPixelForValue(e))}x=g-p,k=x-u,O=t.left,E=t.right}const A=B(r.ticks.maxTicksLimit,c),j=Math.max(1,Math.ceil(c/A));for(y=0;y<c;y+=j){const t=this.getContext(y),e=o.setContext(t),r=a.setContext(t),i=e.lineWidth,c=e.color,u=r.dash||[],f=r.dashOffset,d=e.tickWidth,p=e.tickColor,m=e.tickBorderDash||[],g=e.tickBorderDashOffset;v=or(this,y,s),void 0!==v&&(b=Qt(n,v,i),l?x=k=O=E=b:w=S=_=C=b,h.push({tx1:x,ty1:w,tx2:k,ty2:S,x1:O,y1:_,x2:E,y2:C,width:i,color:c,borderDash:u,borderDashOffset:f,tickWidth:d,tickColor:p,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=c,this._borderValue=g,h}_computeLabelItems(t){const e=this.axis,n=this.options,{position:r,ticks:o}=n,i=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=o,h=ir(n.grid),f=h+c,d=u?-c:f,p=-pt(this.labelRotation),m=[];let g,y,v,b,x,w,k,S,O,_,E,C,A="middle";if("top"===r)w=this.bottom-d,k=this._getXAxisLabelAlignment();else if("bottom"===r)w=this.top+d,k=this._getXAxisLabelAlignment();else if("left"===r){const t=this._getYAxisLabelAlignment(h);k=t.textAlign,x=t.x}else if("right"===r){const t=this._getYAxisLabelAlignment(h);k=t.textAlign,x=t.x}else if("x"===e){if("center"===r)w=(t.top+t.bottom)/2+f;else if(z(r)){const t=Object.keys(r)[0],e=r[t];w=this.chart.scales[t].getPixelForValue(e)+f}k=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===r)x=(t.left+t.right)/2-f;else if(z(r)){const t=Object.keys(r)[0],e=r[t];x=this.chart.scales[t].getPixelForValue(e)}k=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===s?A="top":"end"===s&&(A="bottom"));const j=this._getLabelSizes();for(g=0,y=a.length;g<y;++g){v=a[g],b=v.label;const t=o.setContext(this.getContext(g));S=this.getPixelForTick(g)+o.labelOffset,O=this._resolveTickFontOptions(g),_=O.lineHeight,E=N(b)?b.length:1;const e=E/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let h,f=k;if(i?(x=S,"inner"===k&&(f=g===y-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),C="top"===r?"near"===l||0!==p?-E*_+_/2:"center"===l?-j.highest.height/2-e*_+_:-j.highest.height+_/2:"near"===l||0!==p?_/2:"center"===l?j.highest.height/2-e*_:j.highest.height-E*_,u&&(C*=-1),0===p||t.showLabelBackdrop||(x+=_/2*Math.sin(p))):(w=S,C=(1-E)*_/2),t.showLabelBackdrop){const e=fe(t.backdropPadding),n=j.heights[g],r=j.widths[g];let o=C-e.top,i=0-e.left;switch(A){case"middle":o-=n/2;break;case"bottom":o-=n}switch(k){case"center":i-=r/2;break;case"right":i-=r;break;case"inner":g===y-1?i-=r:g>0&&(i-=r/2)}h={left:i,top:o,width:r+e.width,height:n+e.height,color:t.backdropColor}}m.push({label:b,font:O,textOffset:C,options:{rotation:p,color:n,strokeColor:s,strokeWidth:c,textAlign:f,textBaseline:A,translation:[x,w],backdrop:h}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-pt(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:r,padding:o}}=this.options,i=t+o,a=this._getLabelSizes().widest.width;let s,l;return"left"===e?r?(l=this.right+o,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===e?r?(l=this.left+o,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:r,width:o,height:i}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,r,o,i),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,i;const a=(t,e,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,i=r.length;o<i;++o){const t=r[o];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:r}}=this,o=n.setContext(this.getContext()),i=n.display?o.width:0;if(!i)return;const a=r.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,u,h;this.isHorizontal()?(l=Qt(t,this.left,i)-i/2,c=Qt(t,this.right,a)+a/2,u=h=s):(u=Qt(t,this.top,i)-i/2,h=Qt(t,this.bottom,a)+a/2,l=c=s),e.save(),e.lineWidth=o.width,e.strokeStyle=o.color,e.beginPath(),e.moveTo(l,u),e.lineTo(c,h),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&Jt(e,n);const r=this.getLabelItems(t);for(const t of r){const n=t.options,r=t.font;re(e,t.label,0,t.textOffset,r,n)}n&&te(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:r}}=this;if(!n.display)return;const o=de(n.font),i=fe(n.padding),a=n.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||z(e)?(s+=i.bottom,N(n.text)&&(s+=o.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:l,titleY:c,maxWidth:u,rotation:h}=function(t,e,n,r){const{top:o,left:i,bottom:a,right:s,chart:l}=t,{chartArea:c,scales:u}=l;let h,f,d,p=0;const m=a-o,g=s-i;if(t.isHorizontal()){if(f=Ct(r,i,s),z(n)){const t=Object.keys(n)[0],r=n[t];d=u[t].getPixelForValue(r)+m-e}else d="center"===n?(c.bottom+c.top)/2+m-e:er(t,n,e);h=s-i}else{if(z(n)){const t=Object.keys(n)[0],r=n[t];f=u[t].getPixelForValue(r)-g+e}else f="center"===n?(c.left+c.right)/2-g+e:er(t,n,e);d=Ct(r,a,o),p="left"===n?-at:at}return{titleX:f,titleY:d,maxWidth:h,rotation:p}}(this,s,e,a);re(t,n.text,0,0,o,{color:n.color,maxWidth:u,rotation:h,textAlign:sr(a,e,r),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=B(t.grid&&t.grid.z,-1),r=B(t.border&&t.border.z,0);return this._isVisible()&&this.draw===lr.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let o,i;for(o=0,i=e.length;o<i;++o){const i=e[o];i[n]!==this.id||t&&i.type!==t||r.push(i)}return r}_resolveTickFontOptions(t){return de(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class cr{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const r=this.items,o=t.id,i=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in r||(r[o]=t,function(t,e,n){const r=K(Object.create(null),[n?Ut.get(n):{},Ut.get(e),t.defaults]);Ut.set(e,r),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const r=n.split("."),o=r.pop(),i=[t].concat(r).join("."),a=e[n].split("."),s=a.pop(),l=a.join(".");Ut.route(i,o,l,s)}))}(e,t.defaultRoutes),t.descriptors&&Ut.describe(e,t.descriptors)}(t,i,n),this.override&&Ut.override(t.id,t.overrides)),i}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,r=this.scope;n in e&&delete e[n],r&&n in Ut[r]&&(delete Ut[r][n],this.override&&delete $t[n])}}class ur{constructor(){this.controllers=new cr(ln,"datasets",!0),this.elements=new cr(Jn,"elements"),this.plugins=new cr(Object,"plugins"),this.scales=new cr(lr,"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,e,n){[...e].forEach((e=>{const r=n||this._getRegistryForType(e);n||r.isForType(e)||r===this.plugins&&e.id?this._exec(t,r,e):H(e,(e=>{const r=n||this._getRegistryForType(e);this._exec(t,r,e)}))}))}_exec(t,e,n){const r=X(t);$(n["before"+r],[],n),e[t](n),$(n["after"+r],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const r=e.get(t);if(void 0===r)throw new Error('"'+t+'" is not a registered '+n+".");return r}}var hr=new ur;class fr{constructor(){this._init=[]}notify(t,e,n,r){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=r?this._descriptors(t).filter(r):this._descriptors(t),i=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),i}_notify(t,e,n,r){r=r||{};for(const o of t){const t=o.plugin;if(!1===$(t[n],[e,r,o.options],t)&&r.cancelable)return!1}return!0}invalidate(){I(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,r=B(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],r=Object.keys(hr.plugins.items);for(let t=0;t<r.length;t++)n.push(hr.getPlugin(r[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const r=o[t];-1===n.indexOf(r)&&(n.push(r),e[r.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==r||e?function(t,{plugins:e,localIds:n},r,o){const i=[],a=t.getContext();for(const s of e){const e=s.id,l=dr(r[e],o);null!==l&&i.push({plugin:s,options:pr(t.config,{plugin:s,local:n[e]},l,a)})}return i}(t,o,r,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,r=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(r(e,n),t,"stop"),this._notify(r(n,e),t,"start")}}function dr(t,e){return e||!1!==t?!0===t?{}:t:null}function pr(t,{plugin:e,local:n},r,o){const i=t.pluginScopeKeys(e),a=t.getOptionScopes(r,i);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function mr(t,e){const n=Ut.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function gr(t){if("x"===t||"y"===t||"r"===t)return t}function yr(t,...e){if(gr(t))return t;for(const r of e){const e=r.axis||("top"===(n=r.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.length>1&&gr(t[0].toLowerCase());if(e)return e}var n;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function vr(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function br(t){const e=t.options||(t.options={});e.plugins=B(e.plugins,{}),e.scales=function(t,e){const n=$t[t.type]||{scales:{}},r=e.scales||{},o=mr(t.type,e),i=Object.create(null);return Object.keys(r).forEach((e=>{const a=r[e];if(!z(a))return console.error(`Invalid scale configuration for scale: ${e}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const s=yr(e,a,function(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(n.length)return vr(t,"x",n[0])||vr(t,"y",n[0])}return{}}(e,t),Ut.scales[a.type]),l=function(t,e){return t===e?"_index_":"_value_"}(s,o),c=n.scales||{};i[e]=Q(Object.create(null),[{axis:s},a,c[s],c[l]])})),t.data.datasets.forEach((n=>{const o=n.type||t.type,a=n.indexAxis||mr(o,e),s=($t[o]||{}).scales||{};Object.keys(s).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,a),o=n[e+"AxisID"]||e;i[o]=i[o]||Object.create(null),Q(i[o],[{axis:e},r[o],s[t]])}))})),Object.keys(i).forEach((t=>{const e=i[t];Q(e,[Ut.scales[e.type],Ut.scale])})),i}(t,e)}function xr(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const wr=new Map,kr=new Set;function Sr(t,e){let n=wr.get(t);return n||(n=e(),wr.set(t,n),kr.add(n)),n}const Or=(t,e,n)=>{const r=Z(e,n);void 0!==r&&t.add(r)};class _r{constructor(t){this._config=function(t){return(t=t||{}).data=xr(t.data),br(t),t}(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=xr(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(),br(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Sr(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Sr(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Sr(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Sr(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let r=n.get(t);return r&&!e||(r=new Map,n.set(t,r)),r}getOptionScopes(t,e,n){const{options:r,type:o}=this,i=this._cachedScopes(t,n),a=i.get(e);if(a)return a;const s=new Set;e.forEach((e=>{t&&(s.add(t),e.forEach((e=>Or(s,t,e)))),e.forEach((t=>Or(s,r,t))),e.forEach((t=>Or(s,$t[o]||{},t))),e.forEach((t=>Or(s,Ut,t))),e.forEach((t=>Or(s,Ht,t)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),kr.has(e)&&i.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,$t[e]||{},Ut.datasets[e]||{},{type:e},Ut,Ht]}resolveNamedOptions(t,e,n,r=[""]){const o={$shared:!0},{resolver:i,subPrefixes:a}=Er(this._resolverCache,t,r);let s=i;(function(t,e){const{isScriptable:n,isIndexable:r}=ve(t);for(const o of e){const e=n(o),i=r(o),a=(i||e)&&t[o];if(e&&(tt(a)||Cr(a))||i&&N(a))return!0}return!1})(i,e)&&(o.$shared=!1,s=ye(i,n=tt(n)?n():n,this.createResolver(t,n,a)));for(const t of e)o[t]=s[t];return o}createResolver(t,e,n=[""],r){const{resolver:o}=Er(this._resolverCache,t,n);return z(e)?ye(o,e,void 0,r):o}}function Er(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const o=n.join();let i=r.get(o);return i||(i={resolver:ge(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},r.set(o,i)),i}const Cr=t=>z(t)&&Object.getOwnPropertyNames(t).some((e=>tt(t[e]))),Ar=["top","bottom","left","right","chartArea"];function jr(t,e){return"top"===t||"bottom"===t||-1===Ar.indexOf(t)&&"x"===e}function Pr(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function Mr(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),$(n&&n.onComplete,[t],e)}function Rr(t){const e=t.chart,n=e.options.animation;$(n&&n.onProgress,[t],e)}function Tr(t){return je()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Lr={},Ir=t=>{const e=Tr(t);return Object.values(Lr).filter((t=>t.canvas===e)).pop()};function Nr(t,e,n){const r=Object.keys(t);for(const o of r){const r=+o;if(r>=e){const i=t[o];delete t[o],(n>0||r>e)&&(t[r+n]=i)}}}function zr(t,e,n){return t.options.clip?t[n]:e[n]}class Dr{static defaults=Ut;static instances=Lr;static overrides=$t;static registry=hr;static version="4.4.3";static getChart=Ir;static register(...t){hr.add(...t),Fr()}static unregister(...t){hr.remove(...t),Fr()}constructor(t,e){const n=this.config=new _r(e),r=Tr(t),o=Ir(r);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 i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!je()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?zn:Xn}(r)),this.platform.updateConfig(n);const a=this.platform.acquireContext(r,i.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=L(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=i,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 fr,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}((t=>this.update(t)),i.resizeDelay||0),this._dataChanges=[],Lr[this.id]=this,a&&s?(Ve.listen(this,"complete",Mr),Ve.listen(this,"progress",Rr),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:r,_aspectRatio:o}=this;return I(t)?e&&o?o:r?n/r: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 hr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():De(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Gt(this.canvas,this.ctx),this}stop(){return Ve.stop(this),this}resize(t,e){Ve.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,r=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(r,t,e,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,De(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),$(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){H(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,r=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const n=e[t],r=yr(t,n),o="r"===r,i="x"===r;return{options:n,dposition:o?"chartArea":i?"bottom":"left",dtype:o?"radialLinear":i?"category":"linear"}})))),H(o,(e=>{const o=e.options,i=o.id,a=yr(i,o),s=B(o.type,e.dtype);void 0!==o.position&&jr(o.position,a)===jr(e.dposition)||(o.position=e.dposition),r[i]=!0;let l=null;i in n&&n[i].type===s?l=n[i]:(l=new(hr.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(o,t)})),H(r,((t,e)=>{t||delete n[e]})),H(n,(t=>{In.configure(this,t,t.options),In.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(Pr("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=e.length;n<r;n++){const r=e[n];let o=this.getDatasetMeta(n);const i=r.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=i,o.indexAxis=r.indexAxis||mr(i,this.options),o.order=r.order||0,o.index=n,o.label=""+r.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=hr.getController(i),{datasetElementType:r,dataElementType:a}=Ut.datasets[i];Object.assign(e,{dataElementType:hr.getElement(a),datasetElementType:r&&hr.getElement(r)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){H(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!r&&-1===o.indexOf(e);e.buildOrUpdateElements(n),i=Math.max(+e.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),r||H(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Pr("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){H(this.scales,(t=>{In.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);et(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:o}of e)Nr(t,r,"_removeElements"===n?-o:o)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),r=n(0);for(let t=1;t<e;t++)if(!et(r,n(t)))return;return Array.from(r).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;In.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],H(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,tt(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),r={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(e),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Ve.has(this)?this.attached&&!Ve.running(this)&&Ve.start(this):(this.draw(),Mr({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let r,o;for(r=0,o=e.length;r<o;++r){const o=e[r];t&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,r=!n.disabled,o=function(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:zr(n,e,"left"),right:zr(n,e,"right"),top:zr(r,e,"top"),bottom:zr(r,e,"bottom")}:e}(t,this.chartArea),i={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(r&&Jt(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),r&&te(e),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return Xt(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,r){const o=Sn.modes[e];return"function"==typeof o?o(this,t,n,r):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let r=n.filter((t=>t&&t._dataset===e)).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=me(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const r=n?"show":"hide",o=this.getDatasetMeta(t),i=o.controller._resolveAnimations(void 0,r);J(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),i.update(o,{visible:n}),this.update((e=>e.datasetIndex===t?r:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Ve.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Gt(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Lr[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,e=this.platform,n=(n,r)=>{e.addEventListener(this,n,r),t[n]=r},r=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};H(this.options.events,(t=>n(t,r)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,r)=>{e.addEventListener(this,n,r),t[n]=r},r=(n,r)=>{t[n]&&(e.removeEventListener(this,n,r),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let i;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",o),n("detach",i)};i=()=>{this.attached=!1,r("resize",o),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():i()}unbindEvents(){H(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},H(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const r=n?"set":"remove";let o,i,a,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){i=t[a];const e=i&&this.getDatasetMeta(i.datasetIndex).controller;e&&e[r+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!W(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,n){const r=this.options.hover,o=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),i=o(e,t),a=n?t:o(t,e);i.length&&this.updateHoverStyle(i,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},r=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:r=[],options:o}=this,i=e,a=this._getActiveElements(t,r,n,i),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,r){return n&&"mouseout"!==t.type?r?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,$(o.onHover,[t,a,this],this),s&&$(o.onClick,[t,a,this],this));const c=!W(a,r);return(c||e)&&(this._active=a,this._updateHoverStyles(a,r,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,r){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,r)}}function Fr(){return H(Dr.instances,(t=>t._plugins.invalidate()))}function Br(t,e){const{x:n,y:r,base:o,width:i,height:a}=t.getProps(["x","y","base","width","height"],e);let s,l,c,u,h;return t.horizontal?(h=a/2,s=Math.min(n,o),l=Math.max(n,o),c=r-h,u=r+h):(h=i/2,s=n-h,l=n+h,c=Math.min(r,o),u=Math.max(r,o)),{left:s,top:c,right:l,bottom:u}}function $r(t,e,n,r){return t?0:yt(e,n,r)}function Hr(t,e,n,r){const o=null===e,i=null===n,a=t&&!(o&&i)&&Br(t,r);return a&&(o||vt(e,a.left,a.right))&&(i||vt(n,a.top,a.bottom))}function Wr(t,e){t.rect(e.x,e.y,e.w,e.h)}function qr(t,e,n={}){const r=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,i=(t.x+t.w!==n.x+n.w?e:0)-r,a=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+r,y:t.y+o,w:t.w+i,h:t.h+a,radius:t.radius}}class Vr extends Jn{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:r}}=this,{inner:o,outer:i}=function(t){const e=Br(t),n=e.right-e.left,r=e.bottom-e.top,o=function(t,e,n){const r=t.options.borderWidth,o=t.borderSkipped,i=ue(r);return{t:$r(o.top,i.top,0,n),r:$r(o.right,i.right,0,e),b:$r(o.bottom,i.bottom,0,n),l:$r(o.left,i.left,0,e)}}(t,n/2,r/2),i=function(t,e,n){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,i=he(o),a=Math.min(e,n),s=t.borderSkipped,l=r||z(o);return{topLeft:$r(!l||s.top||s.left,i.topLeft,0,a),topRight:$r(!l||s.top||s.right,i.topRight,0,a),bottomLeft:$r(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:$r(!l||s.bottom||s.right,i.bottomRight,0,a)}}(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:i},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}(this),a=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?oe:Wr;var s;t.save(),i.w===o.w&&i.h===o.h||(t.beginPath(),a(t,qr(i,e,o)),t.clip(),a(t,qr(o,-e,i)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,qr(o,e)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,e,n){return Hr(this,t,e,n)}inXRange(t,e){return Hr(this,t,null,e)}inYRange(t,e){return Hr(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:r,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+r)/2:e,y:o?n:(n+r)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}const Ur=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}};class Kr extends Jn{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,e,n){this.maxWidth=t,this.maxHeight=e,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 e=$(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,r=de(n.font),o=r.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=Ur(n,o);let l,c;e.font=r.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(i,o,a,s)+10):(c=this.maxHeight,l=this._fitCols(i,r,a,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,r){const{ctx:o,maxWidth:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=r+a;let u=t;o.textAlign="left",o.textBaseline="middle";let h=-1,f=-c;return this.legendItems.forEach(((t,d)=>{const p=n+e/2+o.measureText(t.text).width;(0===d||l[l.length-1]+p+2*a>i)&&(u+=c,l[l.length-(d>0?0:1)]=0,f+=c,h++),s[d]={left:0,top:f,row:h,width:p,height:r},l[l.length-1]+=p+a})),u}_fitCols(t,e,n,r){const{ctx:o,maxHeight:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=i-t;let u=a,h=0,f=0,d=0,p=0;return this.legendItems.forEach(((t,i)=>{const{itemWidth:m,itemHeight:g}=function(t,e,n,r,o){const i=function(t,e,n,r){let o=t.text;return o&&"string"!=typeof o&&(o=o.reduce(((t,e)=>t.length>e.length?t:e))),e+n.size/2+r.measureText(o).width}(r,t,e,n),a=function(t,e,n){let r=t;return"string"!=typeof e.text&&(r=Qr(e,n)),r}(o,r,e.lineHeight);return{itemWidth:i,itemHeight:a}}(n,e,o,t,r);i>0&&f+g+2*a>c&&(u+=h+a,l.push({width:h,height:f}),d+=h+a,p++,h=f=0),s[i]={left:d,top:f,col:p,width:m,height:g},h=Math.max(h,m),f+=g+a})),u+=h,l.push({width:h,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:r},rtl:o}}=this,i=$e(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=Ct(n,this.left+r,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,a=Ct(n,this.left+r,this.right-this.lineWidths[o])),s.top+=this.top+t+r,s.left=i.leftForLtr(i.x(a),s.width),a+=s.width+r}else{let o=0,a=Ct(n,this.top+t+r,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,a=Ct(n,this.top+t+r,this.bottom-this.columnSizes[o].height)),s.top=a,s.left+=this.left+r,s.left=i.leftForLtr(i.x(s.left),s.width),a+=s.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Jt(t,this),this._draw(),te(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:r}=this,{align:o,labels:i}=t,a=Ut.color,s=$e(t.rtl,this.left,this.width),l=de(i.font),{padding:c}=i,u=l.size,h=u/2;let f;this.drawTitle(),r.textAlign=s.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:d,boxHeight:p,itemHeight:m}=Ur(i,u),g=this.isHorizontal(),y=this._computeTitleHeight();f=g?{x:Ct(o,this.left+c,this.right-n[0]),y:this.top+c+y,line:0}:{x:this.left+c,y:Ct(o,this.top+y+c,this.bottom-e[0].height),line:0},He(this.ctx,t.textDirection);const v=m+c;this.legendItems.forEach(((b,x)=>{r.strokeStyle=b.fontColor,r.fillStyle=b.fontColor;const w=r.measureText(b.text).width,k=s.textAlign(b.textAlign||(b.textAlign=i.textAlign)),S=d+h+w;let O=f.x,_=f.y;if(s.setWidth(this.width),g?x>0&&O+S+c>this.right&&(_=f.y+=v,f.line++,O=f.x=Ct(o,this.left+c,this.right-n[f.line])):x>0&&_+v>this.bottom&&(O=f.x=O+e[f.line].width+c,f.line++,_=f.y=Ct(o,this.top+y+c,this.bottom-e[f.line].height)),function(t,e,n){if(isNaN(d)||d<=0||isNaN(p)||p<0)return;r.save();const o=B(n.lineWidth,1);if(r.fillStyle=B(n.fillStyle,a),r.lineCap=B(n.lineCap,"butt"),r.lineDashOffset=B(n.lineDashOffset,0),r.lineJoin=B(n.lineJoin,"miter"),r.lineWidth=o,r.strokeStyle=B(n.strokeStyle,a),r.setLineDash(B(n.lineDash,[])),i.usePointStyle){const a={radius:p*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(t,d/2);Zt(r,a,l,e+h,i.pointStyleWidth&&d)}else{const i=e+Math.max((u-p)/2,0),a=s.leftForLtr(t,d),l=he(n.borderRadius);r.beginPath(),Object.values(l).some((t=>0!==t))?oe(r,{x:a,y:i,w:d,h:p,radius:l}):r.rect(a,i,d,p),r.fill(),0!==o&&r.stroke()}r.restore()}(s.x(O),_,b),O=((t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e)(k,O+d+h,g?O+S:this.right,t.rtl),function(t,e,n){re(r,n.text,t,e+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(O),_,b),g)f.x+=S+c;else if("string"!=typeof b.text){const t=l.lineHeight;f.y+=Qr(b,t)+c}else f.y+=v})),We(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=de(e.font),r=fe(e.padding);if(!e.display)return;const o=$e(t.rtl,this.left,this.width),i=this.ctx,a=e.position,s=n.size/2,l=r.top+s;let c,u=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+l,u=Ct(t.align,u,this.right-h);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+Ct(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const f=Ct(a,u,u+h);i.textAlign=o.textAlign(Et(a)),i.textBaseline="middle",i.strokeStyle=e.color,i.fillStyle=e.color,i.font=n.string,re(i,e.text,f,c,n)}_computeTitleHeight(){const t=this.options.title,e=de(t.font),n=fe(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,r,o;if(vt(t,this.left,this.right)&&vt(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(r=o[n],vt(t,r.left,r.left+r.width)&&vt(e,r.top,r.top+r.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const i=this._hoveredItem,a=(o=n,null!==(r=i)&&null!==o&&r.datasetIndex===o.datasetIndex&&r.index===o.index);i&&!a&&$(e.onLeave,[t,i,this],this),this._hoveredItem=n,n&&!a&&$(e.onHover,[t,n,this],this)}else n&&$(e.onClick,[t,n,this],this);var r,o}}function Qr(t,e){return e*(t.text?t.text.length:0)}var Gr={id:"legend",_element:Kr,start(t,e,n){const r=t.legend=new Kr({ctx:t.ctx,options:n,chart:t});In.configure(t,r,n),In.addBox(t,r)},stop(t){In.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;In.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),e.hidden=!0):(o.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(n?0:void 0),c=fe(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:i,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:r||l.pointStyle,rotation:l.rotation,textAlign:o||l.textAlign,borderRadius:a&&(s||l.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};new WeakMap;const Yr={average(t){if(!t.length)return!1;let e,n,r=new Set,o=0,i=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();r.add(t.x),o+=t.y,++i}}return{x:[...r].reduce(((t,e)=>t+e))/r.size,y:o/i}},nearest(t,e){if(!t.length)return!1;let n,r,o,i=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(n=0,r=t.length;n<r;++n){const r=t[n].element;if(r&&r.hasValue()){const t=(l=e,c=r.getCenterPoint(),Math.sqrt(Math.pow(c.x-l.x,2)+Math.pow(c.y-l.y,2)));t<s&&(s=t,o=r)}}var l,c;if(o){const t=o.tooltipPosition();i=t.x,a=t.y}return{x:i,y:a}}};function Zr(t,e){return e&&(N(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Xr(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Jr(t,e){const{element:n,datasetIndex:r,index:o}=e,i=t.getDatasetMeta(r).controller,{label:a,value:s}=i.getLabelAndValue(o);return{chart:t,label:a,parsed:i.getParsed(o),raw:t.data.datasets[r].data[o],formattedValue:s,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function to(t,e){const n=t.chart.ctx,{body:r,footer:o,title:i}=t,{boxWidth:a,boxHeight:s}=e,l=de(e.bodyFont),c=de(e.titleFont),u=de(e.footerFont),h=i.length,f=o.length,d=r.length,p=fe(e.padding);let m=p.height,g=0,y=r.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);y+=t.beforeBody.length+t.afterBody.length,h&&(m+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),y&&(m+=d*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(y-d)*l.lineHeight+(y-1)*e.bodySpacing),f&&(m+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let v=0;const b=function(t){g=Math.max(g,n.measureText(t).width+v)};return n.save(),n.font=c.string,H(t.title,b),n.font=l.string,H(t.beforeBody.concat(t.afterBody),b),v=e.displayColors?a+2+e.boxPadding:0,H(r,(t=>{H(t.before,b),H(t.lines,b),H(t.after,b)})),v=0,n.font=u.string,H(t.footer,b),n.restore(),g+=p.width,{width:g,height:m}}function eo(t,e,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:s,right:l}}=t;let c="center";return"center"===r?c=o<=(s+l)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),function(t,e,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;return"left"===t&&o+i+a>e.width||"right"===t&&o-i-a<0||void 0}(c,t,e,n)&&(c="center"),c}function no(t,e,n){const r=n.yAlign||e.yAlign||function(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||eo(t,e,n,r),yAlign:r}}function ro(t,e,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=t,{xAlign:s,yAlign:l}=n,c=o+i,{topLeft:u,topRight:h,bottomLeft:f,bottomRight:d}=he(a);let p=function(t,e){let{x:n,width:r}=t;return"right"===e?n-=r:"center"===e&&(n-=r/2),n}(e,s);const m=function(t,e,n){let{y:r,height:o}=t;return"top"===e?r+=n:r-="bottom"===e?o+n:o/2,r}(e,l,c);return"center"===l?"left"===s?p+=c:"right"===s&&(p-=c):"left"===s?p-=Math.max(u,f)+o:"right"===s&&(p+=Math.max(h,d)+o),{x:yt(p,0,r.width-e.width),y:yt(m,0,r.height-e.height)}}function oo(t,e,n){const r=fe(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function io(t){return Zr([],Xr(t))}function ao(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const so={beforeTitle:T,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:T,beforeBody:T,beforeLabel:T,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return I(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:T,afterBody:T,beforeFooter:T,footer:T,afterFooter:T};function lo(t,e,n,r){const o=t[e].call(n,r);return void 0===o?so[e].call(n,r):o}class co extends Jn{static positioners=Yr;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 e=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&e.options.animation&&n.animations,o=new Ge(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(this,me(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(t,e){const{callbacks:n}=e,r=lo(n,"beforeTitle",this,t),o=lo(n,"title",this,t),i=lo(n,"afterTitle",this,t);let a=[];return a=Zr(a,Xr(r)),a=Zr(a,Xr(o)),a=Zr(a,Xr(i)),a}getBeforeBody(t,e){return io(lo(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:n}=e,r=[];return H(t,(t=>{const e={before:[],lines:[],after:[]},o=ao(n,t);Zr(e.before,Xr(lo(o,"beforeLabel",this,t))),Zr(e.lines,lo(o,"label",this,t)),Zr(e.after,Xr(lo(o,"afterLabel",this,t))),r.push(e)})),r}getAfterBody(t,e){return io(lo(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:n}=e,r=lo(n,"beforeFooter",this,t),o=lo(n,"footer",this,t),i=lo(n,"afterFooter",this,t);let a=[];return a=Zr(a,Xr(r)),a=Zr(a,Xr(o)),a=Zr(a,Xr(i)),a}_createItems(t){const e=this._active,n=this.chart.data,r=[],o=[],i=[];let a,s,l=[];for(a=0,s=e.length;a<s;++a)l.push(Jr(this.chart,e[a]));return t.filter&&(l=l.filter(((e,r,o)=>t.filter(e,r,o,n)))),t.itemSort&&(l=l.sort(((e,r)=>t.itemSort(e,r,n)))),H(l,(e=>{const n=ao(t.callbacks,e);r.push(lo(n,"labelColor",this,e)),o.push(lo(n,"labelPointStyle",this,e)),i.push(lo(n,"labelTextColor",this,e))})),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=i,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),r=this._active;let o,i=[];if(r.length){const t=Yr[n.position].call(this,r,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const e=this._size=to(this,n),a=Object.assign({},t,e),s=no(this.chart,n,a),l=ro(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=i,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,r){const o=this.getCaretPosition(t,n,r);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:r,yAlign:o}=this,{caretSize:i,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=he(a),{x:h,y:f}=t,{width:d,height:p}=e;let m,g,y,v,b,x;return"center"===o?(b=f+p/2,"left"===r?(m=h,g=m-i,v=b+i,x=b-i):(m=h+d,g=m+i,v=b-i,x=b+i),y=m):(g="left"===r?h+Math.max(s,c)+i:"right"===r?h+d-Math.max(l,u)-i:this.caretX,"top"===o?(v=f,b=v-i,m=g-i,y=g+i):(v=f+p,b=v+i,m=g+i,y=g-i),x=v),{x1:m,x2:g,x3:y,y1:v,y2:b,y3:x}}drawTitle(t,e,n){const r=this.title,o=r.length;let i,a,s;if(o){const l=$e(n.rtl,this.x,this.width);for(t.x=oo(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",i=de(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=i.string,s=0;s<o;++s)e.fillText(r[s],l.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+a,s+1===o&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,r,o){const i=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=o,c=de(o.bodyFont),u=oo(this,"left",o),h=r.x(u),f=s<c.lineHeight?(c.lineHeight-s)/2:0,d=e.y+f;if(o.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=r.leftForLtr(h,l)+l/2,c=d+s/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Yt(t,e,n,c),t.strokeStyle=i.borderColor,t.fillStyle=i.backgroundColor,Yt(t,e,n,c)}else{t.lineWidth=z(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,t.strokeStyle=i.borderColor,t.setLineDash(i.borderDash||[]),t.lineDashOffset=i.borderDashOffset||0;const e=r.leftForLtr(h,l),n=r.leftForLtr(r.xPlus(h,1),l-2),a=he(i.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,oe(t,{x:e,y:d,w:l,h:s,radius:a}),t.fill(),t.stroke(),t.fillStyle=i.backgroundColor,t.beginPath(),oe(t,{x:n,y:d+1,w:l-2,h:s-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,d,l,s),t.strokeRect(e,d,l,s),t.fillStyle=i.backgroundColor,t.fillRect(n,d+1,l-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:r}=this,{bodySpacing:o,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=de(n.bodyFont);let h=u.lineHeight,f=0;const d=$e(n.rtl,this.x,this.width),p=function(n){e.fillText(n,d.x(t.x+f),t.y+h/2),t.y+=h+o},m=d.textAlign(i);let g,y,v,b,x,w,k;for(e.textAlign=i,e.textBaseline="middle",e.font=u.string,t.x=oo(this,m,n),e.fillStyle=n.bodyColor,H(this.beforeBody,p),f=a&&"right"!==m?"center"===i?l/2+c:l+2+c:0,b=0,w=r.length;b<w;++b){for(g=r[b],y=this.labelTextColors[b],e.fillStyle=y,H(g.before,p),v=g.lines,a&&v.length&&(this._drawColorBox(e,t,b,d,n),h=Math.max(u.lineHeight,s)),x=0,k=v.length;x<k;++x)p(v[x]),h=u.lineHeight;H(g.after,p)}f=0,h=u.lineHeight,H(this.afterBody,p),t.y-=o}drawFooter(t,e,n){const r=this.footer,o=r.length;let i,a;if(o){const s=$e(n.rtl,this.x,this.width);for(t.x=oo(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",i=de(n.footerFont),e.fillStyle=n.footerColor,e.font=i.string,a=0;a<o;++a)e.fillText(r[a],s.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+n.footerSpacing}}drawBackground(t,e,n,r){const{xAlign:o,yAlign:i}=this,{x:a,y:s}=t,{width:l,height:c}=n,{topLeft:u,topRight:h,bottomLeft:f,bottomRight:d}=he(r.cornerRadius);e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(a+u,s),"top"===i&&this.drawCaret(t,e,n,r),e.lineTo(a+l-h,s),e.quadraticCurveTo(a+l,s,a+l,s+h),"center"===i&&"right"===o&&this.drawCaret(t,e,n,r),e.lineTo(a+l,s+c-d),e.quadraticCurveTo(a+l,s+c,a+l-d,s+c),"bottom"===i&&this.drawCaret(t,e,n,r),e.lineTo(a+f,s+c),e.quadraticCurveTo(a,s+c,a,s+c-f),"center"===i&&"left"===o&&this.drawCaret(t,e,n,r),e.lineTo(a,s+u),e.quadraticCurveTo(a,s,a+u,s),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,r=n&&n.x,o=n&&n.y;if(r||o){const n=Yr[t.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=to(this,t),a=Object.assign({},n,this._size),s=no(e,t,a),l=ro(t,a,s,e);r._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=fe(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,r,e),He(t,e.textDirection),o.y+=i.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),We(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,r=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),o=!W(n,r),i=this._positionChanged(r,e);(o||i)&&(this._active=r,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],i=this._getActiveElements(t,o,e,n),a=this._positionChanged(i,t),s=e||!W(i,o)||a;return s&&(this._active=i,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,r){const o=this.options;if("mouseout"===t.type)return[];if(!r)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const i=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&i.reverse(),i}_positionChanged(t,e){const{caretX:n,caretY:r,options:o}=this,i=Yr[o.position].call(this,t,e);return!1!==i&&(n!==i.x||r!==i.y)}}var uo={id:"tooltip",_element:co,positioners:Yr,afterInit(t,e,n){n&&(t.tooltip=new co({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.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:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.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:so},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function ho(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class fo extends lr{static id="category";static defaults={ticks:{callback:ho}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:r}of e)t[n]===r&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(I(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:yt(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:function(t,e,n,r){const o=t.indexOf(e);return-1===o?((t,e,n,r)=>("string"==typeof e?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,r):o!==t.lastIndexOf(e)?n:o}(n,t,B(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,r=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)r.push({value:n});return r}getLabelForValue(t){return ho.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function po(t,e,{horizontal:n,minRotation:r}){const o=pt(r),i=(n?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/i,a)}class mo extends lr{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,e){return I(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this;const i=t=>r=e?r:t,a=t=>o=n?o:t;if(t){const t=ut(r),e=ut(o);t<0&&e<0?a(0):t>0&&e>0&&i(0)}if(r===o){let e=0===o?1:Math.abs(.05*o);a(o+e),t||i(r-e)}this.min=r,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:r}=t;return r?(e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=function(t,e){const n=[],{bounds:r,step:o,min:i,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:h}=t,f=o||1,d=c-1,{min:p,max:m}=e,g=!I(i),y=!I(a),v=!I(l),b=(m-p)/(u+1);let x,w,k,S,O=ft((m-p)/d/f)*f;if(O<1e-14&&!g&&!y)return[{value:p},{value:m}];S=Math.ceil(m/O)-Math.floor(p/O),S>d&&(O=ft(S*O/d/f)*f),I(s)||(x=Math.pow(10,s),O=Math.ceil(O*x)/x),"ticks"===r?(w=Math.floor(p/O)*O,k=Math.ceil(m/O)*O):(w=p,k=m),g&&y&&o&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((a-i)/o,O/1e3)?(S=Math.round(Math.min((a-i)/O,c)),O=(a-i)/S,w=i,k=a):v?(w=g?i:w,k=y?a:k,S=l-1,O=(k-w)/S):(S=(k-w)/O,S=ht(S,Math.round(S),O/1e3)?Math.round(S):Math.ceil(S));const _=Math.max(mt(O),mt(w));x=Math.pow(10,I(s)?_:s),w=Math.round(w*x)/x,k=Math.round(k*x)/x;let E=0;for(g&&(h&&w!==i?(n.push({value:i}),w<i&&E++,ht(Math.round((w+E*O)*x)/x,i,po(i,b,t))&&E++):w<i&&E++);E<S;++E){const t=Math.round((w+E*O)*x)/x;if(y&&t>a)break;n.push({value:t})}return y&&h&&k!==a?n.length&&ht(n[n.length-1].value,a,po(a,b,t))?n[n.length-1].value=a:n.push({value:a}):y&&k!==a||n.push({value:k}),n}({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&function(t,e,n){let r,o,i;for(r=0,o=t.length;r<o;r++)i=t[r][n],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}(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 e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const r=(n-e)/Math.max(t.length-1,1)/2;e-=r,n+=r}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return Dt(t,this.chart.options.locale,this.options.ticks.format)}}class go extends mo{static id="linear";static defaults={ticks:{callback:Bt.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=D(t)?t:0,this.max=D(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=pt(this.options.ticks.minRotation),r=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/r))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Bt.formatters.logarithmic,Bt.formatters.numeric},6841:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>Xt});var r=n(1594);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}const i=["children","options"];var a,s,l;(l=a||(a={})).blockQuote="0",l.breakLine="1",l.breakThematic="2",l.codeBlock="3",l.codeFenced="4",l.codeInline="5",l.footnote="6",l.footnoteReference="7",l.gfmTask="8",l.heading="9",l.headingSetext="10",l.htmlBlock="11",l.htmlComment="12",l.htmlSelfClosing="13",l.image="14",l.link="15",l.linkAngleBraceStyleDetector="16",l.linkBareUrlDetector="17",l.linkMailtoDetector="18",l.newlineCoalescer="19",l.orderedList="20",l.paragraph="21",l.ref="22",l.refImage="23",l.refLink="24",l.table="25",l.tableSeparator="26",l.text="27",l.textBolded="28",l.textEmphasized="29",l.textEscaped="30",l.textMarked="31",l.textStrikethroughed="32",l.unorderedList="33",function(t){t[t.MAX=0]="MAX",t[t.HIGH=1]="HIGH",t[t.MED=2]="MED",t[t.LOW=3]="LOW",t[t.MIN=4]="MIN"}(s||(s={}));const c=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(((t,e)=>(t[e.toLowerCase()]=e,t)),{for:"htmlFor"}),u={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},h=["style","script"],f=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,d=/mailto:/i,p=/\n{2,}$/,m=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,g=/^ *> ?/gm,y=/^ {2,}\n/,v=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,b=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,x=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,w=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,k=/^(?:\n *)*\n/,S=/\r\n?/g,O=/^\[\^([^\]]+)](:.*)\n/,_=/^\[\^([^\]]+)]/,E=/\f/g,C=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,A=/^\s*?\[(x|\s)\]/,j=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,P=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,M=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,R=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,T=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,L=/^<!--[\s\S]*?(?:-->)/,I=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,N=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,z=/^\{.*\}$/,D=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,F=/^<([^ >]+@[^ >]+)>/,B=/^<([^ >]+:\/[^ >]+)>/,$=/-([a-z])?/gi,H=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,W=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,q=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,V=/^\[([^\]]*)\] ?\[([^\]]*)\]/,U=/(\[|\])/g,K=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Q=/\t/g,G=/^ *\| */,Y=/(^ *\||\| *$)/g,Z=/ *$/,X=/^ *:-+: *$/,J=/^ *:-+ *$/,tt=/^ *-+: *$/,et=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,nt=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,rt=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,ot=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,it=/^\\([^0-9A-Za-z\s])/,at=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,st=/^\n+/,lt=/^([ \t]*)/,ct=/\\([^\\])/g,ut=/ *\n+$/,ht=/(?:^|\n)( *)$/,ft="(?:\\d+\\.)",dt="(?:[*+-])";function pt(t){return"( *)("+(1===t?ft:dt)+") +"}const mt=pt(1),gt=pt(2);function yt(t){return new RegExp("^"+(1===t?mt:gt))}const vt=yt(1),bt=yt(2);function xt(t){return new RegExp("^"+(1===t?mt:gt)+"[^\\n]*(?:\\n(?!\\1"+(1===t?ft:dt)+" )[^\\n]*)*(\\n|$)","gm")}const wt=xt(1),kt=xt(2);function St(t){const e=1===t?ft:dt;return new RegExp("^( *)("+e+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+e+" (?!"+e+" ))\\n*|\\s*\\n*$)")}const Ot=St(1),_t=St(2);function Et(t,e){const n=1===e,r=n?Ot:_t,o=n?wt:kt,i=n?vt:bt;return{match(t,e,n){const o=ht.exec(n);return o&&(e.list||!e.inline&&!e.simple)?r.exec(t=o[1]+t):null},order:1,parse(t,e,r){const a=n?+t[2]:void 0,s=t[0].replace(p,"\n").match(o);let l=!1;return{items:s.map((function(t,n){const o=i.exec(t)[0].length,a=new RegExp("^ {1,"+o+"}","gm"),c=t.replace(a,"").replace(i,""),u=n===s.length-1,h=-1!==c.indexOf("\n\n")||u&&l;l=h;const f=r.inline,d=r.list;let p;r.list=!0,h?(r.inline=!1,p=c.replace(ut,"\n\n")):(r.inline=!0,p=c.replace(ut,""));const m=e(p,r);return r.inline=f,r.list=d,m})),ordered:n,start:a}},render:(e,n,r)=>t(e.ordered?"ol":"ul",{key:r.key,start:"20"===e.type?e.start:void 0},e.items.map((function(e,o){return t("li",{key:o},n(e,r))})))}}const Ct=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,At=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,jt=[m,b,x,j,M,P,L,H,wt,Ot,kt,_t],Pt=[...jt,/^[^\n]+(?:  \n|\n{2,})/,R,N];function Mt(t){return t.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Rt(t){return tt.test(t)?"right":X.test(t)?"center":J.test(t)?"left":null}function Tt(t,e,n){const r=n.inTable;n.inTable=!0;const o=e(t.trim(),n);n.inTable=r;let i=[[]];return o.forEach((function(t,e){"26"===t.type?0!==e&&e!==o.length-1&&i.push([]):("27"!==t.type||null!=o[e+1]&&"26"!==o[e+1].type||(t.text=t.text.replace(Z,"")),i[i.length-1].push(t))})),i}function Lt(t,e,n){n.inline=!0;const r=Tt(t[1],e,n),o=t[2].replace(Y,"").split("|").map(Rt),i=function(t,e,n){return t.trim().split("\n").map((function(t){return Tt(t,e,n)}))}(t[3],e,n);return n.inline=!1,{align:o,cells:i,header:r,type:"25"}}function It(t,e){return null==t.align[e]?{}:{textAlign:t.align[e]}}function Nt(t){return function(e,n){return n.inline?t.exec(e):null}}function zt(t){return function(e,n){return n.inline||n.simple?t.exec(e):null}}function Dt(t){return function(e,n){return n.inline||n.simple?null:t.exec(e)}}function Ft(t){return function(e){return t.exec(e)}}function Bt(t,e,n){if(e.inline||e.simple)return null;if(n&&!n.endsWith("\n"))return null;let r="";t.split("\n").every((t=>!jt.some((e=>e.test(t)))&&(r+=t+"\n",t.trim())));const o=r.trimEnd();return""==o?null:[r,o]}function $t(t){try{if(decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(t){return null}return t}function Ht(t){return t.replace(ct,"$1")}function Wt(t,e,n){const r=n.inline||!1,o=n.simple||!1;n.inline=!0,n.simple=!0;const i=t(e,n);return n.inline=r,n.simple=o,i}function qt(t,e,n){const r=n.inline||!1,o=n.simple||!1;n.inline=!1,n.simple=!0;const i=t(e,n);return n.inline=r,n.simple=o,i}function Vt(t,e,n){return n.inline=!1,t(e,n)}const Ut=(t,e,n)=>({children:Wt(e,t[1],n)});function Kt(){return{}}function Qt(){return null}function Gt(...t){return t.filter(Boolean).join(" ")}function Yt(t,e,n){let r=t;const o=e.split(".");for(;o.length&&(r=r[o[0]],void 0!==r);)o.shift();return r||n}function Zt(t,e={}){e.overrides=e.overrides||{},e.slugify=e.slugify||Mt,e.namedCodesToUnicode=e.namedCodesToUnicode?o({},u,e.namedCodesToUnicode):u;const n=e.createElement||r.createElement;function i(t,r,...i){const a=Yt(e.overrides,`${t}.props`,{});return n(function(t,e){const n=Yt(e,t);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:Yt(e,`${t}.component`,t):t}(t,e.overrides),o({},r,a,{className:Gt(null==r?void 0:r.className,a.className)||void 0}),...i)}function a(t){t=t.replace(C,"");let n=!1;e.forceInline?n=!0:e.forceBlock||(n=!1===K.test(t));const o=X(Z(n?t:`${t.trimEnd().replace(st,"")}\n\n`,{inline:n}));for(;"string"==typeof o[o.length-1]&&!o[o.length-1].trim();)o.pop();if(null===e.wrapper)return o;const a=e.wrapper||(n?"span":"div");let s;if(o.length>1||e.forceWrapper)s=o;else{if(1===o.length)return s=o[0],"string"==typeof s?i("span",{key:"outer"},s):s;s=null}return r.createElement(a,{key:"outer"},s)}function s(t){const e=t.match(f);return e?e.reduce((function(t,e,n){const o=e.indexOf("=");if(-1!==o){const i=function(t){return-1!==t.indexOf("-")&&null===t.match(I)&&(t=t.replace($,(function(t,e){return e.toUpperCase()}))),t}(e.slice(0,o)).trim(),s=function(t){const e=t[0];return('"'===e||"'"===e)&&t.length>=2&&t[t.length-1]===e?t.slice(1,-1):t}(e.slice(o+1).trim()),l=c[i]||i,u=t[l]=function(t,e){return"style"===t?e.split(/;\s?/).reduce((function(t,e){const n=e.slice(0,e.indexOf(":"));return t[n.replace(/(-[a-z])/g,(t=>t[1].toUpperCase()))]=e.slice(n.length+1).trim(),t}),{}):"href"===t||"src"===t?$t(e):(e.match(z)&&(e=e.slice(1,e.length-1)),"true"===e||"false"!==e&&e)}(i,s);"string"==typeof u&&(R.test(u)||N.test(u))&&(t[l]=r.cloneElement(a(u.trim()),{key:n}))}else"style"!==e&&(t[c[e]||e]=!0);return t}),{}):null}const l=[],p={},Y={0:{match:Dt(m),order:1,parse:(t,e,n)=>({children:e(t[0].replace(g,""),n)}),render:(t,e,n)=>i("blockquote",{key:n.key},e(t.children,n))},1:{match:Ft(y),order:1,parse:Kt,render:(t,e,n)=>i("br",{key:n.key})},2:{match:Dt(v),order:1,parse:Kt,render:(t,e,n)=>i("hr",{key:n.key})},3:{match:Dt(x),order:0,parse:t=>({lang:void 0,text:t[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(t,e,n)=>i("pre",{key:n.key},i("code",o({},t.attrs,{className:t.lang?`lang-${t.lang}`:""}),t.text))},4:{match:Dt(b),order:0,parse:t=>({attrs:s(t[3]||""),lang:t[2]||void 0,text:t[4],type:"3"})},5:{match:zt(w),order:3,parse:t=>({text:t[2]}),render:(t,e,n)=>i("code",{key:n.key},t.text)},6:{match:Dt(O),order:0,parse:t=>(l.push({footnote:t[2],identifier:t[1]}),{}),render:Qt},7:{match:Nt(_),order:1,parse:t=>({target:`#${e.slugify(t[1])}`,text:t[1]}),render:(t,e,n)=>i("a",{key:n.key,href:$t(t.target)},i("sup",{key:n.key},t.text))},8:{match:Nt(A),order:1,parse:t=>({completed:"x"===t[1].toLowerCase()}),render:(t,e,n)=>i("input",{checked:t.completed,key:n.key,readOnly:!0,type:"checkbox"})},9:{match:Dt(e.enforceAtxHeadings?P:j),order:1,parse:(t,n,r)=>({children:Wt(n,t[2],r),id:e.slugify(t[2]),level:t[1].length}),render:(t,e,n)=>i(`h${t.level}`,{id:t.id,key:n.key},e(t.children,n))},10:{match:Dt(M),order:0,parse:(t,e,n)=>({children:Wt(e,t[1],n),level:"="===t[2]?1:2,type:"9"})},11:{match:Ft(R),order:1,parse(t,e,n){const[,r]=t[3].match(lt),o=new RegExp(`^${r}`,"gm"),i=t[3].replace(o,""),a=(l=i,Pt.some((t=>t.test(l)))?Vt:Wt);var l;const c=t[1].toLowerCase(),u=-1!==h.indexOf(c),f={attrs:s(t[2]),noInnerParse:u,tag:u?c:t[1]};return n.inAnchor=n.inAnchor||"a"===c,u?f.text=t[3]:f.children=a(e,i,n),n.inAnchor=!1,f},render:(t,e,n)=>i(t.tag,o({key:n.key},t.attrs),t.text||e(t.children,n))},13:{match:Ft(N),order:1,parse:t=>({attrs:s(t[2]||""),tag:t[1]}),render:(t,e,n)=>i(t.tag,o({},t.attrs,{key:n.key}))},12:{match:Ft(L),order:1,parse:()=>({}),render:Qt},14:{match:zt(At),order:1,parse:t=>({alt:t[1],target:Ht(t[2]),title:t[3]}),render:(t,e,n)=>i("img",{key:n.key,alt:t.alt||void 0,title:t.title||void 0,src:$t(t.target)})},15:{match:Nt(Ct),order:3,parse:(t,e,n)=>({children:qt(e,t[1],n),target:Ht(t[2]),title:t[3]}),render:(t,e,n)=>i("a",{key:n.key,href:$t(t.target),title:t.title},e(t.children,n))},16:{match:Nt(B),order:0,parse:t=>({children:[{text:t[1],type:"27"}],target:t[1],type:"15"})},17:{match:(t,e)=>e.inAnchor?null:Nt(D)(t,e),order:0,parse:t=>({children:[{text:t[1],type:"27"}],target:t[1],title:void 0,type:"15"})},18:{match:Nt(F),order:0,parse(t){let e=t[1],n=t[1];return d.test(n)||(n="mailto:"+n),{children:[{text:e.replace("mailto:",""),type:"27"}],target:n,type:"15"}}},20:Et(i,1),33:Et(i,2),19:{match:Dt(k),order:3,parse:Kt,render:()=>"\n"},21:{match:Bt,order:3,parse:Ut,render:(t,e,n)=>i("p",{key:n.key},e(t.children,n))},22:{match:Nt(W),order:0,parse:t=>(p[t[1]]={target:t[2],title:t[4]},{}),render:Qt},23:{match:zt(q),order:0,parse:t=>({alt:t[1]||void 0,ref:t[2]}),render:(t,e,n)=>i("img",{key:n.key,alt:t.alt,src:$t(p[t.ref].target),title:p[t.ref].title})},24:{match:Nt(V),order:0,parse:(t,e,n)=>({children:e(t[1],n),fallbackChildren:e(t[0].replace(U,"\\$1"),n),ref:t[2]}),render:(t,e,n)=>p[t.ref]?i("a",{key:n.key,href:$t(p[t.ref].target),title:p[t.ref].title},e(t.children,n)):i("span",{key:n.key},e(t.fallbackChildren,n))},25:{match:Dt(H),order:1,parse:Lt,render:(t,e,n)=>i("table",{key:n.key},i("thead",null,i("tr",null,t.header.map((function(r,o){return i("th",{key:o,style:It(t,o)},e(r,n))})))),i("tbody",null,t.cells.map((function(r,o){return i("tr",{key:o},r.map((function(r,o){return i("td",{key:o,style:It(t,o)},e(r,n))})))}))))},26:{match:function(t,e){return e.inTable?(e.inline=!0,G.exec(t)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:Ft(at),order:4,parse:t=>({text:t[0].replace(T,((t,n)=>e.namedCodesToUnicode[n]?e.namedCodesToUnicode[n]:t))}),render:t=>t.text},28:{match:zt(et),order:2,parse:(t,e,n)=>({children:e(t[2],n)}),render:(t,e,n)=>i("strong",{key:n.key},e(t.children,n))},29:{match:zt(nt),order:3,parse:(t,e,n)=>({children:e(t[2],n)}),render:(t,e,n)=>i("em",{key:n.key},e(t.children,n))},30:{match:zt(it),order:1,parse:t=>({text:t[1],type:"27"})},31:{match:zt(rt),order:3,parse:Ut,render:(t,e,n)=>i("mark",{key:n.key},e(t.children,n))},32:{match:zt(ot),order:3,parse:Ut,render:(t,e,n)=>i("del",{key:n.key},e(t.children,n))}};!0===e.disableParsingRawHTML&&(delete Y[11],delete Y[13]);const Z=function(t){let e=Object.keys(t);function n(r,o){let i=[],a="";for(;r;){let s=0;for(;s<e.length;){const l=e[s],c=t[l],u=c.match(r,o,a);if(u){const t=u[0];r=r.substring(t.length);const e=c.parse(u,n,o);null==e.type&&(e.type=l),i.push(e),a=t;break}s++}}return i}return e.sort((function(e,n){let r=t[e].order,o=t[n].order;return r!==o?r-o:1})),function(t,e){return n(function(t){return t.replace(S,"\n").replace(E,"").replace(Q,"    ")}(t),e)}}(Y),X=(J=function(t,e){return function(n,r,o){const i=t[n.type].render;return e?e((()=>i(n,r,o)),n,r,o):i(n,r,o)}}(Y,e.renderRule),function t(e,n={}){if(Array.isArray(e)){const r=n.key,o=[];let i=!1;for(let r=0;r<e.length;r++){n.key=r;const a=t(e[r],n),s="string"==typeof a;s&&i?o[o.length-1]+=a:null!==a&&o.push(a),i=s}return n.key=r,o}return J(e,t,n)});var J;const tt=a(t);return l.length?i("div",null,tt,i("footer",{key:"footer"},l.map((function(t){return i("div",{id:e.slugify(t.identifier),key:t.identifier},t.identifier,X(Z(t.footnote,{inline:!0})))})))):tt}const Xt=t=>{let{children:e,options:n}=t,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e.indexOf(n=i[r])>=0||(o[n]=t[n]);return o}(t,i);return r.cloneElement(Zt(e,n),o)}},4731:(t,e,n)=>{"use strict";n.d(e,{yP:()=>d});var r=n(1594),o=n(2262);const i="label";function a(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function s(t,e){t.labels=e}function l(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i;const r=[];t.datasets=e.map((e=>{const o=t.datasets.find((t=>t[n]===e[n]));return o&&e.data&&!r.includes(o)?(r.push(o),Object.assign(o,e),o):{...e}}))}function c(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const n={labels:[],datasets:[]};return s(n,t.labels),l(n,t.datasets,e),n}function u(t,e){const{height:n=150,width:i=300,redraw:u=!1,datasetIdKey:h,type:f,data:d,options:p,plugins:m=[],fallbackContent:g,updateMode:y,...v}=t,b=(0,r.useRef)(null),x=(0,r.useRef)(),w=()=>{b.current&&(x.current=new o.t1(b.current,{type:f,data:c(d,h),options:p&&{...p},plugins:m}),a(e,x.current))},k=()=>{a(e,null),x.current&&(x.current.destroy(),x.current=null)};return(0,r.useEffect)((()=>{!u&&x.current&&p&&function(t,e){const n=t.options;n&&e&&Object.assign(n,e)}(x.current,p)}),[u,p]),(0,r.useEffect)((()=>{!u&&x.current&&s(x.current.config.data,d.labels)}),[u,d.labels]),(0,r.useEffect)((()=>{!u&&x.current&&d.datasets&&l(x.current.config.data,d.datasets,h)}),[u,d.datasets]),(0,r.useEffect)((()=>{x.current&&(u?(k(),setTimeout(w)):x.current.update(y))}),[u,p,d.labels,d.datasets,y]),(0,r.useEffect)((()=>{x.current&&(k(),setTimeout(w))}),[f]),(0,r.useEffect)((()=>(w(),()=>k())),[]),r.createElement("canvas",Object.assign({ref:b,role:"img",height:n,width:i},v),g)}const h=(0,r.forwardRef)(u);function f(t,e){return o.t1.register(e),(0,r.forwardRef)(((e,n)=>r.createElement(h,Object.assign({},e,{ref:n,type:t}))))}const d=f("bar",o.A6)},7612:(t,e,n)=>{"use strict";n.d(e,{jI:()=>M});var r=n(1594);function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e.indexOf(n=i[r])>=0||(o[n]=t[n]);return o}function a(t){var e=(0,r.useRef)(t),n=(0,r.useRef)((function(t){e.current&&e.current(t)}));return e.current=t,n.current}var s=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),t>n?n:t<e?e:t},l=function(t){return"touches"in t},c=function(t){return t&&t.ownerDocument.defaultView||self},u=function(t,e,n){var r=t.getBoundingClientRect(),o=l(e)?function(t,e){for(var n=0;n<t.length;n++)if(t[n].identifier===e)return t[n];return t[0]}(e.touches,n):e;return{left:s((o.pageX-(r.left+c(t).pageXOffset))/r.width),top:s((o.pageY-(r.top+c(t).pageYOffset))/r.height)}},h=function(t){!l(t)&&t.preventDefault()},f=r.memo((function(t){var e=t.onMove,n=t.onKey,s=i(t,["onMove","onKey"]),f=(0,r.useRef)(null),d=a(e),p=a(n),m=(0,r.useRef)(null),g=(0,r.useRef)(!1),y=(0,r.useMemo)((function(){var t=function(t){h(t),(l(t)?t.touches.length>0:t.buttons>0)&&f.current?d(u(f.current,t,m.current)):n(!1)},e=function(){return n(!1)};function n(n){var r=g.current,o=c(f.current),i=n?o.addEventListener:o.removeEventListener;i(r?"touchmove":"mousemove",t),i(r?"touchend":"mouseup",e)}return[function(t){var e=t.nativeEvent,r=f.current;if(r&&(h(e),!function(t,e){return e&&!l(t)}(e,g.current)&&r)){if(l(e)){g.current=!0;var o=e.changedTouches||[];o.length&&(m.current=o[0].identifier)}r.focus(),d(u(r,e,m.current)),n(!0)}},function(t){var e=t.which||t.keyCode;e<37||e>40||(t.preventDefault(),p({left:39===e?.05:37===e?-.05:0,top:40===e?.05:38===e?-.05:0}))},n]}),[p,d]),v=y[0],b=y[1],x=y[2];return(0,r.useEffect)((function(){return x}),[x]),r.createElement("div",o({},s,{onTouchStart:v,onMouseDown:v,className:"react-colorful__interactive",ref:f,onKeyDown:b,tabIndex:0,role:"slider"}))})),d=function(t){return t.filter(Boolean).join(" ")},p=function(t){var e=t.color,n=t.left,o=t.top,i=void 0===o?.5:o,a=d(["react-colorful__pointer",t.className]);return r.createElement("div",{className:a,style:{top:100*i+"%",left:100*n+"%"}},r.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},m=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=Math.pow(10,e)),Math.round(n*t)/n},g=(Math.PI,function(t){return k(y(t))}),y=function(t){return"#"===t[0]&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:4===t.length?m(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:8===t.length?m(parseInt(t.substring(6,8),16)/255,2):1}},v=function(t){var e=function(t){var e=t.s,n=t.v,r=t.a,o=(200-e)*n/100;return{h:m(t.h),s:m(o>0&&o<200?e*n/100/(o<=100?o:200-o)*100:0),l:m(o/2),a:m(r,2)}}(t);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},b=function(t){var e=t.h,n=t.s,r=t.v,o=t.a;e=e/360*6,n/=100,r/=100;var i=Math.floor(e),a=r*(1-n),s=r*(1-(e-i)*n),l=r*(1-(1-e+i)*n),c=i%6;return{r:m(255*[r,s,a,a,l,r][c]),g:m(255*[l,r,r,s,a,a][c]),b:m(255*[a,a,l,r,r,s][c]),a:m(o,2)}},x=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},w=function(t){var e=t.r,n=t.g,r=t.b,o=t.a,i=o<1?x(m(255*o)):"";return"#"+x(e)+x(n)+x(r)+i},k=function(t){var e=t.r,n=t.g,r=t.b,o=t.a,i=Math.max(e,n,r),a=i-Math.min(e,n,r),s=a?i===e?(n-r)/a:i===n?2+(r-e)/a:4+(e-n)/a:0;return{h:m(60*(s<0?s+6:s)),s:m(i?a/i*100:0),v:m(i/255*100),a:o}},S=r.memo((function(t){var e=t.hue,n=t.onChange,o=d(["react-colorful__hue",t.className]);return r.createElement("div",{className:o},r.createElement(f,{onMove:function(t){n({h:360*t.left})},onKey:function(t){n({h:s(e+360*t.left,0,360)})},"aria-label":"Hue","aria-valuenow":m(e),"aria-valuemax":"360","aria-valuemin":"0"},r.createElement(p,{className:"react-colorful__hue-pointer",left:e/360,color:v({h:e,s:100,v:100,a:1})})))})),O=r.memo((function(t){var e=t.hsva,n=t.onChange,o={backgroundColor:v({h:e.h,s:100,v:100,a:1})};return r.createElement("div",{className:"react-colorful__saturation",style:o},r.createElement(f,{onMove:function(t){n({s:100*t.left,v:100-100*t.top})},onKey:function(t){n({s:s(e.s+100*t.left,0,100),v:s(e.v-100*t.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+m(e.s)+"%, Brightness "+m(e.v)+"%"},r.createElement(p,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:v(e)})))})),_=function(t,e){if(t===e)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0};function E(t,e,n){var o=a(n),i=(0,r.useState)((function(){return t.toHsva(e)})),s=i[0],l=i[1],c=(0,r.useRef)({color:e,hsva:s});(0,r.useEffect)((function(){if(!t.equal(e,c.current.color)){var n=t.toHsva(e);c.current={hsva:n,color:e},l(n)}}),[e,t]),(0,r.useEffect)((function(){var e;_(s,c.current.hsva)||t.equal(e=t.fromHsva(s),c.current.color)||(c.current={hsva:s,color:e},o(e))}),[s,t,o]);var u=(0,r.useCallback)((function(t){l((function(e){return Object.assign({},e,t)}))}),[]);return[s,u]}var C="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,A=new Map,j=function(t){var e,a=t.className,s=t.colorModel,l=t.color,c=void 0===l?s.defaultColor:l,u=t.onChange,h=i(t,["className","colorModel","color","onChange"]),f=(0,r.useRef)(null);e=f,C((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!A.has(t)){var r=t.createElement("style");r.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',A.set(t,r);var o=n.nc;o&&r.setAttribute("nonce",o),t.head.appendChild(r)}}),[]);var p=E(s,c,u),m=p[0],g=p[1],y=d(["react-colorful",a]);return r.createElement("div",o({},h,{ref:f,className:y}),r.createElement(O,{hsva:m,onChange:g}),r.createElement(S,{hue:m.h,onChange:g,className:"react-colorful__last-control"}))},P={defaultColor:"000",toHsva:g,fromHsva:function(t){return function(t){return w(b(t))}({h:t.h,s:t.s,v:t.v,a:1})},equal:function(t,e){return t.toLowerCase()===e.toLowerCase()||_(y(t),y(e))}},M=function(t){return r.createElement(j,o({},t,{colorModel:P}))}},2902:(t,e,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{A:()=>s});var o={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,smartBackspace:!0,shuffle:!1,backDelay:700,fadeOut:!1,fadeOutClass:"typed-fade-out",fadeOutDelay:500,loop:!1,loopCount:1/0,showCursor:!0,cursorChar:"|",autoInsertCss:!0,attr:null,bindInputFocusEvents:!1,contentType:"html",onBegin:function(t){},onComplete:function(t){},preStringTyped:function(t,e){},onStringTyped:function(t,e){},onLastStringBackspaced:function(t){},onTypingPaused:function(t,e){},onTypingResumed:function(t,e){},onReset:function(t){},onStop:function(t,e){},onStart:function(t,e){},onDestroy:function(t){}},i=new(function(){function t(){}var e=t.prototype;return e.load=function(t,e,n){if(t.el="string"==typeof n?document.querySelector(n):n,t.options=r({},o,e),t.isInput="input"===t.el.tagName.toLowerCase(),t.attr=t.options.attr,t.bindInputFocusEvents=t.options.bindInputFocusEvents,t.showCursor=!t.isInput&&t.options.showCursor,t.cursorChar=t.options.cursorChar,t.cursorBlinking=!0,t.elContent=t.attr?t.el.getAttribute(t.attr):t.el.textContent,t.contentType=t.options.contentType,t.typeSpeed=t.options.typeSpeed,t.startDelay=t.options.startDelay,t.backSpeed=t.options.backSpeed,t.smartBackspace=t.options.smartBackspace,t.backDelay=t.options.backDelay,t.fadeOut=t.options.fadeOut,t.fadeOutClass=t.options.fadeOutClass,t.fadeOutDelay=t.options.fadeOutDelay,t.isPaused=!1,t.strings=t.options.strings.map((function(t){return t.trim()})),t.stringsElement="string"==typeof t.options.stringsElement?document.querySelector(t.options.stringsElement):t.options.stringsElement,t.stringsElement){t.strings=[],t.stringsElement.style.cssText="clip: rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;";var i=Array.prototype.slice.apply(t.stringsElement.children),a=i.length;if(a)for(var s=0;s<a;s+=1)t.strings.push(i[s].innerHTML.trim())}for(var l in t.strPos=0,t.currentElContent=this.getCurrentElContent(t),t.currentElContent&&t.currentElContent.length>0&&(t.strPos=t.currentElContent.length-1,t.strings.unshift(t.currentElContent)),t.sequence=[],t.strings)t.sequence[l]=l;t.arrayPos=0,t.stopNum=0,t.loop=t.options.loop,t.loopCount=t.options.loopCount,t.curLoop=0,t.shuffle=t.options.shuffle,t.pause={status:!1,typewrite:!0,curString:"",curStrPos:0},t.typingComplete=!1,t.autoInsertCss=t.options.autoInsertCss,t.autoInsertCss&&(this.appendCursorAnimationCss(t),this.appendFadeOutAnimationCss(t))},e.getCurrentElContent=function(t){return t.attr?t.el.getAttribute(t.attr):t.isInput?t.el.value:"html"===t.contentType?t.el.innerHTML:t.el.textContent},e.appendCursorAnimationCss=function(t){var e="data-typed-js-cursor-css";if(t.showCursor&&!document.querySelector("["+e+"]")){var n=document.createElement("style");n.setAttribute(e,"true"),n.innerHTML="\n        .typed-cursor{\n          opacity: 1;\n        }\n        .typed-cursor.typed-cursor--blink{\n          animation: typedjsBlink 0.7s infinite;\n          -webkit-animation: typedjsBlink 0.7s infinite;\n                  animation: typedjsBlink 0.7s infinite;\n        }\n        @keyframes typedjsBlink{\n          50% { opacity: 0.0; }\n        }\n        @-webkit-keyframes typedjsBlink{\n          0% { opacity: 1; }\n          50% { opacity: 0.0; }\n          100% { opacity: 1; }\n        }\n      ",document.body.appendChild(n)}},e.appendFadeOutAnimationCss=function(t){var e="data-typed-fadeout-js-css";if(t.fadeOut&&!document.querySelector("["+e+"]")){var n=document.createElement("style");n.setAttribute(e,"true"),n.innerHTML="\n        .typed-fade-out{\n          opacity: 0;\n          transition: opacity .25s;\n        }\n        .typed-cursor.typed-cursor--blink.typed-fade-out{\n          -webkit-animation: 0;\n          animation: 0;\n        }\n      ",document.body.appendChild(n)}},t}()),a=new(function(){function t(){}var e=t.prototype;return e.typeHtmlChars=function(t,e,n){if("html"!==n.contentType)return e;var r=t.substring(e).charAt(0);if("<"===r||"&"===r){var o;for(o="<"===r?">":";";t.substring(e+1).charAt(0)!==o&&!(1+ ++e>t.length););e++}return e},e.backSpaceHtmlChars=function(t,e,n){if("html"!==n.contentType)return e;var r=t.substring(e).charAt(0);if(">"===r||";"===r){var o;for(o=">"===r?"<":"&";t.substring(e-1).charAt(0)!==o&&!(--e<0););e--}return e},t}()),s=function(){function t(t,e){i.load(this,e,t),this.begin()}var e=t.prototype;return e.toggle=function(){this.pause.status?this.start():this.stop()},e.stop=function(){this.typingComplete||this.pause.status||(this.toggleBlinking(!0),this.pause.status=!0,this.options.onStop(this.arrayPos,this))},e.start=function(){this.typingComplete||this.pause.status&&(this.pause.status=!1,this.pause.typewrite?this.typewrite(this.pause.curString,this.pause.curStrPos):this.backspace(this.pause.curString,this.pause.curStrPos),this.options.onStart(this.arrayPos,this))},e.destroy=function(){this.reset(!1),this.options.onDestroy(this)},e.reset=function(t){void 0===t&&(t=!0),clearInterval(this.timeout),this.replaceText(""),this.cursor&&this.cursor.parentNode&&(this.cursor.parentNode.removeChild(this.cursor),this.cursor=null),this.strPos=0,this.arrayPos=0,this.curLoop=0,t&&(this.insertCursor(),this.options.onReset(this),this.begin())},e.begin=function(){var t=this;this.options.onBegin(this),this.typingComplete=!1,this.shuffleStringsIfNeeded(this),this.insertCursor(),this.bindInputFocusEvents&&this.bindFocusEvents(),this.timeout=setTimeout((function(){0===t.strPos?t.typewrite(t.strings[t.sequence[t.arrayPos]],t.strPos):t.backspace(t.strings[t.sequence[t.arrayPos]],t.strPos)}),this.startDelay)},e.typewrite=function(t,e){var n=this;this.fadeOut&&this.el.classList.contains(this.fadeOutClass)&&(this.el.classList.remove(this.fadeOutClass),this.cursor&&this.cursor.classList.remove(this.fadeOutClass));var r=this.humanizer(this.typeSpeed),o=1;!0!==this.pause.status?this.timeout=setTimeout((function(){e=a.typeHtmlChars(t,e,n);var r=0,i=t.substring(e);if("^"===i.charAt(0)&&/^\^\d+/.test(i)){var s=1;s+=(i=/\d+/.exec(i)[0]).length,r=parseInt(i),n.temporaryPause=!0,n.options.onTypingPaused(n.arrayPos,n),t=t.substring(0,e)+t.substring(e+s),n.toggleBlinking(!0)}if("`"===i.charAt(0)){for(;"`"!==t.substring(e+o).charAt(0)&&(o++,!(e+o>t.length)););var l=t.substring(0,e),c=t.substring(l.length+1,e+o),u=t.substring(e+o+1);t=l+c+u,o--}n.timeout=setTimeout((function(){n.toggleBlinking(!1),e>=t.length?n.doneTyping(t,e):n.keepTyping(t,e,o),n.temporaryPause&&(n.temporaryPause=!1,n.options.onTypingResumed(n.arrayPos,n))}),r)}),r):this.setPauseStatus(t,e,!0)},e.keepTyping=function(t,e,n){0===e&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this));var r=t.substring(0,e+=n);this.replaceText(r),this.typewrite(t,e)},e.doneTyping=function(t,e){var n=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout((function(){n.backspace(t,e)}),this.backDelay))},e.backspace=function(t,e){var n=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var r=this.humanizer(this.backSpeed);this.timeout=setTimeout((function(){e=a.backSpaceHtmlChars(t,e,n);var r=t.substring(0,e);if(n.replaceText(r),n.smartBackspace){var o=n.strings[n.arrayPos+1];n.stopNum=o&&r===o.substring(0,e)?e:0}e>n.stopNum?(e--,n.backspace(t,e)):e<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.options.onLastStringBackspaced(),n.shuffleStringsIfNeeded(),n.begin()):n.typewrite(n.strings[n.sequence[n.arrayPos]],e))}),r)}else this.setPauseStatus(t,e,!1)},e.complete=function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0},e.setPauseStatus=function(t,e,n){this.pause.typewrite=n,this.pause.curString=t,this.pause.curStrPos=e},e.toggleBlinking=function(t){this.cursor&&(this.pause.status||this.cursorBlinking!==t&&(this.cursorBlinking=t,t?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))},e.humanizer=function(t){return Math.round(Math.random()*t/2)+t},e.shuffleStringsIfNeeded=function(){this.shuffle&&(this.sequence=this.sequence.sort((function(){return Math.random()-.5})))},e.initFadeOut=function(){var t=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout((function(){t.arrayPos++,t.replaceText(""),t.strings.length>t.arrayPos?t.typewrite(t.strings[t.sequence[t.arrayPos]],0):(t.typewrite(t.strings[0],0),t.arrayPos=0)}),this.fadeOutDelay)},e.replaceText=function(t){this.attr?this.el.setAttribute(this.attr,t):this.isInput?this.el.value=t:"html"===this.contentType?this.el.innerHTML=t:this.el.textContent=t},e.bindFocusEvents=function(){var t=this;this.isInput&&(this.el.addEventListener("focus",(function(e){t.stop()})),this.el.addEventListener("blur",(function(e){t.el.value&&0!==t.el.value.length||t.start()})))},e.insertCursor=function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.setAttribute("aria-hidden",!0),this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))},t}()}}]);

Log In ‹ Affy Pharma Pvt Ltd — WordPress

Powered by WordPress

Error: Cookies are blocked due to unexpected output. For help, please see this documentation or try the support forums.

← Go to Affy Pharma Pvt Ltd