(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))d(m);new MutationObserver(m=>{for(const y of m)if(y.type==="childList")for(const S of y.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&d(S)}).observe(document,{childList:!0,subtree:!0});function c(m){const y={};return m.integrity&&(y.integrity=m.integrity),m.referrerPolicy&&(y.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?y.credentials="include":m.crossOrigin==="anonymous"?y.credentials="omit":y.credentials="same-origin",y}function d(m){if(m.ep)return;m.ep=!0;const y=c(m);fetch(m.href,y)}})();/** * @vue/shared v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function cn(a,r){const c=new Set(a.split(","));return d=>c.has(d)}const qt={},Ji=[],Re=()=>{},Kh=()=>!1,Hs=a=>a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&(a.charCodeAt(2)>122||a.charCodeAt(2)<97),hn=a=>a.startsWith("onUpdate:"),ue=Object.assign,dn=(a,r)=>{const c=a.indexOf(r);c>-1&&a.splice(c,1)},Jh=Object.prototype.hasOwnProperty,Ht=(a,r)=>Jh.call(a,r),Ct=Array.isArray,Qi=a=>Xa(a)==="[object Map]",El=a=>Xa(a)==="[object Set]",Qh=a=>Xa(a)==="[object RegExp]",_t=a=>typeof a=="function",ce=a=>typeof a=="string",Vi=a=>typeof a=="symbol",Qt=a=>a!==null&&typeof a=="object",Tl=a=>(Qt(a)||_t(a))&&_t(a.then)&&_t(a.catch),Il=Object.prototype.toString,Xa=a=>Il.call(a),td=a=>Xa(a).slice(8,-1),Ml=a=>Xa(a)==="[object Object]",un=a=>ce(a)&&a!=="NaN"&&a[0]!=="-"&&""+parseInt(a,10)===a,xa=cn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ds=a=>{const r=Object.create(null);return c=>r[c]||(r[c]=a(c))},ed=/-(\w)/g,qe=Ds(a=>a.replace(ed,(r,c)=>c?c.toUpperCase():"")),id=/\B([A-Z])/g,sa=Ds(a=>a.replace(id,"-$1").toLowerCase()),Bs=Ds(a=>a.charAt(0).toUpperCase()+a.slice(1)),nr=Ds(a=>a?`on${Bs(a)}`:""),wi=(a,r)=>!Object.is(a,r),ma=(a,...r)=>{for(let c=0;c{Object.defineProperty(a,r,{configurable:!0,enumerable:!1,writable:d,value:c})},ad=a=>{const r=parseFloat(a);return isNaN(r)?a:r};let io;const zl=()=>io||(io=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ia(a){if(Ct(a)){const r={};for(let c=0;c{if(c){const d=c.split(rd);d.length>1&&(r[d[0].trim()]=d[1].trim())}}),r}function Tt(a){let r="";if(ce(a))r=a;else if(Ct(a))for(let c=0;cce(a)?a:a==null?"":Ct(a)||Qt(a)&&(a.toString===Il||!_t(a.toString))?JSON.stringify(a,Fl,2):String(a),Fl=(a,r)=>r&&r.__v_isRef?Fl(a,r.value):Qi(r)?{[`Map(${r.size})`]:[...r.entries()].reduce((c,[d,m],y)=>(c[or(d,y)+" =>"]=m,c),{})}:El(r)?{[`Set(${r.size})`]:[...r.values()].map(c=>or(c))}:Vi(r)?or(r):Qt(r)&&!Ct(r)&&!Ml(r)?String(r):r,or=(a,r="")=>{var c;return Vi(a)?`Symbol(${(c=a.description)!=null?c:r})`:a};/** * @vue/reactivity v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let He;class hd{constructor(r=!1){this.detached=r,this._active=!0,this.effects=[],this.cleanups=[],this.parent=He,!r&&He&&(this.index=(He.scopes||(He.scopes=[])).push(this)-1)}get active(){return this._active}run(r){if(this._active){const c=He;try{return He=this,r()}finally{He=c}}}on(){He=this}off(){He=this.parent}stop(r){if(this._active){let c,d;for(c=0,d=this.effects.length;c=5)break}}this._dirtyLevel===1&&(this._dirtyLevel=0),Pi()}return this._dirtyLevel>=5}set dirty(r){this._dirtyLevel=r?5:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let r=vi,c=Ni;try{return vi=!0,Ni=this,this._runnings++,ao(this),this.fn()}finally{so(this),this._runnings--,Ni=c,vi=r}}stop(){this.active&&(ao(this),so(this),this.onStop&&this.onStop(),this.active=!1)}}function fd(a){return a.value}function ao(a){a._trackId++,a._depsLength=0}function so(a){if(a.deps.length>a._depsLength){for(let r=a._depsLength;r0){d._dirtyLevel=2;continue}let m;d._dirtyLevel{const c=new Map;return c.cleanup=a,c.computed=r,c},Ls=new WeakMap,Xi=Symbol(""),Er=Symbol("");function Le(a,r,c){if(vi&&Ni){let d=Ls.get(a);d||Ls.set(a,d=new Map);let m=d.get(c);m||d.set(c,m=Dl(()=>d.delete(c))),Yl(Ni,m)}}function si(a,r,c,d,m,y){const S=Ls.get(a);if(!S)return;let P=[];if(r==="clear")P=[...S.values()];else if(c==="length"&&Ct(a)){const I=Number(d);S.forEach((R,F)=>{(F==="length"||!Vi(F)&&F>=I)&&P.push(R)})}else switch(c!==void 0&&P.push(S.get(c)),r){case"add":Ct(a)?un(c)&&P.push(S.get("length")):(P.push(S.get(Xi)),Qi(a)&&P.push(S.get(Er)));break;case"delete":Ct(a)||(P.push(S.get(Xi)),Qi(a)&&P.push(S.get(Er)));break;case"set":Qi(a)&&P.push(S.get(Xi));break}gn();for(const I of P)I&&Hl(I,5);pn()}function gd(a,r){const c=Ls.get(a);return c&&c.get(r)}const pd=cn("__proto__,__v_isRef,__isVue"),Bl=new Set(Object.getOwnPropertyNames(Symbol).filter(a=>a!=="arguments"&&a!=="caller").map(a=>Symbol[a]).filter(Vi)),ro=xd();function xd(){const a={};return["includes","indexOf","lastIndexOf"].forEach(r=>{a[r]=function(...c){const d=Bt(this);for(let y=0,S=this.length;y{a[r]=function(...c){Ci(),gn();const d=Bt(this)[r].apply(this,c);return pn(),Pi(),d}}),a}function md(a){Vi(a)||(a=String(a));const r=Bt(this);return Le(r,"has",a),r.hasOwnProperty(a)}class Wl{constructor(r=!1,c=!1){this._isReadonly=r,this._isShallow=c}get(r,c,d){const m=this._isReadonly,y=this._isShallow;if(c==="__v_isReactive")return!m;if(c==="__v_isReadonly")return m;if(c==="__v_isShallow")return y;if(c==="__v_raw")return d===(m?y?Td:$l:y?jl:Gl).get(r)||Object.getPrototypeOf(r)===Object.getPrototypeOf(d)?r:void 0;const S=Ct(r);if(!m){if(S&&Ht(ro,c))return Reflect.get(ro,c,d);if(c==="hasOwnProperty")return md}const P=Reflect.get(r,c,d);return(Vi(c)?Bl.has(c):pd(c))||(m||Le(r,"get",c),y)?P:ye(P)?S&&un(c)?P:P.value:Qt(P)?m?Ul(P):Ya(P):P}}class Vl extends Wl{constructor(r=!1){super(!1,r)}set(r,c,d,m){let y=r[c];if(!this._isShallow){const I=Ca(y);if(!_s(d)&&!Ca(d)&&(y=Bt(y),d=Bt(d)),!Ct(r)&&ye(y)&&!ye(d))return I?!1:(y.value=d,!0)}const S=Ct(r)&&un(c)?Number(c)a,Ws=a=>Reflect.getPrototypeOf(a);function Za(a,r,c=!1,d=!1){a=a.__v_raw;const m=Bt(a),y=Bt(r);c||(wi(r,y)&&Le(m,"get",r),Le(m,"get",y));const{has:S}=Ws(m),P=d?xn:c?vn:Pa;if(S.call(m,r))return P(a.get(r));if(S.call(m,y))return P(a.get(y));a!==m&&a.get(r)}function Ka(a,r=!1){const c=this.__v_raw,d=Bt(c),m=Bt(a);return r||(wi(a,m)&&Le(d,"has",a),Le(d,"has",m)),a===m?c.has(a):c.has(a)||c.has(m)}function Ja(a,r=!1){return a=a.__v_raw,!r&&Le(Bt(a),"iterate",Xi),Reflect.get(a,"size",a)}function no(a){a=Bt(a);const r=Bt(this);return Ws(r).has.call(r,a)||(r.add(a),si(r,"add",a,a)),this}function oo(a,r){r=Bt(r);const c=Bt(this),{has:d,get:m}=Ws(c);let y=d.call(c,a);y||(a=Bt(a),y=d.call(c,a));const S=m.call(c,a);return c.set(a,r),y?wi(r,S)&&si(c,"set",a,r):si(c,"add",a,r),this}function lo(a){const r=Bt(this),{has:c,get:d}=Ws(r);let m=c.call(r,a);m||(a=Bt(a),m=c.call(r,a)),d&&d.call(r,a);const y=r.delete(a);return m&&si(r,"delete",a,void 0),y}function co(){const a=Bt(this),r=a.size!==0,c=a.clear();return r&&si(a,"clear",void 0,void 0),c}function Qa(a,r){return function(d,m){const y=this,S=y.__v_raw,P=Bt(S),I=r?xn:a?vn:Pa;return!a&&Le(P,"iterate",Xi),S.forEach((R,F)=>d.call(m,I(R),I(F),y))}}function ts(a,r,c){return function(...d){const m=this.__v_raw,y=Bt(m),S=Qi(y),P=a==="entries"||a===Symbol.iterator&&S,I=a==="keys"&&S,R=m[a](...d),F=c?xn:r?vn:Pa;return!r&&Le(y,"iterate",I?Er:Xi),{next(){const{value:Y,done:B}=R.next();return B?{value:Y,done:B}:{value:P?[F(Y[0]),F(Y[1])]:F(Y),done:B}},[Symbol.iterator](){return this}}}}function fi(a){return function(...r){return a==="delete"?!1:a==="clear"?void 0:this}}function kd(){const a={get(y){return Za(this,y)},get size(){return Ja(this)},has:Ka,add:no,set:oo,delete:lo,clear:co,forEach:Qa(!1,!1)},r={get(y){return Za(this,y,!1,!0)},get size(){return Ja(this)},has:Ka,add:no,set:oo,delete:lo,clear:co,forEach:Qa(!1,!0)},c={get(y){return Za(this,y,!0)},get size(){return Ja(this,!0)},has(y){return Ka.call(this,y,!0)},add:fi("add"),set:fi("set"),delete:fi("delete"),clear:fi("clear"),forEach:Qa(!0,!1)},d={get(y){return Za(this,y,!0,!0)},get size(){return Ja(this,!0)},has(y){return Ka.call(this,y,!0)},add:fi("add"),set:fi("set"),delete:fi("delete"),clear:fi("clear"),forEach:Qa(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(y=>{a[y]=ts(y,!1,!1),c[y]=ts(y,!0,!1),r[y]=ts(y,!1,!0),d[y]=ts(y,!0,!0)}),[a,c,r,d]}const[Ad,Sd,Cd,Pd]=kd();function mn(a,r){const c=r?a?Pd:Cd:a?Sd:Ad;return(d,m,y)=>m==="__v_isReactive"?!a:m==="__v_isReadonly"?a:m==="__v_raw"?d:Reflect.get(Ht(c,m)&&m in d?c:d,m,y)}const Ld={get:mn(!1,!1)},_d={get:mn(!1,!0)},Ed={get:mn(!0,!1)};const Gl=new WeakMap,jl=new WeakMap,$l=new WeakMap,Td=new WeakMap;function Id(a){switch(a){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Md(a){return a.__v_skip||!Object.isExtensible(a)?0:Id(td(a))}function Ya(a){return Ca(a)?a:bn(a,!1,vd,Ld,Gl)}function Od(a){return bn(a,!1,wd,_d,jl)}function Ul(a){return bn(a,!0,yd,Ed,$l)}function bn(a,r,c,d,m){if(!Qt(a)||a.__v_raw&&!(r&&a.__v_isReactive))return a;const y=m.get(a);if(y)return y;const S=Md(a);if(S===0)return a;const P=new Proxy(a,S===2?d:c);return m.set(a,P),P}function ba(a){return Ca(a)?ba(a.__v_raw):!!(a&&a.__v_isReactive)}function Ca(a){return!!(a&&a.__v_isReadonly)}function _s(a){return!!(a&&a.__v_isShallow)}function ql(a){return a?!!a.__v_raw:!1}function Bt(a){const r=a&&a.__v_raw;return r?Bt(r):a}function zd(a){return Object.isExtensible(a)&&Ol(a,"__v_skip",!0),a}const Pa=a=>Qt(a)?Ya(a):a,vn=a=>Qt(a)?Ul(a):a;class Zl{constructor(r,c,d,m){this.getter=r,this._setter=c,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new fn(()=>r(this._value),()=>ms(this,this.effect._dirtyLevel===3?3:4)),this.effect.computed=this,this.effect.active=this._cacheable=!m,this.__v_isReadonly=d}get value(){const r=Bt(this);return(!r._cacheable||r.effect.dirty)&&wi(r._value,r._value=r.effect.run())&&ms(r,5),Kl(r),r.effect._dirtyLevel>=2&&ms(r,3),r._value}set value(r){this._setter(r)}get _dirty(){return this.effect.dirty}set _dirty(r){this.effect.dirty=r}}function Rd(a,r,c=!1){let d,m;const y=_t(a);return y?(d=a,m=Re):(d=a.get,m=a.set),new Zl(d,m,y||!m,c)}function Kl(a){var r;vi&&Ni&&(a=Bt(a),Yl(Ni,(r=a.dep)!=null?r:a.dep=Dl(()=>a.dep=void 0,a instanceof Zl?a:void 0)))}function ms(a,r=5,c,d){a=Bt(a);const m=a.dep;m&&Hl(m,r)}function ye(a){return!!(a&&a.__v_isRef===!0)}function we(a){return Fd(a,!1)}function Fd(a,r){return ye(a)?a:new Nd(a,r)}class Nd{constructor(r,c){this.__v_isShallow=c,this.dep=void 0,this.__v_isRef=!0,this._rawValue=c?r:Bt(r),this._value=c?r:Pa(r)}get value(){return Kl(this),this._value}set value(r){const c=this.__v_isShallow||_s(r)||Ca(r);r=c?r:Bt(r),wi(r,this._rawValue)&&(this._rawValue,this._rawValue=r,this._value=c?r:Pa(r),ms(this,5))}}function it(a){return ye(a)?a.value:a}const Xd={get:(a,r,c)=>it(Reflect.get(a,r,c)),set:(a,r,c,d)=>{const m=a[r];return ye(m)&&!ye(c)?(m.value=c,!0):Reflect.set(a,r,c,d)}};function Jl(a){return ba(a)?a:new Proxy(a,Xd)}function Yd(a){const r=Ct(a)?new Array(a.length):{};for(const c in a)r[c]=Dd(a,c);return r}class Hd{constructor(r,c,d){this._object=r,this._key=c,this._defaultValue=d,this.__v_isRef=!0}get value(){const r=this._object[this._key];return r===void 0?this._defaultValue:r}set value(r){this._object[this._key]=r}get dep(){return gd(Bt(this._object),this._key)}}function Dd(a,r,c){const d=a[r];return ye(d)?d:new Hd(a,r,c)}/** * @vue/runtime-core v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function yi(a,r,c,d){try{return d?a(...d):a()}catch(m){Vs(m,r,c)}}function Ve(a,r,c,d){if(_t(a)){const m=yi(a,r,c,d);return m&&Tl(m)&&m.catch(y=>{Vs(y,r,c)}),m}if(Ct(a)){const m=[];for(let y=0;y>>1,m=me[d],y=_a(m);yje&&me.splice(r,1)}function Gd(a){Ct(a)?ta.push(...a):(!pi||!pi.includes(a,a.allowRecurse?zi+1:zi))&&ta.push(a),ec()}function ho(a,r,c=La?je+1:0){for(;c_a(c)-_a(d));if(ta.length=0,pi){pi.push(...r);return}for(pi=r,zi=0;zia.id==null?1/0:a.id,jd=(a,r)=>{const c=_a(a)-_a(r);if(c===0){if(a.pre&&!r.pre)return-1;if(r.pre&&!a.pre)return 1}return c};function ac(a){Tr=!1,La=!0,me.sort(jd);try{for(je=0;jece(q)?q.trim():q)),Y&&(m=c.map(ad))}let P,I=d[P=nr(r)]||d[P=nr(qe(r))];!I&&y&&(I=d[P=nr(sa(r))]),I&&Ve(I,a,6,m);const R=d[P+"Once"];if(R){if(!a.emitted)a.emitted={};else if(a.emitted[P])return;a.emitted[P]=!0,Ve(R,a,6,m)}}function sc(a,r,c=!1){const d=r.emitsCache,m=d.get(a);if(m!==void 0)return m;const y=a.emits;let S={},P=!1;if(!_t(a)){const I=R=>{const F=sc(R,r,!0);F&&(P=!0,ue(S,F))};!c&&r.mixins.length&&r.mixins.forEach(I),a.extends&&I(a.extends),a.mixins&&a.mixins.forEach(I)}return!y&&!P?(Qt(a)&&d.set(a,null),null):(Ct(y)?y.forEach(I=>S[I]=null):ue(S,y),Qt(a)&&d.set(a,S),S)}function Gs(a,r){return!a||!Hs(r)?!1:(r=r.slice(2).replace(/Once$/,""),Ht(a,r[0].toLowerCase()+r.slice(1))||Ht(a,sa(r))||Ht(a,r))}let Pe=null,rc=null;function Es(a){const r=Pe;return Pe=a,rc=a&&a.type.__scopeId||null,r}function nc(a,r=Pe,c){if(!r||a._n)return a;const d=(...m)=>{d._d&&Ao(-1);const y=Es(r);let S;try{S=a(...m)}finally{Es(y),d._d&&Ao(1)}return S};return d._n=!0,d._c=!0,d._d=!0,d}function lr(a){const{type:r,vnode:c,proxy:d,withProxy:m,propsOptions:[y],slots:S,attrs:P,emit:I,render:R,renderCache:F,props:Y,data:B,setupState:q,ctx:pt,inheritAttrs:ht}=a,Lt=Es(a);let at,z;try{if(c.shapeFlag&4){const tt=m||d,V=tt;at=Ge(R.call(V,tt,F,Y,q,B,pt)),z=P}else{const tt=r;at=Ge(tt.length>1?tt(Y,{attrs:P,slots:S,emit:I}):tt(Y,null)),z=r.props?P:Ud(P)}}catch(tt){ka.length=0,Vs(tt,a,1),at=At(Hi)}let Q=at;if(z&&ht!==!1){const tt=Object.keys(z),{shapeFlag:V}=Q;tt.length&&V&7&&(y&&tt.some(hn)&&(z=qd(z,y)),Q=Di(Q,z,!1,!0))}return c.dirs&&(Q=Di(Q,null,!1,!0),Q.dirs=Q.dirs?Q.dirs.concat(c.dirs):c.dirs),c.transition&&(Q.transition=c.transition),at=Q,Es(Lt),at}const Ud=a=>{let r;for(const c in a)(c==="class"||c==="style"||Hs(c))&&((r||(r={}))[c]=a[c]);return r},qd=(a,r)=>{const c={};for(const d in a)(!hn(d)||!(d.slice(9)in r))&&(c[d]=a[d]);return c};function Zd(a,r,c){const{props:d,children:m,component:y}=a,{props:S,children:P,patchFlag:I}=r,R=y.emitsOptions;if(r.dirs||r.transition)return!0;if(c&&I>=0){if(I&1024)return!0;if(I&16)return d?uo(d,S,R):!!S;if(I&8){const F=r.dynamicProps;for(let Y=0;Ya.__isSuspense;function eu(a,r){r&&r.pendingBranch?Ct(a)?r.effects.push(...a):r.effects.push(a):Gd(a)}function js(a,r,c=ge,d=!1){if(c){const m=c[a]||(c[a]=[]),y=r.__weh||(r.__weh=(...S)=>{Ci();const P=Ha(c),I=Ve(r,c,a,S);return P(),Pi(),I});return d?m.unshift(y):m.push(y),y}}const li=a=>(r,c=ge)=>{(!Us||a==="sp")&&js(a,(...d)=>r(...d),c)},lc=li("bm"),ra=li("m"),iu=li("bu"),cc=li("u"),kn=li("bum"),hc=li("um"),au=li("sp"),su=li("rtg"),ru=li("rtc");function nu(a,r=ge){js("ec",a,r)}function Ea(a,r){if(Pe===null)return a;const c=qs(Pe),d=a.dirs||(a.dirs=[]);for(let m=0;mr(S,P,void 0,y));else{const S=Object.keys(a);m=new Array(S.length);for(let P=0,I=S.length;P!!a.type.__asyncLoader,Mr=a=>a?Ic(a)?qs(a):Mr(a.parent):null,ya=ue(Object.create(null),{$:a=>a,$el:a=>a.vnode.el,$data:a=>a.data,$props:a=>a.props,$attrs:a=>a.attrs,$slots:a=>a.slots,$refs:a=>a.refs,$parent:a=>Mr(a.parent),$root:a=>Mr(a.root),$emit:a=>a.emit,$options:a=>An(a),$forceUpdate:a=>a.f||(a.f=()=>{a.effect.dirty=!0,wn(a.update)}),$nextTick:a=>a.n||(a.n=tc.bind(a.proxy)),$watch:a=>Lu.bind(a)}),cr=(a,r)=>a!==qt&&!a.__isScriptSetup&&Ht(a,r),ou={get({_:a},r){if(r==="__v_skip")return!0;const{ctx:c,setupState:d,data:m,props:y,accessCache:S,type:P,appContext:I}=a;let R;if(r[0]!=="$"){const q=S[r];if(q!==void 0)switch(q){case 1:return d[r];case 2:return m[r];case 4:return c[r];case 3:return y[r]}else{if(cr(d,r))return S[r]=1,d[r];if(m!==qt&&Ht(m,r))return S[r]=2,m[r];if((R=a.propsOptions[0])&&Ht(R,r))return S[r]=3,y[r];if(c!==qt&&Ht(c,r))return S[r]=4,c[r];Or&&(S[r]=0)}}const F=ya[r];let Y,B;if(F)return r==="$attrs"&&Le(a.attrs,"get",""),F(a);if((Y=P.__cssModules)&&(Y=Y[r]))return Y;if(c!==qt&&Ht(c,r))return S[r]=4,c[r];if(B=I.config.globalProperties,Ht(B,r))return B[r]},set({_:a},r,c){const{data:d,setupState:m,ctx:y}=a;return cr(m,r)?(m[r]=c,!0):d!==qt&&Ht(d,r)?(d[r]=c,!0):Ht(a.props,r)||r[0]==="$"&&r.slice(1)in a?!1:(y[r]=c,!0)},has({_:{data:a,setupState:r,accessCache:c,ctx:d,appContext:m,propsOptions:y}},S){let P;return!!c[S]||a!==qt&&Ht(a,S)||cr(r,S)||(P=y[0])&&Ht(P,S)||Ht(d,S)||Ht(ya,S)||Ht(m.config.globalProperties,S)},defineProperty(a,r,c){return c.get!=null?a._.accessCache[r]=0:Ht(c,"value")&&this.set(a,r,c.value,null),Reflect.defineProperty(a,r,c)}};function go(a){return Ct(a)?a.reduce((r,c)=>(r[c]=null,r),{}):a}let Or=!0;function lu(a){const r=An(a),c=a.proxy,d=a.ctx;Or=!1,r.beforeCreate&&po(r.beforeCreate,a,"bc");const{data:m,computed:y,methods:S,watch:P,provide:I,inject:R,created:F,beforeMount:Y,mounted:B,beforeUpdate:q,updated:pt,activated:ht,deactivated:Lt,beforeDestroy:at,beforeUnmount:z,destroyed:Q,unmounted:tt,render:V,renderTracked:et,renderTriggered:St,errorCaptured:Wt,serverPrefetch:ie,expose:te,inheritAttrs:bt,components:It,directives:pe,filters:Ot}=r;if(R&&cu(R,d,null),S)for(const Dt in S){const Rt=S[Dt];_t(Rt)&&(d[Dt]=Rt.bind(c))}if(m){const Dt=m.call(c,c);Qt(Dt)&&(a.data=Ya(Dt))}if(Or=!0,y)for(const Dt in y){const Rt=y[Dt],Ee=_t(Rt)?Rt.bind(c,c):_t(Rt.get)?Rt.get.bind(c,c):Re,Li=!_t(Rt)&&_t(Rt.set)?Rt.set.bind(c):Re,Je=wt({get:Ee,set:Li});Object.defineProperty(d,Dt,{enumerable:!0,configurable:!0,get:()=>Je.value,set:ae=>Je.value=ae})}if(P)for(const Dt in P)uc(P[Dt],d,c,Dt);if(I){const Dt=_t(I)?I.call(c):I;Reflect.ownKeys(Dt).forEach(Rt=>{pu(Rt,Dt[Rt])})}F&&po(F,a,"c");function ee(Dt,Rt){Ct(Rt)?Rt.forEach(Ee=>Dt(Ee.bind(c))):Rt&&Dt(Rt.bind(c))}if(ee(lc,Y),ee(ra,B),ee(iu,q),ee(cc,pt),ee(Eu,ht),ee(Tu,Lt),ee(nu,Wt),ee(ru,et),ee(su,St),ee(kn,z),ee(hc,tt),ee(au,ie),Ct(te))if(te.length){const Dt=a.exposed||(a.exposed={});te.forEach(Rt=>{Object.defineProperty(Dt,Rt,{get:()=>c[Rt],set:Ee=>c[Rt]=Ee})})}else a.exposed||(a.exposed={});V&&a.render===Re&&(a.render=V),bt!=null&&(a.inheritAttrs=bt),It&&(a.components=It),pe&&(a.directives=pe)}function cu(a,r,c=Re){Ct(a)&&(a=zr(a));for(const d in a){const m=a[d];let y;Qt(m)?"default"in m?y=bs(m.from||d,m.default,!0):y=bs(m.from||d):y=bs(m),ye(y)?Object.defineProperty(r,d,{enumerable:!0,configurable:!0,get:()=>y.value,set:S=>y.value=S}):r[d]=y}}function po(a,r,c){Ve(Ct(a)?a.map(d=>d.bind(r.proxy)):a.bind(r.proxy),r,c)}function uc(a,r,c,d){const m=d.includes(".")?Cc(c,d):()=>c[d];if(ce(a)){const y=r[a];_t(y)&&Ce(m,y)}else if(_t(a))Ce(m,a.bind(c));else if(Qt(a))if(Ct(a))a.forEach(y=>uc(y,r,c,d));else{const y=_t(a.handler)?a.handler.bind(c):r[a.handler];_t(y)&&Ce(m,y,a)}}function An(a){const r=a.type,{mixins:c,extends:d}=r,{mixins:m,optionsCache:y,config:{optionMergeStrategies:S}}=a.appContext,P=y.get(r);let I;return P?I=P:!m.length&&!c&&!d?I=r:(I={},m.length&&m.forEach(R=>Ts(I,R,S,!0)),Ts(I,r,S)),Qt(r)&&y.set(r,I),I}function Ts(a,r,c,d=!1){const{mixins:m,extends:y}=r;y&&Ts(a,y,c,!0),m&&m.forEach(S=>Ts(a,S,c,!0));for(const S in r)if(!(d&&S==="expose")){const P=hu[S]||c&&c[S];a[S]=P?P(a[S],r[S]):r[S]}return a}const hu={data:xo,props:mo,emits:mo,methods:ua,computed:ua,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:ua,directives:ua,watch:uu,provide:xo,inject:du};function xo(a,r){return r?a?function(){return ue(_t(a)?a.call(this,this):a,_t(r)?r.call(this,this):r)}:r:a}function du(a,r){return ua(zr(a),zr(r))}function zr(a){if(Ct(a)){const r={};for(let c=0;c1)return c&&_t(r)?r.call(d&&d.proxy):r}}const gc={},pc=()=>Object.create(gc),xc=a=>Object.getPrototypeOf(a)===gc;function xu(a,r,c,d=!1){const m={},y=pc();a.propsDefaults=Object.create(null),mc(a,r,m,y);for(const S in a.propsOptions[0])S in m||(m[S]=void 0);c?a.props=d?m:Od(m):a.type.props?a.props=m:a.props=y,a.attrs=y}function mu(a,r,c,d){const{props:m,attrs:y,vnode:{patchFlag:S}}=a,P=Bt(m),[I]=a.propsOptions;let R=!1;if((d||S>0)&&!(S&16)){if(S&8){const F=a.vnode.dynamicProps;for(let Y=0;Y{I=!0;const[B,q]=bc(Y,r,!0);ue(S,B),q&&P.push(...q)};!c&&r.mixins.length&&r.mixins.forEach(F),a.extends&&F(a.extends),a.mixins&&a.mixins.forEach(F)}if(!y&&!I)return Qt(a)&&d.set(a,Ji),Ji;if(Ct(y))for(let F=0;F-1,q[1]=ht<0||pt-1||Ht(q,"default"))&&P.push(Y)}}}const R=[S,P];return Qt(a)&&d.set(a,R),R}function bo(a){return a[0]!=="$"&&!xa(a)}function vo(a){return a===null?"null":typeof a=="function"?a.name||"":typeof a=="object"&&a.constructor&&a.constructor.name||""}function yo(a,r){return vo(a)===vo(r)}function wo(a,r){return Ct(r)?r.findIndex(c=>yo(c,a)):_t(r)&&yo(r,a)?0:-1}const vc=a=>a[0]==="_"||a==="$stable",Sn=a=>Ct(a)?a.map(Ge):[Ge(a)],bu=(a,r,c)=>{if(r._n)return r;const d=nc((...m)=>Sn(r(...m)),c);return d._c=!1,d},yc=(a,r,c)=>{const d=a._ctx;for(const m in a){if(vc(m))continue;const y=a[m];if(_t(y))r[m]=bu(m,y,d);else if(y!=null){const S=Sn(y);r[m]=()=>S}}},wc=(a,r)=>{const c=Sn(r);a.slots.default=()=>c},vu=(a,r)=>{const c=a.slots=pc();if(a.vnode.shapeFlag&32){const d=r._;d?(ue(c,r),Ol(c,"_",d,!0)):yc(r,c)}else r&&wc(a,r)},yu=(a,r,c)=>{const{vnode:d,slots:m}=a;let y=!0,S=qt;if(d.shapeFlag&32){const P=r._;P?c&&P===1?y=!1:(ue(m,r),!c&&P===1&&delete m._):(y=!r.$stable,yc(r,m)),S=r}else r&&(wc(a,r),S={default:1});if(y)for(const P in m)!vc(P)&&S[P]==null&&delete m[P]};function Fr(a,r,c,d,m=!1){if(Ct(a)){a.forEach((B,q)=>Fr(B,r&&(Ct(r)?r[q]:r),c,d,m));return}if(va(d)&&!m)return;const y=d.shapeFlag&4?qs(d.component):d.el,S=m?null:y,{i:P,r:I}=a,R=r&&r.r,F=P.refs===qt?P.refs={}:P.refs,Y=P.setupState;if(R!=null&&R!==I&&(ce(R)?(F[R]=null,Ht(Y,R)&&(Y[R]=null)):ye(R)&&(R.value=null)),_t(I))yi(I,P,12,[S,F]);else{const B=ce(I),q=ye(I);if(B||q){const pt=()=>{if(a.f){const ht=B?Ht(Y,I)?Y[I]:F[I]:I.value;m?Ct(ht)&&dn(ht,y):Ct(ht)?ht.includes(y)||ht.push(y):B?(F[I]=[y],Ht(Y,I)&&(Y[I]=F[I])):(I.value=[y],a.k&&(F[a.k]=I.value))}else B?(F[I]=S,Ht(Y,I)&&(Y[I]=S)):q&&(I.value=S,a.k&&(F[a.k]=S))};S?(pt.id=-1,de(pt,c)):pt()}}}const de=eu;function wu(a){return ku(a)}function ku(a,r){const c=zl();c.__VUE__=!0;const{insert:d,remove:m,patchProp:y,createElement:S,createText:P,createComment:I,setText:R,setElementText:F,parentNode:Y,nextSibling:B,setScopeId:q=Re,insertStaticContent:pt}=a,ht=(H,D,$,Z=null,K=null,st=null,lt=void 0,rt=null,nt=!!D.dynamicChildren)=>{if(H===D)return;H&&!$i(H,D)&&(Z=_i(H),ae(H,K,st,!0),H=null),D.patchFlag===-2&&(nt=!1,D.dynamicChildren=null);const{type:J,ref:dt,shapeFlag:yt}=D;switch(J){case $s:Lt(H,D,$,Z);break;case Hi:at(H,D,$,Z);break;case vs:H==null&&z(D,$,Z,lt);break;case Ut:It(H,D,$,Z,K,st,lt,rt,nt);break;default:yt&1?V(H,D,$,Z,K,st,lt,rt,nt):yt&6?pe(H,D,$,Z,K,st,lt,rt,nt):(yt&64||yt&128)&&J.process(H,D,$,Z,K,st,lt,rt,nt,Xe)}dt!=null&&K&&Fr(dt,H&&H.ref,st,D||H,!D)},Lt=(H,D,$,Z)=>{if(H==null)d(D.el=P(D.children),$,Z);else{const K=D.el=H.el;D.children!==H.children&&R(K,D.children)}},at=(H,D,$,Z)=>{H==null?d(D.el=I(D.children||""),$,Z):D.el=H.el},z=(H,D,$,Z)=>{[H.el,H.anchor]=pt(H.children,D,$,Z,H.el,H.anchor)},Q=({el:H,anchor:D},$,Z)=>{let K;for(;H&&H!==D;)K=B(H),d(H,$,Z),H=K;d(D,$,Z)},tt=({el:H,anchor:D})=>{let $;for(;H&&H!==D;)$=B(H),m(H),H=$;m(D)},V=(H,D,$,Z,K,st,lt,rt,nt)=>{D.type==="svg"?lt="svg":D.type==="math"&&(lt="mathml"),H==null?et(D,$,Z,K,st,lt,rt,nt):ie(H,D,K,st,lt,rt,nt)},et=(H,D,$,Z,K,st,lt,rt)=>{let nt,J;const{props:dt,shapeFlag:yt,transition:mt,dirs:kt}=H;if(nt=H.el=S(H.type,st,dt&&dt.is,dt),yt&8?F(nt,H.children):yt&16&&Wt(H.children,nt,null,Z,K,hr(H,st),lt,rt),kt&&Mi(H,null,Z,"created"),St(nt,H,H.scopeId,lt,Z),dt){for(const Gt in dt)Gt!=="value"&&!xa(Gt)&&y(nt,Gt,null,dt[Gt],st,H.children,Z,K,se);"value"in dt&&y(nt,"value",null,dt.value,st),(J=dt.onVnodeBeforeMount)&&Oe(J,Z,H)}kt&&Mi(H,null,Z,"beforeMount");const Mt=Au(K,mt);Mt&&mt.beforeEnter(nt),d(nt,D,$),((J=dt&&dt.onVnodeMounted)||Mt||kt)&&de(()=>{J&&Oe(J,Z,H),Mt&&mt.enter(nt),kt&&Mi(H,null,Z,"mounted")},K)},St=(H,D,$,Z,K)=>{if($&&q(H,$),Z)for(let st=0;st{for(let J=nt;J{const rt=D.el=H.el;let{patchFlag:nt,dynamicChildren:J,dirs:dt}=D;nt|=H.patchFlag&16;const yt=H.props||qt,mt=D.props||qt;let kt;if($&&Oi($,!1),(kt=mt.onVnodeBeforeUpdate)&&Oe(kt,$,D,H),dt&&Mi(D,H,$,"beforeUpdate"),$&&Oi($,!0),J?te(H.dynamicChildren,J,rt,$,Z,hr(D,K),st):lt||Rt(H,D,rt,null,$,Z,hr(D,K),st,!1),nt>0){if(nt&16)bt(rt,D,yt,mt,$,Z,K);else if(nt&2&&yt.class!==mt.class&&y(rt,"class",null,mt.class,K),nt&4&&y(rt,"style",yt.style,mt.style,K),nt&8){const Mt=D.dynamicProps;for(let Gt=0;Gt{kt&&Oe(kt,$,D,H),dt&&Mi(D,H,$,"updated")},Z)},te=(H,D,$,Z,K,st,lt)=>{for(let rt=0;rt{if($!==Z){if($!==qt)for(const rt in $)!xa(rt)&&!(rt in Z)&&y(H,rt,$[rt],null,lt,D.children,K,st,se);for(const rt in Z){if(xa(rt))continue;const nt=Z[rt],J=$[rt];nt!==J&&rt!=="value"&&y(H,rt,J,nt,lt,D.children,K,st,se)}"value"in Z&&y(H,"value",$.value,Z.value,lt)}},It=(H,D,$,Z,K,st,lt,rt,nt)=>{const J=D.el=H?H.el:P(""),dt=D.anchor=H?H.anchor:P("");let{patchFlag:yt,dynamicChildren:mt,slotScopeIds:kt}=D;kt&&(rt=rt?rt.concat(kt):kt),H==null?(d(J,$,Z),d(dt,$,Z),Wt(D.children||[],$,dt,K,st,lt,rt,nt)):yt>0&&yt&64&&mt&&H.dynamicChildren?(te(H.dynamicChildren,mt,$,K,st,lt,rt),(D.key!=null||K&&D===K.subTree)&&kc(H,D,!0)):Rt(H,D,$,dt,K,st,lt,rt,nt)},pe=(H,D,$,Z,K,st,lt,rt,nt)=>{D.slotScopeIds=rt,H==null?D.shapeFlag&512?K.ctx.activate(D,$,Z,lt,nt):Ot(D,$,Z,K,st,lt,nt):_e(H,D,nt)},Ot=(H,D,$,Z,K,st,lt)=>{const rt=H.component=Hu(H,Z,K);if(Pc(H)&&(rt.ctx.renderer=Xe),Du(rt),rt.asyncDep){if(K&&K.registerDep(rt,ee,lt),!H.el){const nt=rt.subTree=At(Hi);at(null,nt,D,$)}}else ee(rt,H,D,$,K,st,lt)},_e=(H,D,$)=>{const Z=D.component=H.component;if(Zd(H,D,$))if(Z.asyncDep&&!Z.asyncResolved){Dt(Z,D,$);return}else Z.next=D,Vd(Z.update),Z.effect.dirty=!0,Z.update();else D.el=H.el,Z.vnode=D},ee=(H,D,$,Z,K,st,lt)=>{const rt=()=>{if(H.isMounted){let{next:dt,bu:yt,u:mt,parent:kt,vnode:Mt}=H;{const ui=Ac(H);if(ui){dt&&(dt.el=Mt.el,Dt(H,dt,lt)),ui.asyncDep.then(()=>{H.isUnmounted||rt()});return}}let Gt=dt,Yt;Oi(H,!1),dt?(dt.el=Mt.el,Dt(H,dt,lt)):dt=Mt,yt&&ma(yt),(Yt=dt.props&&dt.props.onVnodeBeforeUpdate)&&Oe(Yt,kt,dt,Mt),Oi(H,!0);const oe=lr(H),ke=H.subTree;H.subTree=oe,ht(ke,oe,Y(ke.el),_i(ke),H,K,st),dt.el=oe.el,Gt===null&&Kd(H,oe.el),mt&&de(mt,K),(Yt=dt.props&&dt.props.onVnodeUpdated)&&de(()=>Oe(Yt,kt,dt,Mt),K)}else{let dt;const{el:yt,props:mt}=D,{bm:kt,m:Mt,parent:Gt}=H,Yt=va(D);if(Oi(H,!1),kt&&ma(kt),!Yt&&(dt=mt&&mt.onVnodeBeforeMount)&&Oe(dt,Gt,D),Oi(H,!0),yt&&Qe){const oe=()=>{H.subTree=lr(H),Qe(yt,H.subTree,H,K,null)};Yt?D.type.__asyncLoader().then(()=>!H.isUnmounted&&oe()):oe()}else{const oe=H.subTree=lr(H);ht(null,oe,$,Z,H,K,st),D.el=oe.el}if(Mt&&de(Mt,K),!Yt&&(dt=mt&&mt.onVnodeMounted)){const oe=D;de(()=>Oe(dt,Gt,oe),K)}(D.shapeFlag&256||Gt&&va(Gt.vnode)&&Gt.vnode.shapeFlag&256)&&H.a&&de(H.a,K),H.isMounted=!0,D=$=Z=null}},nt=H.effect=new fn(rt,Re,()=>wn(J),H.scope),J=H.update=()=>{nt.dirty&&nt.run()};J.id=H.uid,Oi(H,!0),J()},Dt=(H,D,$)=>{D.component=H;const Z=H.vnode.props;H.vnode=D,H.next=null,mu(H,D.props,Z,$),yu(H,D.children,$),Ci(),ho(H),Pi()},Rt=(H,D,$,Z,K,st,lt,rt,nt=!1)=>{const J=H&&H.children,dt=H?H.shapeFlag:0,yt=D.children,{patchFlag:mt,shapeFlag:kt}=D;if(mt>0){if(mt&128){Li(J,yt,$,Z,K,st,lt,rt,nt);return}else if(mt&256){Ee(J,yt,$,Z,K,st,lt,rt,nt);return}}kt&8?(dt&16&&se(J,K,st),yt!==J&&F($,yt)):dt&16?kt&16?Li(J,yt,$,Z,K,st,lt,rt,nt):se(J,K,st,!0):(dt&8&&F($,""),kt&16&&Wt(yt,$,Z,K,st,lt,rt,nt))},Ee=(H,D,$,Z,K,st,lt,rt,nt)=>{H=H||Ji,D=D||Ji;const J=H.length,dt=D.length,yt=Math.min(J,dt);let mt;for(mt=0;mtdt?se(H,K,st,!0,!1,yt):Wt(D,$,Z,K,st,lt,rt,nt,yt)},Li=(H,D,$,Z,K,st,lt,rt,nt)=>{let J=0;const dt=D.length;let yt=H.length-1,mt=dt-1;for(;J<=yt&&J<=mt;){const kt=H[J],Mt=D[J]=nt?xi(D[J]):Ge(D[J]);if($i(kt,Mt))ht(kt,Mt,$,null,K,st,lt,rt,nt);else break;J++}for(;J<=yt&&J<=mt;){const kt=H[yt],Mt=D[mt]=nt?xi(D[mt]):Ge(D[mt]);if($i(kt,Mt))ht(kt,Mt,$,null,K,st,lt,rt,nt);else break;yt--,mt--}if(J>yt){if(J<=mt){const kt=mt+1,Mt=ktmt)for(;J<=yt;)ae(H[J],K,st,!0),J++;else{const kt=J,Mt=J,Gt=new Map;for(J=Mt;J<=mt;J++){const be=D[J]=nt?xi(D[J]):Ge(D[J]);be.key!=null&&Gt.set(be.key,J)}let Yt,oe=0;const ke=mt-Mt+1;let ui=!1,ca=0;const Ti=new Array(ke);for(J=0;J=ke){ae(be,K,st,!0);continue}let Te;if(be.key!=null)Te=Gt.get(be.key);else for(Yt=Mt;Yt<=mt;Yt++)if(Ti[Yt-Mt]===0&&$i(be,D[Yt])){Te=Yt;break}Te===void 0?ae(be,K,st,!0):(Ti[Te-Mt]=J+1,Te>=ca?ca=Te:ui=!0,ht(be,D[Te],$,null,K,st,lt,rt,nt),oe++)}const $a=ui?Su(Ti):Ji;for(Yt=$a.length-1,J=ke-1;J>=0;J--){const be=Mt+J,Te=D[be],Ua=be+1{const{el:st,type:lt,transition:rt,children:nt,shapeFlag:J}=H;if(J&6){Je(H.component.subTree,D,$,Z);return}if(J&128){H.suspense.move(D,$,Z);return}if(J&64){lt.move(H,D,$,Xe);return}if(lt===Ut){d(st,D,$);for(let yt=0;ytrt.enter(st),K);else{const{leave:yt,delayLeave:mt,afterLeave:kt}=rt,Mt=()=>d(st,D,$),Gt=()=>{yt(st,()=>{Mt(),kt&&kt()})};mt?mt(st,Mt,Gt):Gt()}else d(st,D,$)},ae=(H,D,$,Z=!1,K=!1)=>{const{type:st,props:lt,ref:rt,children:nt,dynamicChildren:J,shapeFlag:dt,patchFlag:yt,dirs:mt,memoIndex:kt}=H;if(rt!=null&&Fr(rt,null,$,H,!0),kt!=null&&(D.renderCache[kt]=void 0),dt&256){D.ctx.deactivate(H);return}const Mt=dt&1&&mt,Gt=!va(H);let Yt;if(Gt&&(Yt=lt&<.onVnodeBeforeUnmount)&&Oe(Yt,D,H),dt&6)di(H.component,$,Z);else{if(dt&128){H.suspense.unmount($,Z);return}Mt&&Mi(H,null,D,"beforeUnmount"),dt&64?H.type.remove(H,D,$,K,Xe,Z):J&&(st!==Ut||yt>0&&yt&64)?se(J,D,$,!1,!0):(st===Ut&&yt&384||!K&&dt&16)&&se(nt,D,$),Z&&hi(H)}(Gt&&(Yt=lt&<.onVnodeUnmounted)||Mt)&&de(()=>{Yt&&Oe(Yt,D,H),Mt&&Mi(H,null,D,"unmounted")},$)},hi=H=>{const{type:D,el:$,anchor:Z,transition:K}=H;if(D===Ut){ja($,Z);return}if(D===vs){tt(H);return}const st=()=>{m($),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(H.shapeFlag&1&&K&&!K.persisted){const{leave:lt,delayLeave:rt}=K,nt=()=>lt($,st);rt?rt(H.el,st,nt):nt()}else st()},ja=(H,D)=>{let $;for(;H!==D;)$=B(H),m(H),H=$;m(D)},di=(H,D,$)=>{const{bum:Z,scope:K,update:st,subTree:lt,um:rt,m:nt,a:J}=H;Is(nt),Is(J),Z&&ma(Z),K.stop(),st&&(st.active=!1,ae(lt,H,D,$)),rt&&de(rt,D),de(()=>{H.isUnmounted=!0},D),D&&D.pendingBranch&&!D.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===D.pendingId&&(D.deps--,D.deps===0&&D.resolve())},se=(H,D,$,Z=!1,K=!1,st=0)=>{for(let lt=st;ltH.shapeFlag&6?_i(H.component.subTree):H.shapeFlag&128?H.suspense.next():B(H.anchor||H.el);let Ne=!1;const Ei=(H,D,$)=>{H==null?D._vnode&&ae(D._vnode,null,null,!0):ht(D._vnode||null,H,D,null,null,null,$),Ne||(Ne=!0,ho(),ic(),Ne=!1),D._vnode=H},Xe={p:ht,um:ae,m:Je,r:hi,mt:Ot,mc:Wt,pc:Rt,pbc:te,n:_i,o:a};let la,Qe;return{render:Ei,hydrate:la,createApp:gu(Ei,la)}}function hr({type:a,props:r},c){return c==="svg"&&a==="foreignObject"||c==="mathml"&&a==="annotation-xml"&&r&&r.encoding&&r.encoding.includes("html")?void 0:c}function Oi({effect:a,update:r},c){a.allowRecurse=r.allowRecurse=c}function Au(a,r){return(!a||a&&!a.pendingBranch)&&r&&!r.persisted}function kc(a,r,c=!1){const d=a.children,m=r.children;if(Ct(d)&&Ct(m))for(let y=0;y>1,a[c[P]]0&&(r[d]=c[y-1]),c[y]=d)}}for(y=c.length,S=c[y-1];y-- >0;)c[y]=S,S=r[S];return c}function Ac(a){const r=a.subTree.component;if(r)return r.asyncDep&&!r.asyncResolved?r:Ac(r)}function Is(a){if(a)for(let r=0;rbs(Cu),es={};function Ce(a,r,c){return Sc(a,r,c)}function Sc(a,r,{immediate:c,deep:d,flush:m,once:y,onTrack:S,onTrigger:P}=qt){if(r&&y){const et=r;r=(...St)=>{et(...St),V()}}const I=ge,R=et=>d===!0?et:mi(et,d===!1?1:void 0);let F,Y=!1,B=!1;if(ye(a)?(F=()=>a.value,Y=_s(a)):ba(a)?(F=()=>R(a),Y=!0):Ct(a)?(B=!0,Y=a.some(et=>ba(et)||_s(et)),F=()=>a.map(et=>{if(ye(et))return et.value;if(ba(et))return R(et);if(_t(et))return yi(et,I,2)})):_t(a)?r?F=()=>yi(a,I,2):F=()=>(q&&q(),Ve(a,I,3,[pt])):F=Re,r&&d){const et=F;F=()=>mi(et())}let q,pt=et=>{q=Q.onStop=()=>{yi(et,I,4),q=Q.onStop=void 0}},ht;if(Us)if(pt=Re,r?c&&Ve(r,I,3,[F(),B?[]:void 0,pt]):F(),m==="sync"){const et=Pu();ht=et.__watcherHandles||(et.__watcherHandles=[])}else return Re;let Lt=B?new Array(a.length).fill(es):es;const at=()=>{if(!(!Q.active||!Q.dirty))if(r){const et=Q.run();(d||Y||(B?et.some((St,Wt)=>wi(St,Lt[Wt])):wi(et,Lt)))&&(q&&q(),Ve(r,I,3,[et,Lt===es?void 0:B&&Lt[0]===es?[]:Lt,pt]),Lt=et)}else Q.run()};at.allowRecurse=!!r;let z;m==="sync"?z=at:m==="post"?z=()=>de(at,I&&I.suspense):(at.pre=!0,I&&(at.id=I.uid),z=()=>wn(at));const Q=new fn(F,Re,z),tt=ud(),V=()=>{Q.stop(),tt&&dn(tt.effects,Q)};return r?c?at():Lt=Q.run():m==="post"?de(Q.run.bind(Q),I&&I.suspense):Q.run(),ht&&ht.push(V),V}function Lu(a,r,c){const d=this.proxy,m=ce(a)?a.includes(".")?Cc(d,a):()=>d[a]:a.bind(d,d);let y;_t(r)?y=r:(y=r.handler,c=r);const S=Ha(this),P=Sc(m,y.bind(d),c);return S(),P}function Cc(a,r){const c=r.split(".");return()=>{let d=a;for(let m=0;m{mi(d,r,c)});else if(Ml(a)){for(const d in a)mi(a[d],r,c);for(const d of Object.getOwnPropertySymbols(a))Object.prototype.propertyIsEnumerable.call(a,d)&&mi(a[d],r,c)}return a}const Pc=a=>a.type.__isKeepAlive,_u={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(a,{slots:r}){const c=Tc(),d=c.ctx;if(!d.renderer)return()=>{const z=r.default&&r.default();return z&&z.length===1?z[0]:z};const m=new Map,y=new Set;let S=null;const P=c.suspense,{renderer:{p:I,m:R,um:F,o:{createElement:Y}}}=d,B=Y("div");d.activate=(z,Q,tt,V,et)=>{const St=z.component;R(z,Q,tt,0,P),I(St.vnode,z,Q,tt,St,P,V,z.slotScopeIds,et),de(()=>{St.isDeactivated=!1,St.a&&ma(St.a);const Wt=z.props&&z.props.onVnodeMounted;Wt&&Oe(Wt,St.parent,z)},P)},d.deactivate=z=>{const Q=z.component;Is(Q.m),Is(Q.a),R(z,B,null,1,P),de(()=>{Q.da&&ma(Q.da);const tt=z.props&&z.props.onVnodeUnmounted;tt&&Oe(tt,Q.parent,z),Q.isDeactivated=!0},P)};function q(z){dr(z),F(z,c,P,!0)}function pt(z){m.forEach((Q,tt)=>{const V=Xr(Q.type);V&&(!z||!z(V))&&ht(tt)})}function ht(z){const Q=m.get(z);!S||!$i(Q,S)?q(Q):S&&dr(S),m.delete(z),y.delete(z)}Ce(()=>[a.include,a.exclude],([z,Q])=>{z&&pt(tt=>fa(z,tt)),Q&&pt(tt=>!fa(Q,tt))},{flush:"post",deep:!0});let Lt=null;const at=()=>{Lt!=null&&(Ir(c.subTree.type)?de(()=>{m.set(Lt,is(c.subTree))},c.subTree.suspense):m.set(Lt,is(c.subTree)))};return ra(at),cc(at),kn(()=>{m.forEach(z=>{const{subTree:Q,suspense:tt}=c,V=is(Q);if(z.type===V.type&&z.key===V.key){dr(V);const et=V.component.da;et&&de(et,tt);return}q(z)})}),()=>{if(Lt=null,!r.default)return null;const z=r.default(),Q=z[0];if(z.length>1)return S=null,z;if(!Ms(Q)||!(Q.shapeFlag&4)&&!(Q.shapeFlag&128))return S=null,Q;let tt=is(Q);const V=tt.type,et=Xr(va(tt)?tt.type.__asyncResolved||{}:V),{include:St,exclude:Wt,max:ie}=a;if(St&&(!et||!fa(St,et))||Wt&&et&&fa(Wt,et))return S=tt,Q;const te=tt.key==null?V:tt.key,bt=m.get(te);return tt.el&&(tt=Di(tt),Q.shapeFlag&128&&(Q.ssContent=tt)),Lt=te,bt?(tt.el=bt.el,tt.component=bt.component,tt.transition&&Cn(tt,tt.transition),tt.shapeFlag|=512,y.delete(te),y.add(te)):(y.add(te),ie&&y.size>parseInt(ie,10)&&ht(y.values().next().value)),tt.shapeFlag|=256,S=tt,Ir(Q.type)?Q:tt}}},ko=_u;function fa(a,r){return Ct(a)?a.some(c=>fa(c,r)):ce(a)?a.split(",").includes(r):Qh(a)?a.test(r):!1}function Eu(a,r){Lc(a,"a",r)}function Tu(a,r){Lc(a,"da",r)}function Lc(a,r,c=ge){const d=a.__wdc||(a.__wdc=()=>{let m=c;for(;m;){if(m.isDeactivated)return;m=m.parent}return a()});if(js(r,d,c),c){let m=c.parent;for(;m&&m.parent;)Pc(m.parent.vnode)&&Iu(d,r,c,m),m=m.parent}}function Iu(a,r,c,d){const m=js(r,a,d,!0);hc(()=>{dn(d[r],m)},c)}function dr(a){a.shapeFlag&=-257,a.shapeFlag&=-513}function is(a){return a.shapeFlag&128?a.ssContent:a}function Cn(a,r){a.shapeFlag&6&&a.component?Cn(a.component.subTree,r):a.shapeFlag&128?(a.ssContent.transition=r.clone(a.ssContent),a.ssFallback.transition=r.clone(a.ssFallback)):a.transition=r}const Mu=a=>a.__isTeleport,Ut=Symbol.for("v-fgt"),$s=Symbol.for("v-txt"),Hi=Symbol.for("v-cmt"),vs=Symbol.for("v-stc"),ka=[];let Be=null;function ct(a=!1){ka.push(Be=a?null:[])}function Ou(){ka.pop(),Be=ka[ka.length-1]||null}let Ta=1;function Ao(a){Ta+=a}function _c(a){return a.dynamicChildren=Ta>0?Be||Ji:null,Ou(),Ta>0&&Be&&Be.push(a),a}function gt(a,r,c,d,m,y){return _c(W(a,r,c,d,m,y,!0))}function Ie(a,r,c,d,m){return _c(At(a,r,c,d,m,!0))}function Ms(a){return a?a.__v_isVNode===!0:!1}function $i(a,r){return a.type===r.type&&a.key===r.key}const Ec=({key:a})=>a??null,ys=({ref:a,ref_key:r,ref_for:c})=>(typeof a=="number"&&(a=""+a),a!=null?ce(a)||ye(a)||_t(a)?{i:Pe,r:a,k:r,f:!!c}:a:null);function W(a,r=null,c=null,d=0,m=null,y=a===Ut?0:1,S=!1,P=!1){const I={__v_isVNode:!0,__v_skip:!0,type:a,props:r,key:r&&Ec(r),ref:r&&ys(r),scopeId:rc,slotScopeIds:null,children:c,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:y,patchFlag:d,dynamicProps:m,dynamicChildren:null,appContext:null,ctx:Pe};return P?(Pn(I,c),y&128&&a.normalize(I)):c&&(I.shapeFlag|=ce(c)?8:16),Ta>0&&!S&&Be&&(I.patchFlag>0||y&6)&&I.patchFlag!==32&&Be.push(I),I}const At=zu;function zu(a,r=null,c=null,d=0,m=null,y=!1){if((!a||a===Qd)&&(a=Hi),Ms(a)){const P=Di(a,r,!0);return c&&Pn(P,c),Ta>0&&!y&&Be&&(P.shapeFlag&6?Be[Be.indexOf(a)]=P:Be.push(P)),P.patchFlag=-2,P}if(Gu(a)&&(a=a.__vccOpts),r){r=Ru(r);let{class:P,style:I}=r;P&&!ce(P)&&(r.class=Tt(P)),Qt(I)&&(ql(I)&&!Ct(I)&&(I=ue({},I)),r.style=ia(I))}const S=ce(a)?1:Ir(a)?128:Mu(a)?64:Qt(a)?4:_t(a)?2:0;return W(a,r,c,d,m,S,y,!0)}function Ru(a){return a?ql(a)||xc(a)?ue({},a):a:null}function Di(a,r,c=!1,d=!1){const{props:m,ref:y,patchFlag:S,children:P,transition:I}=a,R=r?Nu(m||{},r):m,F={__v_isVNode:!0,__v_skip:!0,type:a.type,props:R,key:R&&Ec(R),ref:r&&r.ref?c&&y?Ct(y)?y.concat(ys(r)):[y,ys(r)]:ys(r):y,scopeId:a.scopeId,slotScopeIds:a.slotScopeIds,children:P,target:a.target,targetAnchor:a.targetAnchor,staticCount:a.staticCount,shapeFlag:a.shapeFlag,patchFlag:r&&a.type!==Ut?S===-1?16:S|16:S,dynamicProps:a.dynamicProps,dynamicChildren:a.dynamicChildren,appContext:a.appContext,dirs:a.dirs,transition:I,component:a.component,suspense:a.suspense,ssContent:a.ssContent&&Di(a.ssContent),ssFallback:a.ssFallback&&Di(a.ssFallback),el:a.el,anchor:a.anchor,ctx:a.ctx,ce:a.ce};return I&&d&&Cn(F,I.clone(F)),F}function $t(a=" ",r=0){return At($s,null,a,r)}function Fu(a,r){const c=At(vs,null,a);return c.staticCount=r,c}function Ze(a="",r=!1){return r?(ct(),Ie(Hi,null,a)):At(Hi,null,a)}function Ge(a){return a==null||typeof a=="boolean"?At(Hi):Ct(a)?At(Ut,null,a.slice()):typeof a=="object"?xi(a):At($s,null,String(a))}function xi(a){return a.el===null&&a.patchFlag!==-1||a.memo?a:Di(a)}function Pn(a,r){let c=0;const{shapeFlag:d}=a;if(r==null)r=null;else if(Ct(r))c=16;else if(typeof r=="object")if(d&65){const m=r.default;m&&(m._c&&(m._d=!1),Pn(a,m()),m._c&&(m._d=!0));return}else{c=32;const m=r._;!m&&!xc(r)?r._ctx=Pe:m===3&&Pe&&(Pe.slots._===1?r._=1:(r._=2,a.patchFlag|=1024))}else _t(r)?(r={default:r,_ctx:Pe},c=32):(r=String(r),d&64?(c=16,r=[$t(r)]):c=8);a.children=r,a.shapeFlag|=c}function Nu(...a){const r={};for(let c=0;cge||Pe;let Os,Nr;{const a=zl(),r=(c,d)=>{let m;return(m=a[c])||(m=a[c]=[]),m.push(d),y=>{m.length>1?m.forEach(S=>S(y)):m[0](y)}};Os=r("__VUE_INSTANCE_SETTERS__",c=>ge=c),Nr=r("__VUE_SSR_SETTERS__",c=>Us=c)}const Ha=a=>{const r=ge;return Os(a),a.scope.on(),()=>{a.scope.off(),Os(r)}},So=()=>{ge&&ge.scope.off(),Os(null)};function Ic(a){return a.vnode.shapeFlag&4}let Us=!1;function Du(a,r=!1){r&&Nr(r);const{props:c,children:d}=a.vnode,m=Ic(a);xu(a,c,m,r),vu(a,d);const y=m?Bu(a,r):void 0;return r&&Nr(!1),y}function Bu(a,r){const c=a.type;a.accessCache=Object.create(null),a.proxy=new Proxy(a.ctx,ou);const{setup:d}=c;if(d){const m=a.setupContext=d.length>1?Vu(a):null,y=Ha(a);Ci();const S=yi(d,a,0,[a.props,m]);if(Pi(),y(),Tl(S)){if(S.then(So,So),r)return S.then(P=>{Co(a,P,r)}).catch(P=>{Vs(P,a,0)});a.asyncDep=S}else Co(a,S,r)}else Mc(a,r)}function Co(a,r,c){_t(r)?a.type.__ssrInlineRender?a.ssrRender=r:a.render=r:Qt(r)&&(a.setupState=Jl(r)),Mc(a,c)}let Po;function Mc(a,r,c){const d=a.type;if(!a.render){if(!r&&Po&&!d.render){const m=d.template||An(a).template;if(m){const{isCustomElement:y,compilerOptions:S}=a.appContext.config,{delimiters:P,compilerOptions:I}=d,R=ue(ue({isCustomElement:y,delimiters:P},S),I);d.render=Po(m,R)}}a.render=d.render||Re}{const m=Ha(a);Ci();try{lu(a)}finally{Pi(),m()}}}const Wu={get(a,r){return Le(a,"get",""),a[r]}};function Vu(a){const r=c=>{a.exposed=c||{}};return{attrs:new Proxy(a.attrs,Wu),slots:a.slots,emit:a.emit,expose:r}}function qs(a){return a.exposed?a.exposeProxy||(a.exposeProxy=new Proxy(Jl(zd(a.exposed)),{get(r,c){if(c in r)return r[c];if(c in ya)return ya[c](a)},has(r,c){return c in r||c in ya}})):a.proxy}function Xr(a,r=!0){return _t(a)?a.displayName||a.name:a.name||r&&a.__name}function Gu(a){return _t(a)&&"__vccOpts"in a}const wt=(a,r)=>Rd(a,r,Us);function Oc(a,r,c){const d=arguments.length;return d===2?Qt(r)&&!Ct(r)?Ms(r)?At(a,null,[r]):At(a,r):At(a,null,r):(d>3?c=Array.prototype.slice.call(arguments,2):d===3&&Ms(c)&&(c=[c]),At(a,r,c))}const ju="3.4.29";/** * @vue/runtime-dom v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const $u="http://www.w3.org/2000/svg",Uu="http://www.w3.org/1998/Math/MathML",ii=typeof document<"u"?document:null,Lo=ii&&ii.createElement("template"),qu={insert:(a,r,c)=>{r.insertBefore(a,c||null)},remove:a=>{const r=a.parentNode;r&&r.removeChild(a)},createElement:(a,r,c,d)=>{const m=r==="svg"?ii.createElementNS($u,a):r==="mathml"?ii.createElementNS(Uu,a):c?ii.createElement(a,{is:c}):ii.createElement(a);return a==="select"&&d&&d.multiple!=null&&m.setAttribute("multiple",d.multiple),m},createText:a=>ii.createTextNode(a),createComment:a=>ii.createComment(a),setText:(a,r)=>{a.nodeValue=r},setElementText:(a,r)=>{a.textContent=r},parentNode:a=>a.parentNode,nextSibling:a=>a.nextSibling,querySelector:a=>ii.querySelector(a),setScopeId(a,r){a.setAttribute(r,"")},insertStaticContent(a,r,c,d,m,y){const S=c?c.previousSibling:r.lastChild;if(m&&(m===y||m.nextSibling))for(;r.insertBefore(m.cloneNode(!0),c),!(m===y||!(m=m.nextSibling)););else{Lo.innerHTML=d==="svg"?`${a}`:d==="mathml"?`${a}`:a;const P=Lo.content;if(d==="svg"||d==="mathml"){const I=P.firstChild;for(;I.firstChild;)P.appendChild(I.firstChild);P.removeChild(I)}r.insertBefore(P,c)}return[S?S.nextSibling:r.firstChild,c?c.previousSibling:r.lastChild]}},Zu=Symbol("_vtc");function Ku(a,r,c){const d=a[Zu];d&&(r=(r?[r,...d]:[...d]).join(" ")),r==null?a.removeAttribute("class"):c?a.setAttribute("class",r):a.className=r}const zs=Symbol("_vod"),zc=Symbol("_vsh"),Ia={beforeMount(a,{value:r},{transition:c}){a[zs]=a.style.display==="none"?"":a.style.display,c&&r?c.beforeEnter(a):ha(a,r)},mounted(a,{value:r},{transition:c}){c&&r&&c.enter(a)},updated(a,{value:r,oldValue:c},{transition:d}){!r!=!c&&(d?r?(d.beforeEnter(a),ha(a,!0),d.enter(a)):d.leave(a,()=>{ha(a,!1)}):ha(a,r))},beforeUnmount(a,{value:r}){ha(a,r)}};function ha(a,r){a.style.display=r?a[zs]:"none",a[zc]=!r}const Ju=Symbol(""),Qu=/(^|;)\s*display\s*:/;function tf(a,r,c){const d=a.style,m=ce(c);let y=!1;if(c&&!m){if(r)if(ce(r))for(const S of r.split(";")){const P=S.slice(0,S.indexOf(":")).trim();c[P]==null&&ws(d,P,"")}else for(const S in r)c[S]==null&&ws(d,S,"");for(const S in c)S==="display"&&(y=!0),ws(d,S,c[S])}else if(m){if(r!==c){const S=d[Ju];S&&(c+=";"+S),d.cssText=c,y=Qu.test(c)}}else r&&a.removeAttribute("style");zs in a&&(a[zs]=y?d.display:"",a[zc]&&(d.display="none"))}const _o=/\s*!important$/;function ws(a,r,c){if(Ct(c))c.forEach(d=>ws(a,r,d));else if(c==null&&(c=""),r.startsWith("--"))a.setProperty(r,c);else{const d=ef(a,r);_o.test(c)?a.setProperty(sa(d),c.replace(_o,""),"important"):a[d]=c}}const Eo=["Webkit","Moz","ms"],ur={};function ef(a,r){const c=ur[r];if(c)return c;let d=qe(r);if(d!=="filter"&&d in a)return ur[r]=d;d=Bs(d);for(let m=0;mfr||(lf.then(()=>fr=0),fr=Date.now());function hf(a,r){const c=d=>{if(!d._vts)d._vts=Date.now();else if(d._vts<=c.attached)return;Ve(df(d,c.value),r,5,[d])};return c.value=a,c.attached=cf(),c}function df(a,r){if(Ct(r)){const c=a.stopImmediatePropagation;return a.stopImmediatePropagation=()=>{c.call(a),a._stopped=!0},r.map(d=>m=>!m._stopped&&d&&d(m))}else return r}const zo=a=>a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)>96&&a.charCodeAt(2)<123,uf=(a,r,c,d,m,y,S,P,I)=>{const R=m==="svg";r==="class"?Ku(a,d,R):r==="style"?tf(a,c,d):Hs(r)?hn(r)||nf(a,r,c,d,S):(r[0]==="."?(r=r.slice(1),!0):r[0]==="^"?(r=r.slice(1),!1):ff(a,r,d,R))?(af(a,r,d,y,S,P,I),(r==="value"||r==="checked"||r==="selected")&&Io(a,r,d,R,S,r!=="value")):(r==="true-value"?a._trueValue=d:r==="false-value"&&(a._falseValue=d),Io(a,r,d,R))};function ff(a,r,c,d){if(d)return!!(r==="innerHTML"||r==="textContent"||r in a&&zo(r)&&_t(c));if(r==="spellcheck"||r==="draggable"||r==="translate"||r==="form"||r==="list"&&a.tagName==="INPUT"||r==="type"&&a.tagName==="TEXTAREA")return!1;if(r==="width"||r==="height"){const m=a.tagName;if(m==="IMG"||m==="VIDEO"||m==="CANVAS"||m==="SOURCE")return!1}return zo(r)&&ce(c)?!1:r in a}const gf=ue({patchProp:uf},qu);let Ro;function pf(){return Ro||(Ro=wu(gf))}const xf=(...a)=>{const r=pf().createApp(...a),{mount:c}=r;return r.mount=d=>{const m=bf(d);if(!m)return;const y=r._component;!_t(y)&&!y.render&&!y.template&&(y.template=m.innerHTML),m.innerHTML="";const S=c(m,!1,mf(m));return m instanceof Element&&(m.removeAttribute("v-cloak"),m.setAttribute("data-v-app","")),S},r};function mf(a){if(a instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&a instanceof MathMLElement)return"mathml"}function bf(a){return ce(a)?document.querySelector(a):a}function vf(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Yr={exports:{}};/*! * ApexCharts v3.45.2 * (c) 2018-2024 ApexCharts * Released under the MIT License. */(function(a,r){function c(_,t){var e=Object.keys(_);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(_);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(_,s).enumerable})),e.push.apply(e,i)}return e}function d(_){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var e,i=F(_);if(t){var s=F(this).constructor;e=Reflect.construct(i,arguments,s)}else e=i.apply(this,arguments);return function(n,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(n)}(this,e)}}function pt(_,t){return function(e){if(Array.isArray(e))return e}(_)||function(e,i){var s=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(s!=null){var n,o,l=[],h=!0,f=!1;try{for(s=s.call(e);!(h=(n=s.next()).done)&&(l.push(n.value),!i||l.length!==i);h=!0);}catch(g){f=!0,o=g}finally{try{h||s.return==null||s.return()}finally{if(f)throw o}}return l}}(_,t)||Lt(_,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ht(_){return function(t){if(Array.isArray(t))return at(t)}(_)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(_)||Lt(_)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Lt(_,t){if(_){if(typeof _=="string")return at(_,t);var e=Object.prototype.toString.call(_).slice(8,-1);return e==="Object"&&_.constructor&&(e=_.constructor.name),e==="Map"||e==="Set"?Array.from(_):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?at(_,t):void 0}}function at(_,t){(t==null||t>_.length)&&(t=_.length);for(var e=0,i=new Array(t);e>16,l=i>>8&255,h=255&i;return"#"+(16777216+65536*(Math.round((s-o)*n)+o)+256*(Math.round((s-l)*n)+l)+(Math.round((s-h)*n)+h)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,e){return _.isColorHex(e)?this.shadeHexColor(t,e):this.shadeRGBColor(t,e)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(t){return t&&m(t)==="object"&&!Array.isArray(t)&&t!=null}},{key:"is",value:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"}},{key:"listToArray",value:function(t){var e,i=[];for(e=0;e1&&arguments[1]!==void 0?arguments[1]:2;return Number.isInteger(t)?t:parseFloat(t.toPrecision(e))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(t){var e=String(t).split(/[eE]/);if(e.length===1)return e[0];var i="",s=t<0?"-":"",n=e[0].replace(".",""),o=Number(e[1])+1;if(o<0){for(i=s+"0.";o++;)i+="0";return i+n.replace(/^-/,"")}for(o-=n.length;o--;)i+="0";return n+i}},{key:"getDimensions",value:function(t){var e=getComputedStyle(t,null),i=t.clientHeight,s=t.clientWidth;return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),[s-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),i]}},{key:"getBoundingClientRect",value:function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:t.clientWidth,height:t.clientHeight,x:e.left,y:e.top}}},{key:"getLargestStringFromArr",value:function(t){return t.reduce(function(e,i){return Array.isArray(i)&&(i=i.reduce(function(s,n){return s.length>n.length?s:n})),e.length>i.length?e:i},0)}},{key:"hexToRgba",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;t.substring(0,1)!=="#"&&(t="#999999");var i=t.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:"x",i=t.toString().slice();return i=i.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,e)}},{key:"negToZero",value:function(t){return t<0?0:t}},{key:"moveIndexInArray",value:function(t,e,i){if(i>=t.length)for(var s=i-t.length+1;s--;)t.push(void 0);return t.splice(i,0,t.splice(e,1)[0]),t}},{key:"extractNumber",value:function(t){return parseFloat(t.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}},{key:"setELstyles",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style.key=e[i])}},{key:"isNumber",value:function(t){return!isNaN(t)&&parseFloat(Number(t))===t&&!isNaN(parseInt(t,10))}},{key:"isFloat",value:function(t){return Number(t)===t&&t%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(window.navigator.userAgent.indexOf("MSIE")!==-1||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var s=t.indexOf("Edge/");return s>0&&parseInt(t.substring(s+5,t.indexOf(".",s)),10)}}]),_}(),Q=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.setEasingFunctions()}return P(_,[{key:"setEasingFunctions",value:function(){var t;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":t="-";break;case"easein":t="<";break;case"easeout":t=">";break;case"easeinout":default:t="<>";break;case"swing":t=function(e){var i=1.70158;return(e-=1)*e*((i+1)*e+i)+1};break;case"bounce":t=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375};break;case"elastic":t=function(e){return e===!!e?e:Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=t}}},{key:"animateLine",value:function(t,e,i,s){t.attr(e).animate(s).attr(i)}},{key:"animateMarker",value:function(t,e,i,s,n,o){e||(e=0),t.attr({r:e,width:e,height:e}).animate(s,n).attr({r:i,width:i.width,height:i.height}).afterAll(function(){o()})}},{key:"animateCircle",value:function(t,e,i,s,n){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(s,n).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(t,e,i,s,n){t.attr(e).animate(s).attr(i).afterAll(function(){return n()})}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.realIndex,s=t.j,n=t.fill,o=t.pathFrom,l=t.pathTo,h=t.speed,f=t.delay,g=this.w,p=0;g.config.chart.animations.animateGradually.enabled&&(p=g.config.chart.animations.animateGradually.delay),g.config.chart.animations.dynamicAnimation.enabled&&g.globals.dataChanged&&g.config.chart.type!=="bar"&&(p=0),this.morphSVG(e,i,s,g.config.chart.type!=="line"||g.globals.comboCharts?n:"stroke",o,l,h,f*p)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(t){var e=t.el;e.classList.remove("apexcharts-element-hidden"),e.classList.add("apexcharts-hidden-element-shown")})}},{key:"animationCompleted",value:function(t){var e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),typeof e.config.chart.events.animationEnd=="function"&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}},{key:"morphSVG",value:function(t,e,i,s,n,o,l,h){var f=this,g=this.w;n||(n=t.attr("pathFrom")),o||(o=t.attr("pathTo"));var p=function(x){return g.config.chart.type==="radar"&&(l=1),"M 0 ".concat(g.globals.gridHeight)};(!n||n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n=p()),(!o||o.indexOf("undefined")>-1||o.indexOf("NaN")>-1)&&(o=p()),g.globals.shouldAnimate||(l=1),t.plot(n).animate(1,g.globals.easing,h).plot(n).animate(l,g.globals.easing,h).plot(o).afterAll(function(){z.isNumber(i)?i===g.globals.series[g.globals.maxValsInArrayIndex].length-2&&g.globals.shouldAnimate&&f.animationCompleted(t):s!=="none"&&g.globals.shouldAnimate&&(!g.globals.comboCharts&&e===g.globals.series.length-1||g.globals.comboCharts)&&f.animationCompleted(t),f.showDelayedElements()})}}]),_}(),tt=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"getDefaultFilter",value:function(t,e){var i=this.w;t.unfilter(!0),new window.SVG.Filter().size("120%","180%","-5%","-40%"),i.config.states.normal.filter!=="none"?this.applyFilter(t,e,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addNormalFilter",value:function(t,e){var i=this.w;i.config.chart.dropShadow.enabled&&!t.node.classList.contains("apexcharts-marker")&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addLightenFilter",value:function(t,e,i){var s=this,n=this.w,o=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter(function(l){var h=n.config.chart.dropShadow;(h.enabled?s.addShadow(l,e,h):l).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:o}})}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"addDarkenFilter",value:function(t,e,i){var s=this,n=this.w,o=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter(function(l){var h=n.config.chart.dropShadow;(h.enabled?s.addShadow(l,e,h):l).componentTransfer({rgb:{type:"linear",slope:o}})}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"applyFilter",value:function(t,e,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(t,e);break;case"lighten":this.addLightenFilter(t,e,{intensity:s});break;case"darken":this.addDarkenFilter(t,e,{intensity:s})}}},{key:"addShadow",value:function(t,e,i){var s=i.blur,n=i.top,o=i.left,l=i.color,h=i.opacity,f=t.flood(Array.isArray(l)?l[e]:l,h).composite(t.sourceAlpha,"in").offset(o,n).gaussianBlur(s).merge(t.source);return t.blend(t.source,f)}},{key:"dropShadow",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,s=e.top,n=e.left,o=e.blur,l=e.color,h=e.opacity,f=e.noUserSpaceOnUse,g=this.w;return t.unfilter(!0),z.isIE()&&g.config.chart.type==="radialBar"||(l=Array.isArray(l)?l[i]:l,t.filter(function(p){var x=null;x=z.isSafari()||z.isFirefox()||z.isIE()?p.flood(l,h).composite(p.sourceAlpha,"in").offset(n,s).gaussianBlur(o):p.flood(l,h).composite(p.sourceAlpha,"in").offset(n,s).gaussianBlur(o).merge(p.source),p.blend(p.source,x)}),f||t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)),t}},{key:"setSelectionFilter",value:function(t,e,i){var s=this.w;if(s.globals.selectedDataPoints[e]!==void 0&&s.globals.selectedDataPoints[e].indexOf(i)>-1){t.node.setAttribute("selected",!0);var n=s.config.states.active.filter;n!=="none"&&this.applyFilter(t,e,n.type,n.value)}}},{key:"_scaleFilterSize",value:function(t){(function(e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),_}(),V=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"roundPathCorners",value:function(t,e){function i(O,N,X){var G=N.x-O.x,U=N.y-O.y,j=Math.sqrt(G*G+U*U);return s(O,N,Math.min(1,X/j))}function s(O,N,X){return{x:O.x+(N.x-O.x)*X,y:O.y+(N.y-O.y)*X}}function n(O,N){O.length>2&&(O[O.length-2]=N.x,O[O.length-1]=N.y)}function o(O){return{x:parseFloat(O[O.length-2]),y:parseFloat(O[O.length-1])}}t.indexOf("NaN")>-1&&(t="");var l=t.split(/[,\s]/).reduce(function(O,N){var X=N.match("([a-zA-Z])(.+)");return X?(O.push(X[1]),O.push(X[2])):O.push(N),O},[]).reduce(function(O,N){return parseFloat(N)==N&&O.length?O[O.length-1].push(N):O.push([N]),O},[]),h=[];if(l.length>1){var f=o(l[0]),g=null;l[l.length-1][0]=="Z"&&l[0].length>2&&(g=["L",f.x,f.y],l[l.length-1]=g),h.push(l[0]);for(var p=1;p2&&v[0]=="L"&&w.length>2&&w[0]=="L"){var A,C,E=o(x),M=o(v),u=o(w);A=i(M,E,e),C=i(M,u,e),n(v,A),v.origPoint=M,h.push(v);var b=s(A,M,.5),k=s(M,C,.5),L=["C",b.x,b.y,k.x,k.y,C.x,C.y];L.origPoint=M,h.push(L)}else h.push(v)}if(g){var T=o(h[h.length-1]);h.push(["Z"]),n(h[0],T)}}else h=l;return h.reduce(function(O,N){return O+N.join(" ")+" "},"")}},{key:"drawLine",value:function(t,e,i,s){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,h=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:s,stroke:n,"stroke-dasharray":o,"stroke-width":l,"stroke-linecap":h})}},{key:"drawRect",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,h=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,f=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,g=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,p=this.w.globals.dom.Paper.rect();return p.attr({x:t,y:e,width:i>0?i:0,height:s>0?s:0,rx:n,ry:n,opacity:l,"stroke-width":h!==null?h:0,stroke:f!==null?f:"none","stroke-dasharray":g}),p.node.setAttribute("fill",o),p}},{key:"drawPolygon",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(t).attr({fill:s,stroke:e,"stroke-width":i})}},{key:"drawCircle",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;t<0&&(t=0);var i=this.w.globals.dom.Paper.circle(2*t);return e!==null&&i.attr(e),i}},{key:"drawPath",value:function(t){var e=t.d,i=e===void 0?"":e,s=t.stroke,n=s===void 0?"#a8a8a8":s,o=t.strokeWidth,l=o===void 0?1:o,h=t.fill,f=t.fillOpacity,g=f===void 0?1:f,p=t.strokeOpacity,x=p===void 0?1:p,v=t.classes,w=t.strokeLinecap,A=w===void 0?null:w,C=t.strokeDashArray,E=C===void 0?0:C,M=this.w;return A===null&&(A=M.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(M.globals.gridHeight)),M.globals.dom.Paper.path(i).attr({fill:h,"fill-opacity":g,stroke:n,"stroke-opacity":x,"stroke-linecap":A,"stroke-width":l,"stroke-dasharray":E,class:v})}},{key:"group",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=this.w.globals.dom.Paper.group();return t!==null&&e.attr(t),e}},{key:"move",value:function(t,e){var i=["M",t,e].join(" ");return i}},{key:"line",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,s=null;return i===null?s=[" L",t,e].join(" "):i==="H"?s=[" H",t].join(" "):i==="V"&&(s=[" V",e].join(" ")),s}},{key:"curve",value:function(t,e,i,s,n,o){var l=["C",t,e,i,s,n,o].join(" ");return l}},{key:"quadraticCurve",value:function(t,e,i,s){return["Q",t,e,i,s].join(" ")}},{key:"arc",value:function(t,e,i,s,n,o,l){var h="A";arguments.length>7&&arguments[7]!==void 0&&arguments[7]&&(h="a");var f=[h,t,e,i,s,n,o,l].join(" ");return f}},{key:"renderPaths",value:function(t){var e,i=t.j,s=t.realIndex,n=t.pathFrom,o=t.pathTo,l=t.stroke,h=t.strokeWidth,f=t.strokeLinecap,g=t.fill,p=t.animationDelay,x=t.initialSpeed,v=t.dataChangeSpeed,w=t.className,A=t.shouldClipToGrid,C=A===void 0||A,E=t.bindEventsOnPaths,M=E===void 0||E,u=t.drawShadow,b=u===void 0||u,k=this.w,L=new tt(this.ctx),T=new Q(this.ctx),O=this.w.config.chart.animations.enabled,N=O&&this.w.config.chart.animations.dynamicAnimation.enabled,X=!!(O&&!k.globals.resized||N&&k.globals.dataChanged&&k.globals.shouldAnimate);X?e=n:(e=o,k.globals.animationEnded=!0);var G=k.config.stroke.dashArray,U=0;U=Array.isArray(G)?G[s]:k.config.stroke.dashArray;var j=this.drawPath({d:e,stroke:l,strokeWidth:h,fill:g,fillOpacity:1,classes:w,strokeLinecap:f,strokeDashArray:U});if(j.attr("index",s),C&&j.attr({"clip-path":"url(#gridRectMask".concat(k.globals.cuid,")")}),k.config.states.normal.filter.type!=="none")L.getDefaultFilter(j,s);else if(k.config.chart.dropShadow.enabled&&b&&(!k.config.chart.dropShadow.enabledOnSeries||k.config.chart.dropShadow.enabledOnSeries&&k.config.chart.dropShadow.enabledOnSeries.indexOf(s)!==-1)){var ot=k.config.chart.dropShadow;L.dropShadow(j,ot,s)}M&&(j.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,j)),j.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,j)),j.node.addEventListener("mousedown",this.pathMouseDown.bind(this,j))),j.attr({pathTo:o,pathFrom:n});var ft={el:j,j:i,realIndex:s,pathFrom:n,pathTo:o,fill:g,strokeWidth:h,delay:p};return!O||k.globals.resized||k.globals.dataChanged?!k.globals.resized&&k.globals.dataChanged||T.showDelayedElements():T.animatePathsGradually(d(d({},ft),{},{speed:x})),k.globals.dataChanged&&N&&X&&T.animatePathsGradually(d(d({},ft),{},{speed:v})),j}},{key:"drawPattern",value:function(t,e,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;return this.w.globals.dom.Paper.pattern(e,i,function(o){t==="horizontalLines"?o.line(0,0,i,0).stroke({color:s,width:n+1}):t==="verticalLines"?o.line(0,0,0,e).stroke({color:s,width:n+1}):t==="slantedLines"?o.line(0,0,e,i).stroke({color:s,width:n}):t==="squares"?o.rect(e,i).fill("none").stroke({color:s,width:n}):t==="circles"&&o.circle(e).fill("none").stroke({color:s,width:n})})}},{key:"drawGradient",value:function(t,e,i,s,n){var o,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,h=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,f=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,g=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,p=this.w;e.length<9&&e.indexOf("#")===0&&(e=z.hexToRgba(e,s)),i.length<9&&i.indexOf("#")===0&&(i=z.hexToRgba(i,n));var x=0,v=1,w=1,A=null;h!==null&&(x=h[0]!==void 0?h[0]/100:0,v=h[1]!==void 0?h[1]/100:1,w=h[2]!==void 0?h[2]/100:1,A=h[3]!==void 0?h[3]/100:null);var C=!(p.config.chart.type!=="donut"&&p.config.chart.type!=="pie"&&p.config.chart.type!=="polarArea"&&p.config.chart.type!=="bubble");if(o=f===null||f.length===0?p.globals.dom.Paper.gradient(C?"radial":"linear",function(u){u.at(x,e,s),u.at(v,i,n),u.at(w,i,n),A!==null&&u.at(A,e,s)}):p.globals.dom.Paper.gradient(C?"radial":"linear",function(u){(Array.isArray(f[g])?f[g]:f).forEach(function(b){u.at(b.offset/100,b.color,b.opacity)})}),C){var E=p.globals.gridWidth/2,M=p.globals.gridHeight/2;p.config.chart.type!=="bubble"?o.attr({gradientUnits:"userSpaceOnUse",cx:E,cy:M,r:l}):o.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else t==="vertical"?o.from(0,0).to(0,1):t==="diagonal"?o.from(0,0).to(1,1):t==="horizontal"?o.from(0,1).to(1,1):t==="diagonal2"&&o.from(1,0).to(0,1);return o}},{key:"getTextBasedOnMaxWidth",value:function(t){var e=t.text,i=t.maxWidth,s=t.fontSize,n=t.fontFamily,o=this.getTextRects(e,s,n),l=o.width/e.length,h=Math.floor(i/l);return i-1){var h=i.globals.selectedDataPoints[n].indexOf(o);i.globals.selectedDataPoints[n].splice(h,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var f=i.globals.dom.Paper.select(".apexcharts-series path").members,g=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,p=function(w){Array.prototype.forEach.call(w,function(A){A.node.setAttribute("selected","false"),s.getDefaultFilter(A,n)})};p(f),p(g)}t.node.setAttribute("selected","true"),l="true",i.globals.selectedDataPoints[n]===void 0&&(i.globals.selectedDataPoints[n]=[]),i.globals.selectedDataPoints[n].push(o)}if(l==="true"){var x=i.config.states.active.filter;if(x!=="none")s.applyFilter(t,n,x.type,x.value);else if(i.config.states.hover.filter!=="none"&&!i.globals.isTouchDevice){var v=i.config.states.hover.filter;s.applyFilter(t,n,v.type,v.value)}}else i.config.states.active.filter.type!=="none"&&(i.config.states.hover.filter.type==="none"||i.globals.isTouchDevice?s.getDefaultFilter(t,n):(v=i.config.states.hover.filter,s.applyFilter(t,n,v.type,v.value)));typeof i.config.chart.events.dataPointSelection=="function"&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:n,dataPointIndex:o,w:i}),e&&this.ctx.events.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:n,dataPointIndex:o,w:i}])}},{key:"rotateAroundCenter",value:function(t){var e={};return t&&typeof t.getBBox=="function"&&(e=t.getBBox()),{x:e.x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e,i,s){var n=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],o=this.w,l=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:i,foreColor:"#fff",opacity:0});s&&l.attr("transform",s),o.globals.dom.Paper.add(l);var h=l.bbox();return n||(h=l.node.getBoundingClientRect()),l.remove(),{width:h.width,height:h.height}}},{key:"placeTextWithEllipsis",value:function(t,e,i){if(typeof t.getComputedTextLength=="function"&&(t.textContent=e,e.length>0&&t.getComputedTextLength()>=i/1.1)){for(var s=e.length-3;s>0;s-=3)if(t.getSubStringLength(0,s)<=i/1.1)return void(t.textContent=e.substring(0,s)+"...");t.textContent="."}}}],[{key:"setAttrs",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}}]),_}(),et=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"getStackedSeriesTotals",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=this.w,i=[];if(e.globals.series.length===0)return i;for(var s=0;s0&&arguments[0]!==void 0?arguments[0]:null;return t===null?this.w.config.series.reduce(function(e,i){return e+i},0):this.w.globals.series[t].reduce(function(e,i){return e+i},0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var t=this,e=this.w,i=[];return e.globals.seriesGroups.forEach(function(s){var n=[];e.config.series.forEach(function(l,h){s.indexOf(l.name)>-1&&n.push(h)});var o=e.globals.series.map(function(l,h){return n.indexOf(h)===-1?h:-1}).filter(function(l){return l!==-1});i.push(t.getStackedSeriesTotals(o))}),i}},{key:"isSeriesNull",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(t===null?this.w.config.series.filter(function(e){return e!==null}):this.w.config.series[t].data.filter(function(e){return e!==null})).length===0}},{key:"seriesHaveSameValues",value:function(t){return this.w.globals.series[t].every(function(e,i,s){return e===s[0]})}},{key:"getCategoryLabels",value:function(t){var e=this.w,i=t.slice();return e.config.xaxis.convertedCatToNumeric&&(i=t.map(function(s,n){return e.config.xaxis.labels.formatter(s-e.globals.minX+1)})),i}},{key:"getLargestSeries",value:function(){var t=this.w;t.globals.maxValsInArrayIndex=t.globals.series.map(function(e){return e.length}).indexOf(Math.max.apply(Math,t.globals.series.map(function(e){return e.length})))}},{key:"getLargestMarkerSize",value:function(){var t=this.w,e=0;return t.globals.markers.size.forEach(function(i){e=Math.max(e,i)}),t.config.markers.discrete&&t.config.markers.discrete.length&&t.config.markers.discrete.forEach(function(i){e=Math.max(e,i.size)}),e>0&&(e+=t.config.markers.hover.sizeOffset+1),t.globals.markers.largestSize=e,e}},{key:"getSeriesTotals",value:function(){var t=this.w;t.globals.seriesTotals=t.globals.series.map(function(e,i){var s=0;if(Array.isArray(e))for(var n=0;nt&&i.globals.seriesX[n][l]0&&(e=!0),{comboBarCount:i,comboCharts:e}}},{key:"extendArrayProps",value:function(t,e,i){return e.yaxis&&(e=t.extendYAxis(e,i)),e.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),e.annotations.xaxis&&(e=t.extendXAxisAnnotations(e)),e.annotations.points&&(e=t.extendPointAnnotations(e))),e}}]),_}(),St=function(){function _(t){y(this,_),this.w=t.w,this.annoCtx=t}return P(_,[{key:"setOrientations",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.w;if(t.label.orientation==="vertical"){var s=e!==null?e:0,n=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(s,"']"));if(n!==null){var o=n.getBoundingClientRect();n.setAttribute("x",parseFloat(n.getAttribute("x"))-o.height+4),t.label.position==="top"?n.setAttribute("y",parseFloat(n.getAttribute("y"))+o.width):n.setAttribute("y",parseFloat(n.getAttribute("y"))-o.width);var l=this.annoCtx.graphics.rotateAroundCenter(n),h=l.x,f=l.y;n.setAttribute("transform","rotate(-90 ".concat(h," ").concat(f,")"))}}}},{key:"addBackgroundToAnno",value:function(t,e){var i=this.w;if(!t||e.label.text===void 0||e.label.text!==void 0&&!String(e.label.text).trim())return null;var s=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),n=t.getBoundingClientRect(),o=e.label.style.padding.left,l=e.label.style.padding.right,h=e.label.style.padding.top,f=e.label.style.padding.bottom;e.label.orientation==="vertical"&&(h=e.label.style.padding.left,f=e.label.style.padding.right,o=e.label.style.padding.top,l=e.label.style.padding.bottom);var g=n.left-s.left-o,p=n.top-s.top-h,x=this.annoCtx.graphics.drawRect(g-i.globals.barPadForNumericAxis,p,n.width+o+l,n.height+h+f,e.label.borderRadius,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0);return e.id&&x.node.classList.add(e.id),x}},{key:"annotationsBackground",value:function(){var t=this,e=this.w,i=function(s,n,o){var l=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(o,"-annotations .apexcharts-").concat(o,"-annotation-label[rel='").concat(n,"']"));if(l){var h=l.parentNode,f=t.addBackgroundToAnno(l,s);f&&(h.insertBefore(f.node,l),s.label.mouseEnter&&f.node.addEventListener("mouseenter",s.label.mouseEnter.bind(t,s)),s.label.mouseLeave&&f.node.addEventListener("mouseleave",s.label.mouseLeave.bind(t,s)),s.label.click&&f.node.addEventListener("click",s.label.click.bind(t,s)))}};e.config.annotations.xaxis.map(function(s,n){i(s,n,"xaxis")}),e.config.annotations.yaxis.map(function(s,n){i(s,n,"yaxis")}),e.config.annotations.points.map(function(s,n){i(s,n,"point")})}},{key:"getY1Y2",value:function(t,e){var i,s=t==="y1"?e.y:e.y2,n=this.w;if(this.annoCtx.invertAxis){var o=n.globals.labels.indexOf(s);n.config.xaxis.convertedCatToNumeric&&(o=n.globals.categoryLabels.indexOf(s));var l=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(o+1)+")");l&&(i=parseFloat(l.getAttribute("y"))),e.seriesIndex!==void 0&&n.globals.barHeight&&(i=i-n.globals.barHeight/2*(n.globals.series.length-1)+n.globals.barHeight*e.seriesIndex)}else{var h;n.config.yaxis[e.yAxisIndex].logarithmic?h=(s=new et(this.annoCtx.ctx).getLogVal(s,e.yAxisIndex))/n.globals.yLogRatio[e.yAxisIndex]:h=(s-n.globals.minYArr[e.yAxisIndex])/(n.globals.yRange[e.yAxisIndex]/n.globals.gridHeight),i=n.globals.gridHeight-h,!e.marker||e.y!==void 0&&e.y!==null||(i=0),n.config.yaxis[e.yAxisIndex]&&n.config.yaxis[e.yAxisIndex].reversed&&(i=h)}return typeof s=="string"&&s.indexOf("px")>-1&&(i=parseFloat(s)),i}},{key:"getX1X2",value:function(t,e){var i=this.w,s=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,n=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,o=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,l=(e.x-s)/(o/i.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(l=(n-e.x)/(o/i.globals.gridWidth)),i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(l=this.getStringX(e.x));var h=(e.x2-s)/(o/i.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(h=(n-e.x2)/(o/i.globals.gridWidth)),i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(h=this.getStringX(e.x2)),e.x!==void 0&&e.x!==null||!e.marker||(l=i.globals.gridWidth),t==="x1"&&typeof e.x=="string"&&e.x.indexOf("px")>-1&&(l=parseFloat(e.x)),t==="x2"&&typeof e.x2=="string"&&e.x2.indexOf("px")>-1&&(h=parseFloat(e.x2)),e.seriesIndex!==void 0&&i.globals.barWidth&&!this.annoCtx.invertAxis&&(l=l-i.globals.barWidth/2*(i.globals.series.length-1)+i.globals.barWidth*e.seriesIndex),t==="x1"?l:h}},{key:"getStringX",value:function(t){var e=this.w,i=t;e.config.xaxis.convertedCatToNumeric&&e.globals.categoryLabels.length&&(t=e.globals.categoryLabels.indexOf(t)+1);var s=e.globals.labels.indexOf(t),n=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(s+1)+")");return n&&(i=parseFloat(n.getAttribute("x"))),i}}]),_}(),Wt=function(){function _(t){y(this,_),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new St(this.annoCtx)}return P(_,[{key:"addXaxisAnnotation",value:function(t,e,i){var s,n=this.w,o=this.helpers.getX1X2("x1",t),l=t.label.text,h=t.strokeDashArray;if(z.isNumber(o)){if(t.x2===null||t.x2===void 0){var f=this.annoCtx.graphics.drawLine(o+t.offsetX,0+t.offsetY,o+t.offsetX,n.globals.gridHeight+t.offsetY,t.borderColor,h,t.borderWidth);e.appendChild(f.node),t.id&&f.node.classList.add(t.id)}else{if((s=this.helpers.getX1X2("x2",t))l){var g=l;l=s,s=g}var p=this.annoCtx.graphics.drawRect(0+t.offsetX,s+t.offsetY,this._getYAxisAnnotationWidth(t),l-s,0,t.fillColor,t.opacity,1,t.borderColor,o);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(n.globals.cuid,")")),e.appendChild(p.node),t.id&&p.node.classList.add(t.id)}var x=t.label.position==="right"?n.globals.gridWidth:t.label.position==="center"?n.globals.gridWidth/2:0,v=this.annoCtx.graphics.drawText({x:x+t.label.offsetX,y:(s??l)+t.label.offsetY-3,text:h,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});v.attr({rel:i}),e.appendChild(v.node)}},{key:"_getYAxisAnnotationWidth",value:function(t){var e=this.w;return e.globals.gridWidth,(t.width.indexOf("%")>-1?e.globals.gridWidth*parseInt(t.width,10)/100:parseInt(t.width,10))+t.offsetX}},{key:"drawYAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.map(function(s,n){t.addYaxisAnnotation(s,i.node,n)}),i}}]),_}(),te=function(){function _(t){y(this,_),this.w=t.w,this.annoCtx=t,this.helpers=new St(this.annoCtx)}return P(_,[{key:"addPointAnnotation",value:function(t,e,i){this.w;var s=this.helpers.getX1X2("x1",t),n=this.helpers.getY1Y2("y1",t);if(z.isNumber(s)){var o={pSize:t.marker.size,pointStrokeWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,pRadius:t.marker.radius,class:"apexcharts-point-annotation-marker ".concat(t.marker.cssClass," ").concat(t.id?t.id:"")},l=this.annoCtx.graphics.drawMarker(s+t.marker.offsetX,n+t.marker.offsetY,o);e.appendChild(l.node);var h=t.label.text?t.label.text:"",f=this.annoCtx.graphics.drawText({x:s+t.label.offsetX,y:n+t.label.offsetY-t.marker.size-parseFloat(t.label.style.fontSize)/1.6,text:h,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});if(f.attr({rel:i}),e.appendChild(f.node),t.customSVG.SVG){var g=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass});g.attr({transform:"translate(".concat(s+t.customSVG.offsetX,", ").concat(n+t.customSVG.offsetY,")")}),g.node.innerHTML=t.customSVG.SVG,e.appendChild(g.node)}if(t.image.path){var p=t.image.width?t.image.width:20,x=t.image.height?t.image.height:20;l=this.annoCtx.addImage({x:s+t.image.offsetX-p/2,y:n+t.image.offsetY-x/2,width:p,height:x,path:t.image.path,appendTo:".apexcharts-point-annotations"})}t.mouseEnter&&l.node.addEventListener("mouseenter",t.mouseEnter.bind(this,t)),t.mouseLeave&&l.node.addEventListener("mouseleave",t.mouseLeave.bind(this,t)),t.click&&l.node.addEventListener("click",t.click.bind(this,t))}}},{key:"drawPointAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map(function(s,n){t.addPointAnnotation(s,i.node,n)}),i}}]),_}(),bt={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},It=function(){function _(){y(this,_),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return P(_,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[bt],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(t){return new Date(t).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(t){return t}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(t){return t+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce(function(e,i){return e+i},0)/t.globals.series.length+"%"}}},barLabels:{enabled:!1,margin:5,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(t){return t},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(t){return t}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(t){return t}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce(function(e,i){return e+i},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(t){return t!==null?t:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(t){return t?t+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),_}(),pe=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.graphics=new V(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new St(this),this.xAxisAnnotations=new Wt(this),this.yAxisAnnotations=new ie(this),this.pointsAnnotations=new te(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return P(_,[{key:"drawAxesAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts){for(var e=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),s=this.pointsAnnotations.drawPointAnnotations(),n=t.config.chart.animations.enabled,o=[e,i,s],l=[i.node,e.node,s.node],h=0;h<3;h++)t.globals.dom.elGraphical.add(o[h]),!n||t.globals.resized||t.globals.dataChanged||t.config.chart.type!=="scatter"&&t.config.chart.type!=="bubble"&&t.globals.dataPoints>1&&l[h].classList.add("apexcharts-element-hidden"),t.globals.delayedElements.push({el:l[h],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var t=this;this.w.config.annotations.images.map(function(e,i){t.addImage(e,i)})}},{key:"drawTextAnnos",value:function(){var t=this;this.w.config.annotations.texts.map(function(e,i){t.addText(e,i)})}},{key:"addXaxisAnnotation",value:function(t,e,i){this.xAxisAnnotations.addXaxisAnnotation(t,e,i)}},{key:"addYaxisAnnotation",value:function(t,e,i){this.yAxisAnnotations.addYaxisAnnotation(t,e,i)}},{key:"addPointAnnotation",value:function(t,e,i){this.pointsAnnotations.addPointAnnotation(t,e,i)}},{key:"addText",value:function(t,e){var i=t.x,s=t.y,n=t.text,o=t.textAnchor,l=t.foreColor,h=t.fontSize,f=t.fontFamily,g=t.fontWeight,p=t.cssClass,x=t.backgroundColor,v=t.borderWidth,w=t.strokeDashArray,A=t.borderRadius,C=t.borderColor,E=t.appendTo,M=E===void 0?".apexcharts-svg":E,u=t.paddingLeft,b=u===void 0?4:u,k=t.paddingRight,L=k===void 0?4:k,T=t.paddingBottom,O=T===void 0?2:T,N=t.paddingTop,X=N===void 0?2:N,G=this.w,U=this.graphics.drawText({x:i,y:s,text:n,textAnchor:o||"start",fontSize:h||"12px",fontWeight:g||"regular",fontFamily:f||G.config.chart.fontFamily,foreColor:l||G.config.chart.foreColor,cssClass:p}),j=G.globals.dom.baseEl.querySelector(M);j&&j.appendChild(U.node);var ot=U.bbox();if(n){var ft=this.graphics.drawRect(ot.x-b,ot.y-X,ot.width+b+L,ot.height+O+X,A,x||"transparent",1,v,C,w);j.insertBefore(ft.node,U.node)}}},{key:"addImage",value:function(t,e){var i=this.w,s=t.path,n=t.x,o=n===void 0?0:n,l=t.y,h=l===void 0?0:l,f=t.width,g=f===void 0?20:f,p=t.height,x=p===void 0?20:p,v=t.appendTo,w=v===void 0?".apexcharts-svg":v,A=i.globals.dom.Paper.image(s);A.size(g,x).move(o,h);var C=i.globals.dom.baseEl.querySelector(w);return C&&C.appendChild(A.node),A}},{key:"addXaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(t,e,i){return this.invertAxis===void 0&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(t){var e=t.params,i=t.pushToMemory,s=t.context,n=t.type,o=t.contextMethod,l=s,h=l.w,f=h.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-annotations")),g=f.childNodes.length+1,p=new It,x=Object.assign({},n==="xaxis"?p.xAxisAnnotation:n==="yaxis"?p.yAxisAnnotation:p.pointAnnotation),v=z.extend(x,e);switch(n){case"xaxis":this.addXaxisAnnotation(v,f,g);break;case"yaxis":this.addYaxisAnnotation(v,f,g);break;case"point":this.addPointAnnotation(v,f,g)}var w=h.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-annotations .apexcharts-").concat(n,"-annotation-label[rel='").concat(g,"']")),A=this.helpers.addBackgroundToAnno(w,v);return A&&f.insertBefore(A.node,w),i&&h.globals.memory.methodsToExec.push({context:l,id:v.id?v.id:z.randomId(),method:o,label:"addAnnotation",params:e}),s}},{key:"clearAnnotations",value:function(t){var e=t.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");e.globals.memory.methodsToExec.map(function(s,n){s.label!=="addText"&&s.label!=="addAnnotation"||e.globals.memory.methodsToExec.splice(n,1)}),i=z.listToArray(i),Array.prototype.forEach.call(i,function(s){for(;s.firstChild;)s.removeChild(s.firstChild)})}},{key:"removeAnnotation",value:function(t,e){var i=t.w,s=i.globals.dom.baseEl.querySelectorAll(".".concat(e));s&&(i.globals.memory.methodsToExec.map(function(n,o){n.id===e&&i.globals.memory.methodsToExec.splice(o,1)}),Array.prototype.forEach.call(s,function(n){n.parentElement.removeChild(n)}))}}]),_}(),Ot=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return P(_,[{key:"isValidDate",value:function(t){return typeof t!="number"&&!isNaN(this.parseDate(t))}},{key:"getTimeStamp",value:function(t){return Date.parse(t)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toISOString().substr(0,25)).getTime():new Date(t).getTime():t}},{key:"getDate",value:function(t){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toUTCString()):new Date(t)}},{key:"parseDate",value:function(t){var e=Date.parse(t);if(!isNaN(e))return this.getTimeStamp(t);var i=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "));return i=this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(t){return Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(t,e){var i=this.w.globals.locale,s=this.w.config.xaxis.labels.datetimeUTC,n=["\0"].concat(ht(i.months)),o=[""].concat(ht(i.shortMonths)),l=[""].concat(ht(i.days)),h=[""].concat(ht(i.shortDays));function f(O,N){var X=O+"";for(N=N||2;X.length12?v-12:v===0?12:v;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+f(v))).replace(/(^|[^\\])H/g,"$1"+v)).replace(/(^|[^\\])hh+/g,"$1"+f(w))).replace(/(^|[^\\])h/g,"$1"+w);var A=s?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+f(A))).replace(/(^|[^\\])m/g,"$1"+A);var C=s?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+f(C))).replace(/(^|[^\\])s/g,"$1"+C);var E=s?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+f(E,3)),E=Math.round(E/10),e=e.replace(/(^|[^\\])ff/g,"$1"+f(E)),E=Math.round(E/10);var M=v<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+E)).replace(/(^|[^\\])TT+/g,"$1"+M)).replace(/(^|[^\\])T/g,"$1"+M.charAt(0));var u=M.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+u)).replace(/(^|[^\\])t/g,"$1"+u.charAt(0));var b=-t.getTimezoneOffset(),k=s||!b?"Z":b>0?"+":"-";if(!s){var L=(b=Math.abs(b))%60;k+=f(Math.floor(b/60))+":"+f(L)}e=e.replace(/(^|[^\\])K/g,"$1"+k);var T=(s?t.getUTCDay():t.getDay())+1;return e=(e=(e=(e=(e=e.replace(new RegExp(l[0],"g"),l[T])).replace(new RegExp(h[0],"g"),h[T])).replace(new RegExp(n[0],"g"),n[p])).replace(new RegExp(o[0],"g"),o[p])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e,i){var s=this.w;s.config.xaxis.min!==void 0&&(t=s.config.xaxis.min),s.config.xaxis.max!==void 0&&(e=s.config.xaxis.max);var n=this.getDate(t),o=this.getDate(e),l=this.formatDate(n,"yyyy MM dd HH mm ss fff").split(" "),h=this.formatDate(o,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(l[6],10),maxMillisecond:parseInt(h[6],10),minSecond:parseInt(l[5],10),maxSecond:parseInt(h[5],10),minMinute:parseInt(l[4],10),maxMinute:parseInt(h[4],10),minHour:parseInt(l[3],10),maxHour:parseInt(h[3],10),minDate:parseInt(l[2],10),maxDate:parseInt(h[2],10),minMonth:parseInt(l[1],10)-1,maxMonth:parseInt(h[1],10)-1,minYear:parseInt(l[0],10),maxYear:parseInt(h[0],10)}}},{key:"isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"calculcateLastDaysOfMonth",value:function(t,e,i){return this.determineDaysOfMonths(t,e)-i}},{key:"determineDaysOfYear",value:function(t){var e=365;return this.isLeapYear(t)&&(e=366),e}},{key:"determineRemainingDaysOfYear",value:function(t,e,i){var s=this.daysCntOfYear[e]+i;return e>1&&this.isLeapYear()&&s++,s}},{key:"determineDaysOfMonths",value:function(t,e){var i=30;switch(t=z.monthMod(t),!0){case this.months30.indexOf(t)>-1:t===2&&(i=this.isLeapYear(e)?29:28);break;case this.months31.indexOf(t)>-1:default:i=31}return i}}]),_}(),_e=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.tooltipKeyFormat="dd MMM"}return P(_,[{key:"xLabelFormat",value:function(t,e,i,s){var n=this.w;if(n.config.xaxis.type==="datetime"&&n.config.xaxis.labels.formatter===void 0&&n.config.tooltip.x.formatter===void 0){var o=new Ot(this.ctx);return o.formatDate(o.getDate(e),n.config.tooltip.x.format)}return t(e,i,s)}},{key:"defaultGeneralFormatter",value:function(t){return Array.isArray(t)?t.map(function(e){return e}):t}},{key:"defaultYFormatter",value:function(t,e,i){var s=this.w;return z.isNumber(t)&&(t=s.globals.yValueDecimal!==0?t.toFixed(e.decimalsInFloat!==void 0?e.decimalsInFloat:s.globals.yValueDecimal):s.globals.maxYArr[i]-s.globals.minYArr[i]<5?t.toFixed(1):t.toFixed(0)),t}},{key:"setLabelFormatters",value:function(){var t=this,e=this.w;return e.globals.xaxisTooltipFormatter=function(i){return t.defaultGeneralFormatter(i)},e.globals.ttKeyFormatter=function(i){return t.defaultGeneralFormatter(i)},e.globals.ttZFormatter=function(i){return i},e.globals.legendFormatter=function(i){return t.defaultGeneralFormatter(i)},e.config.xaxis.labels.formatter!==void 0?e.globals.xLabelFormatter=e.config.xaxis.labels.formatter:e.globals.xLabelFormatter=function(i){if(z.isNumber(i)){if(!e.config.xaxis.convertedCatToNumeric&&e.config.xaxis.type==="numeric"){if(z.isNumber(e.config.xaxis.decimalsInFloat))return i.toFixed(e.config.xaxis.decimalsInFloat);var s=e.globals.maxX-e.globals.minX;return s>0&&s<100?i.toFixed(1):i.toFixed(0)}return e.globals.isBarHorizontal&&e.globals.maxY-e.globals.minYArr<4?i.toFixed(1):i.toFixed(0)}return i},typeof e.config.tooltip.x.formatter=="function"?e.globals.ttKeyFormatter=e.config.tooltip.x.formatter:e.globals.ttKeyFormatter=e.globals.xLabelFormatter,typeof e.config.xaxis.tooltip.formatter=="function"&&(e.globals.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||e.config.tooltip.y.formatter!==void 0)&&(e.globals.ttVal=e.config.tooltip.y),e.config.tooltip.z.formatter!==void 0&&(e.globals.ttZFormatter=e.config.tooltip.z.formatter),e.config.legend.formatter!==void 0&&(e.globals.legendFormatter=e.config.legend.formatter),e.config.yaxis.forEach(function(i,s){i.labels.formatter!==void 0?e.globals.yLabelFormatters[s]=i.labels.formatter:e.globals.yLabelFormatters[s]=function(n){return e.globals.xyCharts?Array.isArray(n)?n.map(function(o){return t.defaultYFormatter(o,i,s)}):t.defaultYFormatter(n,i,s):n}}),e.globals}},{key:"heatmapLabelFormatters",value:function(){var t=this.w;if(t.config.chart.type==="heatmap"){t.globals.yAxisScale[0].result=t.globals.seriesNames.slice();var e=t.globals.seriesNames.reduce(function(i,s){return i.length>s.length?i:s},0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}}]),_}(),ee=function(_){var t,e=_.isTimeline,i=_.ctx,s=_.seriesIndex,n=_.dataPointIndex,o=_.y1,l=_.y2,h=_.w,f=h.globals.seriesRangeStart[s][n],g=h.globals.seriesRangeEnd[s][n],p=h.globals.labels[n],x=h.config.series[s].name?h.config.series[s].name:"",v=h.globals.ttKeyFormatter,w=h.config.tooltip.y.title.formatter,A={w:h,seriesIndex:s,dataPointIndex:n,start:f,end:g};typeof w=="function"&&(x=w(x,A)),(t=h.config.series[s].data[n])!==null&&t!==void 0&&t.x&&(p=h.config.series[s].data[n].x),e||h.config.xaxis.type==="datetime"&&(p=new _e(i).xLabelFormat(h.globals.ttKeyFormatter,p,p,{i:void 0,dateFormatter:new Ot(i).formatDate,w:h})),typeof v=="function"&&(p=v(p,A)),Number.isFinite(o)&&Number.isFinite(l)&&(f=o,g=l);var C="",E="",M=h.globals.colors[s];if(h.config.tooltip.x.formatter===void 0)if(h.config.xaxis.type==="datetime"){var u=new Ot(i);C=u.formatDate(u.getDate(f),h.config.tooltip.x.format),E=u.formatDate(u.getDate(g),h.config.tooltip.x.format)}else C=f,E=g;else C=h.config.tooltip.x.formatter(f),E=h.config.tooltip.x.formatter(g);return{start:f,end:g,startVal:C,endVal:E,ylabel:p,color:M,seriesName:x}},Dt=function(_){var t=_.color,e=_.seriesName,i=_.ylabel,s=_.start,n=_.end,o=_.seriesIndex,l=_.dataPointIndex,h=_.ctx.tooltip.tooltipLabels.getFormatters(o);s=h.yLbFormatter(s),n=h.yLbFormatter(n);var f=h.yLbFormatter(_.w.globals.series[o][l]),g=` `.concat(s,` - `).concat(n,` `);return'
'+(e||"")+'
'+i+": "+(_.w.globals.comboCharts?_.w.config.series[o].type==="rangeArea"||_.w.config.series[o].type==="rangeBar"?g:"".concat(f,""):g)+"
"},Rt=function(){function _(t){y(this,_),this.opts=t}return P(_,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(t){return this.hideYAxis(),z.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),d(d({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var t=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,s=e.dataPointIndex,n=e.w;return t._getBoxTooltip(n,i,s,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var t=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,s=e.dataPointIndex,n=e.w;return t._getBoxTooltip(n,i,s,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(t,e){e.ctx;var i=e.seriesIndex,s=e.dataPointIndex,n=e.w,o=function(){var l=n.globals.seriesRangeStart[i][s];return n.globals.seriesRangeEnd[i][s]-l};return n.globals.comboCharts?n.config.series[i].type==="rangeBar"||n.config.series[i].type==="rangeArea"?o():t:o()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(t){return t.w.config.plotOptions&&t.w.config.plotOptions.bar&&t.w.config.plotOptions.bar.horizontal?function(e){var i=ee(d(d({},e),{},{isTimeline:!0})),s=i.color,n=i.seriesName,o=i.ylabel,l=i.startVal,h=i.endVal;return Dt(d(d({},e),{},{color:s,seriesName:n,ylabel:o,start:l,end:h}))}(t):function(e){var i=ee(e),s=i.color,n=i.seriesName,o=i.ylabel,l=i.start,h=i.end;return Dt(d(d({},e),{},{color:s,seriesName:n,ylabel:o,start:l,end:h}))}(t)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(t){var e,i;return(e=t.plotOptions.bar)!==null&&e!==void 0&&e.barHeight||(t.plotOptions.bar.barHeight=2),(i=t.plotOptions.bar)!==null&&i!==void 0&&i.columnWidth||(t.plotOptions.bar.columnWidth=2),t}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(t){return function(e){var i=ee(e),s=i.color,n=i.seriesName,o=i.ylabel,l=i.start,h=i.end;return Dt(d(d({},e),{},{color:s,seriesName:n,ylabel:o,start:l,end:h}))}(t)}}}}},{key:"brush",value:function(t){return z.extend(t,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;var e=t.dataLabels.formatter;return t.yaxis.forEach(function(i,s){t.yaxis[s].min=0,t.yaxis[s].max=100}),t.chart.type==="bar"&&(t.dataLabels.formatter=e||function(i){return typeof i=="number"&&i?i.toFixed(0)+"%":i}),t}},{key:"stackedBars",value:function(){var t=this.bar();return d(d({},t),{},{plotOptions:d(d({},t.plotOptions),{},{bar:d(d({},t.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(t){return t.xaxis.convertedCatToNumeric=!0,t}},{key:"convertCatToNumericXaxis",value:function(t,e,i){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(o){return z.isNumber(o)?Math.floor(o):o};var s=t.xaxis.labels.formatter,n=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(n=i.map(function(o){return Array.isArray(o)?o:String(o)})),n&&n.length&&(t.xaxis.labels.formatter=function(o){return z.isNumber(o)?s(n[Math.floor(o)-1]):s(o)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(t){return t},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(t,e,i,s,n){var o=t.globals.seriesCandleO[e][i],l=t.globals.seriesCandleH[e][i],h=t.globals.seriesCandleM[e][i],f=t.globals.seriesCandleL[e][i],g=t.globals.seriesCandleC[e][i];return t.config.series[e].type&&t.config.series[e].type!==n?`
`.concat(t.config.series[e].name?t.config.series[e].name:"series-"+(e+1),": ").concat(t.globals.series[e][i],`
`):'
')+"
".concat(s[0],': ')+o+"
"+"
".concat(s[1],': ')+l+"
"+(h?"
".concat(s[2],': ')+h+"
":"")+"
".concat(s[3],': ')+f+"
"+"
".concat(s[4],': ')+g+"
"}}]),_}(),Ee=function(){function _(t){y(this,_),this.opts=t}return P(_,[{key:"init",value:function(t){var e=t.responsiveOverride,i=this.opts,s=new It,n=new Rt(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var o=s.init(),l={};if(i&&m(i)==="object"){var h,f,g,p,x,v,w,A,C={};C=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)!==-1?n[i.chart.type]():n.line(),(h=i.plotOptions)!==null&&h!==void 0&&(f=h.bar)!==null&&f!==void 0&&f.isFunnel&&(C=n.funnel()),i.chart.stacked&&i.chart.type==="bar"&&(C=n.stackedBars()),(g=i.chart.brush)!==null&&g!==void 0&&g.enabled&&(C=n.brush(C)),i.chart.stacked&&i.chart.stackType==="100%"&&(i=n.stacked100(i)),(p=i.plotOptions)!==null&&p!==void 0&&(x=p.bar)!==null&&x!==void 0&&x.isDumbbell&&(i=n.dumbbell(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},e||(i.xaxis.convertedCatToNumeric=!1),((v=(i=this.checkForCatToNumericXAxis(this.chartType,C,i)).chart.sparkline)!==null&&v!==void 0&&v.enabled||(w=window.Apex.chart)!==null&&w!==void 0&&(A=w.sparkline)!==null&&A!==void 0&&A.enabled)&&(C=n.sparkline(C)),l=z.extend(o,C)}var E=z.extend(l,window.Apex);return o=z.extend(E,i),o=this.handleUserInputErrors(o)}},{key:"checkForCatToNumericXAxis",value:function(t,e,i){var s,n,o=new Rt(i),l=(t==="bar"||t==="boxPlot")&&((s=i.plotOptions)===null||s===void 0||(n=s.bar)===null||n===void 0?void 0:n.horizontal),h=t==="pie"||t==="polarArea"||t==="donut"||t==="radar"||t==="radialBar"||t==="heatmap",f=i.xaxis.type!=="datetime"&&i.xaxis.type!=="numeric",g=i.xaxis.tickPlacement?i.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement;return l||h||!f||g==="between"||(i=o.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(t,e){var i=new It;(t.yaxis===void 0||!t.yaxis||Array.isArray(t.yaxis)&&t.yaxis.length===0)&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=z.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[z.extend(i.yAxis,t.yaxis)]:t.yaxis=z.extendArray(t.yaxis,i.yAxis);var s=!1;t.yaxis.forEach(function(o){o.logarithmic&&(s=!0)});var n=t.series;return e&&!n&&(n=e.config.series),s&&n.length!==t.yaxis.length&&n.length&&(t.yaxis=n.map(function(o,l){if(o.name||(n[l].name="series-".concat(l+1)),t.yaxis[l])return t.yaxis[l].seriesName=n[l].name,t.yaxis[l];var h=z.extend(i.yAxis,t.yaxis[0]);return h.show=!1,h})),s&&n.length>1&&n.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),t}},{key:"extendAnnotations",value:function(t){return t.annotations===void 0&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),t=this.extendPointAnnotations(t)}},{key:"extendYAxisAnnotations",value:function(t){var e=new It;return t.annotations.yaxis=z.extendArray(t.annotations.yaxis!==void 0?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new It;return t.annotations.xaxis=z.extendArray(t.annotations.xaxis!==void 0?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new It;return t.annotations.points=z.extendArray(t.annotations.points!==void 0?t.annotations.points:[],e.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(t){t.theme&&t.theme.mode==="dark"&&(t.tooltip||(t.tooltip={}),t.tooltip.theme!=="light"&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.chart.background||(t.chart.background="#424242"),t.theme.palette||(t.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(t){var e=t;if(e.tooltip.shared&&e.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(e.chart.type==="bar"&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return e.chart.type!=="bar"&&e.chart.type!=="rangeBar"||e.tooltip.shared&&e.xaxis.crosshairs.width==="barWidth"&&e.series.length>1&&(e.xaxis.crosshairs.width="tickWidth"),e.chart.type!=="candlestick"&&e.chart.type!=="boxPlot"||e.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(e.chart.type," chart is not supported.")),e.yaxis[0].reversed=!1),e}}]),_}(),Li=function(){function _(){y(this,_)}return P(_,[{key:"initGlobalVars",value:function(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleM=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRange=[],t.seriesPercent=[],t.seriesGoals=[],t.seriesX=[],t.seriesZ=[],t.seriesNames=[],t.seriesTotals=[],t.seriesLog=[],t.seriesColors=[],t.stackedSeriesTotals=[],t.seriesXvalues=[],t.seriesYvalues=[],t.labels=[],t.hasXaxisGroups=!1,t.groups=[],t.hasSeriesGroups=!1,t.seriesGroups=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvided=!1,t.resizeTimer=null,t.selectionResizeTimer=null,t.delayedElements=[],t.pointsArray=[],t.dataLabelsRects=[],t.isXNumeric=!1,t.skipLastTimelinelabel=!1,t.skipFirstTimelinelabel=!1,t.isDataXYZ=!1,t.isMultiLineX=!1,t.isMultipleYAxis=!1,t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE,t.minYArr=[],t.maxYArr=[],t.maxX=-Number.MAX_VALUE,t.minX=Number.MAX_VALUE,t.initialMaxX=-Number.MAX_VALUE,t.initialMinX=Number.MAX_VALUE,t.maxDate=0,t.minDate=Number.MAX_VALUE,t.minZ=Number.MAX_VALUE,t.maxZ=-Number.MAX_VALUE,t.minXDiff=Number.MAX_VALUE,t.yAxisScale=[],t.xAxisScale=null,t.xAxisTicksPositions=[],t.yLabelsCoords=[],t.yTitleCoords=[],t.barPadForNumericAxis=0,t.padHorizontal=0,t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0,t.xTickAmount=0}},{key:"globalVars",value:function(t){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:t.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:t.chart.toolbar.autoSelected==="zoom"&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:t.chart.toolbar.autoSelected==="pan"&&t.chart.toolbar.tools.pan,selectionEnabled:t.chart.toolbar.autoSelected==="selection"&&t.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(t){var e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=z.extend({},t),e.initialSeries=z.clone(t.series),e.lastXAxis=z.clone(e.initialConfig.xaxis),e.lastYAxis=z.clone(e.initialConfig.yaxis),e}}]),_}(),Je=function(){function _(t){y(this,_),this.opts=t}return P(_,[{key:"init",value:function(){var t=new Ee(this.opts).init({responsiveOverride:!1});return{config:t,globals:new Li().init(t)}}}]),_}(),ae=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0}return P(_,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,s=parseInt(e.globals.gridWidth,10),n=parseInt(e.globals.gridHeight,10),o=s>n?s:n,l=t.image,h=0,f=0;t.width===void 0&&t.height===void 0?i.fill.image.width!==void 0&&i.fill.image.height!==void 0?(h=i.fill.image.width+1,f=i.fill.image.height):(h=o+1,f=o):(h=t.width,f=t.height);var g=document.createElementNS(e.globals.SVGNS,"pattern");V.setAttrs(g,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:h+"px",height:f+"px"});var p=document.createElementNS(e.globals.SVGNS,"image");g.appendChild(p),p.setAttributeNS(window.SVG.xlink,"href",l),V.setAttrs(p,{x:0,y:0,preserveAspectRatio:"none",width:h+"px",height:f+"px"}),p.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(g)}},{key:"getSeriesIndex",value:function(t){var e=this.w,i=e.config.chart.type;return(i==="bar"||i==="rangeBar")&&e.config.plotOptions.bar.distributed||i==="heatmap"||i==="treemap"?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(t){var e=this.w;this.opts=t;var i,s,n,o=this.w.config;this.seriesIndex=this.getSeriesIndex(t);var l=this.getFillColors()[this.seriesIndex];e.globals.seriesColors[this.seriesIndex]!==void 0&&(l=e.globals.seriesColors[this.seriesIndex]),typeof l=="function"&&(l=l({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:e}));var h=t.fillType?t.fillType:this.getFillType(this.seriesIndex),f=Array.isArray(o.fill.opacity)?o.fill.opacity[this.seriesIndex]:o.fill.opacity;t.color&&(l=t.color),l||(l="#fff",console.warn("undefined color - ApexCharts"));var g=l;if(l.indexOf("rgb")===-1?l.length<9&&(g=z.hexToRgba(l,f)):l.indexOf("rgba")>-1&&(f=z.getOpacityFromRGBA(l)),t.opacity&&(f=t.opacity),h==="pattern"&&(s=this.handlePatternFill({fillConfig:t.fillConfig,patternFill:s,fillColor:l,fillOpacity:f,defaultColor:g})),h==="gradient"&&(n=this.handleGradientFill({fillConfig:t.fillConfig,fillColor:l,fillOpacity:f,i:this.seriesIndex})),h==="image"){var p=o.fill.image.src,x=t.patternID?t.patternID:"";this.clippedImgArea({opacity:f,image:Array.isArray(p)?t.seriesNumber-1&&(v=z.getOpacityFromRGBA(x));var w=o.gradient.opacityTo===void 0?i:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[n]:o.gradient.opacityTo;if(o.gradient.gradientToColors===void 0||o.gradient.gradientToColors.length===0)l=o.gradient.shade==="dark"?g.shadeColor(-1*parseFloat(o.gradient.shadeIntensity),e.indexOf("rgb")>-1?z.rgb2hex(e):e):g.shadeColor(parseFloat(o.gradient.shadeIntensity),e.indexOf("rgb")>-1?z.rgb2hex(e):e);else if(o.gradient.gradientToColors[h.seriesNumber]){var A=o.gradient.gradientToColors[h.seriesNumber];l=A,A.indexOf("rgba")>-1&&(w=z.getOpacityFromRGBA(A))}else l=e;if(o.gradient.gradientFrom&&(x=o.gradient.gradientFrom),o.gradient.gradientTo&&(l=o.gradient.gradientTo),o.gradient.inverseColors){var C=x;x=l,l=C}return x.indexOf("rgb")>-1&&(x=z.rgb2hex(x)),l.indexOf("rgb")>-1&&(l=z.rgb2hex(l)),f.drawGradient(p,x,l,v,w,h.size,o.gradient.stops,o.gradient.colorStops,n)}}]),_}(),hi=function(){function _(t,e){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"setGlobalMarkerSize",value:function(){var t=this.w;if(t.globals.markers.size=Array.isArray(t.config.markers.size)?t.config.markers.size:[t.config.markers.size],t.globals.markers.size.length>0){if(t.globals.markers.size.length4&&arguments[4]!==void 0&&arguments[4],l=this.w,h=e,f=t,g=null,p=new V(this.ctx),x=l.config.markers.discrete&&l.config.markers.discrete.length;if((l.globals.markers.size[e]>0||o||x)&&(g=p.group({class:o||x?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(l.globals.cuid,")")),Array.isArray(f.x))for(var v=0;v0:l.config.markers.size>0)||o||x){z.isNumber(f.y[v])?A+=" w".concat(z.randomId()):A="apexcharts-nullpoint";var C=this.getMarkerConfig({cssClass:A,seriesIndex:e,dataPointIndex:w});l.config.series[h].data[w]&&(l.config.series[h].data[w].fillColor&&(C.pointFillColor=l.config.series[h].data[w].fillColor),l.config.series[h].data[w].strokeColor&&(C.pointStrokeColor=l.config.series[h].data[w].strokeColor)),s&&(C.pSize=s),(f.x[v]<0||f.x[v]>l.globals.gridWidth||f.y[v]<-l.globals.markers.largestSize||f.y[v]>l.globals.gridHeight+l.globals.markers.largestSize)&&(C.pSize=0),(n=p.drawMarker(f.x[v],f.y[v],C)).attr("rel",w),n.attr("j",w),n.attr("index",e),n.node.setAttribute("default-marker-size",C.pSize),new tt(this.ctx).setSelectionFilter(n,e,w),this.addEvents(n),g&&g.add(n)}else l.globals.pointsArray[e]===void 0&&(l.globals.pointsArray[e]=[]),l.globals.pointsArray[e].push([f.x[v],f.y[v]])}return g}},{key:"getMarkerConfig",value:function(t){var e=t.cssClass,i=t.seriesIndex,s=t.dataPointIndex,n=s===void 0?null:s,o=t.finishRadius,l=o===void 0?null:o,h=this.w,f=this.getMarkerStyle(i),g=h.globals.markers.size[i],p=h.config.markers;return n!==null&&p.discrete.length&&p.discrete.map(function(x){x.seriesIndex===i&&x.dataPointIndex===n&&(f.pointStrokeColor=x.strokeColor,f.pointFillColor=x.fillColor,g=x.size,f.pointShape=x.shape)}),{pSize:l===null?g:l,pRadius:p.radius,width:Array.isArray(p.width)?p.width[i]:p.width,height:Array.isArray(p.height)?p.height[i]:p.height,pointStrokeWidth:Array.isArray(p.strokeWidth)?p.strokeWidth[i]:p.strokeWidth,pointStrokeColor:f.pointStrokeColor,pointFillColor:f.pointFillColor,shape:f.pointShape||(Array.isArray(p.shape)?p.shape[i]:p.shape),class:e,pointStrokeOpacity:Array.isArray(p.strokeOpacity)?p.strokeOpacity[i]:p.strokeOpacity,pointStrokeDashArray:Array.isArray(p.strokeDashArray)?p.strokeDashArray[i]:p.strokeDashArray,pointFillOpacity:Array.isArray(p.fillOpacity)?p.fillOpacity[i]:p.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(t){var e=this.w,i=new V(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,t)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,t)),t.node.addEventListener("click",e.config.markers.onClick),t.node.addEventListener("dblclick",e.config.markers.onDblClick),t.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,t),{passive:!0})}},{key:"getMarkerStyle",value:function(t){var e=this.w,i=e.globals.markers.colors,s=e.config.markers.strokeColor||e.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(s)?s[t]:s,pointFillColor:Array.isArray(i)?i[t]:i}}}]),_}(),ja=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return P(_,[{key:"draw",value:function(t,e,i){var s=this.w,n=new V(this.ctx),o=i.realIndex,l=i.pointsPos,h=i.zRatio,f=i.elParent,g=n.group({class:"apexcharts-series-markers apexcharts-series-".concat(s.config.chart.type)});if(g.attr("clip-path","url(#gridRectMarkerMask".concat(s.globals.cuid,")")),Array.isArray(l.x))for(var p=0;pC.maxBubbleRadius&&(A=C.maxBubbleRadius)}s.config.chart.animations.enabled||(w=A);var E=l.x[p],M=l.y[p];if(w=w||0,M!==null&&s.globals.series[o][x]!==void 0||(v=!1),v){var u=this.drawPoint(E,M,w,A,o,x,e);g.add(u)}f.add(g)}}},{key:"drawPoint",value:function(t,e,i,s,n,o,l){var h=this.w,f=n,g=new Q(this.ctx),p=new tt(this.ctx),x=new ae(this.ctx),v=new hi(this.ctx),w=new V(this.ctx),A=v.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:f,dataPointIndex:o,finishRadius:h.config.chart.type==="bubble"||h.globals.comboCharts&&h.config.series[n]&&h.config.series[n].type==="bubble"?s:null});s=A.pSize;var C,E=x.fillPath({seriesNumber:n,dataPointIndex:o,color:A.pointFillColor,patternUnits:"objectBoundingBox",value:h.globals.series[n][l]});if(A.shape==="circle"?C=w.drawCircle(i):A.shape!=="square"&&A.shape!=="rect"||(C=w.drawRect(0,0,A.width-A.pointStrokeWidth/2,A.height-A.pointStrokeWidth/2,A.pRadius)),h.config.series[f].data[o]&&h.config.series[f].data[o].fillColor&&(E=h.config.series[f].data[o].fillColor),C.attr({x:t-A.width/2-A.pointStrokeWidth/2,y:e-A.height/2-A.pointStrokeWidth/2,cx:t,cy:e,fill:E,"fill-opacity":A.pointFillOpacity,stroke:A.pointStrokeColor,r:s,"stroke-width":A.pointStrokeWidth,"stroke-dasharray":A.pointStrokeDashArray,"stroke-opacity":A.pointStrokeOpacity}),h.config.chart.dropShadow.enabled){var M=h.config.chart.dropShadow;p.dropShadow(C,M,n)}if(!this.initialAnim||h.globals.dataChanged||h.globals.resized)h.globals.animationEnded=!0;else{var u=h.config.chart.animations.speed;g.animateMarker(C,0,A.shape==="circle"?s:{width:A.width,height:A.height},u,h.globals.easing,function(){window.setTimeout(function(){g.animationCompleted(C)},100)})}if(h.globals.dataChanged&&A.shape==="circle")if(this.dynamicAnim){var b,k,L,T,O=h.config.chart.animations.dynamicAnimation.speed;(T=h.globals.previousPaths[n]&&h.globals.previousPaths[n][l])!=null&&(b=T.x,k=T.y,L=T.r!==void 0?T.r:s);for(var N=0;Nh.globals.gridHeight+x&&(e=h.globals.gridHeight+x/2),h.globals.dataLabelsRects[s]===void 0&&(h.globals.dataLabelsRects[s]=[]),h.globals.dataLabelsRects[s].push({x:t,y:e,width:p,height:x});var v=h.globals.dataLabelsRects[s].length-2,w=h.globals.lastDrawnDataLabelsIndexes[s]!==void 0?h.globals.lastDrawnDataLabelsIndexes[s][h.globals.lastDrawnDataLabelsIndexes[s].length-1]:0;if(h.globals.dataLabelsRects[s][v]!==void 0){var A=h.globals.dataLabelsRects[s][w];(t>A.x+A.width||e>A.y+A.height||e+xe.globals.gridWidth+C.textRects.width+30)&&(h="");var E=e.globals.dataLabels.style.colors[o];((e.config.chart.type==="bar"||e.config.chart.type==="rangeBar")&&e.config.plotOptions.bar.distributed||e.config.dataLabels.distributed)&&(E=e.globals.dataLabels.style.colors[l]),typeof E=="function"&&(E=E({series:e.globals.series,seriesIndex:o,dataPointIndex:l,w:e})),v&&(E=v);var M=x.offsetX,u=x.offsetY;if(e.config.chart.type!=="bar"&&e.config.chart.type!=="rangeBar"||(M=0,u=0),C.drawnextLabel){var b=i.drawText({width:100,height:parseInt(x.style.fontSize,10),x:s+M,y:n+u,foreColor:E,textAnchor:f||x.textAnchor,text:h,fontSize:g||x.style.fontSize,fontFamily:x.style.fontFamily,fontWeight:x.style.fontWeight||"normal"});if(b.attr({class:"apexcharts-datalabel",cx:s,cy:n}),x.dropShadow.enabled){var k=x.dropShadow;new tt(this.ctx).dropShadow(b,k)}p.add(b),e.globals.lastDrawnDataLabelsIndexes[o]===void 0&&(e.globals.lastDrawnDataLabelsIndexes[o]=[]),e.globals.lastDrawnDataLabelsIndexes[o].push(l)}}}},{key:"addBackgroundToDataLabel",value:function(t,e){var i=this.w,s=i.config.dataLabels.background,n=s.padding,o=s.padding/2,l=e.width,h=e.height,f=new V(this.ctx).drawRect(e.x-n,e.y-o/2,l+2*n,h+o,s.borderRadius,i.config.chart.background==="transparent"?"#fff":i.config.chart.background,s.opacity,s.borderWidth,s.borderColor);return s.dropShadow.enabled&&new tt(this.ctx).dropShadow(f,s.dropShadow),f}},{key:"dataLabelsBackground",value:function(){var t=this.w;if(t.config.chart.type!=="bubble")for(var e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i0&&arguments[0]!==void 0)||arguments[0],e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],s=this.w,n=z.clone(s.globals.initialSeries);s.globals.previousPaths=[],i?(s.globals.collapsedSeries=[],s.globals.ancillaryCollapsedSeries=[],s.globals.collapsedSeriesIndices=[],s.globals.ancillaryCollapsedSeriesIndices=[]):n=this.emptyCollapsedSeries(n),s.config.series=n,t&&(e&&(s.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(n,s.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(t){for(var e=this.w,i=0;i-1&&(t[i].data=[]);return t}},{key:"toggleSeriesOnHover",value:function(t,e){var i=this.w;e||(e=t.target);var s=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if(t.type==="mousemove"){var n=parseInt(e.getAttribute("rel"),10)-1,o=null,l=null;i.globals.axisCharts||i.config.chart.type==="radialBar"?i.globals.axisCharts?(o=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(n,"']")),l=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(n,"']"))):o=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(n+1,"']")):o=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(n+1,"'] path"));for(var h=0;h=h.from&&g<=h.to&&n[f].classList.remove(i.legendInactiveClass)}}(s.config.plotOptions.heatmap.colorScale.ranges[l])}else t.type==="mouseout"&&o("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"asc",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=this.w,s=0;if(i.config.series.length>1){for(var n=i.config.series.map(function(l,h){return l.data&&l.data.length>0&&i.globals.collapsedSeriesIndices.indexOf(h)===-1&&(!i.globals.comboCharts||e.length===0||e.length&&e.indexOf(i.config.series[h].type)>-1)?h:-1}),o=t==="asc"?0:n.length-1;t==="asc"?o=0;t==="asc"?o++:o--)if(n[o]!==-1){s=n[o];break}}return s}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(t,e){return t.type==="bar"||t.type==="column"?e:-1}).filter(function(t){return t!==-1}):this.w.config.series.map(function(t,e){return e})}},{key:"getPreviousPaths",value:function(){var t=this.w;function e(o,l,h){for(var f=o[l].childNodes,g={type:h,paths:[],realIndex:o[l].getAttribute("data:realIndex")},p=0;p0)for(var s=function(o){for(var l=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(o,"'] rect")),h=[],f=function(p){var x=function(w){return l[p].getAttribute(w)},v={x:parseFloat(x("x")),y:parseFloat(x("y")),width:parseFloat(x("width")),height:parseFloat(x("height"))};h.push({rect:v,color:l[p].getAttribute("color")})},g=0;g0)for(var s=0;s0?e:[]});return t}}]),_}(),_i=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new et(this.ctx)}return P(_,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new se(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),t[this.activeSeriesIndex].data!==void 0&&t[this.activeSeriesIndex].data.length>0&&t[this.activeSeriesIndex].data[0]!==null&&t[this.activeSeriesIndex].data[0].x!==void 0&&t[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var t=this.w.config.series.slice(),e=new se(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),t[this.activeSeriesIndex].data!==void 0&&t[this.activeSeriesIndex].data.length>0&&t[this.activeSeriesIndex].data[0]!==void 0&&t[this.activeSeriesIndex].data[0]!==null&&t[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(t,e){for(var i=this.w.config,s=this.w.globals,n=i.chart.type==="boxPlot"||i.series[e].type==="boxPlot",o=0;o=5?this.twoDSeries.push(z.parseNumber(t[e].data[o][4])):this.twoDSeries.push(z.parseNumber(t[e].data[o][1])),s.dataFormatXNumeric=!0),i.xaxis.type==="datetime"){var l=new Date(t[e].data[o][0]);l=new Date(l).getTime(),this.twoDSeriesX.push(l)}else this.twoDSeriesX.push(t[e].data[o][0]);for(var h=0;h-1&&(o=this.activeSeriesIndex);for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:this.ctx,n=this.w.config,o=this.w.globals,l=new Ot(s),h=n.labels.length>0?n.labels.slice():n.xaxis.categories.slice();if(o.isRangeBar=n.chart.type==="rangeBar"&&o.isBarHorizontal,o.hasXaxisGroups=n.xaxis.type==="category"&&n.xaxis.group.groups.length>0,o.hasXaxisGroups&&(o.groups=n.xaxis.group.groups),o.hasSeriesGroups=(e=t[0])===null||e===void 0?void 0:e.group,o.hasSeriesGroups){var f=[],g=ht(new Set(t.map(function(w){return w.group})));t.forEach(function(w,A){var C=g.indexOf(w.group);f[C]||(f[C]=[]),f[C].push(w.name)}),o.seriesGroups=f}for(var p=function(){for(var w=0;w0&&(this.twoDSeriesX=h,o.seriesX.push(this.twoDSeriesX))),o.labels.push(this.twoDSeriesX);var v=t[x].data.map(function(w){return z.parseNumber(w)});o.series.push(v)}o.seriesZ.push(this.threeDSeries),t[x].name!==void 0?o.seriesNames.push(t[x].name):o.seriesNames.push("series-"+parseInt(x+1,10)),t[x].color!==void 0?o.seriesColors.push(t[x].color):o.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(t){var e=this.w.globals,i=this.w.config;e.series=t.slice(),e.seriesNames=i.labels.slice();for(var s=0;s0?i.labels=e.xaxis.categories:e.labels.length>0?i.labels=e.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map(function(s){s.forEach(function(n){i.labels.indexOf(n.x)<0&&n.x&&i.labels.push(n.x)})}),i.labels=Array.from(new Set(i.labels.map(JSON.stringify)),JSON.parse)),e.xaxis.convertedCatToNumeric&&(new Rt(e).convertCatToNumericXaxis(e,this.ctx,i.seriesX[0]),this._generateExternalLabels(t))):this._generateExternalLabels(t)}},{key:"_generateExternalLabels",value:function(t){var e=this.w.globals,i=this.w.config,s=[];if(e.axisCharts){if(e.series.length>0)if(this.isFormatXY())for(var n=i.series.map(function(p,x){return p.data.filter(function(v,w,A){return A.findIndex(function(C){return C.x===v.x})===w})}),o=n.reduce(function(p,x,v,w){return w[p].length>x.length?p:v},0),l=0;l4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",l=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],h=this.w,f=t[s]===void 0?"":t[s],g=f,p=h.globals.xLabelFormatter,x=h.config.xaxis.labels.formatter,v=!1,w=new _e(this.ctx),A=f;l&&(g=w.xLabelFormat(p,f,A,{i:s,dateFormatter:new Ot(this.ctx).formatDate,w:h}),x!==void 0&&(g=x(f,t[s],{i:s,dateFormatter:new Ot(this.ctx).formatDate,w:h})));var C,E;e.length>0?(C=e[s].unit,E=null,e.forEach(function(k){k.unit==="month"?E="year":k.unit==="day"?E="month":k.unit==="hour"?E="day":k.unit==="minute"&&(E="hour")}),v=E===C,i=e[s].position,g=e[s].value):h.config.xaxis.type==="datetime"&&x===void 0&&(g=""),g===void 0&&(g=""),g=Array.isArray(g)?g:g.toString();var M=new V(this.ctx),u={};u=h.globals.rotateXLabels&&l?M.getTextRects(g,parseInt(o,10),null,"rotate(".concat(h.config.xaxis.labels.rotate," 0 0)"),!1):M.getTextRects(g,parseInt(o,10));var b=!h.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(g)&&(g.indexOf("NaN")===0||g.toLowerCase().indexOf("invalid")===0||g.toLowerCase().indexOf("infinity")>=0||n.indexOf(g)>=0&&b)&&(g=""),{x:i,text:g,textRect:u,isBold:v}}},{key:"checkLabelBasedOnTickamount",value:function(t,e,i){var s=this.w,n=s.config.xaxis.tickAmount;return n==="dataPoints"&&(n=Math.round(s.globals.gridWidth/120)),n>i||t%Math.round(i/(n+1))==0||(e.text=""),e}},{key:"checkForOverflowingLabels",value:function(t,e,i,s,n){var o=this.w;if(t===0&&o.globals.skipFirstTimelinelabel&&(e.text=""),t===i-1&&o.globals.skipLastTimelinelabel&&(e.text=""),o.config.xaxis.labels.hideOverlappingLabels&&s.length>0){var l=n[n.length-1];e.x0){h.config.yaxis[n].opposite===!0&&(t+=s.width);for(var p=e;p>=0;p--){var x=g+e/10+h.config.yaxis[n].labels.offsetY-1;h.globals.isBarHorizontal&&(x=o*p),h.config.chart.type==="heatmap"&&(x+=o/2);var v=f.drawLine(t+i.offsetX-s.width+s.offsetX,x+s.offsetY,t+i.offsetX+s.offsetX,x+s.offsetY,s.color);l.add(v),g+=o}}}}]),_}(),Ei=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"scaleSvgNode",value:function(t,e){var i=parseFloat(t.getAttributeNS(null,"width")),s=parseFloat(t.getAttributeNS(null,"height"));t.setAttributeNS(null,"width",i*e),t.setAttributeNS(null,"height",s*e),t.setAttributeNS(null,"viewBox","0 0 "+i+" "+s)}},{key:"fixSvgStringForIe11",value:function(t){if(!z.isIE11())return t.replace(/ /g," ");var e=0,i=t.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(s){return++e===2?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':s});return i=(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(t){t==null&&(t=1);var e=this.w.globals.dom.Paper.svg();if(t!==1){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,t),e=new XMLSerializer().serializeToString(i)}return this.fixSvgStringForIe11(e)}},{key:"cleanup",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=t.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(s,function(n){n.setAttribute("width",0)}),e&&e[0]&&(e[0].setAttribute("x",-500),e[0].setAttribute("x1",-500),e[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var t=this.getSvgString(),e=new Blob([t],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(e)}},{key:"dataURI",value:function(t){var e=this;return new Promise(function(i){var s=e.w,n=t?t.scale||t.width/s.globals.svgWidth:1;e.cleanup();var o=document.createElement("canvas");o.width=s.globals.svgWidth*n,o.height=parseInt(s.globals.dom.elWrap.style.height,10)*n;var l=s.config.chart.background==="transparent"?"#fff":s.config.chart.background,h=o.getContext("2d");h.fillStyle=l,h.fillRect(0,0,o.width*n,o.height*n);var f=e.getSvgString(n);if(window.canvg&&z.isIE11()){var g=window.canvg.Canvg.fromString(h,f,{ignoreClear:!0,ignoreDimensions:!0});g.start();var p=o.msToBlob();g.stop(),i({blob:p})}else{var x="data:image/svg+xml,"+encodeURIComponent(f),v=new Image;v.crossOrigin="anonymous",v.onload=function(){if(h.drawImage(v,0,0),o.msToBlob){var w=o.msToBlob();i({blob:w})}else{var A=o.toDataURL("image/png");i({imgURI:A})}},v.src=x}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var t=this;this.dataURI().then(function(e){var i=e.imgURI,s=e.blob;s?navigator.msSaveOrOpenBlob(s,t.w.globals.chartID+".png"):t.triggerDownload(i,t.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(t){var e=this,i=t.series,s=t.fileName,n=t.columnDelimiter,o=n===void 0?",":n,l=t.lineDelimiter,h=l===void 0?` `:l,f=this.w;i||(i=f.config.series);var g,p,x=[],v=[],w="",A=f.globals.series.map(function(L,T){return f.globals.collapsedSeriesIndices.indexOf(T)===-1?L:[]}),C=function(L){return f.config.xaxis.type==="datetime"&&String(L).length>=10},E=Math.max.apply(Math,ht(i.map(function(L){return L.data?L.data.length:0}))),M=new _i(this.ctx),u=new Ne(this.ctx),b=function(L){var T="";if(f.globals.axisCharts){if(f.config.xaxis.type==="category"||f.config.xaxis.convertedCatToNumeric)if(f.globals.isBarHorizontal){var O=f.globals.yLabelFormatters[0],N=new se(e.ctx).getActiveConfigSeriesIndex();T=O(f.globals.labels[L],{seriesIndex:N,dataPointIndex:L,w:f})}else T=u.getLabel(f.globals.labels,f.globals.timescaleLabels,0,L).text;f.config.xaxis.type==="datetime"&&(f.config.xaxis.categories.length?T=f.config.xaxis.categories[L]:f.config.labels.length&&(T=f.config.labels[L]))}else T=f.config.labels[L];return Array.isArray(T)&&(T=T.join(" ")),z.isNumber(T)?T:T.split(o).join("")},k=function(L,T){if(x.length&&T===0&&v.push(x.join(o)),L.data){L.data=L.data.length&&L.data||ht(Array(E)).map(function(){return""});for(var O=0;O0&&!i.globals.isBarHorizontal&&(this.xaxisLabels=i.globals.timescaleLabels.slice()),i.config.xaxis.overwriteCategories&&(this.xaxisLabels=i.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],i.config.xaxis.position==="top"?this.offY=0:this.offY=i.globals.gridHeight+1,this.offY=this.offY+i.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=i.config.chart.type==="bar"&&i.config.plotOptions.bar.horizontal,this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.xaxisBorderWidth=i.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=i.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=i.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=i.config.xaxis.axisBorder.height,this.yaxis=i.config.yaxis[0]}return P(_,[{key:"drawXaxis",value:function(){var t=this.w,e=new V(this.ctx),i=e.group({class:"apexcharts-xaxis",transform:"translate(".concat(t.config.xaxis.offsetX,", ").concat(t.config.xaxis.offsetY,")")}),s=e.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(s);for(var n=[],o=0;o6&&arguments[6]!==void 0?arguments[6]:{},g=[],p=[],x=this.w,v=f.xaxisFontSize||this.xaxisFontSize,w=f.xaxisFontFamily||this.xaxisFontFamily,A=f.xaxisForeColors||this.xaxisForeColors,C=f.fontWeight||x.config.xaxis.labels.style.fontWeight,E=f.cssClass||x.config.xaxis.labels.style.cssClass,M=x.globals.padHorizontal,u=s.length,b=x.config.xaxis.type==="category"?x.globals.dataPoints:u;if(b===0&&u>b&&(b=u),n){var k=b>1?b-1:b;l=x.globals.gridWidth/Math.min(k,u-1),M=M+o(0,l)/2+x.config.xaxis.labels.offsetX}else l=x.globals.gridWidth/b,M=M+o(0,l)+x.config.xaxis.labels.offsetX;for(var L=function(O){var N=M-o(O,l)/2+x.config.xaxis.labels.offsetX;O===0&&u===1&&l/2===M&&b===1&&(N=x.globals.gridWidth/2);var X=h.axesUtils.getLabel(s,x.globals.timescaleLabels,N,O,g,v,t),G=28;if(x.globals.rotateXLabels&&t&&(G=22),x.config.xaxis.title.text&&x.config.xaxis.position==="top"&&(G+=parseFloat(x.config.xaxis.title.style.fontSize)+2),t||(G=G+parseFloat(v)+(x.globals.xAxisLabelsHeight-x.globals.xAxisGroupLabelsHeight)+(x.globals.rotateXLabels?10:0)),X=x.config.xaxis.tickAmount!==void 0&&x.config.xaxis.tickAmount!=="dataPoints"&&x.config.xaxis.type!=="datetime"?h.axesUtils.checkLabelBasedOnTickamount(O,X,u):h.axesUtils.checkForOverflowingLabels(O,X,u,g,p),x.config.xaxis.labels.show){var U=e.drawText({x:X.x,y:h.offY+x.config.xaxis.labels.offsetY+G-(x.config.xaxis.position==="top"?x.globals.xAxisHeight+x.config.xaxis.axisTicks.height-2:0),text:X.text,textAnchor:"middle",fontWeight:X.isBold?600:C,fontSize:v,fontFamily:w,foreColor:Array.isArray(A)?t&&x.config.xaxis.convertedCatToNumeric?A[x.globals.minX+O-1]:A[O]:A,isPlainText:!1,cssClass:(t?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+E});if(i.add(U),U.on("click",function(ot){if(typeof x.config.chart.events.xAxisLabelClick=="function"){var ft=Object.assign({},x,{labelIndex:O});x.config.chart.events.xAxisLabelClick(ot,h.ctx,ft)}}),t){var j=document.createElementNS(x.globals.SVGNS,"title");j.textContent=Array.isArray(X.text)?X.text.join(" "):X.text,U.node.appendChild(j),X.text!==""&&(g.push(X.text),p.push(X))}}Os.globals.gridWidth)){var o=this.offY+s.config.xaxis.axisTicks.offsetY;if(e=e+o+s.config.xaxis.axisTicks.height,s.config.xaxis.position==="top"&&(e=o-s.config.xaxis.axisTicks.height),s.config.xaxis.axisTicks.show){var l=new V(this.ctx).drawLine(t+s.config.xaxis.axisTicks.offsetX,o+s.config.xaxis.offsetY,n+s.config.xaxis.axisTicks.offsetX,e+s.config.xaxis.offsetY,s.config.xaxis.axisTicks.color);i.add(l),l.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,s=t.globals.padHorizontal;if(t.globals.timescaleLabels.length>0)for(var n=0;n0){var g=n[n.length-1].getBBox(),p=n[0].getBBox();g.x<-20&&n[n.length-1].parentNode.removeChild(n[n.length-1]),p.x+p.width>t.globals.gridWidth&&!t.globals.isBarHorizontal&&n[0].parentNode.removeChild(n[0]);for(var x=0;x0&&(this.xaxisLabels=e.globals.timescaleLabels.slice())}return P(_,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=this.w,i=new V(this.ctx);t===null&&(t=i.group({class:"apexcharts-grid"}));var s=i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,"transparent"),n=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(n),t.add(s),t}},{key:"drawGrid",value:function(){var t=null;return this.w.globals.axisCharts&&(t=this.renderGrid(),this.drawGridArea(t.el)),t}},{key:"createGridMask",value:function(){var t=this.w,e=t.globals,i=new V(this.ctx),s=Array.isArray(t.config.stroke.width)?0:t.config.stroke.width;if(Array.isArray(t.config.stroke.width)){var n=0;t.config.stroke.width.forEach(function(p){n=Math.max(n,p)}),s=n}e.dom.elGridRectMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(e.cuid)),e.dom.elGridRectMarkerMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(e.cuid)),e.dom.elForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elForecastMask.setAttribute("id","forecastMask".concat(e.cuid)),e.dom.elNonForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(e.cuid));var o=t.config.chart.type,l=0,h=0;(o==="bar"||o==="rangeBar"||o==="candlestick"||o==="boxPlot"||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&(l=t.config.grid.padding.left,h=t.config.grid.padding.right,e.barPadForNumericAxis>l&&(l=e.barPadForNumericAxis,h=e.barPadForNumericAxis)),e.dom.elGridRect=i.drawRect(-s-l-2,2*-s-2,e.gridWidth+s+h+l+4,e.gridHeight+4*s+4,0,"#fff");var f=t.globals.markers.largestSize+1;e.dom.elGridRectMarker=i.drawRect(2*-f,2*-f,e.gridWidth+4*f,e.gridHeight+4*f,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);var g=e.dom.baseEl.querySelector("defs");g.appendChild(e.dom.elGridRectMask),g.appendChild(e.dom.elForecastMask),g.appendChild(e.dom.elNonForecastMask),g.appendChild(e.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(t){var e=t.i,i=t.x1,s=t.y1,n=t.x2,o=t.y2,l=t.xCount,h=t.parent,f=this.w;if(!(e===0&&f.globals.skipFirstTimelinelabel||e===l-1&&f.globals.skipLastTimelinelabel&&!f.config.xaxis.labels.formatter||f.config.chart.type==="radar")){f.config.grid.xaxis.lines.show&&this._drawGridLine({i:e,x1:i,y1:s,x2:n,y2:o,xCount:l,parent:h});var g=0;if(f.globals.hasXaxisGroups&&f.config.xaxis.tickPlacement==="between"){var p=f.globals.groups;if(p){for(var x=0,v=0;x2));n++);if(!t.globals.isBarHorizontal||this.isRangeBar){var o,l,h;i=this.xaxisLabels.length,this.isRangeBar&&(i--,s=t.globals.labels.length,t.config.xaxis.tickAmount&&t.config.xaxis.labels.formatter&&(i=t.config.xaxis.tickAmount),((o=t.globals.yAxisScale)===null||o===void 0||(l=o[0])===null||l===void 0||(h=l.result)===null||h===void 0?void 0:h.length)>0&&t.config.xaxis.type!=="datetime"&&(i=t.globals.yAxisScale[0].result.length-1)),this._drawXYLines({xCount:i,tickAmount:s})}else i=s,s=t.globals.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:s});return this.drawGridBands(i,s),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:t.globals.gridWidth/i}}},{key:"drawGridBands",value:function(t,e){var i=this.w;if(i.config.grid.row.colors!==void 0&&i.config.grid.row.colors.length>0)for(var s=0,n=i.globals.gridHeight/e,o=i.globals.gridWidth,l=0,h=0;l=i.config.grid.row.colors.length&&(h=0),this._drawGridBandRect({c:h,x1:0,y1:s,x2:o,y2:n,type:"row"}),s+=i.globals.gridHeight/e;if(i.config.grid.column.colors!==void 0&&i.config.grid.column.colors.length>0)for(var f=i.globals.isBarHorizontal||i.config.xaxis.tickPlacement!=="on"||i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric?t:t-1,g=i.globals.padHorizontal,p=i.globals.padHorizontal+i.globals.gridWidth/f,x=i.globals.gridHeight,v=0,w=0;v=i.config.grid.column.colors.length&&(w=0),this._drawGridBandRect({c:w,x1:g,y1:0,x2:p,y2:x,type:"column"}),g+=i.globals.gridWidth/f}}]),_}(),Qe=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"niceScale",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=arguments.length>4?arguments[4]:void 0,o=this.w,l=Math.abs(e-t);if((i=this._adjustTicksForSmallRange(i,s,l))==="dataPoints"&&(i=o.globals.dataPoints-1),t===Number.MIN_VALUE&&e===0||!z.isNumber(t)&&!z.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)return t=0,e=i,this.linearScale(t,e,i,s,o.config.yaxis[s].stepSize);t>e?(console.warn("axis.min cannot be greater than axis.max"),e=t+.1):t===e&&(t=t===0?0:t-.5,e=e===0?2:e+.5);var h=[];l<1&&n&&(o.config.chart.type==="candlestick"||o.config.series[s].type==="candlestick"||o.config.chart.type==="boxPlot"||o.config.series[s].type==="boxPlot"||o.globals.isRangeData)&&(e*=1.01);var f=i+1;f<2?f=2:f>2&&(f-=2);var g=l/f,p=Math.floor(z.log10(g)),x=Math.pow(10,p),v=Math.round(g/x);v<1&&(v=1);var w=v*x;o.config.yaxis[s].stepSize&&(w=o.config.yaxis[s].stepSize),o.globals.isBarHorizontal&&o.config.xaxis.stepSize&&o.config.xaxis.type!=="datetime"&&(w=o.config.xaxis.stepSize);var A=w*Math.floor(t/w),C=w*Math.ceil(e/w),E=A;if(n&&l>2){for(;h.push(z.stripNumber(E,7)),!((E+=w)>C););return{result:h,niceMin:h[0],niceMax:h[h.length-1]}}var M=t;(h=[]).push(z.stripNumber(M,7));for(var u=Math.abs(e-t)/i,b=0;b<=i;b++)M+=u,h.push(M);return h[h.length-2]>=e&&h.pop(),{result:h,niceMin:h[0],niceMax:h[h.length-1]}}},{key:"linearScale",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,o=Math.abs(e-t);(i=this._adjustTicksForSmallRange(i,s,o))==="dataPoints"&&(i=this.w.globals.dataPoints-1),n||(n=o/i),i===Number.MAX_VALUE&&(i=5,n=1);for(var l=[],h=t;i>=0;)l.push(h),h+=n,i-=1;return{result:l,niceMin:l[0],niceMax:l[l.length-1]}}},{key:"logarithmicScaleNice",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var s=[],n=Math.ceil(Math.log(e)/Math.log(i)+1),o=Math.floor(Math.log(t)/Math.log(i));o5)s.allSeriesCollapsed=!1,s.yAxisScale[t]=this.logarithmicScale(e,i,o.logBase),s.yAxisScale[t]=o.forceNiceScale?this.logarithmicScaleNice(e,i,o.logBase):this.logarithmicScale(e,i,o.logBase);else if(i!==-Number.MAX_VALUE&&z.isNumber(i))if(s.allSeriesCollapsed=!1,o.min===void 0&&o.max===void 0||o.forceNiceScale){var h=n.yaxis[t].max===void 0&&n.yaxis[t].min===void 0||n.yaxis[t].forceNiceScale;s.yAxisScale[t]=this.niceScale(e,i,o.tickAmount?o.tickAmount:l<5&&l>1?l+1:5,t,h)}else s.yAxisScale[t]=this.linearScale(e,i,o.tickAmount,t,n.yaxis[t].stepSize);else s.yAxisScale[t]=this.linearScale(0,5,5,t,n.yaxis[t].stepSize)}},{key:"setXScale",value:function(t,e){var i=this.w,s=i.globals,n=Math.abs(e-t);return e!==-Number.MAX_VALUE&&z.isNumber(e)?s.xAxisScale=this.linearScale(t,e,i.config.xaxis.tickAmount?i.config.xaxis.tickAmount:n<5&&n>1?n+1:5,0,i.config.xaxis.stepSize):s.xAxisScale=this.linearScale(0,5,5),s.xAxisScale}},{key:"setMultipleYScales",value:function(){var t=this,e=this.w.globals,i=this.w.config,s=e.minYArr.concat([]),n=e.maxYArr.concat([]),o=[];i.yaxis.forEach(function(l,h){var f=h;i.series.forEach(function(x,v){x.name===l.seriesName&&(f=v,h!==v?o.push({index:v,similarIndex:h,alreadyExists:!0}):o.push({index:v}))});var g=s[f],p=n[f];t.setYScaleForIndex(h,g,p)}),this.sameScaleInMultipleAxes(s,n,o)}},{key:"sameScaleInMultipleAxes",value:function(t,e,i){var s=this,n=this.w.config,o=this.w.globals,l=[];i.forEach(function(A){A.alreadyExists&&(l[A.index]===void 0&&(l[A.index]=[]),l[A.index].push(A.index),l[A.index].push(A.similarIndex))}),o.yAxisSameScaleIndices=l,l.forEach(function(A,C){l.forEach(function(E,M){var u,b;C!==M&&(u=A,b=E,u.filter(function(k){return b.indexOf(k)!==-1})).length>0&&(l[C]=l[C].concat(l[M]))})});var h=l.map(function(A){return A.filter(function(C,E){return A.indexOf(C)===E})}).map(function(A){return A.sort()});l=l.filter(function(A){return!!A});var f=h.slice(),g=f.map(function(A){return JSON.stringify(A)});f=f.filter(function(A,C){return g.indexOf(JSON.stringify(A))===C});var p=[],x=[];t.forEach(function(A,C){f.forEach(function(E,M){E.indexOf(C)>-1&&(p[M]===void 0&&(p[M]=[],x[M]=[]),p[M].push({key:C,value:A}),x[M].push({key:C,value:e[C]}))})});var v=Array.apply(null,Array(f.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),w=Array.apply(null,Array(f.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);p.forEach(function(A,C){A.forEach(function(E,M){v[C]=Math.min(E.value,v[C])})}),x.forEach(function(A,C){A.forEach(function(E,M){w[C]=Math.max(E.value,w[C])})}),t.forEach(function(A,C){x.forEach(function(E,M){var u=v[M],b=w[M];n.chart.stacked&&(b=0,E.forEach(function(k,L){k.value!==-Number.MAX_VALUE&&(b+=k.value),u!==Number.MIN_VALUE&&(u+=p[M][L].value)})),E.forEach(function(k,L){E[L].key===C&&(n.yaxis[C].min!==void 0&&(u=typeof n.yaxis[C].min=="function"?n.yaxis[C].min(o.minY):n.yaxis[C].min),n.yaxis[C].max!==void 0&&(b=typeof n.yaxis[C].max=="function"?n.yaxis[C].max(o.maxY):n.yaxis[C].max),s.setYScaleForIndex(C,u,b))})})})}},{key:"autoScaleY",value:function(t,e,i){t||(t=this);var s=t.w;if(s.globals.isMultipleYAxis||s.globals.collapsedSeries.length)return console.warn("autoScaleYaxis not supported in a multi-yaxis chart."),e;var n=s.globals.seriesX[0],o=s.config.chart.stacked;return e.forEach(function(l,h){for(var f=0,g=0;g=i.xaxis.min){f=g;break}var p,x,v=s.globals.minYArr[h],w=s.globals.maxYArr[h],A=s.globals.stackedSeriesTotals;s.globals.series.forEach(function(C,E){var M=C[f];o?(M=A[f],p=x=M,A.forEach(function(u,b){n[b]<=i.xaxis.max&&n[b]>=i.xaxis.min&&(u>x&&u!==null&&(x=u),C[b]=i.xaxis.min){var k=u,L=u;s.globals.series.forEach(function(T,O){u!==null&&(k=Math.min(T[b],k),L=Math.max(T[b],L))}),L>x&&L!==null&&(x=L),kv&&(p=v),e.length>1?(e[E].min=l.min===void 0?p:l.min,e[E].max=l.max===void 0?x:l.max):(e[0].min=l.min===void 0?p:l.min,e[0].max=l.max===void 0?x:l.max)})}),e}}]),_}(),H=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.scales=new Qe(t)}return P(_,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,n=this.w.config,o=this.w.globals,l=-Number.MAX_VALUE,h=Number.MIN_VALUE;s===null&&(s=t+1);var f=o.series,g=f,p=f;n.chart.type==="candlestick"?(g=o.seriesCandleL,p=o.seriesCandleH):n.chart.type==="boxPlot"?(g=o.seriesCandleO,p=o.seriesCandleC):o.isRangeData&&(g=o.seriesRangeStart,p=o.seriesRangeEnd);for(var x=t;xg[x][v]&&g[x][v]<0&&(h=g[x][v])):o.hasNullValues=!0}}return n.chart.type==="rangeBar"&&o.seriesRangeStart.length&&o.isBarHorizontal&&(h=e),n.chart.type==="bar"&&(h<0&&l<0&&(l=0),h===Number.MIN_VALUE&&(h=0)),{minY:h,maxY:l,lowestY:e,highestY:i}}},{key:"setYRange",value:function(){var t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(t.isMultipleYAxis)for(var s=0;s=0&&i<=10||e.yaxis[0].min!==void 0||e.yaxis[0].max!==void 0)&&(l=0),t.minY=i-5*l/100,i>0&&t.minY<0&&(t.minY=0),t.maxY=t.maxY+5*l/100}return e.yaxis.forEach(function(h,f){h.max!==void 0&&(typeof h.max=="number"?t.maxYArr[f]=h.max:typeof h.max=="function"&&(t.maxYArr[f]=h.max(t.isMultipleYAxis?t.maxYArr[f]:t.maxY)),t.maxY=t.maxYArr[f]),h.min!==void 0&&(typeof h.min=="number"?t.minYArr[f]=h.min:typeof h.min=="function"&&(t.minYArr[f]=h.min(t.isMultipleYAxis?t.minYArr[f]===Number.MIN_VALUE?0:t.minYArr[f]:t.minY)),t.minY=t.minYArr[f])}),t.isBarHorizontal&&["min","max"].forEach(function(h){e.xaxis[h]!==void 0&&typeof e.xaxis[h]=="number"&&(h==="min"?t.minY=e.xaxis[h]:t.maxY=e.xaxis[h])}),t.isMultipleYAxis?(this.scales.setMultipleYScales(),t.minY=i,t.yAxisScale.forEach(function(h,f){t.minYArr[f]=h.niceMin,t.maxYArr[f]=h.niceMax})):(this.scales.setYScaleForIndex(0,t.minY,t.maxY),t.minY=t.yAxisScale[0].niceMin,t.maxY=t.yAxisScale[0].niceMax,t.minYArr[0]=t.yAxisScale[0].niceMin,t.maxYArr[0]=t.yAxisScale[0].niceMax),{minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,yAxisScale:t.yAxisScale}}},{key:"setXRange",value:function(){var t=this.w.globals,e=this.w.config,i=e.xaxis.type==="numeric"||e.xaxis.type==="datetime"||e.xaxis.type==="category"&&!t.noLabelsProvided||t.noLabelsProvided||t.isXNumeric;if(t.isXNumeric&&function(){for(var l=0;lt.dataPoints&&t.dataPoints!==0&&(s=t.dataPoints-1)):e.xaxis.tickAmount==="dataPoints"?(t.series.length>1&&(s=t.series[t.maxValsInArrayIndex].length-1),t.isXNumeric&&(s=t.maxX-t.minX-1)):s=e.xaxis.tickAmount,t.xTickAmount=s,e.xaxis.max!==void 0&&typeof e.xaxis.max=="number"&&(t.maxX=e.xaxis.max),e.xaxis.min!==void 0&&typeof e.xaxis.min=="number"&&(t.minX=e.xaxis.min),e.xaxis.range!==void 0&&(t.minX=t.maxX-e.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(e.xaxis.convertedCatToNumeric&&!t.dataFormatXNumeric){for(var n=[],o=t.minX-1;o0&&(t.xAxisScale=this.scales.linearScale(1,t.labels.length,s-1,0,e.xaxis.stepSize),t.seriesX=t.labels.slice());i&&(t.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&t.labels.length&&(t.xTickAmount=t.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}},{key:"setZRange",value:function(){var t=this.w.globals;if(t.isDataXYZ){for(var e=0;e0){var l=n-s[o-1];l>0&&(t.minXDiff=Math.min(l,t.minXDiff))}}),t.dataPoints!==1&&t.minXDiff!==Number.MAX_VALUE||(t.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var t=this,e=this.w.globals;if(e.series.length){var i=e.seriesGroups;i.length||(i=[this.w.config.series.map(function(o){return o.name})]);var s={},n={};i.forEach(function(o){s[o]=[],n[o]=[],t.w.config.series.map(function(l,h){return o.indexOf(l.name)>-1?h:null}).filter(function(l){return l!==null}).forEach(function(l){for(var h=0;h0?s[o][h]+=parseFloat(e.series[l][h])+1e-4:n[o][h]+=parseFloat(e.series[l][h]))}})}),Object.entries(s).forEach(function(o){var l=pt(o,1)[0];s[l].forEach(function(h,f){e.maxY=Math.max(e.maxY,s[l][f]),e.minY=Math.min(e.minY,n[l][f])})})}}}]),_}(),D=function(){function _(t,e){y(this,_),this.ctx=t,this.elgrid=e,this.w=t.w;var i=this.w;this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.axisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=i.config.chart.type==="bar"&&i.config.plotOptions.bar.horizontal,this.xAxisoffX=0,i.config.xaxis.position==="bottom"&&(this.xAxisoffX=i.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new Ne(t)}return P(_,[{key:"drawYaxis",value:function(t){var e=this,i=this.w,s=new V(this.ctx),n=i.config.yaxis[t].labels.style,o=n.fontSize,l=n.fontFamily,h=n.fontWeight,f=s.group({class:"apexcharts-yaxis",rel:t,transform:"translate("+i.globals.translateYAxisX[t]+", 0)"});if(this.axesUtils.isYAxisHidden(t))return f;var g=s.group({class:"apexcharts-yaxis-texts-g"});f.add(g);var p=i.globals.yAxisScale[t].result.length-1,x=i.globals.gridHeight/p,v=i.globals.translateY,w=i.globals.yLabelFormatters[t],A=i.globals.yAxisScale[t].result.slice();A=this.axesUtils.checkForReversedLabels(t,A);var C="";if(i.config.yaxis[t].labels.show)for(var E=function(N){var X=A[N];X=w(X,N,i);var G=i.config.yaxis[t].labels.padding;i.config.yaxis[t].opposite&&i.config.yaxis.length!==0&&(G*=-1);var U="end";i.config.yaxis[t].opposite&&(U="start"),i.config.yaxis[t].labels.align==="left"?U="start":i.config.yaxis[t].labels.align==="center"?U="middle":i.config.yaxis[t].labels.align==="right"&&(U="end");var j=e.axesUtils.getYAxisForeColor(n.colors,t),ot=i.config.yaxis[t].labels.offsetY;i.config.chart.type==="heatmap"&&(ot-=(i.globals.gridHeight/i.globals.series.length-1)/2);var ft=s.drawText({x:G,y:v+p/10+ot+1,text:X,textAnchor:U,fontSize:o,fontFamily:l,fontWeight:h,maxWidth:i.config.yaxis[t].labels.maxWidth,foreColor:Array.isArray(j)?j[N]:j,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+n.cssClass});N===p&&(C=ft),g.add(ft);var vt=document.createElementNS(i.globals.SVGNS,"title");if(vt.textContent=Array.isArray(X)?X.join(" "):X,ft.node.appendChild(vt),i.config.yaxis[t].labels.rotate!==0){var Pt=s.rotateAroundCenter(C.node),zt=s.rotateAroundCenter(ft.node);ft.node.setAttribute("transform","rotate(".concat(i.config.yaxis[t].labels.rotate," ").concat(Pt.x," ").concat(zt.y,")"))}v+=x},M=p;M>=0;M--)E(M);if(i.config.yaxis[t].title.text!==void 0){var u=s.group({class:"apexcharts-yaxis-title"}),b=0;i.config.yaxis[t].opposite&&(b=i.globals.translateYAxisX[t]);var k=s.drawText({x:b,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[t].title.offsetY,text:i.config.yaxis[t].title.text,textAnchor:"end",foreColor:i.config.yaxis[t].title.style.color,fontSize:i.config.yaxis[t].title.style.fontSize,fontWeight:i.config.yaxis[t].title.style.fontWeight,fontFamily:i.config.yaxis[t].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[t].title.style.cssClass});u.add(k),f.add(u)}var L=i.config.yaxis[t].axisBorder,T=31+L.offsetX;if(i.config.yaxis[t].opposite&&(T=-31-L.offsetX),L.show){var O=s.drawLine(T,i.globals.translateY+L.offsetY-2,T,i.globals.gridHeight+i.globals.translateY+L.offsetY+2,L.color,0,L.width);f.add(O)}return i.config.yaxis[t].axisTicks.show&&this.axesUtils.drawYAxisTicks(T,p,L,i.config.yaxis[t].axisTicks,t,x,f),f}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new V(this.ctx),s=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),n=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});s.add(n);var o=e.globals.yAxisScale[t].result.length-1,l=e.globals.gridWidth/o+.1,h=l+e.config.xaxis.labels.offsetX,f=e.globals.xLabelFormatter,g=e.globals.yAxisScale[t].result.slice(),p=e.globals.timescaleLabels;p.length>0&&(this.xaxisLabels=p.slice(),o=(g=p.slice()).length),g=this.axesUtils.checkForReversedLabels(t,g);var x=p.length;if(e.config.xaxis.labels.show)for(var v=x?0:o;x?v=0;x?v++:v--){var w=g[v];w=f(w,v,e);var A=e.globals.gridWidth+e.globals.padHorizontal-(h-l+e.config.xaxis.labels.offsetX);if(p.length){var C=this.axesUtils.getLabel(g,p,A,v,this.drawnLabels,this.xaxisFontSize);A=C.x,w=C.text,this.drawnLabels.push(C.text),v===0&&e.globals.skipFirstTimelinelabel&&(w=""),v===g.length-1&&e.globals.skipLastTimelinelabel&&(w="")}var E=i.drawText({x:A,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-(e.config.xaxis.position==="top"?e.globals.xAxisHeight+e.config.xaxis.axisTicks.height-2:0),text:w,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});n.add(E),E.tspan(w);var M=document.createElementNS(e.globals.SVGNS,"title");M.textContent=w,E.node.appendChild(M),h+=l}return this.inversedYAxisTitleText(s),this.inversedYAxisBorder(s),s}},{key:"inversedYAxisBorder",value:function(t){var e=this.w,i=new V(this.ctx),s=e.config.xaxis.axisBorder;if(s.show){var n=0;e.config.chart.type==="bar"&&e.globals.isXNumeric&&(n-=15);var o=i.drawLine(e.globals.padHorizontal+n+s.offsetX,this.xAxisoffX,e.globals.gridWidth,this.xAxisoffX,s.color,0,s.height);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(o):t.add(o)}}},{key:"inversedYAxisTitleText",value:function(t){var e=this.w,i=new V(this.ctx);if(e.config.xaxis.title.text!==void 0){var s=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),n=i.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(e.config.xaxis.title.style.fontSize)+e.config.xaxis.title.offsetY+20,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});s.add(n),t.add(s)}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,s=new V(this.ctx),n={width:0,height:0},o={width:0,height:0},l=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-texts-g"));l!==null&&(n=l.getBoundingClientRect());var h=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-title text"));if(h!==null&&(o=h.getBoundingClientRect()),h!==null){var f=this.xPaddingForYAxisTitle(t,n,o,e);h.setAttribute("x",f.xPos-(e?10:0))}if(h!==null){var g=s.rotateAroundCenter(h);h.setAttribute("transform","rotate(".concat(e?-1*i.config.yaxis[t].title.rotate:i.config.yaxis[t].title.rotate," ").concat(g.x," ").concat(g.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(t,e,i,s){var n=this.w,o=0,l=0,h=10;return n.config.yaxis[t].title.text===void 0||t<0?{xPos:l,padd:0}:(s?(l=e.width+n.config.yaxis[t].title.offsetX+i.width/2+h/2,(o+=1)===0&&(l-=h/2)):(l=-1*e.width+n.config.yaxis[t].title.offsetX+h/2+i.width/2,n.globals.isBarHorizontal&&(h=25,l=-1*e.width-n.config.yaxis[t].title.offsetX-h)),{xPos:l,padd:h})}},{key:"setYAxisXPosition",value:function(t,e){var i=this.w,s=0,n=0,o=18,l=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map(function(h,f){var g=i.globals.ignoreYAxisIndexes.indexOf(f)>-1||!h.show||h.floating||t[f].width===0,p=t[f].width+e[f].width;h.opposite?i.globals.isBarHorizontal?(n=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[f]=n-h.labels.offsetX):(n=i.globals.gridWidth+i.globals.translateX+l,g||(l=l+p+20),i.globals.translateYAxisX[f]=n-h.labels.offsetX+20):(s=i.globals.translateX-o,g||(o=o+p+20),i.globals.translateYAxisX[f]=s+h.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(e=z.listToArray(e)).forEach(function(i,s){var n=t.config.yaxis[s];if(n&&!n.floating&&n.labels.align!==void 0){var o=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(s,"'] .apexcharts-yaxis-texts-g")),l=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(s,"'] .apexcharts-yaxis-label"));l=z.listToArray(l);var h=o.getBoundingClientRect();n.labels.align==="left"?(l.forEach(function(f,g){f.setAttribute("text-anchor","start")}),n.opposite||o.setAttribute("transform","translate(-".concat(h.width,", 0)"))):n.labels.align==="center"?(l.forEach(function(f,g){f.setAttribute("text-anchor","middle")}),o.setAttribute("transform","translate(".concat(h.width/2*(n.opposite?1:-1),", 0)"))):n.labels.align==="right"&&(l.forEach(function(f,g){f.setAttribute("text-anchor","end")}),n.opposite&&o.setAttribute("transform","translate(".concat(h.width,", 0)")))}})}}]),_}(),$=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.documentEvent=z.bind(this.documentEvent,this)}return P(_,[{key:"addEventListener",value:function(t,e){var i=this.w;i.globals.events.hasOwnProperty(t)?i.globals.events[t].push(e):i.globals.events[t]=[e]}},{key:"removeEventListener",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){var s=i.globals.events[t].indexOf(e);s!==-1&&i.globals.events[t].splice(s,1)}}},{key:"fireEvent",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){e&&e.length||(e=[]);for(var s=i.globals.events[t],n=s.length,o=0;o0&&(e=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=e.filter(function(n){return n.name===t})[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var s=z.extend(bt,i);this.w.globals.locale=s.options}}]),_}(),K=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"drawAxis",value:function(t,e){var i,s,n=this,o=this.w.globals,l=this.w.config,h=new Xe(this.ctx,e),f=new D(this.ctx,e);o.axisCharts&&t!=="radar"&&(o.isBarHorizontal?(s=f.drawYaxisInversed(0),i=h.drawXaxisInversed(0),o.dom.elGraphical.add(i),o.dom.elGraphical.add(s)):(i=h.drawXaxis(),o.dom.elGraphical.add(i),l.yaxis.map(function(g,p){if(o.ignoreYAxisIndexes.indexOf(p)===-1&&(s=f.drawYaxis(p),o.dom.Paper.add(s),n.w.config.grid.position==="back")){var x=o.dom.Paper.children()[1];x.remove(),o.dom.Paper.add(x)}})))}}]),_}(),st=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new V(this.ctx),i=new tt(this.ctx),s=t.config.xaxis.crosshairs.fill.gradient,n=t.config.xaxis.crosshairs.dropShadow,o=t.config.xaxis.crosshairs.fill.type,l=s.colorFrom,h=s.colorTo,f=s.opacityFrom,g=s.opacityTo,p=s.stops,x=n.enabled,v=n.left,w=n.top,A=n.blur,C=n.color,E=n.opacity,M=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){o==="gradient"&&(M=e.drawGradient("vertical",l,h,f,g,null,p,null));var u=e.drawRect();t.config.xaxis.crosshairs.width===1&&(u=e.drawLine());var b=t.globals.gridHeight;(!z.isNumber(b)||b<0)&&(b=0);var k=t.config.xaxis.crosshairs.width;(!z.isNumber(k)||k<0)&&(k=0),u.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:b,width:k,height:b,fill:M,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),x&&(u=i.dropShadow(u,{left:v,top:w,blur:A,color:C,opacity:E})),t.globals.dom.elGraphical.add(u)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new V(this.ctx),i=t.config.yaxis[0].crosshairs,s=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){var n=e.drawLine(-s,0,t.globals.gridWidth+s,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);n.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(n)}var o=e.drawLine(-s,0,t.globals.gridWidth+s,0,i.stroke.color,0,0);o.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(o)}}]),_}(),lt=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"checkResponsiveConfig",value:function(t){var e=this,i=this.w,s=i.config;if(s.responsive.length!==0){var n=s.responsive.slice();n.sort(function(f,g){return f.breakpoint>g.breakpoint?1:g.breakpoint>f.breakpoint?-1:0}).reverse();var o=new Ee({}),l=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=n[0].breakpoint,p=window.innerWidth>0?window.innerWidth:screen.width;if(p>g){var x=et.extendArrayProps(o,i.globals.initialConfig,i);f=z.extend(x,f),f=z.extend(i.config,f),e.overrideResponsiveOptions(f)}else for(var v=0;v0&&typeof i.config.colors[0]=="function"&&(i.globals.colors=i.config.series.map(function(w,A){var C=i.config.colors[A];return C||(C=i.config.colors[0]),typeof C=="function"?(e.isColorFn=!0,C({value:i.globals.axisCharts?i.globals.series[A][0]?i.globals.series[A][0]:0:i.globals.series[A],seriesIndex:A,dataPointIndex:A,w:i})):C}))),i.globals.seriesColors.map(function(w,A){w&&(i.globals.colors[A]=w)}),i.config.theme.monochrome.enabled){var n=[],o=i.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(o=i.globals.series[0].length*i.globals.series.length);for(var l=i.config.theme.monochrome.color,h=1/(o/i.config.theme.monochrome.shadeIntensity),f=i.config.theme.monochrome.shadeTo,g=0,p=0;p2&&arguments[2]!==void 0?arguments[2]:null,s=this.w,n=e||s.globals.series.length;if(i===null&&(i=this.isBarDistributed||this.isHeatmapDistributed||s.config.chart.type==="heatmap"&&s.config.plotOptions.heatmap.colorScale.inverse),i&&s.globals.series.length&&(n=s.globals.series[s.globals.maxValsInArrayIndex].length*s.globals.series.length),t.lengtht.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(t,e){var i=t;if(this.w.globals.isMultiLineX){var s=e.map(function(o,l){return Array.isArray(o)?o.length:1}),n=Math.max.apply(Math,ht(s));i=e[s.indexOf(n)]}return i}}]),_}(),dt=function(){function _(t){y(this,_),this.w=t.w,this.dCtx=t}return P(_,[{key:"getxAxisLabelsCoords",value:function(){var t,e=this.w,i=e.globals.labels.slice();if(e.config.xaxis.convertedCatToNumeric&&i.length===0&&(i=e.globals.categoryLabels),e.globals.timescaleLabels.length>0){var s=this.getxAxisTimeScaleLabelsCoords();t={width:s.width,height:s.height},e.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=e.config.legend.position!=="left"&&e.config.legend.position!=="right"||e.config.legend.floating?0:this.dCtx.lgRect.width;var n=e.globals.xLabelFormatter,o=z.getLargestStringFromArr(i),l=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,i);e.globals.isBarHorizontal&&(l=o=e.globals.yAxisScale[0].result.reduce(function(w,A){return w.length>A.length?w:A},0));var h=new _e(this.dCtx.ctx),f=o;o=h.xLabelFormat(n,o,f,{i:void 0,dateFormatter:new Ot(this.dCtx.ctx).formatDate,w:e}),l=h.xLabelFormat(n,l,f,{i:void 0,dateFormatter:new Ot(this.dCtx.ctx).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&o===void 0||String(o).trim()==="")&&(l=o="1");var g=new V(this.dCtx.ctx),p=g.getTextRects(o,e.config.xaxis.labels.style.fontSize),x=p;if(o!==l&&(x=g.getTextRects(l,e.config.xaxis.labels.style.fontSize)),(t={width:p.width>=x.width?p.width:x.width,height:p.height>=x.height?p.height:x.height}).width*i.length>e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&e.config.xaxis.labels.rotate!==0||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.globals.rotateXLabels=!0;var v=function(w){return g.getTextRects(w,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,"rotate(".concat(e.config.xaxis.labels.rotate," 0 0)"),!1)};p=v(o),o!==l&&(x=v(l)),t.height=(p.height>x.height?p.height:x.height)/1.5,t.width=p.width>x.width?p.width:x.width}}else e.globals.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var t,e=this.w;if(!e.globals.hasXaxisGroups)return{width:0,height:0};var i,s=((t=e.config.xaxis.group.style)===null||t===void 0?void 0:t.fontSize)||e.config.xaxis.labels.style.fontSize,n=e.globals.groups.map(function(p){return p.title}),o=z.getLargestStringFromArr(n),l=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,n),h=new V(this.dCtx.ctx),f=h.getTextRects(o,s),g=f;return o!==l&&(g=h.getTextRects(l,s)),i={width:f.width>=g.width?f.width:g.width,height:f.height>=g.height?f.height:g.height},e.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(t.config.xaxis.title.text!==void 0){var s=new V(this.dCtx.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=s.width,i=s.height}return{width:e,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var t,e=this.w;this.dCtx.timescaleLabels=e.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map(function(n){return n.value}),s=i.reduce(function(n,o){return n===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):n.length>o.length?n:o},0);return 1.05*(t=new V(this.dCtx.ctx).getTextRects(s,e.config.xaxis.labels.style.fontSize)).width*i.length>e.globals.gridWidth&&e.config.xaxis.labels.rotate!==0&&(e.globals.overlappingXLabels=!0),t}},{key:"additionalPaddingXLabels",value:function(t){var e=this,i=this.w,s=i.globals,n=i.config,o=n.xaxis.type,l=t.width;s.skipLastTimelinelabel=!1,s.skipFirstTimelinelabel=!1;var h=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,f=function(g,p){n.yaxis.length>1&&function(x){return s.collapsedSeriesIndices.indexOf(x)!==-1}(p)||function(x){if(e.dCtx.timescaleLabels&&e.dCtx.timescaleLabels.length){var v=e.dCtx.timescaleLabels[0],w=e.dCtx.timescaleLabels[e.dCtx.timescaleLabels.length-1].position+l/1.75-e.dCtx.yAxisWidthRight,A=v.position-l/1.75+e.dCtx.yAxisWidthLeft,C=i.config.legend.position==="right"&&e.dCtx.lgRect.width>0?e.dCtx.lgRect.width:0;w>s.svgWidth-s.translateX-C&&(s.skipLastTimelinelabel=!0),A<-(x.show&&!x.floating||n.chart.type!=="bar"&&n.chart.type!=="candlestick"&&n.chart.type!=="rangeBar"&&n.chart.type!=="boxPlot"?10:l/1.75)&&(s.skipFirstTimelinelabel=!0)}else o==="datetime"?e.dCtx.gridPad.right((T=String(p(k,h)))===null||T===void 0?void 0:T.length)?b:k},x),w=v=p(v,h);if(v!==void 0&&v.length!==0||(v=f.niceMax),e.globals.isBarHorizontal){s=0;var A=e.globals.labels.slice();v=z.getLargestStringFromArr(A),v=p(v,{seriesIndex:l,dataPointIndex:-1,w:e}),w=t.dCtx.dimHelpers.getLargestStringFromMultiArr(v,A)}var C=new V(t.dCtx.ctx),E="rotate(".concat(o.labels.rotate," 0 0)"),M=C.getTextRects(v,o.labels.style.fontSize,o.labels.style.fontFamily,E,!1),u=M;v!==w&&(u=C.getTextRects(w,o.labels.style.fontSize,o.labels.style.fontFamily,E,!1)),i.push({width:(g>u.width||g>M.width?g:u.width>M.width?u.width:M.width)+s,height:u.height>M.height?u.height:M.height})}else i.push({width:0,height:0})}),i}},{key:"getyAxisTitleCoords",value:function(){var t=this,e=this.w,i=[];return e.config.yaxis.map(function(s,n){if(s.show&&s.title.text!==void 0){var o=new V(t.dCtx.ctx),l="rotate(".concat(s.title.rotate," 0 0)"),h=o.getTextRects(s.title.text,s.title.style.fontSize,s.title.style.fontFamily,l,!1);i.push({width:h.width,height:h.height})}else i.push({width:0,height:0})}),i}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0,i=0,s=0,n=t.globals.yAxisScale.length>1?10:0,o=new Ne(this.dCtx.ctx),l=function(h,f){var g=t.config.yaxis[f].floating,p=0;h.width>0&&!g?(p=h.width+n,function(x){return t.globals.ignoreYAxisIndexes.indexOf(x)>-1}(f)&&(p=p-h.width-n)):p=g||o.isYAxisHidden(f)?0:5,t.config.yaxis[f].opposite?s+=p:i+=p,e+=p};return t.globals.yLabelsCoords.map(function(h,f){l(h,f)}),t.globals.yTitleCoords.map(function(h,f){l(h,f)}),t.globals.isBarHorizontal&&!t.config.yaxis[0].floating&&(e=t.globals.yLabelsCoords[0].width+t.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=s,e}}]),_}(),mt=function(){function _(t){y(this,_),this.w=t.w,this.dCtx=t}return P(_,[{key:"gridPadForColumnsInNumericAxis",value:function(t){var e=this.w;if(e.globals.noData||e.globals.allSeriesCollapsed)return 0;var i=function(g){return g==="bar"||g==="rangeBar"||g==="candlestick"||g==="boxPlot"},s=e.config.chart.type,n=0,o=i(s)?e.config.series.length:1;if(e.globals.comboBarCount>0&&(o=e.globals.comboBarCount),e.globals.collapsedSeries.forEach(function(g){i(g.type)&&(o-=1)}),e.config.chart.stacked&&(o=1),(i(s)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&o>0){var l,h,f=Math.abs(e.globals.initialMaxX-e.globals.initialMinX);f<=3&&(f=e.globals.dataPoints),l=f/t,e.globals.minXDiff&&e.globals.minXDiff/l>0&&(h=e.globals.minXDiff/l),h>t/2&&(h/=2),(n=h/o*parseInt(e.config.plotOptions.bar.columnWidth,10)/100)<1&&(n=1),n=n/(o>1?1:1.5)+5,e.globals.barPadForNumericAxis=n}return n}},{key:"gridPadFortitleSubtitle",value:function(){var t=this,e=this.w,i=e.globals,s=this.dCtx.isSparkline||!e.globals.axisCharts?0:10;["title","subtitle"].forEach(function(l){e.config[l].text!==void 0?s+=e.config[l].margin:s+=t.dCtx.isSparkline||!e.globals.axisCharts?0:5}),!e.config.legend.show||e.config.legend.position!=="bottom"||e.config.legend.floating||e.globals.axisCharts||(s+=10);var n=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),o=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-n.height-o.height-s,i.translateY=i.translateY+n.height+o.height+s}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w,s=new Ne(this.dCtx.ctx);i.config.yaxis.map(function(n,o){i.globals.ignoreYAxisIndexes.indexOf(o)!==-1||n.floating||s.isYAxisHidden(o)||(n.opposite&&(i.globals.translateX=i.globals.translateX-(e[o].width+t[o].width)-parseInt(i.config.yaxis[o].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))})}}]),_}(),kt=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new J(this),this.dimYAxis=new yt(this),this.dimXAxis=new dt(this),this.dimGrid=new mt(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return P(_,[{key:"plotCoords",value:function(){var t=this,e=this.w,i=e.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&((e.config.markers.discrete.length>0||e.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(n){var o=pt(n,2),l=o[0],h=o[1];t.gridPad[l]=Math.max(h,t.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(e.config.stroke.width/2,this.gridPad.top),this.gridPad.bottom=Math.max(e.config.stroke.width/2,this.gridPad.bottom)),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var s=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*s,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(s>0?s+4:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var t=this,e=this.w,i=e.globals,s=this.dimYAxis.getyAxisLabelsCoords(),n=this.dimYAxis.getyAxisTitleCoords();e.globals.yLabelsCoords=[],e.globals.yTitleCoords=[],e.config.yaxis.map(function(v,w){e.globals.yLabelsCoords.push({width:s[w].width,index:w}),e.globals.yTitleCoords.push({width:n[w].width,index:w})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var o=this.dimXAxis.getxAxisLabelsCoords(),l=this.dimXAxis.getxAxisGroupLabelsCoords(),h=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(o,h,l),i.translateXAxisY=e.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=e.globals.rotateXLabels&&e.globals.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+e.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+e.config.xaxis.labels.offsetX;var f=this.yAxisWidth,g=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-h.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-o.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var p=10;(e.config.chart.type==="radar"||this.isSparkline)&&(f=0,g=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||e.config.chart.type==="treemap")&&(f=0,g=0,p=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(o);var x=function(){i.translateX=f,i.gridHeight=i.svgHeight-t.lgRect.height-g-(t.isSparkline||e.config.chart.type==="treemap"?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-f};switch(e.config.xaxis.position==="top"&&(p=i.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":i.translateY=p,x();break;case"top":i.translateY=this.lgRect.height+p,x();break;case"left":i.translateY=p,i.translateX=this.lgRect.width+f,i.gridHeight=i.svgHeight-g-12,i.gridWidth=i.svgWidth-this.lgRect.width-f;break;case"right":i.translateY=p,i.translateX=f,i.gridHeight=i.svgHeight-g-12,i.gridWidth=i.svgWidth-this.lgRect.width-f-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(n,s),new D(this.ctx).setYAxisXPosition(s,n)}},{key:"setDimensionsForNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=t.config,s=0;t.config.legend.show&&!t.config.legend.floating&&(s=20);var n=i.chart.type==="pie"||i.chart.type==="polarArea"||i.chart.type==="donut"?"pie":"radialBar",o=i.plotOptions[n].offsetY,l=i.plotOptions[n].offsetX;if(!i.legend.show||i.legend.floating)return e.gridHeight=e.svgHeight-i.grid.padding.left+i.grid.padding.right,e.gridWidth=e.gridHeight,e.translateY=o,void(e.translateX=l+(e.svgWidth-e.gridWidth)/2);switch(i.legend.position){case"bottom":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=o-10,e.translateX=l+(e.svgWidth-e.gridWidth)/2;break;case"top":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=this.lgRect.height+o+10,e.translateX=l+(e.svgWidth-e.gridWidth)/2;break;case"left":e.gridWidth=e.svgWidth-this.lgRect.width-s,e.gridHeight=i.chart.height!=="auto"?e.svgHeight:e.gridWidth,e.translateY=o,e.translateX=l+this.lgRect.width+s;break;case"right":e.gridWidth=e.svgWidth-this.lgRect.width-s-5,e.gridHeight=i.chart.height!=="auto"?e.svgHeight:e.gridWidth,e.translateY=o,e.translateX=l+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(t,e,i){var s=this.w,n=s.globals.hasXaxisGroups?2:1,o=i.height+t.height+e.height,l=s.globals.isMultiLineX?1.2:s.globals.LINE_HEIGHT_RATIO,h=s.globals.rotateXLabels?22:10,f=s.globals.rotateXLabels&&s.config.legend.position==="bottom"?10:0;this.xAxisHeight=o*l+n*h+f,this.xAxisWidth=t.width,this.xAxisHeight-e.height>s.config.xaxis.labels.maxHeight&&(this.xAxisHeight=s.config.xaxis.labels.maxHeight),s.config.xaxis.labels.minHeight&&this.xAxisHeightp&&(this.yAxisWidth=p)}}]),_}(),Mt=function(){function _(t){y(this,_),this.w=t.w,this.lgCtx=t}return P(_,[{key:"getLegendStyles",value:function(){var t,e,i,s=document.createElement("style");s.setAttribute("type","text/css");var n=((t=this.lgCtx.ctx)===null||t===void 0||(e=t.opts)===null||e===void 0||(i=e.chart)===null||i===void 0?void 0:i.nonce)||this.w.config.chart.nonce;n&&s.setAttribute("nonce",n);var o=document.createTextNode(` .apexcharts-legend { display: flex; overflow: auto; padding: 0 10px; } .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top { flex-wrap: wrap } .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left { flex-direction: column; bottom: 0; } .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left { justify-content: flex-start; } .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center { justify-content: center; } .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right { justify-content: flex-end; } .apexcharts-legend-series { cursor: pointer; line-height: normal; } .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{ display: flex; align-items: center; } .apexcharts-legend-text { position: relative; font-size: 14px; } .apexcharts-legend-text *, .apexcharts-legend-marker * { pointer-events: none; } .apexcharts-legend-marker { position: relative; display: inline-block; cursor: pointer; margin-right: 3px; border-style: solid; } .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{ display: inline-block; } .apexcharts-legend-series.apexcharts-no-click { cursor: auto; } .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series { display: none !important; } .apexcharts-inactive-legend { opacity: 0.45; }`);return s.appendChild(o),s}},{key:"getLegendBBox",value:function(){var t=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),e=t.width;return{clwh:t.height,clww:e}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(t,e){var i=this,s=this.w;if(s.globals.axisCharts||s.config.chart.type==="radialBar"){s.globals.resized=!0;var n=null,o=null;s.globals.risingSeries=[],s.globals.axisCharts?(n=s.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),o=parseInt(n.getAttribute("data:realIndex"),10)):(n=s.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),o=parseInt(n.getAttribute("rel"),10)-1),e?[{cs:s.globals.collapsedSeries,csi:s.globals.collapsedSeriesIndices},{cs:s.globals.ancillaryCollapsedSeries,csi:s.globals.ancillaryCollapsedSeriesIndices}].forEach(function(g){i.riseCollapsedSeries(g.cs,g.csi,o)}):this.hideSeries({seriesEl:n,realIndex:o})}else{var l=s.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(t+1,"'] path")),h=s.config.chart.type;if(h==="pie"||h==="polarArea"||h==="donut"){var f=s.config.plotOptions.pie.donut.labels;new V(this.lgCtx.ctx).pathMouseDown(l.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(l.members[0].node,f)}l.fire("click")}}},{key:"hideSeries",value:function(t){var e=t.seriesEl,i=t.realIndex,s=this.w,n=z.clone(s.config.series);if(s.globals.axisCharts){var o=!1;if(s.config.yaxis[i]&&s.config.yaxis[i].show&&s.config.yaxis[i].showAlways&&(o=!0,s.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(s.globals.ancillaryCollapsedSeries.push({index:i,data:n[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),s.globals.ancillaryCollapsedSeriesIndices.push(i))),!o){s.globals.collapsedSeries.push({index:i,data:n[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),s.globals.collapsedSeriesIndices.push(i);var l=s.globals.risingSeries.indexOf(i);s.globals.risingSeries.splice(l,1)}}else s.globals.collapsedSeries.push({index:i,data:n[i]}),s.globals.collapsedSeriesIndices.push(i);for(var h=e.childNodes,f=0;f0){for(var o=0;o-1&&(t[s].data=[])}):t.forEach(function(i,s){e.globals.collapsedSeriesIndices.indexOf(s)>-1&&(t[s]=0)}),t}}]),_}(),Gt=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new Mt(this)}return P(_,[{key:"init",value:function(){var t=this.w,e=t.globals,i=t.config;if((i.legend.showForSingleSeries&&e.series.length===1||this.isBarsDistributed||e.series.length>1||!e.axisCharts)&&i.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),z.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),i.legend.position==="bottom"||i.legend.position==="top"?this.legendAlignHorizontal():i.legend.position!=="right"&&i.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var t=this,e=this.w,i=e.config.legend.fontFamily,s=e.globals.seriesNames,n=e.globals.colors.slice();if(e.config.chart.type==="heatmap"){var o=e.config.plotOptions.heatmap.colorScale.ranges;s=o.map(function(j){return j.name?j.name:j.from+" - "+j.to}),n=o.map(function(j){return j.color})}else this.isBarsDistributed&&(s=e.globals.labels.slice());e.config.legend.customLegendItems.length&&(s=e.config.legend.customLegendItems);for(var l=e.globals.legendFormatter,h=e.config.legend.inverseOrder,f=h?s.length-1:0;h?f>=0:f<=s.length-1;h?f--:f++){var g,p=l(s[f],{seriesIndex:f,w:e}),x=!1,v=!1;if(e.globals.collapsedSeries.length>0)for(var w=0;w0)for(var A=0;A0?f-10:0)+(g>0?g-10:0)}s.style.position="absolute",o=o+t+i.config.legend.offsetX,l=l+e+i.config.legend.offsetY,s.style.left=o+"px",s.style.top=l+"px",i.config.legend.position==="bottom"?(s.style.top="auto",s.style.bottom=5-i.config.legend.offsetY+"px"):i.config.legend.position==="right"&&(s.style.left="auto",s.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach(function(p){s.style[p]&&(s.style[p]=parseInt(i.config.legend[p],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var t=this.w;t.globals.dom.elLegendWrap.style.right=0;var e=this.legendHelpers.getLegendBBox(),i=new kt(this.ctx),s=i.dimHelpers.getTitleSubtitleCoords("title"),n=i.dimHelpers.getTitleSubtitleCoords("subtitle"),o=0;t.config.legend.position==="bottom"?o=-e.clwh/1.8:t.config.legend.position==="top"&&(o=s.height+n.height+t.config.title.margin+t.config.subtitle.margin-10),this.setLegendWrapXY(20,o)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.legendHelpers.getLegendBBox(),i=0;t.config.legend.position==="left"&&(i=20),t.config.legend.position==="right"&&(i=t.globals.svgWidth-e.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(t){var e=this.w,i=t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker");if(e.config.chart.type==="heatmap"||this.isBarsDistributed){if(i){var s=parseInt(t.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,s,this.w]),new se(this.ctx).highlightRangeInSeries(t,t.target)}}else!t.target.classList.contains("apexcharts-inactive-legend")&&i&&new se(this.ctx).toggleSeriesOnHover(t,t.target)}},{key:"onLegendClick",value:function(t){var e=this.w;if(!e.config.legend.customLegendItems.length&&(t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(t.target.getAttribute("rel"),10)-1,s=t.target.getAttribute("data:collapsed")==="true",n=this.w.config.chart.events.legendClick;typeof n=="function"&&n(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var o=this.w.config.legend.markers.onClick;typeof o=="function"&&t.target.classList.contains("apexcharts-legend-marker")&&(o(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),e.config.chart.type!=="treemap"&&e.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&e.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,s)}}}]),_}(),Yt=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w;var e=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=e.globals.minX,this.maxX=e.globals.maxX}return P(_,[{key:"createToolbar",value:function(){var t=this,e=this.w,i=function(){return document.createElement("div")},s=i();if(s.setAttribute("class","apexcharts-toolbar"),s.style.top=e.config.chart.toolbar.offsetY+"px",s.style.right=3-e.config.chart.toolbar.offsetX+"px",e.globals.dom.elWrap.appendChild(s),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=e.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var n=0;n `),l("zoomOut",this.elZoomOut,` `);var h=function(p){t.t[p]&&e.config.chart[p].enabled&&o.push({el:p==="zoom"?t.elZoom:t.elSelection,icon:typeof t.t[p]=="string"?t.t[p]:p==="zoom"?` `:` `,title:t.localeValues[p==="zoom"?"selectionZoom":"selection"],class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(p,"-icon")})};h("zoom"),h("selection"),this.t.pan&&e.config.chart.zoom.enabled&&o.push({el:this.elPan,icon:typeof this.t.pan=="string"?this.t.pan:` `,title:this.localeValues.pan,class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),l("reset",this.elZoomReset,` `),this.t.download&&o.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var f=0;f0&&s.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:i.globals.gridWidth,maxY:i.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var i=this.w,s=this.xyRatios;if(!i.globals.zoomEnabled){if(i.globals.selection!==void 0&&i.globals.selection!==null)this.drawSelectionRect(i.globals.selection);else if(i.config.chart.selection.xaxis.min!==void 0&&i.config.chart.selection.xaxis.max!==void 0){var n=(i.config.chart.selection.xaxis.min-i.globals.minX)/s.xRatio,o=i.globals.gridWidth-(i.globals.maxX-i.config.chart.selection.xaxis.max)/s.xRatio-n;i.globals.isRangeBar&&(n=(i.config.chart.selection.xaxis.min-i.globals.yAxisScale[0].niceMin)/s.invertedYRatio,o=(i.config.chart.selection.xaxis.max-i.config.chart.selection.xaxis.min)/s.invertedYRatio);var l={x:n,y:0,width:o,height:i.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(l),this.makeSelectionRectDraggable(),typeof i.config.chart.events.selection=="function"&&i.config.chart.events.selection(this.ctx,{xaxis:{min:i.config.chart.selection.xaxis.min,max:i.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(i){var s=i.x,n=i.y,o=i.width,l=i.height,h=i.translateX,f=h===void 0?0:h,g=i.translateY,p=g===void 0?0:g,x=this.w,v=this.zoomRect,w=this.selectionRect;if(this.dragged||x.globals.selection!==null){var A={transform:"translate("+f+", "+p+")"};x.globals.zoomEnabled&&this.dragged&&(o<0&&(o=1),v.attr({x:s,y:n,width:o,height:l,fill:x.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":x.config.chart.zoom.zoomedArea.fill.opacity,stroke:x.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":x.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":x.config.chart.zoom.zoomedArea.stroke.opacity}),V.setAttrs(v.node,A)),x.globals.selectionEnabled&&(w.attr({x:s,y:n,width:o>0?o:0,height:l>0?l:0,fill:x.config.chart.selection.fill.color,"fill-opacity":x.config.chart.selection.fill.opacity,stroke:x.config.chart.selection.stroke.color,"stroke-width":x.config.chart.selection.stroke.width,"stroke-dasharray":x.config.chart.selection.stroke.dashArray,"stroke-opacity":x.config.chart.selection.stroke.opacity}),V.setAttrs(w.node,A))}}},{key:"hideSelectionRect",value:function(i){i&&i.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(i){var s=i.context,n=i.zoomtype,o=this.w,l=s,h=this.gridRect.getBoundingClientRect(),f=l.startX-1,g=l.startY,p=!1,x=!1,v=l.clientX-h.left-f,w=l.clientY-h.top-g,A={};return Math.abs(v+f)>o.globals.gridWidth?v=o.globals.gridWidth-f:l.clientX-h.left<0&&(v=f),f>l.clientX-h.left&&(p=!0,v=Math.abs(v)),g>l.clientY-h.top&&(x=!0,w=Math.abs(w)),A=n==="x"?{x:p?f-v:f,y:0,width:v,height:o.globals.gridHeight}:n==="y"?{x:0,y:x?g-w:g,width:o.globals.gridWidth,height:w}:{x:p?f-v:f,y:x?g-w:g,width:v,height:w},l.drawSelectionRect(A),l.selectionDragging("resizing"),A}},{key:"selectionDragging",value:function(i,s){var n=this,o=this.w,l=this.xyRatios,h=this.selectionRect,f=0;i==="resizing"&&(f=30);var g=function(x){return parseFloat(h.node.getAttribute(x))},p={x:g("x"),y:g("y"),width:g("width"),height:g("height")};o.globals.selection=p,typeof o.config.chart.events.selection=="function"&&o.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var x,v,w,A,C=n.gridRect.getBoundingClientRect(),E=h.node.getBoundingClientRect();o.globals.isRangeBar?(x=o.globals.yAxisScale[0].niceMin+(E.left-C.left)*l.invertedYRatio,v=o.globals.yAxisScale[0].niceMin+(E.right-C.left)*l.invertedYRatio,w=0,A=1):(x=o.globals.xAxisScale.niceMin+(E.left-C.left)*l.xRatio,v=o.globals.xAxisScale.niceMin+(E.right-C.left)*l.xRatio,w=o.globals.yAxisScale[0].niceMin+(C.bottom-E.bottom)*l.yRatio[0],A=o.globals.yAxisScale[0].niceMax-(E.top-C.top)*l.yRatio[0]);var M={xaxis:{min:x,max:v},yaxis:{min:w,max:A}};o.config.chart.events.selection(n.ctx,M),o.config.chart.brush.enabled&&o.config.chart.events.brushScrolled!==void 0&&o.config.chart.events.brushScrolled(n.ctx,M)},f))}},{key:"selectionDrawn",value:function(i){var s=i.context,n=i.zoomtype,o=this.w,l=s,h=this.xyRatios,f=this.ctx.toolbar;if(l.startX>l.endX){var g=l.startX;l.startX=l.endX,l.endX=g}if(l.startY>l.endY){var p=l.startY;l.startY=l.endY,l.endY=p}var x=void 0,v=void 0;o.globals.isRangeBar?(x=o.globals.yAxisScale[0].niceMin+l.startX*h.invertedYRatio,v=o.globals.yAxisScale[0].niceMin+l.endX*h.invertedYRatio):(x=o.globals.xAxisScale.niceMin+l.startX*h.xRatio,v=o.globals.xAxisScale.niceMin+l.endX*h.xRatio);var w=[],A=[];if(o.config.yaxis.forEach(function(T,O){w.push(o.globals.yAxisScale[O].niceMax-h.yRatio[O]*l.startY),A.push(o.globals.yAxisScale[O].niceMax-h.yRatio[O]*l.endY)}),l.dragged&&(l.dragX>10||l.dragY>10)&&x!==v){if(o.globals.zoomEnabled){var C=z.clone(o.globals.initialConfig.yaxis),E=z.clone(o.globals.initialConfig.xaxis);if(o.globals.zoomed=!0,o.config.xaxis.convertedCatToNumeric&&(x=Math.floor(x),v=Math.floor(v),x<1&&(x=1,v=o.globals.dataPoints),v-x<2&&(v=x+1)),n!=="xy"&&n!=="x"||(E={min:x,max:v}),n!=="xy"&&n!=="y"||C.forEach(function(T,O){C[O].min=A[O],C[O].max=w[O]}),o.config.chart.zoom.autoScaleYaxis){var M=new Qe(l.ctx);C=M.autoScaleY(l.ctx,C,{xaxis:E})}if(f){var u=f.getBeforeZoomRange(E,C);u&&(E=u.xaxis?u.xaxis:E,C=u.yaxis?u.yaxis:C)}var b={xaxis:E};o.config.chart.group||(b.yaxis=C),l.ctx.updateHelpers._updateOptions(b,!1,l.w.config.chart.animations.dynamicAnimation.enabled),typeof o.config.chart.events.zoomed=="function"&&f.zoomCallback(E,C)}else if(o.globals.selectionEnabled){var k,L=null;k={min:x,max:v},n!=="xy"&&n!=="y"||(L=z.clone(o.config.yaxis)).forEach(function(T,O){L[O].min=A[O],L[O].max=w[O]}),o.globals.selection=l.selection,typeof o.config.chart.events.selection=="function"&&o.config.chart.events.selection(l.ctx,{xaxis:k,yaxis:L})}}}},{key:"panDragging",value:function(i){var s=i.context,n=this.w,o=s;if(n.globals.lastClientPosition.x!==void 0){var l=n.globals.lastClientPosition.x-o.clientX,h=n.globals.lastClientPosition.y-o.clientY;Math.abs(l)>Math.abs(h)&&l>0?this.moveDirection="left":Math.abs(l)>Math.abs(h)&&l<0?this.moveDirection="right":Math.abs(h)>Math.abs(l)&&h>0?this.moveDirection="up":Math.abs(h)>Math.abs(l)&&h<0&&(this.moveDirection="down")}n.globals.lastClientPosition={x:o.clientX,y:o.clientY};var f=n.globals.isRangeBar?n.globals.minY:n.globals.minX,g=n.globals.isRangeBar?n.globals.maxY:n.globals.maxX;n.config.xaxis.convertedCatToNumeric||o.panScrolled(f,g)}},{key:"delayedPanScrolled",value:function(){var i=this.w,s=i.globals.minX,n=i.globals.maxX,o=(i.globals.maxX-i.globals.minX)/2;this.moveDirection==="left"?(s=i.globals.minX+o,n=i.globals.maxX+o):this.moveDirection==="right"&&(s=i.globals.minX-o,n=i.globals.maxX-o),s=Math.floor(s),n=Math.floor(n),this.updateScrolledChart({xaxis:{min:s,max:n}},s,n)}},{key:"panScrolled",value:function(i,s){var n=this.w,o=this.xyRatios,l=z.clone(n.globals.initialConfig.yaxis),h=o.xRatio,f=n.globals.minX,g=n.globals.maxX;n.globals.isRangeBar&&(h=o.invertedYRatio,f=n.globals.minY,g=n.globals.maxY),this.moveDirection==="left"?(i=f+n.globals.gridWidth/15*h,s=g+n.globals.gridWidth/15*h):this.moveDirection==="right"&&(i=f-n.globals.gridWidth/15*h,s=g-n.globals.gridWidth/15*h),n.globals.isRangeBar||(in.globals.initialMaxX)&&(i=f,s=g);var p={min:i,max:s};n.config.chart.zoom.autoScaleYaxis&&(l=new Qe(this.ctx).autoScaleY(this.ctx,l,{xaxis:p}));var x={xaxis:{min:i,max:s}};n.config.chart.group||(x.yaxis=l),this.updateScrolledChart(x,i,s)}},{key:"updateScrolledChart",value:function(i,s,n){var o=this.w;this.ctx.updateHelpers._updateOptions(i,!1,!1),typeof o.config.chart.events.scrolled=="function"&&o.config.chart.events.scrolled(this.ctx,{xaxis:{min:s,max:n}})}}]),e}(),ke=function(){function _(t){y(this,_),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}return P(_,[{key:"getNearestValues",value:function(t){var e=t.hoverArea,i=t.elGrid,s=t.clientX,n=t.clientY,o=this.w,l=i.getBoundingClientRect(),h=l.width,f=l.height,g=h/(o.globals.dataPoints-1),p=f/o.globals.dataPoints,x=this.hasBars();!o.globals.comboCharts&&!x||o.config.xaxis.convertedCatToNumeric||(g=h/o.globals.dataPoints);var v=s-l.left-o.globals.barPadForNumericAxis,w=n-l.top;v<0||w<0||v>h||w>f?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):o.globals.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):o.globals.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));var A=Math.round(v/g),C=Math.floor(w/p);x&&!o.config.xaxis.convertedCatToNumeric&&(A=Math.ceil(v/g),A-=1);var E=null,M=null,u=o.globals.seriesXvalues.map(function(O){return O.filter(function(N){return z.isNumber(N)})}),b=o.globals.seriesYvalues.map(function(O){return O.filter(function(N){return z.isNumber(N)})});if(o.globals.isXNumeric){var k=this.ttCtx.getElGrid().getBoundingClientRect(),L=v*(k.width/h),T=w*(k.height/f);E=(M=this.closestInMultiArray(L,T,u,b)).index,A=M.j,E!==null&&(u=o.globals.seriesXvalues[E],A=(M=this.closestInArray(L,u)).index)}return o.globals.capturedSeriesIndex=E===null?-1:E,(!A||A<1)&&(A=0),o.globals.isBarHorizontal?o.globals.capturedDataPointIndex=C:o.globals.capturedDataPointIndex=A,{capturedSeries:E,j:o.globals.isBarHorizontal?C:A,hoverX:v,hoverY:w}}},{key:"closestInMultiArray",value:function(t,e,i,s){var n=this.w,o=0,l=null,h=-1;n.globals.series.length>1?o=this.getFirstActiveXArray(i):l=0;var f=i[o][0],g=Math.abs(t-f);if(i.forEach(function(v){v.forEach(function(w,A){var C=Math.abs(t-w);C<=g&&(g=C,h=A)})}),h!==-1){var p=s[o][h],x=Math.abs(e-p);l=o,s.forEach(function(v,w){var A=Math.abs(e-v[h]);A<=x&&(x=A,l=w)})}return{index:l,j:h}}},{key:"getFirstActiveXArray",value:function(t){for(var e=this.w,i=0,s=t.map(function(o,l){return o.length>0?l:-1}),n=0;n0)for(var s=0;s *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(t=ht(t)).sort(function(i,s){var n=Number(i.getAttribute("data:realIndex")),o=Number(s.getAttribute("data:realIndex"));return on?-1:0});var e=[];return t.forEach(function(i){e.push(i.querySelector(".apexcharts-marker"))}),e}},{key:"hasMarkers",value:function(t){return this.getElMarkers(t).length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(t){var e=this.w,i=e.config.markers.hover.size;return i===void 0&&(i=e.globals.markers.size[t]+e.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(t){var e=this.w,i=this.ttCtx;i.allTooltipSeriesGroups.length===0&&(i.allTooltipSeriesGroups=e.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var s=i.allTooltipSeriesGroups,n=0;n ').concat(X.attrs.name,""),N+="
".concat(X.val,"
")}),u.innerHTML=O+"",b.innerHTML=N+""};l?f.globals.seriesGoals[e][i]&&Array.isArray(f.globals.seriesGoals[e][i])?k():(u.innerHTML="",b.innerHTML=""):k()}else u.innerHTML="",b.innerHTML="";if(A!==null&&(s[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=f.config.tooltip.z.title,s[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=A!==void 0?A:""),l&&C[0]){if(f.config.tooltip.hideEmptySeries){var L=s[e].querySelector(".apexcharts-tooltip-marker"),T=s[e].querySelector(".apexcharts-tooltip-text");parseFloat(p)==0?(L.style.display="none",T.style.display="none"):(L.style.display="block",T.style.display="block")}p==null||f.globals.ancillaryCollapsedSeriesIndices.indexOf(e)>-1||f.globals.collapsedSeriesIndices.indexOf(e)>-1?C[0].parentNode.style.display="none":C[0].parentNode.style.display=f.config.tooltip.items.display}}},{key:"toggleActiveInactiveSeries",value:function(t){var e=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=e.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=e.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(t){var e=t.i,i=t.j,s=this.w,n=this.ctx.series.filteredSeriesX(),o="",l="",h=null,f=null,g={series:s.globals.series,seriesIndex:e,dataPointIndex:i,w:s},p=s.globals.ttZFormatter;i===null?f=s.globals.series[e]:s.globals.isXNumeric&&s.config.chart.type!=="treemap"?(o=n[e][i],n[e].length===0&&(o=n[this.tooltipUtil.getFirstActiveXArray(n)][i])):o=s.globals.labels[i]!==void 0?s.globals.labels[i]:"";var x=o;return s.globals.isXNumeric&&s.config.xaxis.type==="datetime"?o=new _e(this.ctx).xLabelFormat(s.globals.ttKeyFormatter,x,x,{i:void 0,dateFormatter:new Ot(this.ctx).formatDate,w:this.w}):o=s.globals.isBarHorizontal?s.globals.yLabelFormatters[0](x,g):s.globals.xLabelFormatter(x,g),s.config.tooltip.x.formatter!==void 0&&(o=s.globals.ttKeyFormatter(x,g)),s.globals.seriesZ.length>0&&s.globals.seriesZ[e].length>0&&(h=p(s.globals.seriesZ[e][i],s)),l=typeof s.config.xaxis.tooltip.formatter=="function"?s.globals.xaxisTooltipFormatter(x,g):o,{val:Array.isArray(f)?f.join(" "):f,xVal:Array.isArray(o)?o.join(" "):o,xAxisTTVal:Array.isArray(l)?l.join(" "):l,zVal:h}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,s=t.y1,n=t.y2,o=t.w,l=this.ttCtx.getElTooltip(),h=o.config.tooltip.custom;Array.isArray(h)&&h[e]&&(h=h[e]),l.innerHTML=h({ctx:this.ctx,series:o.globals.series,seriesIndex:e,dataPointIndex:i,y1:s,y2:n,w:o})}}]),_}(),ca=function(){function _(t){y(this,_),this.ttCtx=t,this.ctx=t.ctx,this.w=t.w}return P(_,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.ttCtx,s=this.w,n=i.getElXCrosshairs(),o=t-i.xcrosshairsWidth/2,l=s.globals.labels.slice().length;if(e!==null&&(o=s.globals.gridWidth/l*e),n===null||s.globals.isBarHorizontal||(n.setAttribute("x",o),n.setAttribute("x1",o),n.setAttribute("x2",o),n.setAttribute("y2",s.globals.gridHeight),n.classList.add("apexcharts-active")),o<0&&(o=0),o>s.globals.gridWidth&&(o=s.globals.gridWidth),i.isXAxisTooltipEnabled){var h=o;s.config.xaxis.crosshairs.width!=="tickWidth"&&s.config.xaxis.crosshairs.width!=="barWidth"||(h=o+i.xcrosshairsWidth/2),this.moveXAxisTooltip(h)}}},{key:"moveYCrosshairs",value:function(t){var e=this.ttCtx;e.ycrosshairs!==null&&V.setAttrs(e.ycrosshairs,{y1:t,y2:t}),e.ycrosshairsHidden!==null&&V.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}},{key:"moveXAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;if(i.xaxisTooltip!==null&&i.xcrosshairsWidth!==0){i.xaxisTooltip.classList.add("apexcharts-active");var s=i.xaxisOffY+e.config.xaxis.tooltip.offsetY+e.globals.translateY+1+e.config.xaxis.offsetY;if(t-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(t)){t+=e.globals.translateX;var n;n=new V(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=n.width+"px",i.xaxisTooltip.style.left=t+"px",i.xaxisTooltip.style.top=s+"px"}}}},{key:"moveYAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;i.yaxisTTEls===null&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var s=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),n=e.globals.translateY+s,o=i.yaxisTTEls[t].getBoundingClientRect().height,l=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(l-=26),n-=o/2,e.globals.ignoreYAxisIndexes.indexOf(t)===-1?(i.yaxisTTEls[t].classList.add("apexcharts-active"),i.yaxisTTEls[t].style.top=n+"px",i.yaxisTTEls[t].style.left=l+e.config.yaxis[t].tooltip.offsetX+"px"):i.yaxisTTEls[t].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,s=this.w,n=this.ttCtx,o=n.getElTooltip(),l=n.tooltipRect,h=i!==null?parseFloat(i):1,f=parseFloat(t)+h+5,g=parseFloat(e)+h/2;if(f>s.globals.gridWidth/2&&(f=f-l.ttWidth-h-10),f>s.globals.gridWidth-l.ttWidth-10&&(f=s.globals.gridWidth-l.ttWidth),f<-20&&(f=-20),s.config.tooltip.followCursor){var p=n.getElGrid().getBoundingClientRect();(f=n.e.clientX-p.left)>s.globals.gridWidth/2&&(f-=n.tooltipRect.ttWidth),(g=n.e.clientY+s.globals.translateY-p.top)>s.globals.gridHeight/2&&(g-=n.tooltipRect.ttHeight)}else s.globals.isBarHorizontal||l.ttHeight/2+g>s.globals.gridHeight&&(g=s.globals.gridHeight-l.ttHeight+s.globals.translateY);isNaN(f)||(f+=s.globals.translateX,o.style.left=f+"px",o.style.top=g+"px")}},{key:"moveMarkers",value:function(t,e){var i=this.w,s=this.ttCtx;if(i.globals.markers.size[t]>0)for(var n=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),o=0;o0&&(g.setAttribute("r",h),g.setAttribute("cx",i),g.setAttribute("cy",s)),this.moveXCrosshairs(i),o.fixedTooltip||this.moveTooltip(i,s,h)}}},{key:"moveDynamicPointsOnHover",value:function(t){var e,i=this.ttCtx,s=i.w,n=0,o=0,l=s.globals.pointsArray;e=new se(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var h=i.tooltipUtil.getHoverMarkerSize(e);l[e]&&(n=l[e][t][0],o=l[e][t][1]);var f=i.tooltipUtil.getAllMarkers();if(f!==null)for(var g=0;g0?(f[g]&&f[g].setAttribute("r",h),f[g]&&f[g].setAttribute("cy",x)):f[g]&&f[g].setAttribute("r",0)}}this.moveXCrosshairs(n),i.fixedTooltip||this.moveTooltip(n,o||s.globals.gridHeight,h)}},{key:"moveStickyTooltipOverBars",value:function(t,e){var i=this.w,s=this.ttCtx,n=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length,o=n>=2&&n%2==0?Math.floor(n/2):Math.floor(n/2)+1;i.globals.isBarHorizontal&&(o=new se(this.ctx).getActiveConfigSeriesIndex("desc")+1);var l=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(o,"'] path[j='").concat(t,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(t,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(t,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(t,"']"));l||typeof e!="number"||(l=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(e,"'] path[j='").concat(t,`'], .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='`).concat(e,"'] path[j='").concat(t,`'], .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='`).concat(e,"'] path[j='").concat(t,`'], .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='`).concat(e,"'] path[j='").concat(t,"']")));var h=l?parseFloat(l.getAttribute("cx")):0,f=l?parseFloat(l.getAttribute("cy")):0,g=l?parseFloat(l.getAttribute("barWidth")):0,p=s.getElGrid().getBoundingClientRect(),x=l&&(l.classList.contains("apexcharts-candlestick-area")||l.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(l&&!x&&(h-=n%2!=0?g/2:0),l&&x&&i.globals.comboCharts&&(h-=g/2)):i.globals.isBarHorizontal||(h=s.xAxisTicksPositions[t-1]+s.dataPointsDividedWidth/2,isNaN(h)&&(h=s.xAxisTicksPositions[t]-s.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?f-=s.tooltipRect.ttHeight:i.config.tooltip.followCursor?f=s.e.clientY-p.top-s.tooltipRect.ttHeight/2:f+s.tooltipRect.ttHeight+15>i.globals.gridHeight&&(f=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(h),s.fixedTooltip||this.moveTooltip(h,f||i.globals.gridHeight)}}]),_}(),Ti=function(){function _(t){y(this,_),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new ca(t)}return P(_,[{key:"drawDynamicPoints",value:function(){var t=this.w,e=new V(this.ctx),i=new hi(this.ctx),s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");s=ht(s),t.config.chart.stacked&&s.sort(function(p,x){return parseFloat(p.getAttribute("data:realIndex"))-parseFloat(x.getAttribute("data:realIndex"))});for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:null,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,n=this.w;n.config.chart.type!=="bubble"&&this.newPointSize(t,e);var o=e.getAttribute("cx"),l=e.getAttribute("cy");if(i!==null&&s!==null&&(o=i,l=s),this.tooltipPosition.moveXCrosshairs(o),!this.fixedTooltip){if(n.config.chart.type==="radar"){var h=this.ttCtx.getElGrid().getBoundingClientRect();o=this.ttCtx.e.clientX-h.left}this.tooltipPosition.moveTooltip(o,l,n.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this,s=this.ttCtx,n=t,o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),l=e.config.markers.hover.size,h=0;h=0?t[e].setAttribute("r",i):t[e].setAttribute("r",0)}}}]),_}(),$a=function(){function _(t){y(this,_),this.w=t.w;var e=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!e.globals.isBarHorizontal&&e.config.chart.type==="rangeBar"&&e.config.plotOptions.bar.rangeBarGroupRows}return P(_,[{key:"getAttr",value:function(t,e){return parseFloat(t.target.getAttribute(e))}},{key:"handleHeatTreeTooltip",value:function(t){var e=t.e,i=t.opt,s=t.x,n=t.y,o=t.type,l=this.ttCtx,h=this.w;if(e.target.classList.contains("apexcharts-".concat(o,"-rect"))){var f=this.getAttr(e,"i"),g=this.getAttr(e,"j"),p=this.getAttr(e,"cx"),x=this.getAttr(e,"cy"),v=this.getAttr(e,"width"),w=this.getAttr(e,"height");if(l.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:f,j:g,shared:!1,e}),h.globals.capturedSeriesIndex=f,h.globals.capturedDataPointIndex=g,s=p+l.tooltipRect.ttWidth/2+v,n=x+l.tooltipRect.ttHeight/2-w/2,l.tooltipPosition.moveXCrosshairs(p+v/2),s>h.globals.gridWidth/2&&(s=p-l.tooltipRect.ttWidth/2+v),l.w.config.tooltip.followCursor){var A=h.globals.dom.elWrap.getBoundingClientRect();s=h.globals.clientX-A.left-(s>h.globals.gridWidth/2?l.tooltipRect.ttWidth:0),n=h.globals.clientY-A.top-(n>h.globals.gridHeight/2?l.tooltipRect.ttHeight:0)}}return{x:s,y:n}}},{key:"handleMarkerTooltip",value:function(t){var e,i,s=t.e,n=t.opt,o=t.x,l=t.y,h=this.w,f=this.ttCtx;if(s.target.classList.contains("apexcharts-marker")){var g=parseInt(n.paths.getAttribute("cx"),10),p=parseInt(n.paths.getAttribute("cy"),10),x=parseFloat(n.paths.getAttribute("val"));if(i=parseInt(n.paths.getAttribute("rel"),10),e=parseInt(n.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,f.intersect){var v=z.findAncestor(n.paths,"apexcharts-series");v&&(e=parseInt(v.getAttribute("data:realIndex"),10))}if(f.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:e,j:i,shared:!f.showOnIntersect&&h.config.tooltip.shared,e:s}),s.type==="mouseup"&&f.markerClick(s,e,i),h.globals.capturedSeriesIndex=e,h.globals.capturedDataPointIndex=i,o=g,l=p+h.globals.translateY-1.4*f.tooltipRect.ttHeight,f.w.config.tooltip.followCursor){var w=f.getElGrid().getBoundingClientRect();l=f.e.clientY+h.globals.translateY-w.top}x<0&&(l=p),f.marker.enlargeCurrentPoint(i,n.paths,o,l)}return{x:o,y:l}}},{key:"handleBarTooltip",value:function(t){var e,i,s=t.e,n=t.opt,o=this.w,l=this.ttCtx,h=l.getElTooltip(),f=0,g=0,p=0,x=this.getBarTooltipXY({e:s,opt:n});e=x.i;var v=x.barHeight,w=x.j;o.globals.capturedSeriesIndex=e,o.globals.capturedDataPointIndex=w,o.globals.isBarHorizontal&&l.tooltipUtil.hasBars()||!o.config.tooltip.shared?(g=x.x,p=x.y,i=Array.isArray(o.config.stroke.width)?o.config.stroke.width[e]:o.config.stroke.width,f=g):o.globals.comboCharts||o.config.tooltip.shared||(f/=2),isNaN(p)&&(p=o.globals.svgHeight-l.tooltipRect.ttHeight);var A=parseInt(n.paths.parentNode.getAttribute("data:realIndex"),10),C=o.globals.isMultipleYAxis?o.config.yaxis[A]&&o.config.yaxis[A].reversed:o.config.yaxis[0].reversed;if(g+l.tooltipRect.ttWidth>o.globals.gridWidth&&!C?g-=l.tooltipRect.ttWidth:g<0&&(g=0),l.w.config.tooltip.followCursor){var E=l.getElGrid().getBoundingClientRect();p=l.e.clientY-E.top}l.tooltip===null&&(l.tooltip=o.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),o.config.tooltip.shared||(o.globals.comboBarCount>0?l.tooltipPosition.moveXCrosshairs(f+i/2):l.tooltipPosition.moveXCrosshairs(f)),!l.fixedTooltip&&(!o.config.tooltip.shared||o.globals.isBarHorizontal&&l.tooltipUtil.hasBars())&&(C&&(g-=l.tooltipRect.ttWidth)<0&&(g=0),!C||o.globals.isBarHorizontal&&l.tooltipUtil.hasBars()||(p=p+v-2*(o.globals.series[e][w]<0?v:0)),p=p+o.globals.translateY-l.tooltipRect.ttHeight/2,h.style.left=g+o.globals.translateX+"px",h.style.top=p+"px")}},{key:"getBarTooltipXY",value:function(t){var e=this,i=t.e,s=t.opt,n=this.w,o=null,l=this.ttCtx,h=0,f=0,g=0,p=0,x=0,v=i.target.classList;if(v.contains("apexcharts-bar-area")||v.contains("apexcharts-candlestick-area")||v.contains("apexcharts-boxPlot-area")||v.contains("apexcharts-rangebar-area")){var w=i.target,A=w.getBoundingClientRect(),C=s.elGrid.getBoundingClientRect(),E=A.height;x=A.height;var M=A.width,u=parseInt(w.getAttribute("cx"),10),b=parseInt(w.getAttribute("cy"),10);p=parseFloat(w.getAttribute("barWidth"));var k=i.type==="touchmove"?i.touches[0].clientX:i.clientX;o=parseInt(w.getAttribute("j"),10),h=parseInt(w.parentNode.getAttribute("rel"),10)-1;var L=w.getAttribute("data-range-y1"),T=w.getAttribute("data-range-y2");n.globals.comboCharts&&(h=parseInt(w.parentNode.getAttribute("data:realIndex"),10));var O=function(X){return n.globals.isXNumeric?u-M/2:e.isVerticalGroupedRangeBar?u+M/2:u-l.dataPointsDividedWidth+M/2},N=function(){return b-l.dataPointsDividedHeight+E/2-l.tooltipRect.ttHeight/2};l.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:h,j:o,y1:L?parseInt(L,10):null,y2:T?parseInt(T,10):null,shared:!l.showOnIntersect&&n.config.tooltip.shared,e:i}),n.config.tooltip.followCursor?n.globals.isBarHorizontal?(f=k-C.left+15,g=N()):(f=O(),g=i.clientY-C.top-l.tooltipRect.ttHeight/2-15):n.globals.isBarHorizontal?((f=u)0&&i.setAttribute("width",e.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var t=this.w,e=this.ttCtx;e.ycrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(t,e,i){var s=this.ttCtx,n=this.w,o=n.globals.yLabelFormatters[t];if(s.yaxisTooltips[t]){var l=s.getElGrid().getBoundingClientRect(),h=(e-l.top)*i.yRatio[t],f=n.globals.maxYArr[t]-n.globals.minYArr[t],g=n.globals.minYArr[t]+(f-h);s.tooltipPosition.moveYCrosshairs(e-l.top),s.yaxisTooltipText[t].innerHTML=o(g),s.tooltipPosition.moveYAxisTooltip(t)}}}]),_}(),Te=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w;var e=this.w;this.tConfig=e.config.tooltip,this.tooltipUtil=new ke(this),this.tooltipLabels=new ui(this),this.tooltipPosition=new ca(this),this.marker=new Ti(this),this.intersect=new $a(this),this.axesTooltip=new be(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!e.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return P(_,[{key:"getElTooltip",value:function(t){return t||(t=this),t.w.globals.dom.baseEl?t.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(t){var e=this.w;this.xyRatios=t,this.isXAxisTooltipEnabled=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.yaxisTooltips=e.config.yaxis.map(function(o,l){return!!(o.show&&o.tooltip.enabled&&e.globals.axisCharts)}),this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),e.config.tooltip.cssClass&&i.classList.add(e.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),e.globals.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var s=new Xe(this.ctx);this.xAxisTicksPositions=s.getXAxisTicksPositions()}if(!e.globals.comboCharts&&!this.tConfig.intersect&&e.config.chart.type!=="rangeBar"||this.tConfig.shared||(this.showOnIntersect=!0),e.config.markers.size!==0&&e.globals.markers.largestSize!==0||this.marker.drawDynamicPoints(this),e.globals.collapsedSeries.length!==e.globals.series.length){this.dataPointsDividedHeight=e.globals.gridHeight/e.globals.dataPoints,this.dataPointsDividedWidth=e.globals.gridWidth/e.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var n=e.globals.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(n=this.showOnIntersect?1:e.globals.series.length),this.legendLabels=e.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(n),this.addSVGEvents()}}},{key:"createTTElements",value:function(t){for(var e=this,i=this.w,s=[],n=this.getElTooltip(),o=function(h){var f=document.createElement("div");f.classList.add("apexcharts-tooltip-series-group"),f.style.order=i.config.tooltip.inverseOrder?t-h:h+1,e.tConfig.shared&&e.tConfig.enabledOnSeries&&Array.isArray(e.tConfig.enabledOnSeries)&&e.tConfig.enabledOnSeries.indexOf(h)<0&&f.classList.add("apexcharts-tooltip-series-group-hidden");var g=document.createElement("span");g.classList.add("apexcharts-tooltip-marker"),g.style.backgroundColor=i.globals.colors[h],f.appendChild(g);var p=document.createElement("div");p.classList.add("apexcharts-tooltip-text"),p.style.fontFamily=e.tConfig.style.fontFamily||i.config.chart.fontFamily,p.style.fontSize=e.tConfig.style.fontSize,["y","goals","z"].forEach(function(x){var v=document.createElement("div");v.classList.add("apexcharts-tooltip-".concat(x,"-group"));var w=document.createElement("span");w.classList.add("apexcharts-tooltip-text-".concat(x,"-label")),v.appendChild(w);var A=document.createElement("span");A.classList.add("apexcharts-tooltip-text-".concat(x,"-value")),v.appendChild(A),p.appendChild(v)}),f.appendChild(p),n.appendChild(f),s.push(f)},l=0;l0&&this.addPathsEventListeners(w,p),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(p)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),s=i.width+10,n=i.height+10,o=this.tConfig.fixed.offsetX,l=this.tConfig.fixed.offsetY,h=this.tConfig.fixed.position.toLowerCase();return h.indexOf("right")>-1&&(o=o+t.globals.svgWidth-s+10),h.indexOf("bottom")>-1&&(l=l+t.globals.svgHeight-n-10),e.style.left=o+"px",e.style.top=l+"px",{x:o,y:l,ttWidth:s,ttHeight:n}}},{key:"addDatapointEventsListeners",value:function(t){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(e,t)}},{key:"addPathsEventListeners",value:function(t,e){for(var i=this,s=function(o){var l={paths:t[o],tooltipEl:e.tooltipEl,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(h){return t[o].addEventListener(h,i.onSeriesHover.bind(i,l),{capture:!1,passive:!0})})},n=0;n=100?this.seriesHover(t,e):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){i.seriesHover(t,e)},100-s))}},{key:"seriesHover",value:function(t,e){var i=this;this.lastHoverTime=Date.now();var s=[],n=this.w;n.config.chart.group&&(s=this.ctx.getGroupedCharts()),n.globals.axisCharts&&(n.globals.minX===-1/0&&n.globals.maxX===1/0||n.globals.dataPoints===0)||(s.length?s.forEach(function(o){var l=i.getElTooltip(o),h={paths:t.paths,tooltipEl:l,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:o.w.globals.tooltip.ttItems};o.w.globals.minX===i.w.globals.minX&&o.w.globals.maxX===i.w.globals.maxX&&o.w.globals.tooltip.seriesHoverByContext({chartCtx:o,ttCtx:o.w.globals.tooltip,opt:h,e})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:t,e}))}},{key:"seriesHoverByContext",value:function(t){var e=t.chartCtx,i=t.ttCtx,s=t.opt,n=t.e,o=e.w,l=this.getElTooltip();l&&(i.tooltipRect={x:0,y:0,ttWidth:l.getBoundingClientRect().width,ttHeight:l.getBoundingClientRect().height},i.e=n,i.tooltipUtil.hasBars()&&!o.globals.comboCharts&&!i.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new se(e).toggleSeriesOnHover(n,n.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),o.globals.axisCharts?i.axisChartsTooltips({e:n,opt:s,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:n,opt:s,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(t){var e,i,s=t.e,n=t.opt,o=this.w,l=n.elGrid.getBoundingClientRect(),h=s.type==="touchmove"?s.touches[0].clientX:s.clientX,f=s.type==="touchmove"?s.touches[0].clientY:s.clientY;if(this.clientY=f,this.clientX=h,o.globals.capturedSeriesIndex=-1,o.globals.capturedDataPointIndex=-1,fl.top+l.height)this.handleMouseOut(n);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!o.config.tooltip.shared){var g=parseInt(n.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(g)<0)return void this.handleMouseOut(n)}var p=this.getElTooltip(),x=this.getElXCrosshairs(),v=o.globals.xyCharts||o.config.chart.type==="bar"&&!o.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||o.globals.comboCharts&&this.tooltipUtil.hasBars();if(s.type==="mousemove"||s.type==="touchmove"||s.type==="mouseup"){if(o.globals.collapsedSeries.length+o.globals.ancillaryCollapsedSeries.length===o.globals.series.length)return;x!==null&&x.classList.add("apexcharts-active");var w=this.yaxisTooltips.filter(function(E){return E===!0});if(this.ycrosshairs!==null&&w.length&&this.ycrosshairs.classList.add("apexcharts-active"),v&&!this.showOnIntersect)this.handleStickyTooltip(s,h,f,n);else if(o.config.chart.type==="heatmap"||o.config.chart.type==="treemap"){var A=this.intersect.handleHeatTreeTooltip({e:s,opt:n,x:e,y:i,type:o.config.chart.type});e=A.x,i=A.y,p.style.left=e+"px",p.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:s,opt:n}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:s,opt:n,x:e,y:i});if(this.yaxisTooltips.length)for(var C=0;Cf.width)this.handleMouseOut(s);else if(h!==null)this.handleStickyCapturedSeries(t,h,s,l);else if(this.tooltipUtil.isXoverlap(l)||n.globals.isBarHorizontal){var g=n.globals.series.findIndex(function(p,x){return!n.globals.collapsedSeriesIndices.includes(x)});this.create(t,this,g,l,s.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(t,e,i,s){var n=this.w;if(!this.tConfig.shared&&n.globals.series[e][s]===null)return void this.handleMouseOut(i);if(n.globals.series[e][s]!==void 0)this.tConfig.shared&&this.tooltipUtil.isXoverlap(s)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,s,i.ttItems):this.create(t,this,e,s,i.ttItems,!1);else if(this.tooltipUtil.isXoverlap(s)){var o=n.globals.series.findIndex(function(l,h){return!n.globals.collapsedSeriesIndices.includes(h)});this.create(t,this,o,s,i.ttItems)}}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new V(this.ctx),i=t.globals.dom.Paper.select(".apexcharts-bar-area"),s=0;s5&&arguments[5]!==void 0?arguments[5]:null,T=this.w,O=e;t.type==="mouseup"&&this.markerClick(t,i,s),L===null&&(L=this.tConfig.shared);var N=this.tooltipUtil.hasMarkers(i),X=this.tooltipUtil.getElBars();if(T.config.legend.tooltipHoverFormatter){var G=T.config.legend.tooltipHoverFormatter,U=Array.from(this.legendLabels);U.forEach(function(Ye){var Ae=Ye.getAttribute("data:default-text");Ye.innerHTML=decodeURIComponent(Ae)});for(var j=0;j0?O.marker.enlargePoints(s):O.tooltipPosition.moveDynamicPointsOnHover(s);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(X),this.barSeriesHeight>0)){var Et=new V(this.ctx),jt=T.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(s,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(s,i);for(var Jt=0;Jt0&&s.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(w-=p*T)),L&&(w=w+v.height/2-u/2-2);var N=this.barCtx.series[n][o]<0,X=f;switch(this.barCtx.isReversed&&(X=f-x+(N?2*x:0),f-=x),E.position){case"center":A=L?N?X-x/2+k:X+x/2-k:N?X-x/2+v.height/2+k:X+x/2+v.height/2-k;break;case"bottom":A=L?N?X-x+k:X+x-k:N?X-x+v.height+u+k:X+x-v.height/2+u-k;break;case"top":A=L?N?X+k:X-k:N?X-v.height/2-k:X+v.height+k}if(this.barCtx.lastActiveBarSerieIndex===l&&M.enabled){var G=new V(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:l,j:o}),C.fontSize);e=N?X-G.height/2-k-M.offsetY+18:X+G.height+k+M.offsetY-18,i=w+M.offsetX}return s.config.chart.stacked||(A<0?A=0+u:A+v.height/3>s.globals.gridHeight&&(A=s.globals.gridHeight-u)),{bcx:g,bcy:f,dataLabelsX:w,dataLabelsY:A,totalDataLabelsX:i,totalDataLabelsY:e,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(t){var e=this.w,i=t.x,s=t.i,n=t.j,o=t.realIndex,l=t.groupIndex,h=t.bcy,f=t.barHeight,g=t.barWidth,p=t.textRects,x=t.dataLabelsX,v=t.strokeWidth,w=t.dataLabelsConfig,A=t.barDataLabelsConfig,C=t.barTotalDataLabelsConfig,E=t.offX,M=t.offY,u=e.globals.gridHeight/e.globals.dataPoints;g=Math.abs(g);var b,k,L=(h+=l!==-1?l*f:0)-(this.barCtx.isRangeBar?0:u)+f/2+p.height/2+M-3,T="start",O=this.barCtx.series[s][n]<0,N=i;switch(this.barCtx.isReversed&&(N=i+g-(O?2*g:0),i=e.globals.gridWidth-g),A.position){case"center":x=O?N+g/2-E:Math.max(p.width/2,N-g/2)+E;break;case"bottom":x=O?N+g-v-Math.round(p.width/2)-E:N-g+v+Math.round(p.width/2)+E;break;case"top":x=O?N-v+Math.round(p.width/2)-E:N-v-Math.round(p.width/2)+E}if(this.barCtx.lastActiveBarSerieIndex===o&&C.enabled){var X=new V(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:n}),w.fontSize);O?(b=N-v+Math.round(X.width/2)-E-C.offsetX-15,T="end"):b=N-v-Math.round(X.width/2)+E+C.offsetX+15,k=L+C.offsetY}return e.config.chart.stacked||(x<0?x=x+p.width+v:x+p.width/2>e.globals.gridWidth&&(x=e.globals.gridWidth-p.width-v)),{bcx:i,bcy:h,dataLabelsX:x,dataLabelsY:L,totalDataLabelsX:b,totalDataLabelsY:k,totalDataLabelsAnchor:T}}},{key:"drawCalculatedDataLabels",value:function(t){var e=t.x,i=t.y,s=t.val,n=t.i,o=t.j,l=t.textRects,h=t.barHeight,f=t.barWidth,g=t.dataLabelsConfig,p=this.w,x="rotate(0)";p.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(x="rotate(-90, ".concat(e,", ").concat(i,")"));var v=new di(this.barCtx.ctx),w=new V(this.barCtx.ctx),A=g.formatter,C=null,E=p.globals.collapsedSeriesIndices.indexOf(n)>-1;if(g.enabled&&!E){C=w.group({class:"apexcharts-data-labels",transform:x});var M="";s!==void 0&&(M=A(s,d(d({},p),{},{seriesIndex:n,dataPointIndex:o,w:p}))),!s&&p.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(M="");var u=p.globals.series[n][o]<0,b=p.config.plotOptions.bar.dataLabels.position;p.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(b==="top"&&(g.textAnchor=u?"end":"start"),b==="center"&&(g.textAnchor="middle"),b==="bottom"&&(g.textAnchor=u?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&fMath.abs(f)&&(M=""):l.height/1.6>Math.abs(h)&&(M=""));var k=d({},g);this.barCtx.isHorizontal&&s<0&&(g.textAnchor==="start"?k.textAnchor="end":g.textAnchor==="end"&&(k.textAnchor="start")),v.plotDataLabelsText({x:e,y:i,text:M,i:n,j:o,parent:C,dataLabelsConfig:k,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return C}},{key:"drawTotalDataLabels",value:function(t){var e,i=t.x,s=t.y,n=t.val,o=t.barWidth,l=t.barHeight,h=t.realIndex,f=t.textAnchor,g=t.barTotalDataLabelsConfig,p=this.w,x=new V(this.barCtx.ctx);return g.enabled&&i!==void 0&&s!==void 0&&this.barCtx.lastActiveBarSerieIndex===h&&(e=x.drawText({x:i-(!p.globals.isBarHorizontal&&p.globals.seriesGroups.length?o/p.globals.seriesGroups.length:0),y:s-(p.globals.isBarHorizontal&&p.globals.seriesGroups.length?l/p.globals.seriesGroups.length:0),foreColor:g.style.color,text:n,textAnchor:f,fontFamily:g.style.fontFamily,fontSize:g.style.fontSize,fontWeight:g.style.fontWeight})),e}}]),_}(),Xh=function(){function _(t){y(this,_),this.w=t.w,this.barCtx=t}return P(_,[{key:"initVariables",value:function(t){var e=this.w;this.barCtx.series=t,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=t[i].length),e.globals.isXNumeric)for(var s=0;se.globals.minX&&e.globals.seriesX[i][s]0&&(s=f.globals.minXDiff/x),(o=s/p*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(o=1)}String(this.barCtx.barOptions.columnWidth).indexOf("%")===-1&&(o=parseInt(this.barCtx.barOptions.columnWidth,10)),l=f.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?f.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),t=f.globals.padHorizontal+(s-o*this.barCtx.seriesLen)/2}return f.globals.barHeight=n,f.globals.barWidth=o,{x:t,y:e,yDivision:i,xDivision:s,barHeight:n,barWidth:o,zeroH:l,zeroW:h}}},{key:"initializeStackedPrevVars",value:function(t){var e=t.w;e.globals.hasSeriesGroups?e.globals.seriesGroups.forEach(function(i){t[i]||(t[i]={}),t[i].prevY=[],t[i].prevX=[],t[i].prevYF=[],t[i].prevXF=[],t[i].prevYVal=[],t[i].prevXVal=[]}):(t.prevY=[],t.prevX=[],t.prevYF=[],t.prevXF=[],t.prevYVal=[],t.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(t){var e=t.w;e.globals.hasSeriesGroups?e.globals.seriesGroups.forEach(function(i){t[i]||(t[i]={}),t[i].xArrj=[],t[i].xArrjF=[],t[i].xArrjVal=[],t[i].yArrj=[],t[i].yArrjF=[],t[i].yArrjVal=[]}):(t.xArrj=[],t.xArrjF=[],t.xArrjVal=[],t.yArrj=[],t.yArrjF=[],t.yArrjVal=[])}},{key:"getPathFillColor",value:function(t,e,i,s){var n,o,l,h,f=this.w,g=new ae(this.barCtx.ctx),p=null,x=this.barCtx.barOptions.distributed?i:e;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(v){t[e][i]>=v.from&&t[e][i]<=v.to&&(p=v.color)}),f.config.series[e].data[i]&&f.config.series[e].data[i].fillColor&&(p=f.config.series[e].data[i].fillColor),g.fillPath({seriesNumber:this.barCtx.barOptions.distributed?x:s,dataPointIndex:i,color:p,value:t[e][i],fillConfig:(n=f.config.series[e].data[i])===null||n===void 0?void 0:n.fill,fillType:(o=f.config.series[e].data[i])!==null&&o!==void 0&&(l=o.fill)!==null&&l!==void 0&&l.type?(h=f.config.series[e].data[i])===null||h===void 0?void 0:h.fill.type:Array.isArray(f.config.fill.type)?f.config.fill.type[e]:f.config.fill.type})}},{key:"getStrokeWidth",value:function(t,e,i){var s=0,n=this.w;return this.barCtx.series[t][e]===void 0||this.barCtx.series[t][e]===null?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,n.config.stroke.show&&(this.barCtx.isNullValue||(s=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),s}},{key:"shouldApplyRadius",value:function(t){var e=this.w,i=!1;return e.config.plotOptions.bar.borderRadius>0&&(e.config.chart.stacked&&e.config.plotOptions.bar.borderRadiusWhenStacked==="last"?this.barCtx.lastActiveBarSerieIndex===t&&(i=!0):i=!0),i}},{key:"barBackground",value:function(t){var e=t.j,i=t.i,s=t.x1,n=t.x2,o=t.y1,l=t.y2,h=t.elSeries,f=this.w,g=new V(this.barCtx.ctx),p=new se(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&p===i){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length);var x=this.barCtx.barOptions.colors.backgroundBarColors[e],v=g.drawRect(s!==void 0?s:0,o!==void 0?o:0,n!==void 0?n:f.globals.gridWidth,l!==void 0?l:f.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,x,this.barCtx.barOptions.colors.backgroundBarOpacity);h.add(v),v.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(t){var e,i=t.barWidth,s=t.barXPosition,n=t.y1,o=t.y2,l=t.strokeWidth,h=t.seriesGroup,f=t.realIndex,g=t.i,p=t.j,x=t.w,v=new V(this.barCtx.ctx);(l=Array.isArray(l)?l[f]:l)||(l=0);var w=i,A=s;(e=x.config.series[f].data[p])!==null&&e!==void 0&&e.columnWidthOffset&&(A=s-x.config.series[f].data[p].columnWidthOffset/2,w=i+x.config.series[f].data[p].columnWidthOffset);var C=A,E=A+w;n+=.001,o+=.001;var M=v.move(C,n),u=v.move(C,n),b=v.line(E-l,n);if(x.globals.previousPaths.length>0&&(u=this.barCtx.getPreviousPath(f,p,!1)),M=M+v.line(C,o)+v.line(E-l,o)+v.line(E-l,n)+(x.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),u=u+v.line(C,n)+b+b+b+b+b+v.line(C,n)+(x.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(f)&&(M=v.roundPathCorners(M,x.config.plotOptions.bar.borderRadius)),x.config.chart.stacked){var k=this.barCtx;x.globals.hasSeriesGroups&&h&&(k=this.barCtx[h]),k.yArrj.push(o),k.yArrjF.push(Math.abs(n-o)),k.yArrjVal.push(this.barCtx.series[g][p])}return{pathTo:M,pathFrom:u}}},{key:"getBarpaths",value:function(t){var e,i=t.barYPosition,s=t.barHeight,n=t.x1,o=t.x2,l=t.strokeWidth,h=t.seriesGroup,f=t.realIndex,g=t.i,p=t.j,x=t.w,v=new V(this.barCtx.ctx);(l=Array.isArray(l)?l[f]:l)||(l=0);var w=i,A=s;(e=x.config.series[f].data[p])!==null&&e!==void 0&&e.barHeightOffset&&(w=i-x.config.series[f].data[p].barHeightOffset/2,A=s+x.config.series[f].data[p].barHeightOffset);var C=w,E=w+A;n+=.001,o+=.001;var M=v.move(n,C),u=v.move(n,C);x.globals.previousPaths.length>0&&(u=this.barCtx.getPreviousPath(f,p,!1));var b=v.line(n,E-l);if(M=M+v.line(o,C)+v.line(o,E-l)+b+(x.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),u=u+v.line(n,C)+b+b+b+b+b+v.line(n,C)+(x.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(f)&&(M=v.roundPathCorners(M,x.config.plotOptions.bar.borderRadius)),x.config.chart.stacked){var k=this.barCtx;x.globals.hasSeriesGroups&&h&&(k=this.barCtx[h]),k.xArrj.push(o),k.xArrjF.push(Math.abs(n-o)),k.xArrjVal.push(this.barCtx.series[g][p])}return{pathTo:M,pathFrom:u}}},{key:"checkZeroSeries",value:function(t){for(var e=t.series,i=this.w,s=0;s2&&arguments[2]!==void 0)||arguments[2]?e:null;return t!=null&&(i=e+t/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?t/this.barCtx.invertedYRatio:0)),i}},{key:"getYForValue",value:function(t,e){var i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?e:null;return t!=null&&(i=e-t/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?t/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),i}},{key:"getGoalValues",value:function(t,e,i,s,n){var o=this,l=this.w,h=[],f=function(x,v){var w;h.push((I(w={},t,t==="x"?o.getXForValue(x,e,!1):o.getYForValue(x,i,!1)),I(w,"attrs",v),w))};if(l.globals.seriesGoals[s]&&l.globals.seriesGoals[s][n]&&Array.isArray(l.globals.seriesGoals[s][n])&&l.globals.seriesGoals[s][n].forEach(function(x){f(x.value,x)}),this.barCtx.barOptions.isDumbbell&&l.globals.seriesRange.length){var g=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:l.globals.colors,p={strokeHeight:t==="x"?0:l.globals.markers.size[s],strokeWidth:t==="x"?l.globals.markers.size[s]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(g[s])?g[s][0]:g[s]};f(l.globals.seriesRangeStart[s][n],p),f(l.globals.seriesRangeEnd[s][n],d(d({},p),{},{strokeColor:Array.isArray(g[s])?g[s][1]:g[s]}))}return h}},{key:"drawGoalLine",value:function(t){var e=t.barXPosition,i=t.barYPosition,s=t.goalX,n=t.goalY,o=t.barWidth,l=t.barHeight,h=new V(this.barCtx.ctx),f=h.group({className:"apexcharts-bar-goals-groups"});f.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:f.node}),f.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var g=null;return this.barCtx.isHorizontal?Array.isArray(s)&&s.forEach(function(p){var x=p.attrs.strokeHeight!==void 0?p.attrs.strokeHeight:l/2,v=i+x+l/2;g=h.drawLine(p.x,v-2*x,p.x,v,p.attrs.strokeColor?p.attrs.strokeColor:void 0,p.attrs.strokeDashArray,p.attrs.strokeWidth?p.attrs.strokeWidth:2,p.attrs.strokeLineCap),f.add(g)}):Array.isArray(n)&&n.forEach(function(p){var x=p.attrs.strokeWidth!==void 0?p.attrs.strokeWidth:o/2,v=e+x+o/2;g=h.drawLine(v-2*x,p.y,v,p.y,p.attrs.strokeColor?p.attrs.strokeColor:void 0,p.attrs.strokeDashArray,p.attrs.strokeHeight?p.attrs.strokeHeight:2,p.attrs.strokeLineCap),f.add(g)}),f}},{key:"drawBarShadow",value:function(t){var e=t.prevPaths,i=t.currPaths,s=t.color,n=this.w,o=e.x,l=e.x1,h=e.barYPosition,f=i.x,g=i.x1,p=i.barYPosition,x=h+i.barHeight,v=new V(this.barCtx.ctx),w=new z,A=v.move(l,x)+v.line(o,x)+v.line(f,p)+v.line(g,p)+v.line(l,x)+(n.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z");return v.drawPath({d:A,fill:w.shadeColor(.5,z.rgb2hex(s)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(t){var e=t.i,i=t.j,s=this.w,n=0,o=0;return s.globals.seriesPercent.forEach(function(l,h){l[i]&&n++,hthis.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var l=0,h=0;l0&&(this.visibleI=this.visibleI+1);var u=0,b=0;this.yRatio.length>1&&(this.yaxisIndex=E),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var k=this.barHelpers.initialPositions();w=k.y,u=k.barHeight,g=k.yDivision,x=k.zeroW,v=k.x,b=k.barWidth,f=k.xDivision,p=k.zeroH,this.horizontal||C.push(v+b/2);var L=s.group({class:"apexcharts-datalabels","data:realIndex":E});i.globals.delayedElements.push({el:L.node}),L.node.classList.add("apexcharts-element-hidden");var T=s.group({class:"apexcharts-bar-goals-markers"}),O=s.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:O.node}),O.node.classList.add("apexcharts-element-hidden");for(var N=0;N0){var ot=this.barHelpers.drawBarShadow({color:typeof j=="string"&&(j==null?void 0:j.indexOf("url"))===-1?j:z.hexToRgba(i.globals.colors[l]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:G});ot&&O.add(ot)}this.pathArr.push(G);var ft=this.barHelpers.drawGoalLine({barXPosition:G.barXPosition,barYPosition:G.barYPosition,goalX:G.goalX,goalY:G.goalY,barHeight:u,barWidth:b});ft&&T.add(ft),w=G.y,v=G.x,N>0&&C.push(v+b/2),A.push(w),this.renderSeries({realIndex:E,pathFill:j,j:N,i:l,pathFrom:G.pathFrom,pathTo:G.pathTo,strokeWidth:X,elSeries:M,x:v,y:w,series:t,barHeight:G.barHeight?G.barHeight:u,barWidth:G.barWidth?G.barWidth:b,elDataLabelsWrap:L,elGoalsMarkers:T,elBarShadows:O,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[E]=C,i.globals.seriesYvalues[E]=A,o.add(M)}return o}},{key:"renderSeries",value:function(t){var e=t.realIndex,i=t.pathFill,s=t.lineFill,n=t.j,o=t.i,l=t.groupIndex,h=t.pathFrom,f=t.pathTo,g=t.strokeWidth,p=t.elSeries,x=t.x,v=t.y,w=t.y1,A=t.y2,C=t.series,E=t.barHeight,M=t.barWidth,u=t.barXPosition,b=t.barYPosition,k=t.elDataLabelsWrap,L=t.elGoalsMarkers,T=t.elBarShadows,O=t.visibleSeries,N=t.type,X=this.w,G=new V(this.ctx);s||(s=this.barOptions.distributed?X.globals.stroke.colors[n]:X.globals.stroke.colors[e]),X.config.series[o].data[n]&&X.config.series[o].data[n].strokeColor&&(s=X.config.series[o].data[n].strokeColor),this.isNullValue&&(i="none");var U=n/X.config.chart.animations.animateGradually.delay*(X.config.chart.animations.speed/X.globals.dataPoints)/2.4,j=G.renderPaths({i:o,j:n,realIndex:e,pathFrom:h,pathTo:f,stroke:s,strokeWidth:g,strokeLineCap:X.config.stroke.lineCap,fill:i,animationDelay:U,initialSpeed:X.config.chart.animations.speed,dataChangeSpeed:X.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(N,"-area")});j.attr("clip-path","url(#gridRectMask".concat(X.globals.cuid,")"));var ot=X.config.forecastDataPoints;ot.count>0&&n>=X.globals.dataPoints-ot.count&&(j.node.setAttribute("stroke-dasharray",ot.dashArray),j.node.setAttribute("stroke-width",ot.strokeWidth),j.node.setAttribute("fill-opacity",ot.fillOpacity)),w!==void 0&&A!==void 0&&(j.attr("data-range-y1",w),j.attr("data-range-y2",A)),new tt(this.ctx).setSelectionFilter(j,e,n),p.add(j);var ft=new Ua(this).handleBarDataLabels({x,y:v,y1:w,y2:A,i:o,j:n,series:C,realIndex:e,groupIndex:l,barHeight:E,barWidth:M,barXPosition:u,barYPosition:b,renderedPath:j,visibleSeries:O});return ft.dataLabels!==null&&k.add(ft.dataLabels),ft.totalDataLabels&&k.add(ft.totalDataLabels),p.add(k),L&&p.add(L),T&&p.add(T),p}},{key:"drawBarPaths",value:function(t){var e,i=t.indexes,s=t.barHeight,n=t.strokeWidth,o=t.zeroW,l=t.x,h=t.y,f=t.yDivision,g=t.elSeries,p=this.w,x=i.i,v=i.j;if(p.globals.isXNumeric)e=(h=(p.globals.seriesX[x][v]-p.globals.minX)/this.invertedXRatio-s)+s*this.visibleI;else if(p.config.plotOptions.bar.hideZeroBarsWhenGrouped){var w=0,A=0;p.globals.seriesPercent.forEach(function(E,M){E[v]&&w++,M0&&(s=this.seriesLen*s/w),e=h+s*this.visibleI,e-=s*A}else e=h+s*this.visibleI;this.isFunnel&&(o-=(this.barHelpers.getXForValue(this.series[x][v],o)-o)/2),l=this.barHelpers.getXForValue(this.series[x][v],o);var C=this.barHelpers.getBarpaths({barYPosition:e,barHeight:s,x1:o,x2:l,strokeWidth:n,series:this.series,realIndex:i.realIndex,i:x,j:v,w:p});return p.globals.isXNumeric||(h+=f),this.barHelpers.barBackground({j:v,i:x,y1:e-s*this.visibleI,y2:s*this.seriesLen,elSeries:g}),{pathTo:C.pathTo,pathFrom:C.pathFrom,x1:o,x:l,y:h,goalX:this.barHelpers.getGoalValues("x",o,null,x,v),barYPosition:e,barHeight:s}}},{key:"drawColumnPaths",value:function(t){var e,i=t.indexes,s=t.x,n=t.y,o=t.xDivision,l=t.barWidth,h=t.zeroH,f=t.strokeWidth,g=t.elSeries,p=this.w,x=i.realIndex,v=i.i,w=i.j,A=i.bc;if(p.globals.isXNumeric){var C=this.getBarXForNumericXAxis({x:s,j:w,realIndex:x,barWidth:l});s=C.x,e=C.barXPosition}else if(p.config.plotOptions.bar.hideZeroBarsWhenGrouped){var E=this.barHelpers.getZeroValueEncounters({i:v,j:w}),M=E.nonZeroColumns,u=E.zeroEncounters;M>0&&(l=this.seriesLen*l/M),e=s+l*this.visibleI,e-=l*u}else e=s+l*this.visibleI;n=this.barHelpers.getYForValue(this.series[v][w],h);var b=this.barHelpers.getColumnPaths({barXPosition:e,barWidth:l,y1:h,y2:n,strokeWidth:f,series:this.series,realIndex:i.realIndex,i:v,j:w,w:p});return p.globals.isXNumeric||(s+=o),this.barHelpers.barBackground({bc:A,j:w,i:v,x1:e-f/2-l*this.visibleI,x2:l*this.seriesLen+f/2,elSeries:g}),{pathTo:b.pathTo,pathFrom:b.pathFrom,x:s,y:n,goalY:this.barHelpers.getGoalValues("y",null,h,v,w),barXPosition:e,barWidth:l}}},{key:"getBarXForNumericXAxis",value:function(t){var e=t.x,i=t.barWidth,s=t.realIndex,n=t.j,o=this.w,l=s;return o.globals.seriesX[s].length||(l=o.globals.maxValsInArrayIndex),o.globals.seriesX[l][n]&&(e=(o.globals.seriesX[l][n]-o.globals.minX)/this.xRatio-i*this.seriesLen/2),{barXPosition:e+i*this.visibleI,x:e}}},{key:"getPreviousPath",value:function(t,e){for(var i,s=this.w,n=0;n0&&parseInt(o.realIndex,10)===parseInt(t,10)&&s.globals.previousPaths[n].paths[e]!==void 0&&(i=s.globals.previousPaths[n].paths[e].d)}return i}}]),_}(),Un=function(_){R(e,Gi);var t=q(e);function e(){return y(this,e),t.apply(this,arguments)}return P(e,[{key:"draw",value:function(i,s){var n=this,o=this.w;this.graphics=new V(this.ctx),this.bar=new Gi(this.ctx,this.xyRatios);var l=new et(this.ctx,o);i=l.getLogSeries(i),this.yRatio=l.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i),o.config.chart.stackType==="100%"&&(i=o.globals.seriesPercent.slice()),this.series=i,this.barHelpers.initializeStackedPrevVars(this);for(var h=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),f=0,g=0,p=function(w,A){var C=void 0,E=void 0,M=void 0,u=void 0,b=-1;n.groupCtx=n,o.globals.seriesGroups.forEach(function(jt,Jt){jt.indexOf(o.config.series[w].name)>-1&&(b=Jt)}),b!==-1&&(n.groupCtx=n[o.globals.seriesGroups[b]]);var k=[],L=[],T=o.globals.comboCharts?s[w]:w;n.yRatio.length>1&&(n.yaxisIndex=T),n.isReversed=o.config.yaxis[n.yaxisIndex]&&o.config.yaxis[n.yaxisIndex].reversed;var O=n.graphics.group({class:"apexcharts-series",seriesName:z.escapeString(o.globals.seriesNames[T]),rel:w+1,"data:realIndex":T});n.ctx.series.addCollapsedClassToSeries(O,T);var N=n.graphics.group({class:"apexcharts-datalabels","data:realIndex":T}),X=n.graphics.group({class:"apexcharts-bar-goals-markers"}),G=0,U=0,j=n.initialPositions(f,g,C,E,M,u);g=j.y,G=j.barHeight,E=j.yDivision,u=j.zeroW,f=j.x,U=j.barWidth,C=j.xDivision,M=j.zeroH,o.globals.barHeight=G,o.globals.barWidth=U,n.barHelpers.initializeStackedXYVars(n),n.groupCtx.prevY.length===1&&n.groupCtx.prevY[0].every(function(jt){return isNaN(jt)})&&(n.groupCtx.prevY[0]=n.groupCtx.prevY[0].map(function(jt){return M}),n.groupCtx.prevYF[0]=n.groupCtx.prevYF[0].map(function(jt){return 0}));for(var ot=0;ot1?(n=v.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:x*parseInt(v.config.plotOptions.bar.columnWidth,10)/100,String(v.config.plotOptions.bar.columnWidth).indexOf("%")===-1&&(x=parseInt(v.config.plotOptions.bar.columnWidth,10)),l=v.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?v.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),i=v.globals.padHorizontal+(n-x)/2),{x:i,y:s,yDivision:o,xDivision:n,barHeight:(f=v.globals.seriesGroups)!==null&&f!==void 0&&f.length?p/v.globals.seriesGroups.length:p,barWidth:(g=v.globals.seriesGroups)!==null&&g!==void 0&&g.length?x/v.globals.seriesGroups.length:x,zeroH:l,zeroW:h}}},{key:"drawStackedBarPaths",value:function(i){for(var s,n=i.indexes,o=i.barHeight,l=i.strokeWidth,h=i.zeroW,f=i.x,g=i.y,p=i.groupIndex,x=i.seriesGroup,v=i.yDivision,w=i.elSeries,A=this.w,C=g+(p!==-1?p*o:0),E=n.i,M=n.j,u=0,b=0;b0){var L=h;this.groupCtx.prevXVal[k-1][M]<0?L=this.series[E][M]>=0?this.groupCtx.prevX[k-1][M]+u-2*(this.isReversed?u:0):this.groupCtx.prevX[k-1][M]:this.groupCtx.prevXVal[k-1][M]>=0&&(L=this.series[E][M]>=0?this.groupCtx.prevX[k-1][M]:this.groupCtx.prevX[k-1][M]-u+2*(this.isReversed?u:0)),s=L}else s=h;f=this.series[E][M]===null?s:s+this.series[E][M]/this.invertedYRatio-2*(this.isReversed?this.series[E][M]/this.invertedYRatio:0);var T=this.barHelpers.getBarpaths({barYPosition:C,barHeight:o,x1:s,x2:f,strokeWidth:l,series:this.series,realIndex:n.realIndex,seriesGroup:x,i:E,j:M,w:A});return this.barHelpers.barBackground({j:M,i:E,y1:C,y2:o,elSeries:w}),g+=v,{pathTo:T.pathTo,pathFrom:T.pathFrom,goalX:this.barHelpers.getGoalValues("x",h,null,E,M),barYPosition:C,x:f,y:g}}},{key:"drawStackedColumnPaths",value:function(i){var s=i.indexes,n=i.x,o=i.y,l=i.xDivision,h=i.barWidth,f=i.zeroH,g=i.groupIndex,p=i.seriesGroup,x=i.elSeries,v=this.w,w=s.i,A=s.j,C=s.bc;if(v.globals.isXNumeric){var E=v.globals.seriesX[w][A];E||(E=0),n=(E-v.globals.minX)/this.xRatio-h/2,v.globals.seriesGroups.length&&(n=(E-v.globals.minX)/this.xRatio-h/2*v.globals.seriesGroups.length)}for(var M,u=n+(g!==-1?g*h:0),b=0,k=0;k0&&!v.globals.isXNumeric||L>0&&v.globals.isXNumeric&&v.globals.seriesX[w-1][A]===v.globals.seriesX[w][A]){var T,O,N,X=Math.min(this.yRatio.length+1,w+1);if(this.groupCtx.prevY[L-1]!==void 0&&this.groupCtx.prevY[L-1].length)for(var G=1;G=0?N-b+2*(this.isReversed?b:0):N;break}if(((ft=this.groupCtx.prevYVal[L-j])===null||ft===void 0?void 0:ft[A])>=0){O=this.series[w][A]>=0?N:N+b-2*(this.isReversed?b:0);break}}O===void 0&&(O=v.globals.gridHeight),M=(T=this.groupCtx.prevYF[0])!==null&&T!==void 0&&T.every(function(Pt){return Pt===0})&&this.groupCtx.prevYF.slice(1,L).every(function(Pt){return Pt.every(function(zt){return isNaN(zt)})})?f:O}else M=f;o=this.series[w][A]?M-this.series[w][A]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[w][A]/this.yRatio[this.yaxisIndex]:0):M;var vt=this.barHelpers.getColumnPaths({barXPosition:u,barWidth:h,y1:M,y2:o,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:p,realIndex:s.realIndex,i:w,j:A,w:v});return this.barHelpers.barBackground({bc:C,j:A,i:w,x1:u,x2:h,elSeries:x}),n+=l,{pathTo:vt.pathTo,pathFrom:vt.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,f,w,A),barXPosition:u,x:v.globals.isXNumeric?n-l:n,y:o}}}]),e}(),er=function(_){R(e,Gi);var t=q(e);function e(){return y(this,e),t.apply(this,arguments)}return P(e,[{key:"draw",value:function(i,s,n){var o=this,l=this.w,h=new V(this.ctx),f=l.globals.comboCharts?s:l.config.chart.type,g=new ae(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=l.config.plotOptions.bar.horizontal;var p=new et(this.ctx,l);i=p.getLogSeries(i),this.series=i,this.yRatio=p.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i);for(var x=h.group({class:"apexcharts-".concat(f,"-series apexcharts-plot-series")}),v=function(A){o.isBoxPlot=l.config.chart.type==="boxPlot"||l.config.series[A].type==="boxPlot";var C,E,M,u,b=void 0,k=void 0,L=[],T=[],O=l.globals.comboCharts?n[A]:A,N=h.group({class:"apexcharts-series",seriesName:z.escapeString(l.globals.seriesNames[O]),rel:A+1,"data:realIndex":O});o.ctx.series.addCollapsedClassToSeries(N,O),i[A].length>0&&(o.visibleI=o.visibleI+1);var X,G;o.yRatio.length>1&&(o.yaxisIndex=O);var U=o.barHelpers.initialPositions();k=U.y,X=U.barHeight,E=U.yDivision,u=U.zeroW,b=U.x,G=U.barWidth,C=U.xDivision,M=U.zeroH,T.push(b+G/2);for(var j=h.group({class:"apexcharts-datalabels","data:realIndex":O}),ot=function(vt){var Pt=o.barHelpers.getStrokeWidth(A,vt,O),zt=null,Et={indexes:{i:A,j:vt,realIndex:O},x:b,y:k,strokeWidth:Pt,elSeries:N};zt=o.isHorizontal?o.drawHorizontalBoxPaths(d(d({},Et),{},{yDivision:E,barHeight:X,zeroW:u})):o.drawVerticalBoxPaths(d(d({},Et),{},{xDivision:C,barWidth:G,zeroH:M})),k=zt.y,b=zt.x,vt>0&&T.push(b+G/2),L.push(k),zt.pathTo.forEach(function(jt,Jt){var Ye=!o.isBoxPlot&&o.candlestickOptions.wick.useFillColor?zt.color[Jt]:l.globals.stroke.colors[A],Ae=g.fillPath({seriesNumber:O,dataPointIndex:vt,color:zt.color[Jt],value:i[A][vt]});o.renderSeries({realIndex:O,pathFill:Ae,lineFill:Ye,j:vt,i:A,pathFrom:zt.pathFrom,pathTo:jt,strokeWidth:Pt,elSeries:N,x:b,y:k,series:i,barHeight:X,barWidth:G,elDataLabelsWrap:j,visibleSeries:o.visibleI,type:l.config.chart.type})})},ft=0;ftb.c&&(w=!1);var T=Math.min(b.o,b.c),O=Math.max(b.o,b.c),N=b.m;g.globals.isXNumeric&&(n=(g.globals.seriesX[u][v]-g.globals.minX)/this.xRatio-l/2);var X=n+l*this.visibleI;this.series[x][v]===void 0||this.series[x][v]===null?(T=h,O=h):(T=h-T/M,O=h-O/M,k=h-b.h/M,L=h-b.l/M,N=h-b.m/M);var G=p.move(X,h),U=p.move(X+l/2,T);return g.globals.previousPaths.length>0&&(U=this.getPreviousPath(u,v,!0)),G=this.isBoxPlot?[p.move(X,T)+p.line(X+l/2,T)+p.line(X+l/2,k)+p.line(X+l/4,k)+p.line(X+l-l/4,k)+p.line(X+l/2,k)+p.line(X+l/2,T)+p.line(X+l,T)+p.line(X+l,N)+p.line(X,N)+p.line(X,T+f/2),p.move(X,N)+p.line(X+l,N)+p.line(X+l,O)+p.line(X+l/2,O)+p.line(X+l/2,L)+p.line(X+l-l/4,L)+p.line(X+l/4,L)+p.line(X+l/2,L)+p.line(X+l/2,O)+p.line(X,O)+p.line(X,N)+"z"]:[p.move(X,O)+p.line(X+l/2,O)+p.line(X+l/2,k)+p.line(X+l/2,O)+p.line(X+l,O)+p.line(X+l,T)+p.line(X+l/2,T)+p.line(X+l/2,L)+p.line(X+l/2,T)+p.line(X,T)+p.line(X,O-f/2)],U+=p.move(X,T),g.globals.isXNumeric||(n+=o),{pathTo:G,pathFrom:U,x:n,y:O,barXPosition:X,color:this.isBoxPlot?E:w?[A]:[C]}}},{key:"drawHorizontalBoxPaths",value:function(i){var s=i.indexes;i.x;var n=i.y,o=i.yDivision,l=i.barHeight,h=i.zeroW,f=i.strokeWidth,g=this.w,p=new V(this.ctx),x=s.i,v=s.j,w=this.boxOptions.colors.lower;this.isBoxPlot&&(w=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var A=this.invertedYRatio,C=s.realIndex,E=this.getOHLCValue(C,v),M=h,u=h,b=Math.min(E.o,E.c),k=Math.max(E.o,E.c),L=E.m;g.globals.isXNumeric&&(n=(g.globals.seriesX[C][v]-g.globals.minX)/this.invertedXRatio-l/2);var T=n+l*this.visibleI;this.series[x][v]===void 0||this.series[x][v]===null?(b=h,k=h):(b=h+b/A,k=h+k/A,M=h+E.h/A,u=h+E.l/A,L=h+E.m/A);var O=p.move(h,T),N=p.move(b,T+l/2);return g.globals.previousPaths.length>0&&(N=this.getPreviousPath(C,v,!0)),O=[p.move(b,T)+p.line(b,T+l/2)+p.line(M,T+l/2)+p.line(M,T+l/2-l/4)+p.line(M,T+l/2+l/4)+p.line(M,T+l/2)+p.line(b,T+l/2)+p.line(b,T+l)+p.line(L,T+l)+p.line(L,T)+p.line(b+f/2,T),p.move(L,T)+p.line(L,T+l)+p.line(k,T+l)+p.line(k,T+l/2)+p.line(u,T+l/2)+p.line(u,T+l-l/4)+p.line(u,T+l/4)+p.line(u,T+l/2)+p.line(k,T+l/2)+p.line(k,T)+p.line(L,T)+"z"],N+=p.move(b,T),g.globals.isXNumeric||(n+=o),{pathTo:O,pathFrom:N,x:k,y:n,barYPosition:T,color:w}}},{key:"getOHLCValue",value:function(i,s){var n=this.w;return{o:this.isBoxPlot?n.globals.seriesCandleH[i][s]:n.globals.seriesCandleO[i][s],h:this.isBoxPlot?n.globals.seriesCandleO[i][s]:n.globals.seriesCandleH[i][s],m:n.globals.seriesCandleM[i][s],l:this.isBoxPlot?n.globals.seriesCandleC[i][s]:n.globals.seriesCandleL[i][s],c:this.isBoxPlot?n.globals.seriesCandleL[i][s]:n.globals.seriesCandleC[i][s]}}}]),e}(),qn=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"checkColorRange",value:function(){var t=this.w,e=!1,i=t.config.plotOptions[t.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map(function(s,n){s.from<=0&&(e=!0)}),e}},{key:"getShadeColor",value:function(t,e,i,s){var n=this.w,o=1,l=n.config.plotOptions[t].shadeIntensity,h=this.determineColor(t,e,i);n.globals.hasNegs||s?o=n.config.plotOptions[t].reverseNegativeShade?h.percent<0?h.percent/100*(1.25*l):(1-h.percent/100)*(1.25*l):h.percent<=0?1-(1+h.percent/100)*l:(1-h.percent/100)*l:(o=1-h.percent/100,t==="treemap"&&(o=(1-h.percent/100)*(1.25*l)));var f=h.color,g=new z;return n.config.plotOptions[t].enableShades&&(f=this.w.config.theme.mode==="dark"?z.hexToRgba(g.shadeColor(-1*o,h.color),n.config.fill.opacity):z.hexToRgba(g.shadeColor(o,h.color),n.config.fill.opacity)),{color:f,colorProps:h}}},{key:"determineColor",value:function(t,e,i){var s=this.w,n=s.globals.series[e][i],o=s.config.plotOptions[t],l=o.colorScale.inverse?i:e;o.distributed&&s.config.chart.type==="treemap"&&(l=i);var h=s.globals.colors[l],f=null,g=Math.min.apply(Math,ht(s.globals.series[e])),p=Math.max.apply(Math,ht(s.globals.series[e]));o.distributed||t!=="heatmap"||(g=s.globals.minY,p=s.globals.maxY),o.colorScale.min!==void 0&&(g=o.colorScale.mins.globals.maxY?o.colorScale.max:s.globals.maxY);var x=Math.abs(p)+Math.abs(g),v=100*n/(x===0?x-1e-6:x);return o.colorScale.ranges.length>0&&o.colorScale.ranges.map(function(w,A){if(n>=w.from&&n<=w.to){h=w.color,f=w.foreColor?w.foreColor:null,g=w.from,p=w.to;var C=Math.abs(p)+Math.abs(g);v=100*n/(C===0?C-1e-6:C)}}),{color:h,foreColor:f,percent:v}}},{key:"calculateDataLabels",value:function(t){var e=t.text,i=t.x,s=t.y,n=t.i,o=t.j,l=t.colorProps,h=t.fontSize,f=this.w.config.dataLabels,g=new V(this.ctx),p=new di(this.ctx),x=null;if(f.enabled){x=g.group({class:"apexcharts-data-labels"});var v=f.offsetX,w=f.offsetY,A=i+v,C=s+parseFloat(f.style.fontSize)/3+w;p.plotDataLabelsText({x:A,y:C,text:e,i:n,j:o,color:l.foreColor,parent:x,fontSize:h,dataLabelsConfig:f})}return x}},{key:"addListeners",value:function(t){var e=new V(this.ctx);t.node.addEventListener("mouseenter",e.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",e.pathMouseLeave.bind(this,t)),t.node.addEventListener("mousedown",e.pathMouseDown.bind(this,t))}}]),_}(),Yh=function(){function _(t,e){y(this,_),this.ctx=t,this.w=t.w,this.xRatio=e.xRatio,this.yRatio=e.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new qn(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return P(_,[{key:"draw",value:function(t){var e=this.w,i=new V(this.ctx),s=i.group({class:"apexcharts-heatmap"});s.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")"));var n=e.globals.gridWidth/e.globals.dataPoints,o=e.globals.gridHeight/e.globals.series.length,l=0,h=!1;this.negRange=this.helpers.checkColorRange();var f=t.slice();e.config.yaxis[0].reversed&&(h=!0,f.reverse());for(var g=h?0:f.length-1;h?g=0;h?g++:g--){var p=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:z.escapeString(e.globals.seriesNames[g]),rel:g+1,"data:realIndex":g});if(this.ctx.series.addCollapsedClassToSeries(p,g),e.config.chart.dropShadow.enabled){var x=e.config.chart.dropShadow;new tt(this.ctx).dropShadow(p,x,g)}for(var v=0,w=e.config.plotOptions.heatmap.shadeIntensity,A=0;A-1&&this.pieClicked(x),i.config.dataLabels.enabled){var k=u.x,L=u.y,T=100*w/this.fullAngle+"%";if(w!==0&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabelthis.fullAngle?e.endAngle=e.endAngle-(s+l):s+l=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(g=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(g)>this.fullAngle&&(g-=this.fullAngle);var p=Math.PI*(g-90)/180,x=i.centerX+o*Math.cos(f),v=i.centerY+o*Math.sin(f),w=i.centerX+o*Math.cos(p),A=i.centerY+o*Math.sin(p),C=z.polarToCartesian(i.centerX,i.centerY,i.donutSize,g),E=z.polarToCartesian(i.centerX,i.centerY,i.donutSize,h),M=n>180?1:0,u=["M",x,v,"A",o,o,0,M,1,w,A];return e=i.chartType==="donut"?[].concat(u,["L",C.x,C.y,"A",i.donutSize,i.donutSize,0,M,0,E.x,E.y,"L",x,v,"z"]).join(" "):i.chartType==="pie"||i.chartType==="polarArea"?[].concat(u,["L",i.centerX,i.centerY,"L",x,v]).join(" "):[].concat(u).join(" "),l.roundPathCorners(e,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(t){var e=this.w,i=new Qe(this.ctx),s=new V(this.ctx),n=new Zn(this.ctx),o=s.group(),l=s.group(),h=i.niceScale(0,Math.ceil(this.maxY),e.config.yaxis[0].tickAmount,0,!0),f=h.result.reverse(),g=h.result.length;this.maxY=h.niceMax;for(var p=e.globals.radialSize,x=p/(g-1),v=0;v1&&t.total.show&&(n=t.total.color);var l=o.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),h=o.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,t.value.formatter)(i,o),s||typeof t.total.formatter!="function"||(i=t.total.formatter(o));var f=e===t.total.label;e=t.name.formatter(e,f,o),l!==null&&(l.textContent=e),h!==null&&(h.textContent=i),l!==null&&(l.style.fill=n)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,s=t.getAttribute("data:value"),n=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(e,n,s,t);var o=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");o!==null&&(o.style.opacity=1)}},{key:"drawSpokes",value:function(t){var e=this,i=this.w,s=new V(this.ctx),n=i.config.plotOptions.polarArea.spokes;if(n.strokeWidth!==0){for(var o=[],l=360/i.globals.series.length,h=0;h1)l&&!e.total.showAlways?f({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(e,e.total.label,e.total.formatter(n));else if(f({makeSliceOut:!1,printLabel:!0}),!l)if(n.globals.selectedDataPoints.length&&n.globals.series.length>1)if(n.globals.selectedDataPoints[0].length>0){var g=n.globals.selectedDataPoints[0],p=n.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(g));this.printDataLabelsInner(p,e)}else o&&n.globals.selectedDataPoints.length&&n.globals.selectedDataPoints[0].length===0&&(o.style.opacity=0);else o&&n.globals.series.length>1&&(o.style.opacity=0)}}]),_}(),Hh=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var e=this.w;this.graphics=new V(this.ctx),this.lineColorArr=e.globals.stroke.colors!==void 0?e.globals.stroke.colors:e.globals.colors,this.defaultSize=e.globals.svgHeight0&&(L=e.getPreviousPath(E));for(var T=0;T=10?t.x>0?(i="start",s+=10):t.x<0&&(i="end",s-=10):i="middle",Math.abs(t.y)>=e-10&&(t.y<0?n-=10:t.y>0&&(n+=10)),{textAnchor:i,newX:s,newY:n}}},{key:"getPreviousPath",value:function(t){for(var e=this.w,i=null,s=0;s0&&parseInt(n.realIndex,10)===parseInt(t,10)&&e.globals.previousPaths[s].paths[0]!==void 0&&(i=e.globals.previousPaths[s].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;t=t||[],e=e||[];for(var s=[],n=0;n=360&&(A=360-Math.abs(this.startAngle)-.1);var C=n.drawPath({d:"",stroke:v,strokeWidth:f*parseInt(x.strokeWidth,10)/100,fill:"none",strokeOpacity:x.opacity,classes:"apexcharts-radialbar-area"});if(x.dropShadow.enabled){var E=x.dropShadow;l.dropShadow(C,E)}p.add(C),C.attr("id","apexcharts-radialbarTrack-"+g),this.animatePaths(C,{centerX:i.centerX,centerY:i.centerY,endAngle:A,startAngle:w,size:i.size,i:g,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:s.globals.easing})}return o}},{key:"drawArcs",value:function(i){var s=this.w,n=new V(this.ctx),o=new ae(this.ctx),l=new tt(this.ctx),h=n.group(),f=this.getStrokeWidth(i);i.size=i.size-f/2;var g=s.config.plotOptions.radialBar.hollow.background,p=i.size-f*i.series.length-this.margin*i.series.length-f*parseInt(s.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,x=p-s.config.plotOptions.radialBar.hollow.margin;s.config.plotOptions.radialBar.hollow.image!==void 0&&(g=this.drawHollowImage(i,h,p,g));var v=this.drawHollow({size:x,centerX:i.centerX,centerY:i.centerY,fill:g||"transparent"});if(s.config.plotOptions.radialBar.hollow.dropShadow.enabled){var w=s.config.plotOptions.radialBar.hollow.dropShadow;l.dropShadow(v,w)}var A=1;!this.radialDataLabels.total.show&&s.globals.series.length>1&&(A=0);var C=null;this.radialDataLabels.show&&(C=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:p,centerX:i.centerX,centerY:i.centerY,opacity:A})),s.config.plotOptions.radialBar.hollow.position==="back"&&(h.add(v),C&&h.add(C));var E=!1;s.config.plotOptions.radialBar.inverseOrder&&(E=!0);for(var M=E?i.series.length-1:0;E?M>=0:M100?100:i.series[M])/100,O=Math.round(this.totalAngle*T)+this.startAngle,N=void 0;s.globals.dataChanged&&(L=this.startAngle,N=Math.round(this.totalAngle*z.negToZero(s.globals.previousPaths[M])/100)+L),Math.abs(O)+Math.abs(k)>=360&&(O-=.01),Math.abs(N)+Math.abs(L)>=360&&(N-=.01);var X=O-k,G=Array.isArray(s.config.stroke.dashArray)?s.config.stroke.dashArray[M]:s.config.stroke.dashArray,U=n.drawPath({d:"",stroke:b,strokeWidth:f,fill:"none",fillOpacity:s.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+M,strokeDashArray:G});if(V.setAttrs(U.node,{"data:angle":X,"data:value":i.series[M]}),s.config.chart.dropShadow.enabled){var j=s.config.chart.dropShadow;l.dropShadow(U,j,M)}if(l.setSelectionFilter(U,0,M),this.addListeners(U,this.radialDataLabels),u.add(U),U.attr({index:0,j:M}),this.barLabels.enabled){var ot=z.polarToCartesian(i.centerX,i.centerY,i.size,k),ft=this.barLabels.formatter(s.globals.seriesNames[M],{seriesIndex:M,w:s}),vt=["apexcharts-radialbar-label"];this.barLabels.onClick||vt.push("apexcharts-no-click");var Pt=this.barLabels.useSeriesColors?s.globals.colors[M]:s.config.chart.foreColor;Pt||(Pt=s.config.chart.foreColor);var zt=ot.x-this.barLabels.margin,Et=ot.y,jt=n.drawText({x:zt,y:Et,text:ft,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:Pt,cssClass:vt.join(" ")});jt.on("click",this.onBarLabelClick),jt.attr({rel:M+1}),k!==0&&jt.attr({"transform-origin":"".concat(zt," ").concat(Et),transform:"rotate(".concat(k," 0 0)")}),u.add(jt)}var Jt=0;!this.initialAnim||s.globals.resized||s.globals.dataChanged||(Jt=s.config.chart.animations.speed),s.globals.dataChanged&&(Jt=s.config.chart.animations.dynamicAnimation.speed),this.animDur=Jt/(1.2*i.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(U,{centerX:i.centerX,centerY:i.centerY,endAngle:O,startAngle:k,prevEndAngle:N,prevStartAngle:L,size:i.size,i:M,totalItems:2,animBeginArr:this.animBeginArr,dur:Jt,shouldSetPrevPaths:!0,easing:s.globals.easing})}return{g:h,elHollow:v,dataLabels:C}}},{key:"drawHollow",value:function(i){var s=new V(this.ctx).drawCircle(2*i.size);return s.attr({class:"apexcharts-radialbar-hollow",cx:i.centerX,cy:i.centerY,r:i.size,fill:i.fill}),s}},{key:"drawHollowImage",value:function(i,s,n,o){var l=this.w,h=new ae(this.ctx),f=z.randomId(),g=l.config.plotOptions.radialBar.hollow.image;if(l.config.plotOptions.radialBar.hollow.imageClipped)h.clippedImgArea({width:n,height:n,image:g,patternID:"pattern".concat(l.globals.cuid).concat(f)}),o="url(#pattern".concat(l.globals.cuid).concat(f,")");else{var p=l.config.plotOptions.radialBar.hollow.imageWidth,x=l.config.plotOptions.radialBar.hollow.imageHeight;if(p===void 0&&x===void 0){var v=l.globals.dom.Paper.image(g).loaded(function(A){this.move(i.centerX-A.width/2+l.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-A.height/2+l.config.plotOptions.radialBar.hollow.imageOffsetY)});s.add(v)}else{var w=l.globals.dom.Paper.image(g).loaded(function(A){this.move(i.centerX-p/2+l.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-x/2+l.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(p,x)});s.add(w)}}return o}},{key:"getStrokeWidth",value:function(i){var s=this.w;return i.size*(100-parseInt(s.config.plotOptions.radialBar.hollow.size,10))/100/(i.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(i){var s=parseInt(i.target.getAttribute("rel"),10)-1,n=this.barLabels.onClick,o=this.w;n&&n(o.globals.seriesNames[s],{w:o,seriesIndex:s})}}]),e}(),Bh=function(_){R(e,Gi);var t=q(e);function e(){return y(this,e),t.apply(this,arguments)}return P(e,[{key:"draw",value:function(i,s){var n=this.w,o=new V(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=i,this.seriesRangeStart=n.globals.seriesRangeStart,this.seriesRangeEnd=n.globals.seriesRangeEnd,this.barHelpers.initVariables(i);for(var l=o.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),h=0;h0&&(this.visibleI=this.visibleI+1);var E=0,M=0;this.yRatio.length>1&&(this.yaxisIndex=A);var u=this.barHelpers.initialPositions();w=u.y,x=u.zeroW,v=u.x,M=u.barWidth,E=u.barHeight,f=u.xDivision,g=u.yDivision,p=u.zeroH;for(var b=o.group({class:"apexcharts-datalabels","data:realIndex":A}),k=o.group({class:"apexcharts-rangebar-goals-markers"}),L=0;L0});return this.isHorizontal?(o=A.config.plotOptions.bar.rangeBarGroupRows?h+x*b:h+g*this.visibleI+x*b,k>-1&&!A.config.plotOptions.bar.rangeBarOverlap&&(C=A.globals.seriesRange[s][k].overlaps).indexOf(E)>-1&&(o=(g=w.barHeight/C.length)*this.visibleI+x*(100-parseInt(this.barOptions.barHeight,10))/100/2+g*(this.visibleI+C.indexOf(E))+x*b)):(b>-1&&(l=A.config.plotOptions.bar.rangeBarGroupRows?f+v*b:f+p*this.visibleI+v*b),k>-1&&!A.config.plotOptions.bar.rangeBarOverlap&&(C=A.globals.seriesRange[s][k].overlaps).indexOf(E)>-1&&(l=(p=w.barWidth/C.length)*this.visibleI+v*(100-parseInt(this.barOptions.barWidth,10))/100/2+p*(this.visibleI+C.indexOf(E))+v*b)),{barYPosition:o,barXPosition:l,barHeight:g,barWidth:p}}},{key:"drawRangeColumnPaths",value:function(i){var s=i.indexes,n=i.x,o=i.xDivision,l=i.barWidth,h=i.barXPosition,f=i.zeroH,g=this.w,p=s.i,x=s.j,v=this.yRatio[this.yaxisIndex],w=s.realIndex,A=this.getRangeValue(w,x),C=Math.min(A.start,A.end),E=Math.max(A.start,A.end);this.series[p][x]===void 0||this.series[p][x]===null?C=f:(C=f-C/v,E=f-E/v);var M=Math.abs(E-C),u=this.barHelpers.getColumnPaths({barXPosition:h,barWidth:l,y1:C,y2:E,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:s.realIndex,i:w,j:x,w:g});if(g.globals.isXNumeric){var b=this.getBarXForNumericXAxis({x:n,j:x,realIndex:w,barWidth:l});n=b.x,h=b.barXPosition}else n+=o;return{pathTo:u.pathTo,pathFrom:u.pathFrom,barHeight:M,x:n,y:E,goalY:this.barHelpers.getGoalValues("y",null,f,p,x),barXPosition:h}}},{key:"drawRangeBarPaths",value:function(i){var s=i.indexes,n=i.y,o=i.y1,l=i.y2,h=i.yDivision,f=i.barHeight,g=i.barYPosition,p=i.zeroW,x=this.w,v=p+o/this.invertedYRatio,w=p+l/this.invertedYRatio,A=Math.abs(w-v),C=this.barHelpers.getBarpaths({barYPosition:g,barHeight:f,x1:v,x2:w,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:s.realIndex,realIndex:s.realIndex,j:s.j,w:x});return x.globals.isXNumeric||(n+=h),{pathTo:C.pathTo,pathFrom:C.pathFrom,barWidth:A,x:w,goalX:this.barHelpers.getGoalValues("x",p,null,s.realIndex,s.j),y:n}}},{key:"getRangeValue",value:function(i,s){var n=this.w;return{start:n.globals.seriesRangeStart[i][s],end:n.globals.seriesRangeEnd[i][s]}}}]),e}(),Wh=function(){function _(t){y(this,_),this.w=t.w,this.lineCtx=t}return P(_,[{key:"sameValueSeriesFix",value:function(t,e){var i=this.w;if((i.config.fill.type==="gradient"||i.config.fill.type[t]==="gradient")&&new et(this.lineCtx.ctx,i).seriesHaveSameValues(t)){var s=e[t].slice();s[s.length-1]=s[s.length-1]+1e-6,e[t]=s}return e}},{key:"calculatePoints",value:function(t){var e=t.series,i=t.realIndex,s=t.x,n=t.y,o=t.i,l=t.j,h=t.prevY,f=this.w,g=[],p=[];if(l===0){var x=this.lineCtx.categoryAxisCorrection+f.config.markers.offsetX;f.globals.isXNumeric&&(x=(f.globals.seriesX[i][0]-f.globals.minX)/this.lineCtx.xRatio+f.config.markers.offsetX),g.push(x),p.push(z.isNumber(e[o][0])?h+f.config.markers.offsetY:null),g.push(s+f.config.markers.offsetX),p.push(z.isNumber(e[o][l+1])?n+f.config.markers.offsetY:null)}else g.push(s+f.config.markers.offsetX),p.push(z.isNumber(e[o][l+1])?n+f.config.markers.offsetY:null);return{x:g,y:p}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,s=t.realIndex,n=this.w,o=0;o0&&parseInt(l.realIndex,10)===parseInt(s,10)&&(l.type==="line"?(this.lineCtx.appendPathFrom=!1,e=n.globals.previousPaths[o].paths[0].d):l.type==="area"&&(this.lineCtx.appendPathFrom=!1,i=n.globals.previousPaths[o].paths[0].d,n.config.stroke.show&&n.globals.previousPaths[o].paths[1]&&(e=n.globals.previousPaths[o].paths[1].d)))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e,i,s=t.i,n=t.series,o=t.prevY,l=t.lineYPosition,h=this.w,f=h.config.chart.stacked&&!h.globals.comboCharts||h.config.chart.stacked&&h.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((e=this.w.config.series[s])===null||e===void 0?void 0:e.type)==="bar");if(((i=n[s])===null||i===void 0?void 0:i[0])!==void 0)o=(l=f&&s>0?this.lineCtx.prevSeriesY[s-1][0]:this.lineCtx.zeroY)-n[s][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?n[s][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(f&&s>0&&n[s][0]===void 0){for(var g=s-1;g>=0;g--)if(n[g][0]!==null&&n[g][0]!==void 0){o=l=this.lineCtx.prevSeriesY[g][0];break}}return{prevY:o,lineYPosition:l}}}]),_}(),Vh=function(_){for(var t,e,i,s,n=function(g){for(var p=[],x=g[0],v=g[1],w=p[0]=ar(x,v),A=1,C=g.length-1;A9&&(s=3*i/Math.sqrt(s),n[h]=s*t,n[h+1]=s*e);for(var f=0;f<=o;f++)s=(_[Math.min(o,f+1)][0]-_[Math.max(0,f-1)][0])/(6*(1+n[f]*n[f])),l.push([s||0,n[f]*s||0]);return l},ir=function(_){for(var t="",e=0;e<_.length;e++){var i=_[e],s=i.length;s>4?(t+="C".concat(i[0],", ").concat(i[1]),t+=", ".concat(i[2],", ").concat(i[3]),t+=", ".concat(i[4],", ").concat(i[5])):s>2&&(t+="S".concat(i[0],", ").concat(i[1]),t+=", ".concat(i[2],", ").concat(i[3]))}return t},Jn=function(_){var t=Vh(_),e=_[1],i=_[0],s=[],n=t[1],o=t[0];s.push(i,[i[0]+o[0],i[1]+o[1],e[0]-n[0],e[1]-n[1],e[0],e[1]]);for(var l=2,h=t.length;l0&&(E=(o.globals.seriesX[v][0]-o.globals.minX)/this.xRatio),C.push(E);var M,u=E,b=void 0,k=u,L=this.zeroY,T=this.zeroY;L=this.lineHelpers.determineFirstPrevY({i:x,series:t,prevY:L,lineYPosition:0}).prevY,o.config.stroke.curve==="monotonCubic"&&t[x][0]===null?w.push(null):w.push(L),M=L,h==="rangeArea"&&(b=T=this.lineHelpers.determineFirstPrevY({i:x,series:s,prevY:T,lineYPosition:0}).prevY,A.push(T));var O={type:h,series:t,realIndex:v,i:x,x:E,y:1,pX:u,pY:M,pathsFrom:this._calculatePathsFrom({type:h,series:t,i:x,realIndex:v,prevX:k,prevY:L,prevY2:T}),linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:C,yArrj:w,y2Arrj:A,seriesRangeEnd:s},N=this._iterateOverDataPoints(d(d({},O),{},{iterations:h==="rangeArea"?t[x].length-1:void 0,isRangeStart:!0}));if(h==="rangeArea"){var X=this._calculatePathsFrom({series:s,i:x,realIndex:v,prevX:k,prevY:T}),G=this._iterateOverDataPoints(d(d({},O),{},{series:s,pY:b,pathsFrom:X,iterations:s[x].length-1,isRangeStart:!1}));N.linePaths[0]=G.linePath+N.linePath,N.pathFromLine=G.pathFromLine+N.pathFromLine}this._handlePaths({type:h,realIndex:v,i:x,paths:N}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),p.push(this.elSeries)}if(((n=o.config.series[0])===null||n===void 0?void 0:n.zIndex)!==void 0&&p.sort(function(ot,ft){return Number(ot.node.getAttribute("zIndex"))-Number(ft.node.getAttribute("zIndex"))}),o.config.chart.stacked)for(var U=p.length;U>0;U--)f.add(p[U-1]);else for(var j=0;j1&&(this.yaxisIndex=i),this.isReversed=s.config.yaxis[this.yaxisIndex]&&s.config.yaxis[this.yaxisIndex].reversed,this.zeroY=s.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?s.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>s.globals.gridHeight||s.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=s.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=n.group({class:"apexcharts-series",zIndex:s.config.series[i].zIndex!==void 0?s.config.series[i].zIndex:i,seriesName:z.escapeString(s.globals.seriesNames[i])}),this.elPointsMain=n.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=n.group({class:"apexcharts-datalabels","data:realIndex":i});var o=t[e].length===s.globals.dataPoints;this.elSeries.attr({"data:longestSeries":o,rel:e+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(t){var e,i,s,n,o=t.type,l=t.series,h=t.i,f=t.realIndex,g=t.prevX,p=t.prevY,x=t.prevY2,v=this.w,w=new V(this.ctx);if(l[h][0]===null){for(var A=0;A0){var C=this.lineHelpers.checkPreviousPaths({pathFromLine:s,pathFromArea:n,realIndex:f});s=C.pathFromLine,n=C.pathFromArea}return{prevX:g,prevY:p,linePath:e,areaPath:i,pathFromLine:s,pathFromArea:n}}},{key:"_handlePaths",value:function(t){var e=t.type,i=t.realIndex,s=t.i,n=t.paths,o=this.w,l=new V(this.ctx),h=new ae(this.ctx);this.prevSeriesY.push(n.yArrj),o.globals.seriesXvalues[i]=n.xArrj,o.globals.seriesYvalues[i]=n.yArrj;var f=o.config.forecastDataPoints;if(f.count>0&&e!=="rangeArea"){var g=o.globals.seriesXvalues[i][o.globals.seriesXvalues[i].length-f.count-1],p=l.drawRect(g,0,o.globals.gridWidth,o.globals.gridHeight,0);o.globals.dom.elForecastMask.appendChild(p.node);var x=l.drawRect(0,0,g,o.globals.gridHeight,0);o.globals.dom.elNonForecastMask.appendChild(x.node)}this.pointsChart||o.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var v={i:s,realIndex:i,animationDelay:s,initialSpeed:o.config.chart.animations.speed,dataChangeSpeed:o.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(e)};if(e==="area")for(var w=h.fillPath({seriesNumber:i}),A=0;A0&&e!=="rangeArea"){var T=l.renderPaths(k);T.node.setAttribute("stroke-dasharray",f.dashArray),f.strokeWidth&&T.node.setAttribute("stroke-width",f.strokeWidth),this.elSeries.add(T),T.attr("clip-path","url(#forecastMask".concat(o.globals.cuid,")")),L.attr("clip-path","url(#nonForecastMask".concat(o.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(t){var e,i=this,s=t.type,n=t.series,o=t.iterations,l=t.realIndex,h=t.i,f=t.x,g=t.y,p=t.pX,x=t.pY,v=t.pathsFrom,w=t.linePaths,A=t.areaPaths,C=t.seriesIndex,E=t.lineYPosition,M=t.xArrj,u=t.yArrj,b=t.y2Arrj,k=t.isRangeStart,L=t.seriesRangeEnd,T=this.w,O=new V(this.ctx),N=this.yRatio,X=v.prevY,G=v.linePath,U=v.areaPath,j=v.pathFromLine,ot=v.pathFromArea,ft=z.isNumber(T.globals.minYArr[l])?T.globals.minYArr[l]:T.globals.minY;o||(o=T.globals.dataPoints>1?T.globals.dataPoints-1:T.globals.dataPoints);for(var vt=function(ti,ei){return ei-ti/N[i.yaxisIndex]+2*(i.isReversed?ti/N[i.yaxisIndex]:0)},Pt=g,zt=T.config.chart.stacked&&!T.globals.comboCharts||T.config.chart.stacked&&T.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((e=this.w.config.series[l])===null||e===void 0?void 0:e.type)==="bar"),Et=0;Et0&&T.globals.collapsedSeries.length-1){ei--;break}return ei>=0?ei:0}(h-1)][Et+1]:E=this.zeroY:E=this.zeroY,jt?g=vt(ft,E):(g=vt(n[h][Et+1],E),s==="rangeArea"&&(Pt=vt(L[h][Et+1],E))),M.push(f),jt&&T.config.stroke.curve==="smooth"?u.push(null):u.push(g),b.push(Pt);var Ye=this.lineHelpers.calculatePoints({series:n,x:f,y:g,realIndex:l,i:h,j:Et,prevY:X}),Ae=this._createPaths({type:s,series:n,i:h,realIndex:l,j:Et,x:f,y:g,y2:Pt,xArrj:M,yArrj:u,y2Arrj:b,pX:p,pY:x,linePath:G,areaPath:U,linePaths:w,areaPaths:A,seriesIndex:C,isRangeStart:k});A=Ae.areaPaths,w=Ae.linePaths,p=Ae.pX,x=Ae.pY,U=Ae.areaPath,G=Ae.linePath,!this.appendPathFrom||T.config.stroke.curve==="monotoneCubic"&&s==="rangeArea"||(j+=O.line(f,this.zeroY),ot+=O.line(f,this.zeroY)),this.handleNullDataPoints(n,Ye,h,Et,l),this._handleMarkersAndLabels({type:s,pointsPos:Ye,i:h,j:Et,realIndex:l,isRangeStart:k})}return{yArrj:u,xArrj:M,pathFromArea:ot,areaPaths:A,pathFromLine:j,linePaths:w,linePath:G,areaPath:U}}},{key:"_handleMarkersAndLabels",value:function(t){var e=t.type,i=t.pointsPos,s=t.isRangeStart,n=t.i,o=t.j,l=t.realIndex,h=this.w,f=new di(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,o,{realIndex:l,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{h.globals.series[n].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var g=this.markers.plotChartMarkers(i,l,o+1);g!==null&&this.elPointsMain.add(g)}var p=f.drawDataLabel({type:e,isRangeStart:s,pos:i,i:l,j:o+1});p!==null&&this.elDataLabelsWrap.add(p)}},{key:"_createPaths",value:function(t){var e=t.type,i=t.series,s=t.i,n=t.realIndex,o=t.j,l=t.x,h=t.y,f=t.xArrj,g=t.yArrj,p=t.y2,x=t.y2Arrj,v=t.pX,w=t.pY,A=t.linePath,C=t.areaPath,E=t.linePaths,M=t.areaPaths,u=t.seriesIndex,b=t.isRangeStart,k=this.w,L=new V(this.ctx),T=k.config.stroke.curve,O=this.areaBottomY;if(Array.isArray(k.config.stroke.curve)&&(T=Array.isArray(u)?k.config.stroke.curve[u[s]]:k.config.stroke.curve[s]),e==="rangeArea"&&(k.globals.hasNullValues||k.config.forecastDataPoints.count>0)&&T==="monotoneCubic"&&(T="straight"),T==="monotoneCubic"){var N=e==="rangeArea"?f.length===k.globals.dataPoints:o===i[s].length-2,X=f.map(function(zt,Et){return[f[Et],g[Et]]}).filter(function(zt){return zt[1]!==null});if(N&&X.length>1){var G=Jn(X);if(A+=ir(G),i[s][0]===null?C=A:C+=ir(G),e==="rangeArea"&&b){A+=L.line(f[f.length-1],x[x.length-1]);var U=f.slice().reverse(),j=x.slice().reverse(),ot=U.map(function(zt,Et){return[U[Et],j[Et]]}),ft=Jn(ot);C=A+=ir(ft)}else C+=L.line(X[X.length-1][0],O)+L.line(X[0][0],O)+L.move(X[0][0],X[0][1])+"z";E.push(A),M.push(C)}}else if(T==="smooth"){var vt=.35*(l-v);k.globals.hasNullValues?(i[s][o]!==null&&(i[s][o+1]!==null?(A=L.move(v,w)+L.curve(v+vt,w,l-vt,h,l+1,h),C=L.move(v+1,w)+L.curve(v+vt,w,l-vt,h,l+1,h)+L.line(l,O)+L.line(v,O)+"z"):(A=L.move(v,w),C=L.move(v,w)+"z")),E.push(A),M.push(C)):(A+=L.curve(v+vt,w,l-vt,h,l,h),C+=L.curve(v+vt,w,l-vt,h,l,h)),v=l,w=h,o===i[s].length-2&&(C=C+L.curve(v,w,l,h,l,O)+L.move(l,h)+"z",e==="rangeArea"&&b?A=A+L.curve(v,w,l,h,l,p)+L.move(l,p)+"z":k.globals.hasNullValues||(E.push(A),M.push(C)))}else{if(i[s][o+1]===null){A+=L.move(l,h);var Pt=k.globals.isXNumeric?(k.globals.seriesX[n][o]-k.globals.minX)/this.xRatio:l-this.xDivision;C=C+L.line(Pt,O)+L.move(l,h)+"z"}i[s][o]===null&&(A+=L.move(l,h),C+=L.move(l,O)),T==="stepline"?(A=A+L.line(l,null,"H")+L.line(null,h,"V"),C=C+L.line(l,null,"H")+L.line(null,h,"V")):T==="straight"&&(A+=L.line(l,h),C+=L.line(l,h)),o===i[s].length-2&&(C=C+L.line(l,O)+L.move(l,h)+"z",e==="rangeArea"&&b?A=A+L.line(l,p)+L.move(l,p)+"z":(E.push(A),M.push(C)))}return{linePaths:E,areaPaths:M,pX:v,pY:w,linePath:A,areaPath:C}}},{key:"handleNullDataPoints",value:function(t,e,i,s,n){var o=this.w;if(t[i][s]===null&&o.config.markers.showNullDataPoints||t[i].length===1){var l=this.markers.plotChartMarkers(e,n,s+1,this.strokeWidth-o.config.markers.strokeWidth/2,!0);l!==null&&this.elPointsMain.add(l)}}}]),_}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function _(l,h,f,g){this.xoffset=l,this.yoffset=h,this.height=g,this.width=f,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(p){var x,v=[],w=this.xoffset,A=this.yoffset,C=n(p)/this.height,E=n(p)/this.width;if(this.width>=this.height)for(x=0;x=this.height){var v=p/this.height,w=this.width-v;x=new _(this.xoffset+v,this.yoffset,w,this.height)}else{var A=p/this.width,C=this.height-A;x=new _(this.xoffset,this.yoffset+A,this.width,C)}return x}}function t(l,h,f,g,p){g=g===void 0?0:g,p=p===void 0?0:p;var x=e(function(v,w){var A,C=[],E=w/n(v);for(A=0;A=u}(h,x=l[0],p)?(h.push(x),e(l.slice(1),h,f,g)):(v=f.cutArea(n(h),g),g.push(f.getCoordinates(h)),e(l,[],v,g)),g;g.push(f.getCoordinates(h))}function i(l,h){var f=Math.min.apply(Math,l),g=Math.max.apply(Math,l),p=n(l);return Math.max(Math.pow(h,2)*g/Math.pow(p,2),Math.pow(p,2)/(Math.pow(h,2)*f))}function s(l){return l&&l.constructor===Array}function n(l){var h,f=0;for(h=0;ho-s&&f.width<=l-n){var g=h.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(-90 ".concat(g.x," ").concat(g.y,") translate(").concat(f.height/3,")"))}}},{key:"truncateLabels",value:function(t,e,i,s,n,o){var l=new V(this.ctx),h=l.getTextRects(t,e).width+this.w.config.stroke.width+5>n-i&&o-s>n-i?o-s:n-i,f=l.getTextBasedOnMaxWidth({text:t,maxWidth:h,fontSize:e});return t.length!==f.length&&h/e<5?"":f}},{key:"animateTreemap",value:function(t,e,i,s){var n=new Q(this.ctx);n.animateRect(t,{x:e.x,y:e.y,width:e.width,height:e.height},{x:i.x,y:i.y,width:i.width,height:i.height},s,function(){n.animationCompleted(t)})}}]),_}(),jh=86400,$h=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return P(_,[{key:"calculateTimeScaleTicks",value:function(t,e){var i=this,s=this.w;if(s.globals.allSeriesCollapsed)return s.globals.labels=[],s.globals.timescaleLabels=[],[];var n=new Ot(this.ctx),o=(e-t)/864e5;this.determineInterval(o),s.globals.disableZoomIn=!1,s.globals.disableZoomOut=!1,o<.00011574074074074075?s.globals.disableZoomIn=!0:o>5e4&&(s.globals.disableZoomOut=!0);var l=n.getTimeUnitsfromTimestamp(t,e,this.utc),h=s.globals.gridWidth/o,f=h/24,g=f/60,p=g/60,x=Math.floor(24*o),v=Math.floor(1440*o),w=Math.floor(o*jh),A=Math.floor(o),C=Math.floor(o/30),E=Math.floor(o/365),M={minMillisecond:l.minMillisecond,minSecond:l.minSecond,minMinute:l.minMinute,minHour:l.minHour,minDate:l.minDate,minMonth:l.minMonth,minYear:l.minYear},u={firstVal:M,currentMillisecond:M.minMillisecond,currentSecond:M.minSecond,currentMinute:M.minMinute,currentHour:M.minHour,currentMonthDate:M.minDate,currentDate:M.minDate,currentMonth:M.minMonth,currentYear:M.minYear,daysWidthOnXAxis:h,hoursWidthOnXAxis:f,minutesWidthOnXAxis:g,secondsWidthOnXAxis:p,numberOfSeconds:w,numberOfMinutes:v,numberOfHours:x,numberOfDays:A,numberOfMonths:C,numberOfYears:E};switch(this.tickInterval){case"years":this.generateYearScale(u);break;case"months":case"half_year":this.generateMonthScale(u);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(u);break;case"hours":this.generateHourScale(u);break;case"minutes_fives":case"minutes":this.generateMinuteScale(u);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(u)}var b=this.timeScaleArray.map(function(k){var L={position:k.position,unit:k.unit,year:k.year,day:k.day?k.day:1,hour:k.hour?k.hour:0,month:k.month+1};return k.unit==="month"?d(d({},L),{},{day:1,value:k.value+1}):k.unit==="day"||k.unit==="hour"?d(d({},L),{},{value:k.value}):k.unit==="minute"?d(d({},L),{},{value:k.value,minute:k.value}):k.unit==="second"?d(d({},L),{},{value:k.value,minute:k.minute,second:k.second}):k});return b.filter(function(k){var L=1,T=Math.ceil(s.globals.gridWidth/120),O=k.value;s.config.xaxis.tickAmount!==void 0&&(T=s.config.xaxis.tickAmount),b.length>T&&(L=Math.floor(b.length/T));var N=!1,X=!1;switch(i.tickInterval){case"years":k.unit==="year"&&(N=!0);break;case"half_year":L=7,k.unit==="year"&&(N=!0);break;case"months":L=1,k.unit==="year"&&(N=!0);break;case"months_fortnight":L=15,k.unit!=="year"&&k.unit!=="month"||(N=!0),O===30&&(X=!0);break;case"months_days":L=10,k.unit==="month"&&(N=!0),O===30&&(X=!0);break;case"week_days":L=8,k.unit==="month"&&(N=!0);break;case"days":L=1,k.unit==="month"&&(N=!0);break;case"hours":k.unit==="day"&&(N=!0);break;case"minutes_fives":case"seconds_fives":O%5!=0&&(X=!0);break;case"seconds_tens":O%10!=0&&(X=!0)}if(i.tickInterval==="hours"||i.tickInterval==="minutes_fives"||i.tickInterval==="seconds_tens"||i.tickInterval==="seconds_fives"){if(!X)return!0}else if((O%L==0||N)&&!X)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(t,e){var i=this.w,s=this.formatDates(t),n=this.removeOverlappingTS(s);i.globals.timescaleLabels=n.slice(),new kt(this.ctx).plotCoords()}},{key:"determineInterval",value:function(t){var e=24*t,i=60*e;switch(!0){case t/365>5:this.tickInterval="years";break;case t>800:this.tickInterval="half_year";break;case t>180:this.tickInterval="months";break;case t>90:this.tickInterval="months_fortnight";break;case t>60:this.tickInterval="months_days";break;case t>30:this.tickInterval="week_days";break;case t>2:this.tickInterval="days";break;case e>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(t){var e=t.firstVal,i=t.currentMonth,s=t.currentYear,n=t.daysWidthOnXAxis,o=t.numberOfYears,l=e.minYear,h=0,f=new Ot(this.ctx),g="year";if(e.minDate>1||e.minMonth>0){var p=f.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);h=(f.determineDaysOfYear(e.minYear)-p+1)*n,l=e.minYear+1,this.timeScaleArray.push({position:h,value:l,unit:g,year:l,month:z.monthMod(i+1)})}else e.minDate===1&&e.minMonth===0&&this.timeScaleArray.push({position:h,value:l,unit:g,year:s,month:z.monthMod(i+1)});for(var x=l,v=h,w=0;w1){f=(g.determineDaysOfMonths(s+1,e.minYear)-i+1)*o,h=z.monthMod(s+1);var v=n+x,w=z.monthMod(h),A=h;h===0&&(p="year",A=v,w=1,v+=x+=1),this.timeScaleArray.push({position:f,value:A,unit:p,year:v,month:w})}else this.timeScaleArray.push({position:f,value:h,unit:p,year:n,month:z.monthMod(s)});for(var C=h+1,E=f,M=0,u=1;Ml.determineDaysOfMonths(b+1,k)&&(g=1,h="month",v=b+=1),b},x=(24-e.minHour)*n,v=f,w=p(g,i,s);e.minHour===0&&e.minDate===1?(x=0,v=z.monthMod(e.minMonth),h="month",g=e.minDate):e.minDate!==1&&e.minHour===0&&e.minMinute===0&&(x=0,f=e.minDate,v=f,w=p(g=f,i,s)),this.timeScaleArray.push({position:x,value:v,unit:h,year:this._getYear(s,w,0),month:z.monthMod(w),day:g});for(var A=x,C=0;Ch.determineDaysOfMonths(T+1,n)&&(C=1,T+=1),{month:T,date:C}},p=function(L,T){return L>h.determineDaysOfMonths(T+1,n)?T+=1:T},x=60-(e.minMinute+e.minSecond/60),v=x*o,w=e.minHour+1,A=w;x===60&&(v=0,A=w=e.minHour);var C=i;A>=24&&(A=0,C+=1,f="day");var E=g(C,s).month;E=p(C,E),this.timeScaleArray.push({position:v,value:w,unit:f,day:C,hour:A,year:n,month:z.monthMod(E)}),A++;for(var M=v,u=0;u=24&&(A=0,f="day",E=g(C+=1,E).month,E=p(C,E));var b=this._getYear(n,E,0);M=60*o+M;var k=A===0?C:A;this.timeScaleArray.push({position:M,value:k,unit:f,hour:A,day:C,year:b,month:z.monthMod(E)}),A++}}},{key:"generateMinuteScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,s=t.currentMinute,n=t.currentHour,o=t.currentDate,l=t.currentMonth,h=t.currentYear,f=t.minutesWidthOnXAxis,g=t.secondsWidthOnXAxis,p=t.numberOfMinutes,x=s+1,v=o,w=l,A=h,C=n,E=(60-i-e/1e3)*g,M=0;M=60&&(x=0,(C+=1)===24&&(C=0)),this.timeScaleArray.push({position:E,value:x,unit:"minute",hour:C,minute:x,day:v,year:this._getYear(A,w,0),month:z.monthMod(w)}),E+=f,x++}},{key:"generateSecondScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,s=t.currentMinute,n=t.currentHour,o=t.currentDate,l=t.currentMonth,h=t.currentYear,f=t.secondsWidthOnXAxis,g=t.numberOfSeconds,p=i+1,x=s,v=o,w=l,A=h,C=n,E=(1e3-e)/1e3*f,M=0;M=60&&(p=0,++x>=60&&(x=0,++C===24&&(C=0))),this.timeScaleArray.push({position:E,value:p,unit:"second",hour:C,minute:x,second:p,day:v,year:this._getYear(A,w,0),month:z.monthMod(w)}),E+=f,p++}},{key:"createRawDateString",value:function(t,e){var i=t.year;return t.month===0&&(t.month=1),i+="-"+("0"+t.month.toString()).slice(-2),t.unit==="day"?i+=t.unit==="day"?"-"+("0"+e).slice(-2):"-01":i+="-"+("0"+(t.day?t.day:"1")).slice(-2),t.unit==="hour"?i+=t.unit==="hour"?"T"+("0"+e).slice(-2):"T00":i+="T"+("0"+(t.hour?t.hour:"0")).slice(-2),t.unit==="minute"?i+=":"+("0"+e).slice(-2):i+=":"+(t.minute?("0"+t.minute).slice(-2):"00"),t.unit==="second"?i+=":"+("0"+e).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(t){var e=this,i=this.w;return t.map(function(s){var n=s.value.toString(),o=new Ot(e.ctx),l=e.createRawDateString(s,n),h=o.getDate(o.parseDate(l));if(e.utc||(h=o.getDate(o.parseDateWithTimezone(l))),i.config.xaxis.labels.format===void 0){var f="dd MMM",g=i.config.xaxis.labels.datetimeFormatter;s.unit==="year"&&(f=g.year),s.unit==="month"&&(f=g.month),s.unit==="day"&&(f=g.day),s.unit==="hour"&&(f=g.hour),s.unit==="minute"&&(f=g.minute),s.unit==="second"&&(f=g.second),n=o.formatDate(h,f)}else n=o.formatDate(h,i.config.xaxis.labels.format);return{dateString:l,position:s.position,value:n,unit:s.unit,year:s.year,month:s.month}})}},{key:"removeOverlappingTS",value:function(t){var e,i=this,s=new V(this.ctx),n=!1;t.length>0&&t[0].value&&t.every(function(h){return h.value.length===t[0].value.length})&&(n=!0,e=s.getTextRects(t[0].value).width);var o=0,l=t.map(function(h,f){if(f>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var g=n?e:s.getTextRects(t[o].value).width,p=t[o].position;return h.position>p+g+10?(o=f,h):null}return h});return l=l.filter(function(h){return h!==null})}},{key:"_getYear",value:function(t,e,i){return t+Math.floor(e/12)+i}}]),_}(),Uh=function(){function _(t,e){y(this,_),this.ctx=e,this.w=e.w,this.el=t}return P(_,[{key:"setupElements",value:function(){var t=this.w.globals,e=this.w.config,i=e.chart.type;t.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,t.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,t.isBarHorizontal=(e.chart.type==="bar"||e.chart.type==="rangeBar"||e.chart.type==="boxPlot")&&e.plotOptions.bar.horizontal,t.chartClass=".apexcharts"+t.chartID,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),V.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas "+t.chartClass.substring(1)}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=new window.SVG.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(e.chart.offsetX,", ").concat(e.chart.offsetY,")")}),t.dom.Paper.node.style.background=e.theme.mode!=="dark"||e.chart.background?e.chart.background:"rgba(0, 0, 0, 0.8)",this.setSVGDimensions(),t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject"),V.setAttrs(t.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.dom.elLegendForeign.appendChild(t.dom.elLegendWrap),t.dom.Paper.node.appendChild(t.dom.elLegendForeign),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(t,e){var i=this.w,s=i.config,n=i.globals,o={series:[],i:[]},l={series:[],i:[]},h={series:[],i:[]},f={series:[],i:[]},g={series:[],i:[]},p={series:[],i:[]},x={series:[],i:[]},v={series:[],i:[]},w={series:[],seriesRangeEnd:[],i:[]};n.series.map(function(T,O){var N=0;t[O].type!==void 0?(t[O].type==="column"||t[O].type==="bar"?(n.series.length>1&&s.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),g.series.push(T),g.i.push(O),N++,i.globals.columnSeries=g.series):t[O].type==="area"?(l.series.push(T),l.i.push(O),N++):t[O].type==="line"?(o.series.push(T),o.i.push(O),N++):t[O].type==="scatter"?(h.series.push(T),h.i.push(O)):t[O].type==="bubble"?(f.series.push(T),f.i.push(O),N++):t[O].type==="candlestick"?(p.series.push(T),p.i.push(O),N++):t[O].type==="boxPlot"?(x.series.push(T),x.i.push(O),N++):t[O].type==="rangeBar"?(v.series.push(T),v.i.push(O),N++):t[O].type==="rangeArea"?(w.series.push(n.seriesRangeStart[O]),w.seriesRangeEnd.push(n.seriesRangeEnd[O]),w.i.push(O),N++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble/candlestick/boxPlot/rangeBar/rangeArea"),N>1&&(n.comboCharts=!0)):(o.series.push(T),o.i.push(O))});var A=new sr(this.ctx,e),C=new er(this.ctx,e);this.ctx.pie=new Kn(this.ctx);var E=new Dh(this.ctx);this.ctx.rangeBar=new Bh(this.ctx,e);var M=new Hh(this.ctx),u=[];if(n.comboCharts){if(l.series.length>0&&u.push(A.draw(l.series,"area",l.i)),g.series.length>0)if(i.config.chart.stacked){var b=new Un(this.ctx,e);u.push(b.draw(g.series,g.i))}else this.ctx.bar=new Gi(this.ctx,e),u.push(this.ctx.bar.draw(g.series,g.i));if(w.series.length>0&&u.push(A.draw(w.series,"rangeArea",w.i,w.seriesRangeEnd)),o.series.length>0&&u.push(A.draw(o.series,"line",o.i)),p.series.length>0&&u.push(C.draw(p.series,"candlestick",p.i)),x.series.length>0&&u.push(C.draw(x.series,"boxPlot",x.i)),v.series.length>0&&u.push(this.ctx.rangeBar.draw(v.series,v.i)),h.series.length>0){var k=new sr(this.ctx,e,!0);u.push(k.draw(h.series,"scatter",h.i))}if(f.series.length>0){var L=new sr(this.ctx,e,!0);u.push(L.draw(f.series,"bubble",f.i))}}else switch(s.chart.type){case"line":u=A.draw(n.series,"line");break;case"area":u=A.draw(n.series,"area");break;case"bar":s.chart.stacked?u=new Un(this.ctx,e).draw(n.series):(this.ctx.bar=new Gi(this.ctx,e),u=this.ctx.bar.draw(n.series));break;case"candlestick":u=new er(this.ctx,e).draw(n.series,"candlestick");break;case"boxPlot":u=new er(this.ctx,e).draw(n.series,s.chart.type);break;case"rangeBar":u=this.ctx.rangeBar.draw(n.series);break;case"rangeArea":u=A.draw(n.seriesRangeStart,"rangeArea",void 0,n.seriesRangeEnd);break;case"heatmap":u=new Yh(this.ctx,e).draw(n.series);break;case"treemap":u=new Gh(this.ctx,e).draw(n.series);break;case"pie":case"donut":case"polarArea":u=this.ctx.pie.draw(n.series);break;case"radialBar":u=E.draw(n.series);break;case"radar":u=M.draw(n.series);break;default:u=A.draw(n.series)}return u}},{key:"setSVGDimensions",value:function(){var t=this.w.globals,e=this.w.config;t.svgWidth=e.chart.width,t.svgHeight=e.chart.height;var i=z.getDimensions(this.el),s=e.chart.width.toString().split(/[0-9]+/g).pop();s==="%"?z.isNumber(i[0])&&(i[0].width===0&&(i=z.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(e.chart.width,10)/100):s!=="px"&&s!==""||(t.svgWidth=parseInt(e.chart.width,10));var n=e.chart.height.toString().split(/[0-9]+/g).pop();if(t.svgHeight!=="auto"&&t.svgHeight!=="")if(n==="%"){var o=z.getDimensions(this.el.parentNode);t.svgHeight=o[1]*parseInt(e.chart.height,10)/100}else t.svgHeight=parseInt(e.chart.height,10);else t.axisCharts?t.svgHeight=t.svgWidth/1.61:t.svgHeight=t.svgWidth/1.2;if(t.svgWidth<0&&(t.svgWidth=0),t.svgHeight<0&&(t.svgHeight=0),V.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),n!=="%"){var l=e.chart.sparkline.enabled?0:t.axisCharts?e.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+l+"px"}t.dom.elWrap.style.width=t.svgWidth+"px",t.dom.elWrap.style.height=t.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var t=this.w.globals,e=t.translateY,i={transform:"translate("+t.translateX+", "+e+")"};V.setAttrs(t.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=0,s=t.config.chart.sparkline.enabled?1:15;s+=t.config.grid.padding.bottom,t.config.legend.position!=="top"&&t.config.legend.position!=="bottom"||!t.config.legend.show||t.config.legend.floating||(i=new Gt(this.ctx).legendHelpers.getLegendBBox().clwh+10);var n=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),o=2.05*t.globals.radialSize;if(n&&!t.config.chart.sparkline.enabled&&t.config.plotOptions.radialBar.startAngle!==0){var l=z.getBoundingClientRect(n);o=l.bottom;var h=l.bottom-l.top;o=Math.max(2.05*t.globals.radialSize,h)}var f=o+e.translateY+i+s;e.dom.elLegendForeign&&e.dom.elLegendForeign.setAttribute("height",f),t.config.chart.height&&String(t.config.chart.height).indexOf("%")>0||(e.dom.elWrap.style.height=f+"px",V.setAttrs(e.dom.Paper.node,{height:f}),e.dom.Paper.node.parentNode.parentNode.style.minHeight=f+"px")}},{key:"coreCalculations",value:function(){new H(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this,e=function(){return t.w.config.series.map(function(n){return[]})},i=new Li,s=this.w.globals;i.initGlobalVars(s),s.seriesXvalues=e(),s.seriesYvalues=e()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var t=null,e=this.w;if(e.globals.axisCharts){if(e.config.xaxis.crosshairs.position==="back"&&new st(this.ctx).drawXCrosshairs(),e.config.yaxis[0].crosshairs.position==="back"&&new st(this.ctx).drawYCrosshairs(),e.config.xaxis.type==="datetime"&&e.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new $h(this.ctx);var i=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}t=new et(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(t){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:t.w.globals.minX,max:t.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var t=this,e=this.w;if(e.config.chart.brush.enabled&&typeof e.config.chart.events.selection!="function"){var i=Array.isArray(e.config.chart.brush.targets)?e.config.chart.brush.targets:[e.config.chart.brush.target];i.forEach(function(s){var n=ApexCharts.getChartByID(s);n.w.globals.brushSource=t.ctx,typeof n.w.config.chart.events.zoomed!="function"&&(n.w.config.chart.events.zoomed=function(){t.updateSourceChart(n)}),typeof n.w.config.chart.events.scrolled!="function"&&(n.w.config.chart.events.scrolled=function(){t.updateSourceChart(n)})}),e.config.chart.events.selection=function(s,n){i.forEach(function(o){var l=ApexCharts.getChartByID(o),h=z.clone(e.config.yaxis);if(e.config.chart.brush.autoScaleYaxis&&l.w.globals.series.length===1){var f=new Qe(l);h=f.autoScaleY(l,h,n)}var g=l.w.config.yaxis.reduce(function(p,x,v){return[].concat(ht(p),[d(d({},l.w.config.yaxis[v]),{},{min:h[0].min,max:h[0].max})])},[]);l.ctx.updateHelpers._updateOptions({xaxis:{min:n.xaxis.min,max:n.xaxis.max},yaxis:g},!1,!1,!1,!1)})}}}}]),_}(),qh=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"_updateOptions",value:function(t){var e=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],s=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],n=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],o=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(l){var h=[e.ctx];n&&(h=e.ctx.getSyncedCharts()),e.ctx.w.globals.isExecCalled&&(h=[e.ctx],e.ctx.w.globals.isExecCalled=!1),h.forEach(function(f,g){var p=f.w;if(p.globals.shouldAnimate=s,i||(p.globals.resized=!0,p.globals.dataChanged=!0,s&&f.series.getPreviousPaths()),t&&m(t)==="object"&&(f.config=new Ee(t),t=et.extendArrayProps(f.config,t,p),f.w.globals.chartID!==e.ctx.w.globals.chartID&&delete t.series,p.config=z.extend(p.config,t),o&&(p.globals.lastXAxis=t.xaxis?z.clone(t.xaxis):[],p.globals.lastYAxis=t.yaxis?z.clone(t.yaxis):[],p.globals.initialConfig=z.extend({},p.config),p.globals.initialSeries=z.clone(p.config.series),t.series))){for(var x=0;x2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(n){var o,l=i.w;return l.globals.shouldAnimate=e,l.globals.dataChanged=!0,e&&i.ctx.series.getPreviousPaths(),l.globals.axisCharts?((o=t.map(function(h,f){return i._extendSeries(h,f)})).length===0&&(o=[{data:[]}]),l.config.series=o):l.config.series=t.slice(),s&&(l.globals.initialConfig.series=z.clone(l.config.series),l.globals.initialSeries=z.clone(l.config.series)),i.ctx.update().then(function(){n(i.ctx)})})}},{key:"_extendSeries",value:function(t,e){var i=this.w,s=i.config.series[e];return d(d({},i.config.series[e]),{},{name:t.name?t.name:s==null?void 0:s.name,color:t.color?t.color:s==null?void 0:s.color,type:t.type?t.type:s==null?void 0:s.type,group:t.group?t.group:s==null?void 0:s.group,data:t.data?t.data:s==null?void 0:s.data,zIndex:t.zIndex!==void 0?t.zIndex:e})}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,s=null,n=".apexcharts-series[data\\:realIndex='".concat(t,"']");return i.globals.axisCharts?s=i.globals.dom.Paper.select("".concat(n," path[j='").concat(e,"'], ").concat(n," circle[j='").concat(e,"'], ").concat(n," rect[j='").concat(e,"']")).members[0]:e===void 0&&(s=i.globals.dom.Paper.select("".concat(n," path[j='").concat(t,"']")).members[0],i.config.chart.type!=="pie"&&i.config.chart.type!=="polarArea"&&i.config.chart.type!=="donut"||this.ctx.pie.pieClicked(t)),s?(new V(this.ctx).pathMouseDown(s,null),s.node?s.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(t){var e=this.w;if(["min","max"].forEach(function(s){t.xaxis[s]!==void 0&&(e.config.xaxis[s]=t.xaxis[s],e.globals.lastXAxis[s]=t.xaxis[s])}),t.xaxis.categories&&t.xaxis.categories.length&&(e.config.xaxis.categories=t.xaxis.categories),e.config.xaxis.convertedCatToNumeric){var i=new Rt(t);t=i.convertCatToNumericXaxis(t,this.ctx)}return t}},{key:"forceYAxisUpdate",value:function(t){return t.chart&&t.chart.stacked&&t.chart.stackType==="100%"&&(Array.isArray(t.yaxis)?t.yaxis.forEach(function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100}):(t.yaxis.min=0,t.yaxis.max=100)),t}},{key:"revertDefaultAxisMinMax",value:function(t){var e=this,i=this.w,s=i.globals.lastXAxis,n=i.globals.lastYAxis;t&&t.xaxis&&(s=t.xaxis),t&&t.yaxis&&(n=t.yaxis),i.config.xaxis.min=s.min,i.config.xaxis.max=s.max;var o=function(l){n[l]!==void 0&&(i.config.yaxis[l].min=n[l].min,i.config.yaxis[l].max=n[l].max)};i.config.yaxis.map(function(l,h){i.globals.zoomed||n[h]!==void 0?o(h):e.ctx.opts.yaxis[h]!==void 0&&(l.min=e.ctx.opts.yaxis[h].min,l.max=e.ctx.opts.yaxis[h].max)})}}]),_}();Ii=typeof window<"u"?window:void 0,qa=function(_,t){var e=(this!==void 0?this:_).SVG=function(u){if(e.supported)return u=new e.Doc(u),e.parser.draw||e.prepare(),u};if(e.ns="http://www.w3.org/2000/svg",e.xmlns="http://www.w3.org/2000/xmlns/",e.xlink="http://www.w3.org/1999/xlink",e.svgjs="http://svgjs.dev",e.supported=!0,!e.supported)return!1;e.did=1e3,e.eid=function(u){return"Svgjs"+g(u)+e.did++},e.create=function(u){var b=t.createElementNS(this.ns,u);return b.setAttribute("id",this.eid(u)),b},e.extend=function(){var u,b;b=(u=[].slice.call(arguments)).pop();for(var k=u.length-1;k>=0;k--)if(u[k])for(var L in b)u[k].prototype[L]=b[L];e.Set&&e.Set.inherit&&e.Set.inherit()},e.invent=function(u){var b=typeof u.create=="function"?u.create:function(){this.constructor.call(this,e.create(u.create))};return u.inherit&&(b.prototype=new u.inherit),u.extend&&e.extend(b,u.extend),u.construct&&e.extend(u.parent||e.Container,u.construct),b},e.adopt=function(u){return u?u.instance?u.instance:((b=u.nodeName=="svg"?u.parentNode instanceof _.SVGElement?new e.Nested:new e.Doc:u.nodeName=="linearGradient"?new e.Gradient("linear"):u.nodeName=="radialGradient"?new e.Gradient("radial"):e[g(u.nodeName)]?new e[g(u.nodeName)]:new e.Element(u)).type=u.nodeName,b.node=u,u.instance=b,b instanceof e.Doc&&b.namespace().defs(),b.setData(JSON.parse(u.getAttribute("svgjs:data"))||{}),b):null;var b},e.prepare=function(){var u=t.getElementsByTagName("body")[0],b=(u?new e.Doc(u):e.adopt(t.documentElement).nested()).size(2,0);e.parser={body:u||t.documentElement,draw:b.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:b.polyline().node,path:b.path().node,native:e.create("svg")}},e.parser={native:e.create("svg")},t.addEventListener("DOMContentLoaded",function(){e.parser.draw||e.prepare()},!1),e.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},e.utils={map:function(u,b){for(var k=u.length,L=[],T=0;T1?1:u,new e.Color({r:~~(this.r+(this.destination.r-this.r)*u),g:~~(this.g+(this.destination.g-this.g)*u),b:~~(this.b+(this.destination.b-this.b)*u)})):this}}),e.Color.test=function(u){return u+="",e.regex.isHex.test(u)||e.regex.isRgb.test(u)},e.Color.isRgb=function(u){return u&&typeof u.r=="number"&&typeof u.g=="number"&&typeof u.b=="number"},e.Color.isColor=function(u){return e.Color.isRgb(u)||e.Color.test(u)},e.Array=function(u,b){(u=(u||[]).valueOf()).length==0&&b&&(u=b.valueOf()),this.value=this.parse(u)},e.extend(e.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(u){return u=u.valueOf(),Array.isArray(u)?u:this.split(u)}}),e.PointArray=function(u,b){e.Array.call(this,u,b||[[0,0]])},e.PointArray.prototype=new e.Array,e.PointArray.prototype.constructor=e.PointArray;for(var i={M:function(u,b,k){return b.x=k.x=u[0],b.y=k.y=u[1],["M",b.x,b.y]},L:function(u,b){return b.x=u[0],b.y=u[1],["L",u[0],u[1]]},H:function(u,b){return b.x=u[0],["H",u[0]]},V:function(u,b){return b.y=u[0],["V",u[0]]},C:function(u,b){return b.x=u[4],b.y=u[5],["C",u[0],u[1],u[2],u[3],u[4],u[5]]},Q:function(u,b){return b.x=u[2],b.y=u[3],["Q",u[0],u[1],u[2],u[3]]},S:function(u,b){return b.x=u[2],b.y=u[3],["S",u[0],u[1],u[2],u[3]]},Z:function(u,b,k){return b.x=k.x,b.y=k.y,["Z"]}},s="mlhvqtcsaz".split(""),n=0,o=s.length;nN);return L},bbox:function(){return e.parser.draw||e.prepare(),e.parser.path.setAttribute("d",this.toString()),e.parser.path.getBBox()}}),e.Number=e.invent({create:function(u,b){this.value=0,this.unit=b||"",typeof u=="number"?this.value=isNaN(u)?0:isFinite(u)?u:u<0?-34e37:34e37:typeof u=="string"?(b=u.match(e.regex.numberAndUnit))&&(this.value=parseFloat(b[1]),b[5]=="%"?this.value/=100:b[5]=="s"&&(this.value*=1e3),this.unit=b[5]):u instanceof e.Number&&(this.value=u.valueOf(),this.unit=u.unit)},extend:{toString:function(){return(this.unit=="%"?~~(1e8*this.value)/1e6:this.unit=="s"?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(u){return u=new e.Number(u),new e.Number(this+u,this.unit||u.unit)},minus:function(u){return u=new e.Number(u),new e.Number(this-u,this.unit||u.unit)},times:function(u){return u=new e.Number(u),new e.Number(this*u,this.unit||u.unit)},divide:function(u){return u=new e.Number(u),new e.Number(this/u,this.unit||u.unit)},to:function(u){var b=new e.Number(this);return typeof u=="string"&&(b.unit=u),b},morph:function(u){return this.destination=new e.Number(u),u.relative&&(this.destination.value+=this.value),this},at:function(u){return this.destination?new e.Number(this.destination).minus(this).times(u).plus(this):this}}}),e.Element=e.invent({create:function(u){this._stroke=e.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=u)&&(this.type=u.nodeName,this.node.instance=this,this._stroke=u.getAttribute("stroke")||this._stroke)},extend:{x:function(u){return this.attr("x",u)},y:function(u){return this.attr("y",u)},cx:function(u){return u==null?this.x()+this.width()/2:this.x(u-this.width()/2)},cy:function(u){return u==null?this.y()+this.height()/2:this.y(u-this.height()/2)},move:function(u,b){return this.x(u).y(b)},center:function(u,b){return this.cx(u).cy(b)},width:function(u){return this.attr("width",u)},height:function(u){return this.attr("height",u)},size:function(u,b){var k=x(this,u,b);return this.width(new e.Number(k.width)).height(new e.Number(k.height))},clone:function(u){this.writeDataToDom();var b=A(this.node.cloneNode(!0));return u?u.add(b):this.after(b),b},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(u){return this.after(u).remove(),u},addTo:function(u){return u.put(this)},putIn:function(u){return u.add(this)},id:function(u){return this.attr("id",u)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return this.style("display")!="none"},toString:function(){return this.attr("id")},classes:function(){var u=this.attr("class");return u==null?[]:u.trim().split(e.regex.delimiter)},hasClass:function(u){return this.classes().indexOf(u)!=-1},addClass:function(u){if(!this.hasClass(u)){var b=this.classes();b.push(u),this.attr("class",b.join(" "))}return this},removeClass:function(u){return this.hasClass(u)&&this.attr("class",this.classes().filter(function(b){return b!=u}).join(" ")),this},toggleClass:function(u){return this.hasClass(u)?this.removeClass(u):this.addClass(u)},reference:function(u){return e.get(this.attr(u))},parent:function(u){var b=this;if(!b.node.parentNode)return null;if(b=e.adopt(b.node.parentNode),!u)return b;for(;b&&b.node instanceof _.SVGElement;){if(typeof u=="string"?b.matches(u):b instanceof u)return b;if(!b.node.parentNode||b.node.parentNode.nodeName=="#document")return null;b=e.adopt(b.node.parentNode)}},doc:function(){return this instanceof e.Doc?this:this.parent(e.Doc)},parents:function(u){var b=[],k=this;do{if(!(k=k.parent(u))||!k.node)break;b.push(k)}while(k.parent);return b},matches:function(u){return function(b,k){return(b.matches||b.matchesSelector||b.msMatchesSelector||b.mozMatchesSelector||b.webkitMatchesSelector||b.oMatchesSelector).call(b,k)}(this.node,u)},native:function(){return this.node},svg:function(u){var b=t.createElement("svg");if(!(u&&this instanceof e.Parent))return b.appendChild(u=t.createElement("svg")),this.writeDataToDom(),u.appendChild(this.node.cloneNode(!0)),b.innerHTML.replace(/^/,"").replace(/<\/svg>$/,"");b.innerHTML=""+u.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2>")+"";for(var k=0,L=b.firstChild.childNodes.length;k":function(u){return-Math.cos(u*Math.PI)/2+.5},">":function(u){return Math.sin(u*Math.PI/2)},"<":function(u){return 1-Math.cos(u*Math.PI/2)}},e.morph=function(u){return function(b,k){return new e.MorphObj(b,k).at(u)}},e.Situation=e.invent({create:function(u){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new e.Number(u.duration).valueOf(),this.delay=new e.Number(u.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=u.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),e.FX=e.invent({create:function(u){this._target=u,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(u,b,k){m(u)==="object"&&(b=u.ease,k=u.delay,u=u.duration);var L=new e.Situation({duration:u||1e3,delay:k||0,ease:e.easing[b||"-"]||b});return this.queue(L),this},target:function(u){return u&&u instanceof e.Element?(this._target=u,this):this._target},timeToAbsPos:function(u){return(u-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(u){return this.situation.duration/this._speed*u+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=_.requestAnimationFrame((function(){this.step()}).bind(this))},stopAnimFrame:function(){_.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(u){return(typeof u=="function"||u instanceof e.Situation)&&this.situations.push(u),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof e.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var u,b=this.situation;if(b.init)return this;for(var k in b.animations){u=this.target()[k](),Array.isArray(u)||(u=[u]),Array.isArray(b.animations[k])||(b.animations[k]=[b.animations[k]]);for(var L=u.length;L--;)b.animations[k][L]instanceof e.Number&&(u[L]=new e.Number(u[L])),b.animations[k][L]=u[L].morph(b.animations[k][L])}for(var k in b.attrs)b.attrs[k]=new e.MorphObj(this.target().attr(k),b.attrs[k]);for(var k in b.styles)b.styles[k]=new e.MorphObj(this.target().style(k),b.styles[k]);return b.initialTransformation=this.target().matrixify(),b.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(u,b){var k=this.active;return this.active=!1,b&&this.clearQueue(),u&&this.situation&&(!k&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(u){var b=this.last();return this.target().on("finished.fx",function k(L){L.detail.situation==b&&(u.call(this,b),this.off("finished.fx",k))}),this._callStart()},during:function(u){var b=this.last(),k=function(L){L.detail.situation==b&&u.call(this,L.detail.pos,e.morph(L.detail.pos),L.detail.eased,b)};return this.target().off("during.fx",k).on("during.fx",k),this.after(function(){this.off("during.fx",k)}),this._callStart()},afterAll:function(u){var b=function k(L){u.call(this),this.off("allfinished.fx",k)};return this.target().off("allfinished.fx",b).on("allfinished.fx",b),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(u,b,k){return this.last()[k||"animations"][u]=b,this._callStart()},step:function(u){var b,k,L;u||(this.absPos=this.timeToAbsPos(+new Date)),this.situation.loops!==!1?(b=Math.max(this.absPos,0),k=Math.floor(b),this.situation.loops===!0||kthis.lastPos&&O<=T&&(this.situation.once[O].call(this.target(),this.pos,T),delete this.situation.once[O]);return this.active&&this.target().fire("during",{pos:this.pos,eased:T,fx:this,situation:this.situation}),this.situation?(this.eachAt(),this.pos==1&&!this.situation.reversed||this.situation.reversed&&this.pos==0?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=T,this):this},eachAt:function(){var u,b=this,k=this.target(),L=this.situation;for(var T in L.animations)u=[].concat(L.animations[T]).map(function(X){return typeof X!="string"&&X.at?X.at(L.ease(b.pos),b.pos):X}),k[T].apply(k,u);for(var T in L.attrs)u=[T].concat(L.attrs[T]).map(function(G){return typeof G!="string"&&G.at?G.at(L.ease(b.pos),b.pos):G}),k.attr.apply(k,u);for(var T in L.styles)u=[T].concat(L.styles[T]).map(function(G){return typeof G!="string"&&G.at?G.at(L.ease(b.pos),b.pos):G}),k.style.apply(k,u);if(L.transforms.length){u=L.initialTransformation,T=0;for(var O=L.transforms.length;T=0;--k)this[E[k]]=u[E[k]]!=null?u[E[k]]:b[E[k]]},extend:{extract:function(){var u=v(this,0,1);v(this,1,0);var b=180/Math.PI*Math.atan2(u.y,u.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(b*Math.PI/180)+this.f*Math.sin(b*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(b*Math.PI/180)+this.e*Math.sin(-b*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:b,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new e.Matrix(this)}},clone:function(){return new e.Matrix(this)},morph:function(u){return this.destination=new e.Matrix(u),this},multiply:function(u){return new e.Matrix(this.native().multiply(function(b){return b instanceof e.Matrix||(b=new e.Matrix(b)),b}(u).native()))},inverse:function(){return new e.Matrix(this.native().inverse())},translate:function(u,b){return new e.Matrix(this.native().translate(u||0,b||0))},native:function(){for(var u=e.parser.native.createSVGMatrix(),b=E.length-1;b>=0;b--)u[E[b]]=this[E[b]];return u},toString:function(){return"matrix("+C(this.a)+","+C(this.b)+","+C(this.c)+","+C(this.d)+","+C(this.e)+","+C(this.f)+")"}},parent:e.Element,construct:{ctm:function(){return new e.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof e.Nested){var u=this.rect(1,1),b=u.node.getScreenCTM();return u.remove(),new e.Matrix(b)}return new e.Matrix(this.node.getScreenCTM())}}}),e.Point=e.invent({create:function(u,b){var k;k=Array.isArray(u)?{x:u[0],y:u[1]}:m(u)==="object"?{x:u.x,y:u.y}:u!=null?{x:u,y:b??u}:{x:0,y:0},this.x=k.x,this.y=k.y},extend:{clone:function(){return new e.Point(this)},morph:function(u,b){return this.destination=new e.Point(u,b),this}}}),e.extend(e.Element,{point:function(u,b){return new e.Point(u,b).transform(this.screenCTM().inverse())}}),e.extend(e.Element,{attr:function(u,b,k){if(u==null){for(u={},k=(b=this.node.attributes).length-1;k>=0;k--)u[b[k].nodeName]=e.regex.isNumber.test(b[k].nodeValue)?parseFloat(b[k].nodeValue):b[k].nodeValue;return u}if(m(u)==="object")for(var L in u)this.attr(L,u[L]);else if(b===null)this.node.removeAttribute(u);else{if(b==null)return(b=this.node.getAttribute(u))==null?e.defaults.attrs[u]:e.regex.isNumber.test(b)?parseFloat(b):b;u=="stroke-width"?this.attr("stroke",parseFloat(b)>0?this._stroke:null):u=="stroke"&&(this._stroke=b),u!="fill"&&u!="stroke"||(e.regex.isImage.test(b)&&(b=this.doc().defs().image(b,0,0)),b instanceof e.Image&&(b=this.doc().defs().pattern(0,0,function(){this.add(b)}))),typeof b=="number"?b=new e.Number(b):e.Color.isColor(b)?b=new e.Color(b):Array.isArray(b)&&(b=new e.Array(b)),u=="leading"?this.leading&&this.leading(b):typeof k=="string"?this.node.setAttributeNS(k,u,b.toString()):this.node.setAttribute(u,b.toString()),!this.rebuild||u!="font-size"&&u!="x"||this.rebuild(u,b)}return this}}),e.extend(e.Element,{transform:function(u,b){var k;return m(u)!=="object"?(k=new e.Matrix(this).extract(),typeof u=="string"?k[u]:k):(k=new e.Matrix(this),b=!!b||!!u.relative,u.a!=null&&(k=b?k.multiply(new e.Matrix(u)):new e.Matrix(u)),this.attr("transform",k))}}),e.extend(e.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(e.regex.transforms).slice(0,-1).map(function(u){var b=u.trim().split("(");return[b[0],b[1].split(e.regex.delimiter).map(function(k){return parseFloat(k)})]}).reduce(function(u,b){return b[0]=="matrix"?u.multiply(w(b[1])):u[b[0]].apply(u,b[1])},new e.Matrix)},toParent:function(u){if(this==u)return this;var b=this.screenCTM(),k=u.screenCTM().inverse();return this.addTo(u).untransform().transform(k.multiply(b)),this},toDoc:function(){return this.toParent(this.doc())}}),e.Transformation=e.invent({create:function(u,b){if(arguments.length>1&&typeof b!="boolean")return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(u))for(var k=0,L=this.arguments.length;k=0},index:function(u){return[].slice.call(this.node.childNodes).indexOf(u.node)},get:function(u){return e.adopt(this.node.childNodes[u])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(u,b){for(var k=this.children(),L=0,T=k.length;L=0;b--)u.childNodes[b]instanceof _.SVGElement&&A(u.childNodes[b]);return e.adopt(u).id(e.eid(u.nodeName))}function C(u){return Math.abs(u)>1e-37?u:0}["fill","stroke"].forEach(function(u){var b={};b[u]=function(k){if(k===void 0)return this;if(typeof k=="string"||e.Color.isRgb(k)||k&&typeof k.fill=="function")this.attr(u,k);else for(var L=l[u].length-1;L>=0;L--)k[l[u][L]]!=null&&this.attr(l.prefix(u,l[u][L]),k[l[u][L]]);return this},e.extend(e.Element,e.FX,b)}),e.extend(e.Element,e.FX,{translate:function(u,b){return this.transform({x:u,y:b})},matrix:function(u){return this.attr("transform",new e.Matrix(arguments.length==6?[].slice.call(arguments):u))},opacity:function(u){return this.attr("opacity",u)},dx:function(u){return this.x(new e.Number(u).plus(this instanceof e.FX?0:this.x()),!0)},dy:function(u){return this.y(new e.Number(u).plus(this instanceof e.FX?0:this.y()),!0)}}),e.extend(e.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(u){return this.node.getPointAtLength(u)}}),e.Set=e.invent({create:function(u){Array.isArray(u)?this.members=u:this.clear()},extend:{add:function(){for(var u=[].slice.call(arguments),b=0,k=u.length;b-1&&this.members.splice(b,1),this},each:function(u){for(var b=0,k=this.members.length;b=0},index:function(u){return this.members.indexOf(u)},get:function(u){return this.members[u]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(u){return new e.Set(u)}}}),e.FX.Set=e.invent({create:function(u){this.set=u}}),e.Set.inherit=function(){var u=[];for(var b in e.Shape.prototype)typeof e.Shape.prototype[b]=="function"&&typeof e.Set.prototype[b]!="function"&&u.push(b);for(var b in u.forEach(function(L){e.Set.prototype[L]=function(){for(var T=0,O=this.members.length;T=0;u--)delete this.memory()[arguments[u]];return this},memory:function(){return this._memory||(this._memory={})}}),e.get=function(u){var b=t.getElementById(function(k){var L=(k||"").toString().match(e.regex.reference);if(L)return L[1]}(u)||u);return e.adopt(b)},e.select=function(u,b){return new e.Set(e.utils.map((b||t).querySelectorAll(u),function(k){return e.adopt(k)}))},e.extend(e.Parent,{select:function(u){return e.select(u,this.node)}});var E="abcdef".split("");if(typeof _.CustomEvent!="function"){var M=function(u,b){b=b||{bubbles:!1,cancelable:!1,detail:void 0};var k=t.createEvent("CustomEvent");return k.initCustomEvent(u,b.bubbles,b.cancelable,b.detail),k};M.prototype=_.Event.prototype,e.CustomEvent=M}else e.CustomEvent=_.CustomEvent;return e},m(r)==="object"?a.exports=Ii.document?qa(Ii,Ii.document):function(_){return qa(_,_.document)}:Ii.SVG=qa(Ii,Ii.document),(function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(o,l){return this.add(o,l),!o.attr("in")&&this.autoSetIn&&o.attr("in",this.source),o.attr("result")||o.attr("result",o),o},blend:function(o,l,h){return this.put(new SVG.BlendEffect(o,l,h))},colorMatrix:function(o,l){return this.put(new SVG.ColorMatrixEffect(o,l))},convolveMatrix:function(o){return this.put(new SVG.ConvolveMatrixEffect(o))},componentTransfer:function(o){return this.put(new SVG.ComponentTransferEffect(o))},composite:function(o,l,h){return this.put(new SVG.CompositeEffect(o,l,h))},flood:function(o,l){return this.put(new SVG.FloodEffect(o,l))},offset:function(o,l){return this.put(new SVG.OffsetEffect(o,l))},image:function(o){return this.put(new SVG.ImageEffect(o))},merge:function(){var o=[void 0];for(var l in arguments)o.push(arguments[l]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,o)))},gaussianBlur:function(o,l){return this.put(new SVG.GaussianBlurEffect(o,l))},morphology:function(o,l){return this.put(new SVG.MorphologyEffect(o,l))},diffuseLighting:function(o,l,h){return this.put(new SVG.DiffuseLightingEffect(o,l,h))},displacementMap:function(o,l,h,f,g){return this.put(new SVG.DisplacementMapEffect(o,l,h,f,g))},specularLighting:function(o,l,h,f){return this.put(new SVG.SpecularLightingEffect(o,l,h,f))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(o,l,h,f,g){return this.put(new SVG.TurbulenceEffect(o,l,h,f,g))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(o){var l=this.put(new SVG.Filter);return typeof o=="function"&&o.call(l,l),l}}),SVG.extend(SVG.Container,{filter:function(o){return this.defs().filter(o)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(o){return this.filterer=o instanceof SVG.Element?o:this.doc().filter(o),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(o){return this.filterer&&o===!0&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(o){return o==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",o)},result:function(o){return o==null?this.attr("result"):this.attr("result",o)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(o){return o==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",o)},result:function(o){return o==null?this.attr("result"):this.attr("result",o)},toString:function(){return this.result()}}});var _={blend:function(o,l){return this.parent()&&this.parent().blend(this,o,l)},colorMatrix:function(o,l){return this.parent()&&this.parent().colorMatrix(o,l).in(this)},convolveMatrix:function(o){return this.parent()&&this.parent().convolveMatrix(o).in(this)},componentTransfer:function(o){return this.parent()&&this.parent().componentTransfer(o).in(this)},composite:function(o,l){return this.parent()&&this.parent().composite(this,o,l)},flood:function(o,l){return this.parent()&&this.parent().flood(o,l)},offset:function(o,l){return this.parent()&&this.parent().offset(o,l).in(this)},image:function(o){return this.parent()&&this.parent().image(o)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(o,l){return this.parent()&&this.parent().gaussianBlur(o,l).in(this)},morphology:function(o,l){return this.parent()&&this.parent().morphology(o,l).in(this)},diffuseLighting:function(o,l,h){return this.parent()&&this.parent().diffuseLighting(o,l,h).in(this)},displacementMap:function(o,l,h,f){return this.parent()&&this.parent().displacementMap(this,o,l,h,f)},specularLighting:function(o,l,h,f){return this.parent()&&this.parent().specularLighting(o,l,h,f).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(o,l,h,f,g){return this.parent()&&this.parent().turbulence(o,l,h,f,g).in(this)}};SVG.extend(SVG.Effect,_),SVG.extend(SVG.ParentEffect,_),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(o){this.attr("in",o)}}});var t={blend:function(o,l,h){this.attr({in:o,in2:l,mode:h||"normal"})},colorMatrix:function(o,l){o=="matrix"&&(l=s(l)),this.attr({type:o,values:l===void 0?null:l})},convolveMatrix:function(o){o=s(o),this.attr({order:Math.sqrt(o.split(" ").length),kernelMatrix:o})},composite:function(o,l,h){this.attr({in:o,in2:l,operator:h})},flood:function(o,l){this.attr("flood-color",o),l!=null&&this.attr("flood-opacity",l)},offset:function(o,l){this.attr({dx:o,dy:l})},image:function(o){this.attr("href",o,SVG.xlink)},displacementMap:function(o,l,h,f,g){this.attr({in:o,in2:l,scale:h,xChannelSelector:f,yChannelSelector:g})},gaussianBlur:function(o,l){o!=null||l!=null?this.attr("stdDeviation",function(h){if(!Array.isArray(h))return h;for(var f=0,g=h.length,p=[];f1&&(Et*=g=Math.sqrt(g),jt*=g),p=new SVG.Matrix().rotate(Jt).scale(1/Et,1/jt).rotate(-Jt),fe=fe.transform(p),xe=xe.transform(p),x=[xe.x-fe.x,xe.y-fe.y],w=x[0]*x[0]+x[1]*x[1],v=Math.sqrt(w),x[0]/=v,x[1]/=v,A=w<4?Math.sqrt(1-w/4):0,Ye===Ae&&(A*=-1),C=new SVG.Point((xe.x+fe.x)/2+A*-x[1],(xe.y+fe.y)/2+A*x[0]),E=new SVG.Point(fe.x-C.x,fe.y-C.y),M=new SVG.Point(xe.x-C.x,xe.y-C.y),u=Math.acos(E.x/Math.sqrt(E.x*E.x+E.y*E.y)),E.y<0&&(u*=-1),b=Math.acos(M.x/Math.sqrt(M.x*M.x+M.y*M.y)),M.y<0&&(b*=-1),Ae&&u>b&&(b+=2*Math.PI),!Ae&&uo.maxX-e.width&&(l=(s=o.maxX-e.width)-this.startPoints.box.x),o.minY!=null&&no.maxY-e.height&&(h=(n=o.maxY-e.height)-this.startPoints.box.y),o.snapToGrid!=null&&(s-=s%o.snapToGrid,n-=n%o.snapToGrid,l-=l%o.snapToGrid,h-=h%o.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:l,y:h},!0):this.el.move(s,n));return i},_.prototype.end=function(t){var e=this.drag(t);this.el.fire("dragend",{event:t,p:e,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(t,e){typeof t!="function"&&typeof t!="object"||(e=t,t=!0);var i=this.remember("_draggable")||new _(this);return(t=t===void 0||t)?i.init(e||{},t):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}).call(void 0),function(){function _(t){this.el=t,t.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(e,i,s){var n=typeof e!="string"?e:i[e];return s?n/2:n},this.pointCoords=function(e,i){var s=this.pointsList[e];return{x:this.pointCoord(s[0],i,e==="t"||e==="b"),y:this.pointCoord(s[1],i,e==="r"||e==="l")}}}_.prototype.init=function(t,e){var i=this.el.bbox();this.options={};var s=this.el.selectize.defaults.points;for(var n in this.el.selectize.defaults)this.options[n]=this.el.selectize.defaults[n],e[n]!==void 0&&(this.options[n]=e[n]);var o=["points","pointsExclude"];for(var n in o){var l=this.options[o[n]];typeof l=="string"?l=l.length>0?l.split(/\s*,\s*/i):[]:typeof l=="boolean"&&o[n]==="points"&&(l=l?s:[]),this.options[o[n]]=l}this.options.points=[s,this.options.points].reduce(function(h,f){return h.filter(function(g){return f.indexOf(g)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(h,f){return h.filter(function(g){return f.indexOf(g)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&["line","polyline","polygon"].indexOf(this.el.type)!==-1?this.selectPoints(t):this.selectRect(t),this.observe(),this.cleanup()},_.prototype.selectPoints=function(t){return this.pointSelection.isSelected=t,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},_.prototype.getPointArray=function(){var t=this.el.bbox();return this.el.array().valueOf().map(function(e){return[e[0]-t.x,e[1]-t.y]})},_.prototype.drawPoints=function(){for(var t=this,e=this.getPointArray(),i=0,s=e.length;i0&&this.parameters.box.height-l[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+l[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-l[0]);l=this.checkAspectRatio(l),this.el.move(this.parameters.box.x+l[0],this.parameters.box.y+l[1]).size(this.parameters.box.width-l[0],this.parameters.box.height-l[1])}};break;case"rt":this.calc=function(n,o){var l=this.snapToGrid(n,o,2);if(this.parameters.box.width+l[0]>0&&this.parameters.box.height-l[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-l[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+l[0]);l=this.checkAspectRatio(l,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+l[1]).size(this.parameters.box.width+l[0],this.parameters.box.height-l[1])}};break;case"rb":this.calc=function(n,o){var l=this.snapToGrid(n,o,0);if(this.parameters.box.width+l[0]>0&&this.parameters.box.height+l[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-l[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+l[0]);l=this.checkAspectRatio(l),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+l[0],this.parameters.box.height+l[1])}};break;case"lb":this.calc=function(n,o){var l=this.snapToGrid(n,o,1);if(this.parameters.box.width-l[0]>0&&this.parameters.box.height+l[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+l[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-l[0]);l=this.checkAspectRatio(l,!0),this.el.move(this.parameters.box.x+l[0],this.parameters.box.y).size(this.parameters.box.width-l[0],this.parameters.box.height+l[1])}};break;case"t":this.calc=function(n,o){var l=this.snapToGrid(n,o,2);if(this.parameters.box.height-l[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y+l[1]).height(this.parameters.box.height-l[1])}};break;case"r":this.calc=function(n,o){var l=this.snapToGrid(n,o,0);if(this.parameters.box.width+l[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+l[0])}};break;case"b":this.calc=function(n,o){var l=this.snapToGrid(n,o,0);if(this.parameters.box.height+l[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+l[1])}};break;case"l":this.calc=function(n,o){var l=this.snapToGrid(n,o,1);if(this.parameters.box.width-l[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x+l[0],this.parameters.box.y).width(this.parameters.box.width-l[0])}};break;case"rot":this.calc=function(n,o){var l=n+this.parameters.p.x,h=o+this.parameters.p.y,f=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),g=Math.atan2(h-this.parameters.box.y-this.parameters.box.height/2,l-this.parameters.box.x-this.parameters.box.width/2),p=this.parameters.rotation+180*(g-f)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(p-p%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(n,o){var l=this.snapToGrid(n,o,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),h=this.el.array().valueOf();h[this.parameters.i][0]=this.parameters.pointCoords[0]+l[0],h[this.parameters.i][1]=this.parameters.pointCoords[1]+l[1],this.el.plot(h)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:t}),SVG.on(window,"touchmove.resize",function(n){e.update(n||window.event)}),SVG.on(window,"touchend.resize",function(){e.done()}),SVG.on(window,"mousemove.resize",function(n){e.update(n||window.event)}),SVG.on(window,"mouseup.resize",function(){e.done()})},_.prototype.update=function(t){if(t){var e=this._extractPosition(t),i=this.transformPoint(e.x,e.y),s=i.x-this.parameters.p.x,n=i.y-this.parameters.p.y;this.lastUpdateCall=[s,n],this.calc(s,n),this.el.fire("resizing",{dx:s,dy:n,event:t})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},_.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},_.prototype.snapToGrid=function(t,e,i,s){var n;return s!==void 0?n=[(i+t)%this.options.snapToGrid,(s+e)%this.options.snapToGrid]:(i=i??3,n=[(this.parameters.box.x+t+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+e+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),t<0&&(n[0]-=this.options.snapToGrid),e<0&&(n[1]-=this.options.snapToGrid),t-=Math.abs(n[0])l.maxX&&(t=l.maxX-n),l.minY!==void 0&&o+el.maxY&&(e=l.maxY-o),[t,e]},_.prototype.checkAspectRatio=function(t,e){if(!this.options.saveAspectRatio)return t;var i=t.slice(),s=this.parameters.box.width/this.parameters.box.height,n=this.parameters.box.width+t[0],o=this.parameters.box.height-t[1],l=n/o;return ls&&(i[0]=this.parameters.box.width-o*s,e&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(t){return(this.remember("_resizeHandler")||new _(this)).init(t||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),window.Apex===void 0&&(window.Apex={});var Qn=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new Q(this.ctx),this.ctx.axes=new K(this.ctx),this.ctx.core=new Uh(this.ctx.el,this.ctx),this.ctx.config=new Ee({}),this.ctx.data=new _i(this.ctx),this.ctx.grid=new la(this.ctx),this.ctx.graphics=new V(this.ctx),this.ctx.coreUtils=new et(this.ctx),this.ctx.crosshairs=new st(this.ctx),this.ctx.events=new $(this.ctx),this.ctx.exports=new Ei(this.ctx),this.ctx.localization=new Z(this.ctx),this.ctx.options=new It,this.ctx.responsive=new lt(this.ctx),this.ctx.series=new se(this.ctx),this.ctx.theme=new rt(this.ctx),this.ctx.formatters=new _e(this.ctx),this.ctx.titleSubtitle=new nt(this.ctx),this.ctx.legend=new Gt(this.ctx),this.ctx.toolbar=new Yt(this.ctx),this.ctx.tooltip=new Te(this.ctx),this.ctx.dimensions=new kt(this.ctx),this.ctx.updateHelpers=new qh(this.ctx),this.ctx.zoomPanSelection=new oe(this.ctx),this.ctx.w.globals.tooltip=new Te(this.ctx)}}]),_}(),to=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"clear",value:function(t){var e=t.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:e})}},{key:"killSVG",value:function(t){t.each(function(e,i){this.removeClass("*"),this.off(),this.stop()},!0),t.ungroup(),t.clear()}},{key:"clearDomElements",value:function(t){var e=this,i=t.isUpdating,s=this.w.globals.dom.Paper.node;s.parentNode&&s.parentNode.parentNode&&!i&&(s.parentNode.parentNode.style.minHeight="unset");var n=this.w.globals.dom.baseEl;n&&this.ctx.eventList.forEach(function(l){n.removeEventListener(l,e.ctx.events.documentEvent)});var o=this.w.globals.dom;if(this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(o.Paper),o.Paper.remove(),o.elWrap=null,o.elGraphical=null,o.elLegendWrap=null,o.elLegendForeign=null,o.baseEl=null,o.elGridRect=null,o.elGridRectMask=null,o.elGridRectMarkerMask=null,o.elForecastMask=null,o.elNonForecastMask=null,o.elDefs=null}}]),_}(),rr=new WeakMap,Zh=function(){function _(t,e){y(this,_),this.opts=e,this.ctx=this,this.w=new Je(e).init(),this.el=t,this.w.globals.cuid=z.randomId(),this.w.globals.chartID=this.w.config.chart.id?z.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Qn(this).initModules(),this.create=z.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return P(_,[{key:"render",value:function(){var t=this;return new Promise(function(e,i){if(t.el!==null){Apex._chartInstances===void 0&&(Apex._chartInstances=[]),t.w.config.chart.id&&Apex._chartInstances.push({id:t.w.globals.chartID,group:t.w.config.chart.group,chart:t}),t.setLocale(t.w.config.chart.defaultLocale);var s=t.w.config.chart.events.beforeMount;if(typeof s=="function"&&s(t,t.w),t.events.fireEvent("beforeMount",[t,t.w]),window.addEventListener("resize",t.windowResizeHandler),function(x,v){var w=!1;if(x.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var A=x.getBoundingClientRect();x.style.display!=="none"&&A.width!==0||(w=!0)}var C=new ResizeObserver(function(E){w&&v.call(x,E),w=!0});x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(x.children).forEach(function(E){return C.observe(E)}):C.observe(x),rr.set(v,C)}(t.el.parentNode,t.parentResizeHandler),!t.css){var n=t.el.getRootNode&&t.el.getRootNode(),o=z.is("ShadowRoot",n),l=t.el.ownerDocument,h=l.getElementById("apexcharts-css");if(o||!h){var f;t.css=document.createElement("style"),t.css.id="apexcharts-css",t.css.textContent=`@keyframes opaque { 0% { opacity: 0 } to { opacity: 1 } } @keyframes resizeanim { 0%,to { opacity: 0 } } .apexcharts-canvas { position: relative; user-select: none } .apexcharts-canvas ::-webkit-scrollbar { -webkit-appearance: none; width: 6px } .apexcharts-canvas ::-webkit-scrollbar-thumb { border-radius: 4px; background-color: rgba(0,0,0,.5); box-shadow: 0 0 1px rgba(255,255,255,.5); -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5) } .apexcharts-inner { position: relative } .apexcharts-text tspan { font-family: inherit } .legend-mouseover-inactive { transition: .15s ease all; opacity: .2 } .apexcharts-legend-text { padding-left: 15px; margin-left: -15px; } .apexcharts-series-collapsed { opacity: 0 } .apexcharts-tooltip { border-radius: 5px; box-shadow: 2px 2px 6px -4px #999; cursor: default; font-size: 14px; left: 62px; opacity: 0; pointer-events: none; position: absolute; top: 20px; display: flex; flex-direction: column; overflow: hidden; white-space: nowrap; z-index: 12; transition: .15s ease all } .apexcharts-tooltip.apexcharts-active { opacity: 1; transition: .15s ease all } .apexcharts-tooltip.apexcharts-theme-light { border: 1px solid #e3e3e3; background: rgba(255,255,255,.96) } .apexcharts-tooltip.apexcharts-theme-dark { color: #fff; background: rgba(30,30,30,.8) } .apexcharts-tooltip * { font-family: inherit } .apexcharts-tooltip-title { padding: 6px; font-size: 15px; margin-bottom: 4px } .apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title { background: #eceff1; border-bottom: 1px solid #ddd } .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title { background: rgba(0,0,0,.7); border-bottom: 1px solid #333 } .apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value { display: inline-block; margin-left: 5px; font-weight: 600 } .apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty { display: none } .apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value { padding: 6px 0 5px } .apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value { display: flex } .apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) { margin-top: -6px } .apexcharts-tooltip-marker { width: 12px; height: 12px; position: relative; top: 0; margin-right: 10px; border-radius: 50% } .apexcharts-tooltip-series-group { padding: 0 10px; display: none; text-align: left; justify-content: left; align-items: center } .apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker { opacity: 1 } .apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child { padding-bottom: 4px } .apexcharts-tooltip-series-group-hidden { opacity: 0; height: 0; line-height: 0; padding: 0!important } .apexcharts-tooltip-y-group { padding: 6px 0 5px } .apexcharts-custom-tooltip,.apexcharts-tooltip-box { padding: 4px 8px } .apexcharts-tooltip-boxPlot { display: flex; flex-direction: column-reverse } .apexcharts-tooltip-box>div { margin: 4px 0 } .apexcharts-tooltip-box span.value { font-weight: 700 } .apexcharts-tooltip-rangebar { padding: 5px 8px } .apexcharts-tooltip-rangebar .category { font-weight: 600; color: #777 } .apexcharts-tooltip-rangebar .series-name { font-weight: 700; display: block; margin-bottom: 5px } .apexcharts-xaxistooltip,.apexcharts-yaxistooltip { opacity: 0; pointer-events: none; color: #373d3f; font-size: 13px; text-align: center; border-radius: 2px; position: absolute; z-index: 10; background: #eceff1; border: 1px solid #90a4ae } .apexcharts-xaxistooltip { padding: 9px 10px; transition: .15s ease all } .apexcharts-xaxistooltip.apexcharts-theme-dark { background: rgba(0,0,0,.7); border: 1px solid rgba(0,0,0,.5); color: #fff } .apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before { left: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none } .apexcharts-xaxistooltip:after { border-color: transparent; border-width: 6px; margin-left: -6px } .apexcharts-xaxistooltip:before { border-color: transparent; border-width: 7px; margin-left: -7px } .apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before { bottom: 100% } .apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before { top: 100% } .apexcharts-xaxistooltip-bottom:after { border-bottom-color: #eceff1 } .apexcharts-xaxistooltip-bottom:before { border-bottom-color: #90a4ae } .apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before { border-bottom-color: rgba(0,0,0,.5) } .apexcharts-xaxistooltip-top:after { border-top-color: #eceff1 } .apexcharts-xaxistooltip-top:before { border-top-color: #90a4ae } .apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before { border-top-color: rgba(0,0,0,.5) } .apexcharts-xaxistooltip.apexcharts-active { opacity: 1; transition: .15s ease all } .apexcharts-yaxistooltip { padding: 4px 10px } .apexcharts-yaxistooltip.apexcharts-theme-dark { background: rgba(0,0,0,.7); border: 1px solid rgba(0,0,0,.5); color: #fff } .apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before { top: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none } .apexcharts-yaxistooltip:after { border-color: transparent; border-width: 6px; margin-top: -6px } .apexcharts-yaxistooltip:before { border-color: transparent; border-width: 7px; margin-top: -7px } .apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before { left: 100% } .apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before { right: 100% } .apexcharts-yaxistooltip-left:after { border-left-color: #eceff1 } .apexcharts-yaxistooltip-left:before { border-left-color: #90a4ae } .apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before { border-left-color: rgba(0,0,0,.5) } .apexcharts-yaxistooltip-right:after { border-right-color: #eceff1 } .apexcharts-yaxistooltip-right:before { border-right-color: #90a4ae } .apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before { border-right-color: rgba(0,0,0,.5) } .apexcharts-yaxistooltip.apexcharts-active { opacity: 1 } .apexcharts-yaxistooltip-hidden { display: none } .apexcharts-xcrosshairs,.apexcharts-ycrosshairs { pointer-events: none; opacity: 0; transition: .15s ease all } .apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active { opacity: 1; transition: .15s ease all } .apexcharts-ycrosshairs-hidden { opacity: 0 } .apexcharts-selection-rect { cursor: move } .svg_select_boundingRect,.svg_select_points_rot { pointer-events: none; opacity: 0; visibility: hidden } .apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot { opacity: 0; visibility: hidden } .apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r { cursor: ew-resize; opacity: 1; visibility: visible } .svg_select_points { fill: #efefef; stroke: #333; rx: 2 } .apexcharts-svg.apexcharts-zoomable.hovering-zoom { cursor: crosshair } .apexcharts-svg.apexcharts-zoomable.hovering-pan { cursor: move } .apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon { cursor: pointer; width: 20px; height: 20px; line-height: 24px; color: #6e8192; text-align: center } .apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg { fill: #6e8192 } .apexcharts-selection-icon svg { fill: #444; transform: scale(.76) } .apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg { fill: #f3f4f5 } .apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg { fill: #008ffb } .apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg { fill: #333 } .apexcharts-menu-icon,.apexcharts-selection-icon { position: relative } .apexcharts-reset-icon { margin-left: 5px } .apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon { transform: scale(.85) } .apexcharts-zoomin-icon,.apexcharts-zoomout-icon { transform: scale(.7) } .apexcharts-zoomout-icon { margin-right: 3px } .apexcharts-pan-icon { transform: scale(.62); position: relative; left: 1px; top: 0 } .apexcharts-pan-icon svg { fill: #fff; stroke: #6e8192; stroke-width: 2 } .apexcharts-pan-icon.apexcharts-selected svg { stroke: #008ffb } .apexcharts-pan-icon:not(.apexcharts-selected):hover svg { stroke: #333 } .apexcharts-toolbar { position: absolute; z-index: 11; max-width: 176px; text-align: right; border-radius: 3px; padding: 0 6px 2px; display: flex; justify-content: space-between; align-items: center } .apexcharts-menu { background: #fff; position: absolute; top: 100%; border: 1px solid #ddd; border-radius: 3px; padding: 3px; right: 10px; opacity: 0; min-width: 110px; transition: .15s ease all; pointer-events: none } .apexcharts-menu.apexcharts-menu-open { opacity: 1; pointer-events: all; transition: .15s ease all } .apexcharts-menu-item { padding: 6px 7px; font-size: 12px; cursor: pointer } .apexcharts-theme-light .apexcharts-menu-item:hover { background: #eee } .apexcharts-theme-dark .apexcharts-menu { background: rgba(0,0,0,.7); color: #fff } @media screen and (min-width:768px) { .apexcharts-canvas:hover .apexcharts-toolbar { opacity: 1 } } .apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points { opacity: 0 } .apexcharts-hidden-element-shown { opacity: 1; transition: 0.25s ease all; } .apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label { cursor: default; pointer-events: none } .apexcharts-pie-label-delay { opacity: 0; animation-name: opaque; animation-duration: .3s; animation-fill-mode: forwards; animation-timing-function: ease } .apexcharts-radialbar-label { cursor: pointer; } .apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect { pointer-events: none } .apexcharts-marker { transition: .15s ease all } .resize-triggers { animation: 1ms resizeanim; visibility: hidden; opacity: 0; height: 100%; width: 100%; overflow: hidden } .contract-trigger:before,.resize-triggers,.resize-triggers>div { content: " "; display: block; position: absolute; top: 0; left: 0 } .resize-triggers>div { height: 100%; width: 100%; background: #eee; overflow: auto } .contract-trigger:before { overflow: hidden; width: 200%; height: 200% } .apexcharts-bar-goals-markers{ pointer-events: none } .apexcharts-bar-shadows{ pointer-events: none } .apexcharts-rangebar-goals-markers{ pointer-events: none }`;var g=((f=t.opts.chart)===null||f===void 0?void 0:f.nonce)||t.w.config.chart.nonce;g&&t.css.setAttribute("nonce",g),o?n.prepend(t.css):l.head.appendChild(t.css)}}var p=t.create(t.w.config.series,{});if(!p)return e(t);t.mount(p).then(function(){typeof t.w.config.chart.events.mounted=="function"&&t.w.config.chart.events.mounted(t,t.w),t.events.fireEvent("mounted",[t,t.w]),e(p)}).catch(function(x){i(x)})}else i(new Error("Element not found"))})}},{key:"create",value:function(t,e){var i=this.w;new Qn(this).initModules();var s=this.w.globals;if(s.noData=!1,s.animationEnded=!1,this.responsive.checkResponsiveConfig(e),i.config.xaxis.convertedCatToNumeric&&new Rt(i.config).convertCatToNumericXaxis(i.config,this.ctx),this.el===null||(this.core.setupElements(),i.config.chart.type==="treemap"&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),s.svgWidth===0))return s.animationEnded=!0,null;var n=et.checkComboSeries(t);s.comboCharts=n.comboCharts,s.comboBarCount=n.comboBarCount;var o=t.every(function(g){return g.data&&g.data.length===0});(t.length===0||o)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(t),this.theme.init(),new hi(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),s.noData&&s.collapsedSeries.length!==s.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),s.axisCharts&&(this.core.coreCalculations(),i.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new et(this).getLargestMarkerSize(),this.dimensions.plotCoords();var l=this.core.xySettings();this.grid.createGridMask();var h=this.core.plotChartType(t,l),f=new di(this);return f.bringForward(),i.config.dataLabels.background.enabled&&f.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:h,xyRatios:l,dimensions:{plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}}}}},{key:"mount",value:function(){var t=this,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this,s=i.w;return new Promise(function(n,o){if(i.el===null)return o(new Error("Not enough data to display or target element not found"));(e===null||s.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new la(i);var l,h,f=i.grid.drawGrid();if(i.annotations=new pe(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),s.config.grid.position==="back"&&(f&&s.globals.dom.elGraphical.add(f.el),f!=null&&(l=f.elGridBorders)!==null&&l!==void 0&&l.node&&s.globals.dom.elGraphical.add(f.elGridBorders)),Array.isArray(e.elGraph))for(var g=0;g0&&s.globals.memory.methodsToExec.forEach(function(w){w.method(w.params,!1,w.context)}),s.globals.axisCharts||s.globals.noData||i.core.resizeNonAxisCharts(),n(i)})}},{key:"destroy",value:function(){var t,e;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,t=this.parentResizeHandler,(e=rr.get(t))&&(e.disconnect(),rr.delete(t));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach(function(s,n){s.id===z.escapeString(i)&&Apex._chartInstances.splice(n,1)}),new to(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(t){var e=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],s=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],n=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],o=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],l=this.w;return l.globals.selection=void 0,t.series&&(this.series.resetSeries(!1,!0,!1),t.series.length&&t.series[0].data&&(t.series=t.series.map(function(h,f){return e.updateHelpers._extendSeries(h,f)})),this.updateHelpers.revertDefaultAxisMinMax()),t.xaxis&&(t=this.updateHelpers.forceXAxisUpdate(t)),t.yaxis&&(t=this.updateHelpers.forceYAxisUpdate(t)),l.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this.updateHelpers._updateOptions(t,i,s,n,o)}},{key:"updateSeries",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(t,e,i)}},{key:"appendSeries",value:function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],s=this.w.config.series.slice();return s.push(t),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(s,e,i)}},{key:"appendData",value:function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var s=i.w.config.series.slice(),n=0;n0&&arguments[0]!==void 0)||arguments[0],e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(t,e)}},{key:"addEventListener",value:function(t,e){this.events.addEventListener(t,e)}},{key:"removeEventListener",value:function(t,e){this.events.removeEventListener(t,e)}},{key:"addXaxisAnnotation",value:function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,s=this;i&&(s=i),s.annotations.addXaxisAnnotationExternal(t,e,s)}},{key:"addYaxisAnnotation",value:function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,s=this;i&&(s=i),s.annotations.addYaxisAnnotationExternal(t,e,s)}},{key:"addPointAnnotation",value:function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,s=this;i&&(s=i),s.annotations.addPointAnnotationExternal(t,e,s)}},{key:"clearAnnotations",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,e=this;t&&(e=t),e.annotations.clearAnnotations(e)}},{key:"removeAnnotation",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=this;e&&(i=e),i.annotations.removeAnnotation(i,t)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(t,e){return this.coreUtils.getSeriesTotalsXRange(t,e)}},{key:"getHighestValueInSeries",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new H(this.ctx).getMinYMaxY(t).highestY}},{key:"getLowestValueInSeries",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new H(this.ctx).getMinYMaxY(t).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(t,e){return this.updateHelpers.toggleDataPointSelection(t,e)}},{key:"zoomX",value:function(t,e){this.ctx.toolbar.zoomUpdateOptions(t,e)}},{key:"setLocale",value:function(t){this.localization.setCurrentLocaleValues(t)}},{key:"dataURI",value:function(t){return new Ei(this.ctx).dataURI(t)}},{key:"exportToCSV",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new Ei(this.ctx).exportToCSV(t)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var t=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){t.w.globals.resized=!0,t.w.globals.dataChanged=!1,t.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var t=this.w.config.chart.redrawOnWindowResize;typeof t=="function"&&(t=t()),t&&this._windowResize()}}],[{key:"getChartByID",value:function(t){var e=z.escapeString(t);if(Apex._chartInstances){var i=Apex._chartInstances.filter(function(s){return s.id===e})[0];return i&&i.chart}}},{key:"initOnLoad",value:function(){for(var t=document.querySelectorAll("[data-apexcharts]"),e=0;e2?n-2:0),l=2;lbt&&typeof bt=="object"&&!Array.isArray(bt)&&bt!=null,y=(bt,It)=>{typeof Object.assign!="function"&&function(){Object.assign=function(Ot){if(Ot==null)throw new TypeError("Cannot convert undefined or null to object");let _e=Object(Ot);for(let ee=1;ee{m(It[Ot])?Ot in bt?pe[Ot]=y(bt[Ot],It[Ot]):Object.assign(pe,{[Ot]:It[Ot]}):Object.assign(pe,{[Ot]:It[Ot]})}),pe},S=async()=>{if(await tc(),d.value)return;const bt={chart:{type:a.type||a.options.chart.type||"line",height:a.height,width:a.width,events:{}},series:a.series};No.forEach(pe=>{let Ot=(..._e)=>r(pe,..._e);bt.chart.events[pe]=Ot});const It=y(a.options,bt);return d.value=new Fo(c.value,It),d.value.render()},P=()=>(I(),S()),I=()=>{d.value.destroy()},R=(bt,It)=>d.value.updateSeries(bt,It),F=(bt,It,pe,Ot)=>d.value.updateOptions(bt,It,pe,Ot),Y=bt=>d.value.toggleSeries(bt),B=bt=>{d.value.showSeries(bt)},q=bt=>{d.value.hideSeries(bt)},pt=(bt,It)=>d.value.appendSeries(bt,It),ht=()=>{d.value.resetSeries()},Lt=(bt,It)=>{d.value.toggleDataPointSelection(bt,It)},at=bt=>d.value.appendData(bt),z=(bt,It)=>d.value.zoomX(bt,It),Q=bt=>d.value.dataURI(bt),tt=bt=>d.value.setLocale(bt),V=(bt,It)=>{d.value.addXaxisAnnotation(bt,It)},et=(bt,It)=>{d.value.addYaxisAnnotation(bt,It)},St=(bt,It)=>{d.value.addPointAnnotation(bt,It)},Wt=(bt,It)=>{d.value.removeAnnotation(bt,It)},ie=()=>{d.value.clearAnnotations()};lc(()=>{window.ApexCharts=Fo}),ra(()=>{c.value=Tc().proxy.$el,S()}),kn(()=>{d.value&&I()});const te=Yd(a);return Ce(te.options,()=>{!d.value&&a.options?S():d.value.updateOptions(a.options)}),Ce(te.series,()=>{!d.value&&a.series?S():d.value.updateSeries(a.series)},{deep:!0}),Ce(te.type,()=>{P()}),Ce(te.width,()=>{P()}),Ce(te.height,()=>{P()}),{chart:d,init:S,refresh:P,destroy:I,updateOptions:F,updateSeries:R,toggleSeries:Y,showSeries:B,hideSeries:q,resetSeries:ht,zoomX:z,toggleDataPointSelection:Lt,appendData:at,appendSeries:pt,addXaxisAnnotation:V,addYaxisAnnotation:et,addPointAnnotation:St,removeAnnotation:Wt,clearAnnotations:ie,setLocale:tt,dataURI:Q}},render(){return Oc("div",{class:"vue-apexcharts"})}}),wf=a=>{a.component(Rs.name,Rs)};Rs.install=wf;function Xo(a,r){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);r&&(d=d.filter(function(m){return Object.getOwnPropertyDescriptor(a,m).enumerable})),c.push.apply(c,d)}return c}function ut(a){for(var r=1;ra.length)&&(r=a.length);for(var c=0,d=new Array(r);c-1;m--){var y=c[m],S=(y.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(S)>-1&&(d=y)}return Kt.head.insertBefore(r,d),a}}var $f="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Fa(){for(var a=12,r="";a-- >0;)r+=$f[Math.random()*62|0];return r}function na(a){for(var r=[],c=(a||[]).length>>>0;c--;)r[c]=a[c];return r}function Mn(a){return a.classList?na(a.classList):(a.getAttribute("class")||"").split(" ").filter(function(r){return r})}function jc(a){return"".concat(a).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Uf(a){return Object.keys(a||{}).reduce(function(r,c){return r+"".concat(c,'="').concat(jc(a[c]),'" ')},"").trim()}function Zs(a){return Object.keys(a||{}).reduce(function(r,c){return r+"".concat(c,": ").concat(a[c].trim(),";")},"")}function On(a){return a.size!==$e.size||a.x!==$e.x||a.y!==$e.y||a.rotate!==$e.rotate||a.flipX||a.flipY}function qf(a){var r=a.transform,c=a.containerWidth,d=a.iconWidth,m={transform:"translate(".concat(c/2," 256)")},y="translate(".concat(r.x*32,", ").concat(r.y*32,") "),S="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),P="rotate(".concat(r.rotate," 0 0)"),I={transform:"".concat(y," ").concat(S," ").concat(P)},R={transform:"translate(".concat(d/2*-1," -256)")};return{outer:m,inner:I,path:R}}function Zf(a){var r=a.transform,c=a.width,d=c===void 0?Dr:c,m=a.height,y=m===void 0?Dr:m,S=a.startCentered,P=S===void 0?!1:S,I="";return P&&Yc?I+="translate(".concat(r.x/gi-d/2,"em, ").concat(r.y/gi-y/2,"em) "):P?I+="translate(calc(-50% + ".concat(r.x/gi,"em), calc(-50% + ").concat(r.y/gi,"em)) "):I+="translate(".concat(r.x/gi,"em, ").concat(r.y/gi,"em) "),I+="scale(".concat(r.size/gi*(r.flipX?-1:1),", ").concat(r.size/gi*(r.flipY?-1:1),") "),I+="rotate(".concat(r.rotate,"deg) "),I}var Kf=`:root, :host { --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp"; --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; } svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { overflow: visible; box-sizing: content-box; } .svg-inline--fa { display: var(--fa-display, inline-block); height: 1em; overflow: visible; vertical-align: -0.125em; } .svg-inline--fa.fa-2xs { vertical-align: 0.1em; } .svg-inline--fa.fa-xs { vertical-align: 0em; } .svg-inline--fa.fa-sm { vertical-align: -0.0714285705em; } .svg-inline--fa.fa-lg { vertical-align: -0.2em; } .svg-inline--fa.fa-xl { vertical-align: -0.25em; } .svg-inline--fa.fa-2xl { vertical-align: -0.3125em; } .svg-inline--fa.fa-pull-left { margin-right: var(--fa-pull-margin, 0.3em); width: auto; } .svg-inline--fa.fa-pull-right { margin-left: var(--fa-pull-margin, 0.3em); width: auto; } .svg-inline--fa.fa-li { width: var(--fa-li-width, 2em); top: 0.25em; } .svg-inline--fa.fa-fw { width: var(--fa-fw-width, 1.25em); } .fa-layers svg.svg-inline--fa { bottom: 0; left: 0; margin: auto; position: absolute; right: 0; top: 0; } .fa-layers-counter, .fa-layers-text { display: inline-block; position: absolute; text-align: center; } .fa-layers { display: inline-block; height: 1em; position: relative; text-align: center; vertical-align: -0.125em; width: 1em; } .fa-layers svg.svg-inline--fa { -webkit-transform-origin: center center; transform-origin: center center; } .fa-layers-text { left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); -webkit-transform-origin: center center; transform-origin: center center; } .fa-layers-counter { background-color: var(--fa-counter-background-color, #ff253a); border-radius: var(--fa-counter-border-radius, 1em); box-sizing: border-box; color: var(--fa-inverse, #fff); line-height: var(--fa-counter-line-height, 1); max-width: var(--fa-counter-max-width, 5em); min-width: var(--fa-counter-min-width, 1.5em); overflow: hidden; padding: var(--fa-counter-padding, 0.25em 0.5em); right: var(--fa-right, 0); text-overflow: ellipsis; top: var(--fa-top, 0); -webkit-transform: scale(var(--fa-counter-scale, 0.25)); transform: scale(var(--fa-counter-scale, 0.25)); -webkit-transform-origin: top right; transform-origin: top right; } .fa-layers-bottom-right { bottom: var(--fa-bottom, 0); right: var(--fa-right, 0); top: auto; -webkit-transform: scale(var(--fa-layers-scale, 0.25)); transform: scale(var(--fa-layers-scale, 0.25)); -webkit-transform-origin: bottom right; transform-origin: bottom right; } .fa-layers-bottom-left { bottom: var(--fa-bottom, 0); left: var(--fa-left, 0); right: auto; top: auto; -webkit-transform: scale(var(--fa-layers-scale, 0.25)); transform: scale(var(--fa-layers-scale, 0.25)); -webkit-transform-origin: bottom left; transform-origin: bottom left; } .fa-layers-top-right { top: var(--fa-top, 0); right: var(--fa-right, 0); -webkit-transform: scale(var(--fa-layers-scale, 0.25)); transform: scale(var(--fa-layers-scale, 0.25)); -webkit-transform-origin: top right; transform-origin: top right; } .fa-layers-top-left { left: var(--fa-left, 0); right: auto; top: var(--fa-top, 0); -webkit-transform: scale(var(--fa-layers-scale, 0.25)); transform: scale(var(--fa-layers-scale, 0.25)); -webkit-transform-origin: top left; transform-origin: top left; } .fa-1x { font-size: 1em; } .fa-2x { font-size: 2em; } .fa-3x { font-size: 3em; } .fa-4x { font-size: 4em; } .fa-5x { font-size: 5em; } .fa-6x { font-size: 6em; } .fa-7x { font-size: 7em; } .fa-8x { font-size: 8em; } .fa-9x { font-size: 9em; } .fa-10x { font-size: 10em; } .fa-2xs { font-size: 0.625em; line-height: 0.1em; vertical-align: 0.225em; } .fa-xs { font-size: 0.75em; line-height: 0.0833333337em; vertical-align: 0.125em; } .fa-sm { font-size: 0.875em; line-height: 0.0714285718em; vertical-align: 0.0535714295em; } .fa-lg { font-size: 1.25em; line-height: 0.05em; vertical-align: -0.075em; } .fa-xl { font-size: 1.5em; line-height: 0.0416666682em; vertical-align: -0.125em; } .fa-2xl { font-size: 2em; line-height: 0.03125em; vertical-align: -0.1875em; } .fa-fw { text-align: center; width: 1.25em; } .fa-ul { list-style-type: none; margin-left: var(--fa-li-margin, 2.5em); padding-left: 0; } .fa-ul > li { position: relative; } .fa-li { left: calc(var(--fa-li-width, 2em) * -1); position: absolute; text-align: center; width: var(--fa-li-width, 2em); line-height: inherit; } .fa-border { border-color: var(--fa-border-color, #eee); border-radius: var(--fa-border-radius, 0.1em); border-style: var(--fa-border-style, solid); border-width: var(--fa-border-width, 0.08em); padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); } .fa-pull-left { float: left; margin-right: var(--fa-pull-margin, 0.3em); } .fa-pull-right { float: right; margin-left: var(--fa-pull-margin, 0.3em); } .fa-beat { -webkit-animation-name: fa-beat; animation-name: fa-beat; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); animation-timing-function: var(--fa-animation-timing, ease-in-out); } .fa-bounce { -webkit-animation-name: fa-bounce; animation-name: fa-bounce; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); } .fa-fade { -webkit-animation-name: fa-fade; animation-name: fa-fade; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); } .fa-beat-fade { -webkit-animation-name: fa-beat-fade; animation-name: fa-beat-fade; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); } .fa-flip { -webkit-animation-name: fa-flip; animation-name: fa-flip; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); animation-timing-function: var(--fa-animation-timing, ease-in-out); } .fa-shake { -webkit-animation-name: fa-shake; animation-name: fa-shake; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, linear); animation-timing-function: var(--fa-animation-timing, linear); } .fa-spin { -webkit-animation-name: fa-spin; animation-name: fa-spin; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 2s); animation-duration: var(--fa-animation-duration, 2s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, linear); animation-timing-function: var(--fa-animation-timing, linear); } .fa-spin-reverse { --fa-animation-direction: reverse; } .fa-pulse, .fa-spin-pulse { -webkit-animation-name: fa-spin; animation-name: fa-spin; -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); animation-timing-function: var(--fa-animation-timing, steps(8)); } @media (prefers-reduced-motion: reduce) { .fa-beat, .fa-bounce, .fa-fade, .fa-beat-fade, .fa-flip, .fa-pulse, .fa-shake, .fa-spin, .fa-spin-pulse { -webkit-animation-delay: -1ms; animation-delay: -1ms; -webkit-animation-duration: 1ms; animation-duration: 1ms; -webkit-animation-iteration-count: 1; animation-iteration-count: 1; -webkit-transition-delay: 0s; transition-delay: 0s; -webkit-transition-duration: 0s; transition-duration: 0s; } } @-webkit-keyframes fa-beat { 0%, 90% { -webkit-transform: scale(1); transform: scale(1); } 45% { -webkit-transform: scale(var(--fa-beat-scale, 1.25)); transform: scale(var(--fa-beat-scale, 1.25)); } } @keyframes fa-beat { 0%, 90% { -webkit-transform: scale(1); transform: scale(1); } 45% { -webkit-transform: scale(var(--fa-beat-scale, 1.25)); transform: scale(var(--fa-beat-scale, 1.25)); } } @-webkit-keyframes fa-bounce { 0% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } 10% { -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); } 30% { -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); } 50% { -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); } 57% { -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); } 64% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } 100% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } } @keyframes fa-bounce { 0% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } 10% { -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); } 30% { -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); } 50% { -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); } 57% { -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); } 64% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } 100% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } } @-webkit-keyframes fa-fade { 50% { opacity: var(--fa-fade-opacity, 0.4); } } @keyframes fa-fade { 50% { opacity: var(--fa-fade-opacity, 0.4); } } @-webkit-keyframes fa-beat-fade { 0%, 100% { opacity: var(--fa-beat-fade-opacity, 0.4); -webkit-transform: scale(1); transform: scale(1); } 50% { opacity: 1; -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); transform: scale(var(--fa-beat-fade-scale, 1.125)); } } @keyframes fa-beat-fade { 0%, 100% { opacity: var(--fa-beat-fade-opacity, 0.4); -webkit-transform: scale(1); transform: scale(1); } 50% { opacity: 1; -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); transform: scale(var(--fa-beat-fade-scale, 1.125)); } } @-webkit-keyframes fa-flip { 50% { -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); } } @keyframes fa-flip { 50% { -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); } } @-webkit-keyframes fa-shake { 0% { -webkit-transform: rotate(-15deg); transform: rotate(-15deg); } 4% { -webkit-transform: rotate(15deg); transform: rotate(15deg); } 8%, 24% { -webkit-transform: rotate(-18deg); transform: rotate(-18deg); } 12%, 28% { -webkit-transform: rotate(18deg); transform: rotate(18deg); } 16% { -webkit-transform: rotate(-22deg); transform: rotate(-22deg); } 20% { -webkit-transform: rotate(22deg); transform: rotate(22deg); } 32% { -webkit-transform: rotate(-12deg); transform: rotate(-12deg); } 36% { -webkit-transform: rotate(12deg); transform: rotate(12deg); } 40%, 100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } } @keyframes fa-shake { 0% { -webkit-transform: rotate(-15deg); transform: rotate(-15deg); } 4% { -webkit-transform: rotate(15deg); transform: rotate(15deg); } 8%, 24% { -webkit-transform: rotate(-18deg); transform: rotate(-18deg); } 12%, 28% { -webkit-transform: rotate(18deg); transform: rotate(18deg); } 16% { -webkit-transform: rotate(-22deg); transform: rotate(-22deg); } 20% { -webkit-transform: rotate(22deg); transform: rotate(22deg); } 32% { -webkit-transform: rotate(-12deg); transform: rotate(-12deg); } 36% { -webkit-transform: rotate(12deg); transform: rotate(12deg); } 40%, 100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } } @-webkit-keyframes fa-spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes fa-spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } .fa-rotate-90 { -webkit-transform: rotate(90deg); transform: rotate(90deg); } .fa-rotate-180 { -webkit-transform: rotate(180deg); transform: rotate(180deg); } .fa-rotate-270 { -webkit-transform: rotate(270deg); transform: rotate(270deg); } .fa-flip-horizontal { -webkit-transform: scale(-1, 1); transform: scale(-1, 1); } .fa-flip-vertical { -webkit-transform: scale(1, -1); transform: scale(1, -1); } .fa-flip-both, .fa-flip-horizontal.fa-flip-vertical { -webkit-transform: scale(-1, -1); transform: scale(-1, -1); } .fa-rotate-by { -webkit-transform: rotate(var(--fa-rotate-angle, 0)); transform: rotate(var(--fa-rotate-angle, 0)); } .fa-stack { display: inline-block; vertical-align: middle; height: 2em; position: relative; width: 2.5em; } .fa-stack-1x, .fa-stack-2x { bottom: 0; left: 0; margin: auto; position: absolute; right: 0; top: 0; z-index: var(--fa-stack-z-index, auto); } .svg-inline--fa.fa-stack-1x { height: 1em; width: 1.25em; } .svg-inline--fa.fa-stack-2x { height: 2em; width: 2.5em; } .fa-inverse { color: var(--fa-inverse, #fff); } .sr-only, .fa-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; } .sr-only-focusable:not(:focus), .fa-sr-only-focusable:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; } .svg-inline--fa .fa-primary { fill: var(--fa-primary-color, currentColor); opacity: var(--fa-primary-opacity, 1); } .svg-inline--fa .fa-secondary { fill: var(--fa-secondary-color, currentColor); opacity: var(--fa-secondary-opacity, 0.4); } .svg-inline--fa.fa-swap-opacity .fa-primary { opacity: var(--fa-secondary-opacity, 0.4); } .svg-inline--fa.fa-swap-opacity .fa-secondary { opacity: var(--fa-primary-opacity, 1); } .svg-inline--fa mask .fa-primary, .svg-inline--fa mask .fa-secondary { fill: black; } .fad.fa-inverse, .fa-duotone.fa-inverse { color: var(--fa-inverse, #fff); }`;function $c(){var a=Hc,r=Dc,c=xt.cssPrefix,d=xt.replacementClass,m=Kf;if(c!==a||d!==r){var y=new RegExp("\\.".concat(a,"\\-"),"g"),S=new RegExp("\\--".concat(a,"\\-"),"g"),P=new RegExp("\\.".concat(r),"g");m=m.replace(y,".".concat(c,"-")).replace(S,"--".concat(c,"-")).replace(P,".".concat(d))}return m}var Vo=!1;function gr(){xt.autoAddCss&&!Vo&&(jf($c()),Vo=!0)}var Jf={mixout:function(){return{dom:{css:$c,insertCss:gr}}},hooks:function(){return{beforeDOMElementCreation:function(){gr()},beforeI2svg:function(){gr()}}}},ni=ki||{};ni[ri]||(ni[ri]={});ni[ri].styles||(ni[ri].styles={});ni[ri].hooks||(ni[ri].hooks={});ni[ri].shims||(ni[ri].shims=[]);var We=ni[ri],Uc=[],Qf=function a(){Kt.removeEventListener("DOMContentLoaded",a),Ns=1,Uc.map(function(r){return r()})},Ns=!1;ci&&(Ns=(Kt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Kt.readyState),Ns||Kt.addEventListener("DOMContentLoaded",Qf));function tg(a){ci&&(Ns?setTimeout(a,0):Uc.push(a))}function Wa(a){var r=a.tag,c=a.attributes,d=c===void 0?{}:c,m=a.children,y=m===void 0?[]:m;return typeof a=="string"?jc(a):"<".concat(r," ").concat(Uf(d),">").concat(y.map(Wa).join(""),"")}function Go(a,r,c){if(a&&a[r]&&a[r][c])return{prefix:r,iconName:c,icon:a[r][c]}}var pr=function(r,c,d,m){var y=Object.keys(r),S=y.length,P=c,I,R,F;for(d===void 0?(I=1,F=r[y[0]]):(I=0,F=d);I=55296&&m<=56319&&c=55296&&d<=56319&&c>r+1&&(m=a.charCodeAt(r+1),m>=56320&&m<=57343)?(d-55296)*1024+m-56320+65536:d}function jo(a){return Object.keys(a).reduce(function(r,c){var d=a[c],m=!!d.icon;return m?r[d.iconName]=d.icon:r[c]=d,r},{})}function Vr(a,r){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=c.skipHooks,m=d===void 0?!1:d,y=jo(r);typeof We.hooks.addPack=="function"&&!m?We.hooks.addPack(a,jo(r)):We.styles[a]=ut(ut({},We.styles[a]||{}),y),a==="fas"&&Vr("fa",r)}var cs,hs,ds,Zi=We.styles,ag=We.shims,sg=(cs={},he(cs,Zt,Object.values(za[Zt])),he(cs,re,Object.values(za[re])),cs),zn=null,qc={},Zc={},Kc={},Jc={},Qc={},rg=(hs={},he(hs,Zt,Object.keys(Ma[Zt])),he(hs,re,Object.keys(Ma[re])),hs);function ng(a){return~Df.indexOf(a)}function og(a,r){var c=r.split("-"),d=c[0],m=c.slice(1).join("-");return d===a&&m!==""&&!ng(m)?m:null}var th=function(){var r=function(y){return pr(Zi,function(S,P,I){return S[I]=pr(P,y,{}),S},{})};qc=r(function(m,y,S){if(y[3]&&(m[y[3]]=S),y[2]){var P=y[2].filter(function(I){return typeof I=="number"});P.forEach(function(I){m[I.toString(16)]=S})}return m}),Zc=r(function(m,y,S){if(m[S]=S,y[2]){var P=y[2].filter(function(I){return typeof I=="string"});P.forEach(function(I){m[I]=S})}return m}),Qc=r(function(m,y,S){var P=y[2];return m[S]=S,P.forEach(function(I){m[I]=S}),m});var c="far"in Zi||xt.autoFetchSvg,d=pr(ag,function(m,y){var S=y[0],P=y[1],I=y[2];return P==="far"&&!c&&(P="fas"),typeof S=="string"&&(m.names[S]={prefix:P,iconName:I}),typeof S=="number"&&(m.unicodes[S.toString(16)]={prefix:P,iconName:I}),m},{names:{},unicodes:{}});Kc=d.names,Jc=d.unicodes,zn=Ks(xt.styleDefault,{family:xt.familyDefault})};Gf(function(a){zn=Ks(a.styleDefault,{family:xt.familyDefault})});th();function Rn(a,r){return(qc[a]||{})[r]}function lg(a,r){return(Zc[a]||{})[r]}function Fi(a,r){return(Qc[a]||{})[r]}function eh(a){return Kc[a]||{prefix:null,iconName:null}}function cg(a){var r=Jc[a],c=Rn("fas",a);return r||(c?{prefix:"fas",iconName:c}:null)||{prefix:null,iconName:null}}function Ai(){return zn}var Fn=function(){return{prefix:null,iconName:null,rest:[]}};function Ks(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=r.family,d=c===void 0?Zt:c,m=Ma[d][a],y=Oa[d][a]||Oa[d][m],S=a in We.styles?a:null;return y||S||null}var $o=(ds={},he(ds,Zt,Object.keys(za[Zt])),he(ds,re,Object.keys(za[re])),ds);function Js(a){var r,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=c.skipLookups,m=d===void 0?!1:d,y=(r={},he(r,Zt,"".concat(xt.cssPrefix,"-").concat(Zt)),he(r,re,"".concat(xt.cssPrefix,"-").concat(re)),r),S=null,P=Zt;(a.includes(y[Zt])||a.some(function(R){return $o[Zt].includes(R)}))&&(P=Zt),(a.includes(y[re])||a.some(function(R){return $o[re].includes(R)}))&&(P=re);var I=a.reduce(function(R,F){var Y=og(xt.cssPrefix,F);if(Zi[F]?(F=sg[P].includes(F)?Rf[P][F]:F,S=F,R.prefix=F):rg[P].indexOf(F)>-1?(S=F,R.prefix=Ks(F,{family:P})):Y?R.iconName=Y:F!==xt.replacementClass&&F!==y[Zt]&&F!==y[re]&&R.rest.push(F),!m&&R.prefix&&R.iconName){var B=S==="fa"?eh(R.iconName):{},q=Fi(R.prefix,R.iconName);B.prefix&&(S=null),R.iconName=B.iconName||q||R.iconName,R.prefix=B.prefix||R.prefix,R.prefix==="far"&&!Zi.far&&Zi.fas&&!xt.autoFetchSvg&&(R.prefix="fas")}return R},Fn());return(a.includes("fa-brands")||a.includes("fab"))&&(I.prefix="fab"),(a.includes("fa-duotone")||a.includes("fad"))&&(I.prefix="fad"),!I.prefix&&P===re&&(Zi.fass||xt.autoFetchSvg)&&(I.prefix="fass",I.iconName=Fi(I.prefix,I.iconName)||I.iconName),(I.prefix==="fa"||S==="fa")&&(I.prefix=Ai()||"fas"),I}var hg=function(){function a(){kf(this,a),this.definitions={}}return Sf(a,[{key:"add",value:function(){for(var c=this,d=arguments.length,m=new Array(d),y=0;y0&&F.forEach(function(Y){typeof Y=="string"&&(c[P][Y]=R)}),c[P][I]=R}),c}}]),a}(),Uo=[],Ki={},ea={},dg=Object.keys(ea);function ug(a,r){var c=r.mixoutsTo;return Uo=a,Ki={},Object.keys(ea).forEach(function(d){dg.indexOf(d)===-1&&delete ea[d]}),Uo.forEach(function(d){var m=d.mixout?d.mixout():{};if(Object.keys(m).forEach(function(S){typeof m[S]=="function"&&(c[S]=m[S]),Fs(m[S])==="object"&&Object.keys(m[S]).forEach(function(P){c[S]||(c[S]={}),c[S][P]=m[S][P]})}),d.hooks){var y=d.hooks();Object.keys(y).forEach(function(S){Ki[S]||(Ki[S]=[]),Ki[S].push(y[S])})}d.provides&&d.provides(ea)}),c}function Gr(a,r){for(var c=arguments.length,d=new Array(c>2?c-2:0),m=2;m1?r-1:0),d=1;d0&&arguments[0]!==void 0?arguments[0]:{};return ci?(Wi("beforeI2svg",r),oi("pseudoElements2svg",r),oi("i2svg",r)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=r.autoReplaceSvgRoot;xt.autoReplaceSvg===!1&&(xt.autoReplaceSvg=!0),xt.observeMutations=!0,tg(function(){xg({autoReplaceSvgRoot:c}),Wi("watch",r)})}},pg={icon:function(r){if(r===null)return null;if(Fs(r)==="object"&&r.prefix&&r.iconName)return{prefix:r.prefix,iconName:Fi(r.prefix,r.iconName)||r.iconName};if(Array.isArray(r)&&r.length===2){var c=r[1].indexOf("fa-")===0?r[1].slice(3):r[1],d=Ks(r[0]);return{prefix:d,iconName:Fi(d,c)||c}}if(typeof r=="string"&&(r.indexOf("".concat(xt.cssPrefix,"-"))>-1||r.match(Ff))){var m=Js(r.split(" "),{skipLookups:!0});return{prefix:m.prefix||Ai(),iconName:Fi(m.prefix,m.iconName)||m.iconName}}if(typeof r=="string"){var y=Ai();return{prefix:y,iconName:Fi(y,r)||r}}}},Me={noAuto:fg,config:xt,dom:gg,parse:pg,library:ih,findIconDefinition:jr,toHtml:Wa},xg=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=r.autoReplaceSvgRoot,d=c===void 0?Kt:c;(Object.keys(We.styles).length>0||xt.autoFetchSvg)&&ci&&xt.autoReplaceSvg&&Me.dom.i2svg({node:d})};function Qs(a,r){return Object.defineProperty(a,"abstract",{get:r}),Object.defineProperty(a,"html",{get:function(){return a.abstract.map(function(d){return Wa(d)})}}),Object.defineProperty(a,"node",{get:function(){if(ci){var d=Kt.createElement("div");return d.innerHTML=a.html,d.children}}}),a}function mg(a){var r=a.children,c=a.main,d=a.mask,m=a.attributes,y=a.styles,S=a.transform;if(On(S)&&c.found&&!d.found){var P=c.width,I=c.height,R={x:P/I/2,y:.5};m.style=Zs(ut(ut({},y),{},{"transform-origin":"".concat(R.x+S.x/16,"em ").concat(R.y+S.y/16,"em")}))}return[{tag:"svg",attributes:m,children:r}]}function bg(a){var r=a.prefix,c=a.iconName,d=a.children,m=a.attributes,y=a.symbol,S=y===!0?"".concat(r,"-").concat(xt.cssPrefix,"-").concat(c):y;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ut(ut({},m),{},{id:S}),children:d}]}]}function Nn(a){var r=a.icons,c=r.main,d=r.mask,m=a.prefix,y=a.iconName,S=a.transform,P=a.symbol,I=a.title,R=a.maskId,F=a.titleId,Y=a.extra,B=a.watchable,q=B===void 0?!1:B,pt=d.found?d:c,ht=pt.width,Lt=pt.height,at=m==="fak",z=[xt.replacementClass,y?"".concat(xt.cssPrefix,"-").concat(y):""].filter(function(ie){return Y.classes.indexOf(ie)===-1}).filter(function(ie){return ie!==""||!!ie}).concat(Y.classes).join(" "),Q={children:[],attributes:ut(ut({},Y.attributes),{},{"data-prefix":m,"data-icon":y,class:z,role:Y.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(ht," ").concat(Lt)})},tt=at&&!~Y.classes.indexOf("fa-fw")?{width:"".concat(ht/Lt*16*.0625,"em")}:{};q&&(Q.attributes[Bi]=""),I&&(Q.children.push({tag:"title",attributes:{id:Q.attributes["aria-labelledby"]||"title-".concat(F||Fa())},children:[I]}),delete Q.attributes.title);var V=ut(ut({},Q),{},{prefix:m,iconName:y,main:c,mask:d,maskId:R,transform:S,symbol:P,styles:ut(ut({},tt),Y.styles)}),et=d.found&&c.found?oi("generateAbstractMask",V)||{children:[],attributes:{}}:oi("generateAbstractIcon",V)||{children:[],attributes:{}},St=et.children,Wt=et.attributes;return V.children=St,V.attributes=Wt,P?bg(V):mg(V)}function qo(a){var r=a.content,c=a.width,d=a.height,m=a.transform,y=a.title,S=a.extra,P=a.watchable,I=P===void 0?!1:P,R=ut(ut(ut({},S.attributes),y?{title:y}:{}),{},{class:S.classes.join(" ")});I&&(R[Bi]="");var F=ut({},S.styles);On(m)&&(F.transform=Zf({transform:m,startCentered:!0,width:c,height:d}),F["-webkit-transform"]=F.transform);var Y=Zs(F);Y.length>0&&(R.style=Y);var B=[];return B.push({tag:"span",attributes:R,children:[r]}),y&&B.push({tag:"span",attributes:{class:"sr-only"},children:[y]}),B}function vg(a){var r=a.content,c=a.title,d=a.extra,m=ut(ut(ut({},d.attributes),c?{title:c}:{}),{},{class:d.classes.join(" ")}),y=Zs(d.styles);y.length>0&&(m.style=y);var S=[];return S.push({tag:"span",attributes:m,children:[r]}),c&&S.push({tag:"span",attributes:{class:"sr-only"},children:[c]}),S}var xr=We.styles;function $r(a){var r=a[0],c=a[1],d=a.slice(4),m=Ln(d,1),y=m[0],S=null;return Array.isArray(y)?S={tag:"g",attributes:{class:"".concat(xt.cssPrefix,"-").concat(Ri.GROUP)},children:[{tag:"path",attributes:{class:"".concat(xt.cssPrefix,"-").concat(Ri.SECONDARY),fill:"currentColor",d:y[0]}},{tag:"path",attributes:{class:"".concat(xt.cssPrefix,"-").concat(Ri.PRIMARY),fill:"currentColor",d:y[1]}}]}:S={tag:"path",attributes:{fill:"currentColor",d:y}},{found:!0,width:r,height:c,icon:S}}var yg={found:!1,width:512,height:512};function wg(a,r){!Bc&&!xt.showMissingIcons&&a&&console.error('Icon with name "'.concat(a,'" and prefix "').concat(r,'" is missing.'))}function Ur(a,r){var c=r;return r==="fa"&&xt.styleDefault!==null&&(r=Ai()),new Promise(function(d,m){if(oi("missingIconAbstract"),c==="fa"){var y=eh(a)||{};a=y.iconName||a,r=y.prefix||r}if(a&&r&&xr[r]&&xr[r][a]){var S=xr[r][a];return d($r(S))}wg(a,r),d(ut(ut({},yg),{},{icon:xt.showMissingIcons&&a?oi("missingIconAbstract")||{}:{}}))})}var Zo=function(){},qr=xt.measurePerformance&&as&&as.mark&&as.measure?as:{mark:Zo,measure:Zo},ga='FA "6.5.2"',kg=function(r){return qr.mark("".concat(ga," ").concat(r," begins")),function(){return ah(r)}},ah=function(r){qr.mark("".concat(ga," ").concat(r," ends")),qr.measure("".concat(ga," ").concat(r),"".concat(ga," ").concat(r," begins"),"".concat(ga," ").concat(r," ends"))},Xn={begin:kg,end:ah},ks=function(){};function Ko(a){var r=a.getAttribute?a.getAttribute(Bi):null;return typeof r=="string"}function Ag(a){var r=a.getAttribute?a.getAttribute(En):null,c=a.getAttribute?a.getAttribute(Tn):null;return r&&c}function Sg(a){return a&&a.classList&&a.classList.contains&&a.classList.contains(xt.replacementClass)}function Cg(){if(xt.autoReplaceSvg===!0)return As.replace;var a=As[xt.autoReplaceSvg];return a||As.replace}function Pg(a){return Kt.createElementNS("http://www.w3.org/2000/svg",a)}function Lg(a){return Kt.createElement(a)}function sh(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=r.ceFn,d=c===void 0?a.tag==="svg"?Pg:Lg:c;if(typeof a=="string")return Kt.createTextNode(a);var m=d(a.tag);Object.keys(a.attributes||[]).forEach(function(S){m.setAttribute(S,a.attributes[S])});var y=a.children||[];return y.forEach(function(S){m.appendChild(sh(S,{ceFn:d}))}),m}function _g(a){var r=" ".concat(a.outerHTML," ");return r="".concat(r,"Font Awesome fontawesome.com "),r}var As={replace:function(r){var c=r[0];if(c.parentNode)if(r[1].forEach(function(m){c.parentNode.insertBefore(sh(m),c)}),c.getAttribute(Bi)===null&&xt.keepOriginalSource){var d=Kt.createComment(_g(c));c.parentNode.replaceChild(d,c)}else c.remove()},nest:function(r){var c=r[0],d=r[1];if(~Mn(c).indexOf(xt.replacementClass))return As.replace(r);var m=new RegExp("".concat(xt.cssPrefix,"-.*"));if(delete d[0].attributes.id,d[0].attributes.class){var y=d[0].attributes.class.split(" ").reduce(function(P,I){return I===xt.replacementClass||I.match(m)?P.toSvg.push(I):P.toNode.push(I),P},{toNode:[],toSvg:[]});d[0].attributes.class=y.toSvg.join(" "),y.toNode.length===0?c.removeAttribute("class"):c.setAttribute("class",y.toNode.join(" "))}var S=d.map(function(P){return Wa(P)}).join(` `);c.setAttribute(Bi,""),c.innerHTML=S}};function Jo(a){a()}function rh(a,r){var c=typeof r=="function"?r:ks;if(a.length===0)c();else{var d=Jo;xt.mutateApproach===Of&&(d=ki.requestAnimationFrame||Jo),d(function(){var m=Cg(),y=Xn.begin("mutate");a.map(m),y(),c()})}}var Yn=!1;function nh(){Yn=!0}function Zr(){Yn=!1}var Xs=null;function Qo(a){if(Bo&&xt.observeMutations){var r=a.treeCallback,c=r===void 0?ks:r,d=a.nodeCallback,m=d===void 0?ks:d,y=a.pseudoElementsCallback,S=y===void 0?ks:y,P=a.observeMutationsRoot,I=P===void 0?Kt:P;Xs=new Bo(function(R){if(!Yn){var F=Ai();na(R).forEach(function(Y){if(Y.type==="childList"&&Y.addedNodes.length>0&&!Ko(Y.addedNodes[0])&&(xt.searchPseudoElements&&S(Y.target),c(Y.target)),Y.type==="attributes"&&Y.target.parentNode&&xt.searchPseudoElements&&S(Y.target.parentNode),Y.type==="attributes"&&Ko(Y.target)&&~Hf.indexOf(Y.attributeName))if(Y.attributeName==="class"&&Ag(Y.target)){var B=Js(Mn(Y.target)),q=B.prefix,pt=B.iconName;Y.target.setAttribute(En,q||F),pt&&Y.target.setAttribute(Tn,pt)}else Sg(Y.target)&&m(Y.target)})}}),ci&&Xs.observe(I,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Eg(){Xs&&Xs.disconnect()}function Tg(a){var r=a.getAttribute("style"),c=[];return r&&(c=r.split(";").reduce(function(d,m){var y=m.split(":"),S=y[0],P=y.slice(1);return S&&P.length>0&&(d[S]=P.join(":").trim()),d},{})),c}function Ig(a){var r=a.getAttribute("data-prefix"),c=a.getAttribute("data-icon"),d=a.innerText!==void 0?a.innerText.trim():"",m=Js(Mn(a));return m.prefix||(m.prefix=Ai()),r&&c&&(m.prefix=r,m.iconName=c),m.iconName&&m.prefix||(m.prefix&&d.length>0&&(m.iconName=lg(m.prefix,a.innerText)||Rn(m.prefix,Wr(a.innerText))),!m.iconName&&xt.autoFetchSvg&&a.firstChild&&a.firstChild.nodeType===Node.TEXT_NODE&&(m.iconName=a.firstChild.data)),m}function Mg(a){var r=na(a.attributes).reduce(function(m,y){return m.name!=="class"&&m.name!=="style"&&(m[y.name]=y.value),m},{}),c=a.getAttribute("title"),d=a.getAttribute("data-fa-title-id");return xt.autoA11y&&(c?r["aria-labelledby"]="".concat(xt.replacementClass,"-title-").concat(d||Fa()):(r["aria-hidden"]="true",r.focusable="false")),r}function Og(){return{iconName:null,title:null,titleId:null,prefix:null,transform:$e,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function tl(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},c=Ig(a),d=c.iconName,m=c.prefix,y=c.rest,S=Mg(a),P=Gr("parseNodeAttributes",{},a),I=r.styleParser?Tg(a):[];return ut({iconName:d,title:a.getAttribute("title"),titleId:a.getAttribute("data-fa-title-id"),prefix:m,transform:$e,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:y,styles:I,attributes:S}},P)}var zg=We.styles;function oh(a){var r=xt.autoReplaceSvg==="nest"?tl(a,{styleParser:!1}):tl(a);return~r.extra.classes.indexOf(Wc)?oi("generateLayersText",a,r):oi("generateSvgReplacementMutation",a,r)}var Si=new Set;In.map(function(a){Si.add("fa-".concat(a))});Object.keys(Ma[Zt]).map(Si.add.bind(Si));Object.keys(Ma[re]).map(Si.add.bind(Si));Si=Da(Si);function el(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ci)return Promise.resolve();var c=Kt.documentElement.classList,d=function(Y){return c.add("".concat(Wo,"-").concat(Y))},m=function(Y){return c.remove("".concat(Wo,"-").concat(Y))},y=xt.autoFetchSvg?Si:In.map(function(F){return"fa-".concat(F)}).concat(Object.keys(zg));y.includes("fa")||y.push("fa");var S=[".".concat(Wc,":not([").concat(Bi,"])")].concat(y.map(function(F){return".".concat(F,":not([").concat(Bi,"])")})).join(", ");if(S.length===0)return Promise.resolve();var P=[];try{P=na(a.querySelectorAll(S))}catch{}if(P.length>0)d("pending"),m("complete");else return Promise.resolve();var I=Xn.begin("onTree"),R=P.reduce(function(F,Y){try{var B=oh(Y);B&&F.push(B)}catch(q){Bc||q.name==="MissingIcon"&&console.error(q)}return F},[]);return new Promise(function(F,Y){Promise.all(R).then(function(B){rh(B,function(){d("active"),d("complete"),m("pending"),typeof r=="function"&&r(),I(),F()})}).catch(function(B){I(),Y(B)})})}function Rg(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;oh(a).then(function(c){c&&rh([c],r)})}function Fg(a){return function(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=(r||{}).icon?r:jr(r||{}),m=c.mask;return m&&(m=(m||{}).icon?m:jr(m||{})),a(d,ut(ut({},c),{},{mask:m}))}}var Ng=function(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=c.transform,m=d===void 0?$e:d,y=c.symbol,S=y===void 0?!1:y,P=c.mask,I=P===void 0?null:P,R=c.maskId,F=R===void 0?null:R,Y=c.title,B=Y===void 0?null:Y,q=c.titleId,pt=q===void 0?null:q,ht=c.classes,Lt=ht===void 0?[]:ht,at=c.attributes,z=at===void 0?{}:at,Q=c.styles,tt=Q===void 0?{}:Q;if(r){var V=r.prefix,et=r.iconName,St=r.icon;return Qs(ut({type:"icon"},r),function(){return Wi("beforeDOMElementCreation",{iconDefinition:r,params:c}),xt.autoA11y&&(B?z["aria-labelledby"]="".concat(xt.replacementClass,"-title-").concat(pt||Fa()):(z["aria-hidden"]="true",z.focusable="false")),Nn({icons:{main:$r(St),mask:I?$r(I.icon):{found:!1,width:null,height:null,icon:{}}},prefix:V,iconName:et,transform:ut(ut({},$e),m),symbol:S,title:B,maskId:F,titleId:pt,extra:{attributes:z,styles:tt,classes:Lt}})})}},Xg={mixout:function(){return{icon:Fg(Ng)}},hooks:function(){return{mutationObserverCallbacks:function(c){return c.treeCallback=el,c.nodeCallback=Rg,c}}},provides:function(r){r.i2svg=function(c){var d=c.node,m=d===void 0?Kt:d,y=c.callback,S=y===void 0?function(){}:y;return el(m,S)},r.generateSvgReplacementMutation=function(c,d){var m=d.iconName,y=d.title,S=d.titleId,P=d.prefix,I=d.transform,R=d.symbol,F=d.mask,Y=d.maskId,B=d.extra;return new Promise(function(q,pt){Promise.all([Ur(m,P),F.iconName?Ur(F.iconName,F.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(ht){var Lt=Ln(ht,2),at=Lt[0],z=Lt[1];q([c,Nn({icons:{main:at,mask:z},prefix:P,iconName:m,transform:I,symbol:R,maskId:Y,title:y,titleId:S,extra:B,watchable:!0})])}).catch(pt)})},r.generateAbstractIcon=function(c){var d=c.children,m=c.attributes,y=c.main,S=c.transform,P=c.styles,I=Zs(P);I.length>0&&(m.style=I);var R;return On(S)&&(R=oi("generateAbstractTransformGrouping",{main:y,transform:S,containerWidth:y.width,iconWidth:y.width})),d.push(R||y.icon),{children:d,attributes:m}}}},Yg={mixout:function(){return{layer:function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=d.classes,y=m===void 0?[]:m;return Qs({type:"layer"},function(){Wi("beforeDOMElementCreation",{assembler:c,params:d});var S=[];return c(function(P){Array.isArray(P)?P.map(function(I){S=S.concat(I.abstract)}):S=S.concat(P.abstract)}),[{tag:"span",attributes:{class:["".concat(xt.cssPrefix,"-layers")].concat(Da(y)).join(" ")},children:S}]})}}}},Hg={mixout:function(){return{counter:function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=d.title,y=m===void 0?null:m,S=d.classes,P=S===void 0?[]:S,I=d.attributes,R=I===void 0?{}:I,F=d.styles,Y=F===void 0?{}:F;return Qs({type:"counter",content:c},function(){return Wi("beforeDOMElementCreation",{content:c,params:d}),vg({content:c.toString(),title:y,extra:{attributes:R,styles:Y,classes:["".concat(xt.cssPrefix,"-layers-counter")].concat(Da(P))}})})}}}},Dg={mixout:function(){return{text:function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=d.transform,y=m===void 0?$e:m,S=d.title,P=S===void 0?null:S,I=d.classes,R=I===void 0?[]:I,F=d.attributes,Y=F===void 0?{}:F,B=d.styles,q=B===void 0?{}:B;return Qs({type:"text",content:c},function(){return Wi("beforeDOMElementCreation",{content:c,params:d}),qo({content:c,transform:ut(ut({},$e),y),title:P,extra:{attributes:Y,styles:q,classes:["".concat(xt.cssPrefix,"-layers-text")].concat(Da(R))}})})}}},provides:function(r){r.generateLayersText=function(c,d){var m=d.title,y=d.transform,S=d.extra,P=null,I=null;if(Yc){var R=parseInt(getComputedStyle(c).fontSize,10),F=c.getBoundingClientRect();P=F.width/R,I=F.height/R}return xt.autoA11y&&!m&&(S.attributes["aria-hidden"]="true"),Promise.resolve([c,qo({content:c.innerHTML,width:P,height:I,transform:y,title:m,extra:S,watchable:!0})])}}},Bg=new RegExp('"',"ug"),il=[1105920,1112319];function Wg(a){var r=a.replace(Bg,""),c=ig(r,0),d=c>=il[0]&&c<=il[1],m=r.length===2?r[0]===r[1]:!1;return{value:Wr(m?r[0]:r),isSecondary:d||m}}function al(a,r){var c="".concat(Mf).concat(r.replace(":","-"));return new Promise(function(d,m){if(a.getAttribute(c)!==null)return d();var y=na(a.children),S=y.filter(function(St){return St.getAttribute(Br)===r})[0],P=ki.getComputedStyle(a,r),I=P.getPropertyValue("font-family").match(Nf),R=P.getPropertyValue("font-weight"),F=P.getPropertyValue("content");if(S&&!I)return a.removeChild(S),d();if(I&&F!=="none"&&F!==""){var Y=P.getPropertyValue("content"),B=~["Sharp"].indexOf(I[2])?re:Zt,q=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(I[2])?Oa[B][I[2].toLowerCase()]:Xf[B][R],pt=Wg(Y),ht=pt.value,Lt=pt.isSecondary,at=I[0].startsWith("FontAwesome"),z=Rn(q,ht),Q=z;if(at){var tt=cg(ht);tt.iconName&&tt.prefix&&(z=tt.iconName,q=tt.prefix)}if(z&&!Lt&&(!S||S.getAttribute(En)!==q||S.getAttribute(Tn)!==Q)){a.setAttribute(c,Q),S&&a.removeChild(S);var V=Og(),et=V.extra;et.attributes[Br]=r,Ur(z,q).then(function(St){var Wt=Nn(ut(ut({},V),{},{icons:{main:St,mask:Fn()},prefix:q,iconName:Q,extra:et,watchable:!0})),ie=Kt.createElementNS("http://www.w3.org/2000/svg","svg");r==="::before"?a.insertBefore(ie,a.firstChild):a.appendChild(ie),ie.outerHTML=Wt.map(function(te){return Wa(te)}).join(` `),a.removeAttribute(c),d()}).catch(m)}else d()}else d()})}function Vg(a){return Promise.all([al(a,"::before"),al(a,"::after")])}function Gg(a){return a.parentNode!==document.head&&!~zf.indexOf(a.tagName.toUpperCase())&&!a.getAttribute(Br)&&(!a.parentNode||a.parentNode.tagName!=="svg")}function sl(a){if(ci)return new Promise(function(r,c){var d=na(a.querySelectorAll("*")).filter(Gg).map(Vg),m=Xn.begin("searchPseudoElements");nh(),Promise.all(d).then(function(){m(),Zr(),r()}).catch(function(){m(),Zr(),c()})})}var jg={hooks:function(){return{mutationObserverCallbacks:function(c){return c.pseudoElementsCallback=sl,c}}},provides:function(r){r.pseudoElements2svg=function(c){var d=c.node,m=d===void 0?Kt:d;xt.searchPseudoElements&&sl(m)}}},rl=!1,$g={mixout:function(){return{dom:{unwatch:function(){nh(),rl=!0}}}},hooks:function(){return{bootstrap:function(){Qo(Gr("mutationObserverCallbacks",{}))},noAuto:function(){Eg()},watch:function(c){var d=c.observeMutationsRoot;rl?Zr():Qo(Gr("mutationObserverCallbacks",{observeMutationsRoot:d}))}}}},nl=function(r){var c={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return r.toLowerCase().split(" ").reduce(function(d,m){var y=m.toLowerCase().split("-"),S=y[0],P=y.slice(1).join("-");if(S&&P==="h")return d.flipX=!0,d;if(S&&P==="v")return d.flipY=!0,d;if(P=parseFloat(P),isNaN(P))return d;switch(S){case"grow":d.size=d.size+P;break;case"shrink":d.size=d.size-P;break;case"left":d.x=d.x-P;break;case"right":d.x=d.x+P;break;case"up":d.y=d.y-P;break;case"down":d.y=d.y+P;break;case"rotate":d.rotate=d.rotate+P;break}return d},c)},Ug={mixout:function(){return{parse:{transform:function(c){return nl(c)}}}},hooks:function(){return{parseNodeAttributes:function(c,d){var m=d.getAttribute("data-fa-transform");return m&&(c.transform=nl(m)),c}}},provides:function(r){r.generateAbstractTransformGrouping=function(c){var d=c.main,m=c.transform,y=c.containerWidth,S=c.iconWidth,P={transform:"translate(".concat(y/2," 256)")},I="translate(".concat(m.x*32,", ").concat(m.y*32,") "),R="scale(".concat(m.size/16*(m.flipX?-1:1),", ").concat(m.size/16*(m.flipY?-1:1),") "),F="rotate(".concat(m.rotate," 0 0)"),Y={transform:"".concat(I," ").concat(R," ").concat(F)},B={transform:"translate(".concat(S/2*-1," -256)")},q={outer:P,inner:Y,path:B};return{tag:"g",attributes:ut({},q.outer),children:[{tag:"g",attributes:ut({},q.inner),children:[{tag:d.icon.tag,children:d.icon.children,attributes:ut(ut({},d.icon.attributes),q.path)}]}]}}}},mr={x:0,y:0,width:"100%",height:"100%"};function ol(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.attributes&&(a.attributes.fill||r)&&(a.attributes.fill="black"),a}function qg(a){return a.tag==="g"?a.children:[a]}var Zg={hooks:function(){return{parseNodeAttributes:function(c,d){var m=d.getAttribute("data-fa-mask"),y=m?Js(m.split(" ").map(function(S){return S.trim()})):Fn();return y.prefix||(y.prefix=Ai()),c.mask=y,c.maskId=d.getAttribute("data-fa-mask-id"),c}}},provides:function(r){r.generateAbstractMask=function(c){var d=c.children,m=c.attributes,y=c.main,S=c.mask,P=c.maskId,I=c.transform,R=y.width,F=y.icon,Y=S.width,B=S.icon,q=qf({transform:I,containerWidth:Y,iconWidth:R}),pt={tag:"rect",attributes:ut(ut({},mr),{},{fill:"white"})},ht=F.children?{children:F.children.map(ol)}:{},Lt={tag:"g",attributes:ut({},q.inner),children:[ol(ut({tag:F.tag,attributes:ut(ut({},F.attributes),q.path)},ht))]},at={tag:"g",attributes:ut({},q.outer),children:[Lt]},z="mask-".concat(P||Fa()),Q="clip-".concat(P||Fa()),tt={tag:"mask",attributes:ut(ut({},mr),{},{id:z,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[pt,at]},V={tag:"defs",children:[{tag:"clipPath",attributes:{id:Q},children:qg(B)},tt]};return d.push(V,{tag:"rect",attributes:ut({fill:"currentColor","clip-path":"url(#".concat(Q,")"),mask:"url(#".concat(z,")")},mr)}),{children:d,attributes:m}}}},Kg={provides:function(r){var c=!1;ki.matchMedia&&(c=ki.matchMedia("(prefers-reduced-motion: reduce)").matches),r.missingIconAbstract=function(){var d=[],m={fill:"currentColor"},y={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};d.push({tag:"path",attributes:ut(ut({},m),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var S=ut(ut({},y),{},{attributeName:"opacity"}),P={tag:"circle",attributes:ut(ut({},m),{},{cx:"256",cy:"364",r:"28"}),children:[]};return c||P.children.push({tag:"animate",attributes:ut(ut({},y),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ut(ut({},S),{},{values:"1;0;1;1;0;1;"})}),d.push(P),d.push({tag:"path",attributes:ut(ut({},m),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:c?[]:[{tag:"animate",attributes:ut(ut({},S),{},{values:"1;0;0;0;0;1;"})}]}),c||d.push({tag:"path",attributes:ut(ut({},m),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ut(ut({},S),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:d}}}},Jg={hooks:function(){return{parseNodeAttributes:function(c,d){var m=d.getAttribute("data-fa-symbol"),y=m===null?!1:m===""?!0:m;return c.symbol=y,c}}}},Qg=[Jf,Xg,Yg,Hg,Dg,jg,$g,Ug,Zg,Kg,Jg];ug(Qg,{mixoutsTo:Me});Me.noAuto;Me.config;Me.library;Me.dom;var Kr=Me.parse;Me.findIconDefinition;Me.toHtml;var tp=Me.icon;Me.layer;Me.text;Me.counter;function ll(a,r){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);r&&(d=d.filter(function(m){return Object.getOwnPropertyDescriptor(a,m).enumerable})),c.push.apply(c,d)}return c}function ai(a){for(var r=1;r=0)continue;c[d]=a[d]}return c}function sp(a,r){if(a==null)return{};var c=ap(a,r),d,m;if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(a);for(m=0;m=0)&&Object.prototype.propertyIsEnumerable.call(a,d)&&(c[d]=a[d])}return c}var rp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},lh={exports:{}};(function(a){(function(r){var c=function(at,z,Q){if(!R(z)||Y(z)||B(z)||q(z)||I(z))return z;var tt,V=0,et=0;if(F(z))for(tt=[],et=z.length;V1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof a=="string")return a;var d=(a.children||[]).map(function(I){return ch(I)}),m=Object.keys(a.attributes||{}).reduce(function(I,R){var F=a.attributes[R];switch(R){case"class":I.class=cp(F);break;case"style":I.style=lp(F);break;default:I.attrs[R]=F}return I},{attrs:{},class:{},style:{}});c.class;var y=c.style,S=y===void 0?{}:y,P=sp(c,op);return Oc(a.tag,ai(ai(ai({},r),{},{class:m.class,style:ai(ai({},m.style),S)},m.attrs),P),d)}var hh=!1;try{hh=!0}catch{}function hp(){if(!hh&&console&&typeof console.error=="function"){var a;(a=console).error.apply(a,arguments)}}function br(a,r){return Array.isArray(r)&&r.length>0||!Array.isArray(r)&&r?Se({},a,r):{}}function dp(a){var r,c=(r={"fa-spin":a.spin,"fa-pulse":a.pulse,"fa-fw":a.fixedWidth,"fa-border":a.border,"fa-li":a.listItem,"fa-inverse":a.inverse,"fa-flip":a.flip===!0,"fa-flip-horizontal":a.flip==="horizontal"||a.flip==="both","fa-flip-vertical":a.flip==="vertical"||a.flip==="both"},Se(Se(Se(Se(Se(Se(Se(Se(Se(Se(r,"fa-".concat(a.size),a.size!==null),"fa-rotate-".concat(a.rotation),a.rotation!==null),"fa-pull-".concat(a.pull),a.pull!==null),"fa-swap-opacity",a.swapOpacity),"fa-bounce",a.bounce),"fa-shake",a.shake),"fa-beat",a.beat),"fa-fade",a.fade),"fa-beat-fade",a.beatFade),"fa-flash",a.flash),Se(Se(r,"fa-spin-pulse",a.spinPulse),"fa-spin-reverse",a.spinReverse));return Object.keys(c).map(function(d){return c[d]?d:null}).filter(function(d){return d})}function cl(a){if(a&&Ys(a)==="object"&&a.prefix&&a.iconName&&a.icon)return a;if(Kr.icon)return Kr.icon(a);if(a===null)return null;if(Ys(a)==="object"&&a.prefix&&a.iconName)return a;if(Array.isArray(a)&&a.length===2)return{prefix:a[0],iconName:a[1]};if(typeof a=="string")return{prefix:"fas",iconName:a}}var Vt=dc({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(r){return[!0,!1,"horizontal","vertical","both"].indexOf(r)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(r){return["right","left"].indexOf(r)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(r){return[90,180,270].indexOf(Number.parseInt(r,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(r){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(r)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(r,c){var d=c.attrs,m=wt(function(){return cl(r.icon)}),y=wt(function(){return br("classes",dp(r))}),S=wt(function(){return br("transform",typeof r.transform=="string"?Kr.transform(r.transform):r.transform)}),P=wt(function(){return br("mask",cl(r.mask))}),I=wt(function(){return tp(m.value,ai(ai(ai(ai({},y.value),S.value),P.value),{},{symbol:r.symbol,title:r.title,titleId:r.titleId,maskId:r.maskId}))});Ce(I,function(F){if(!F)return hp("Could not find one or more icon(s)",m.value,P.value)},{immediate:!0});var R=wt(function(){return I.value?ch(I.value.abstract[0],{},d):null});return function(){return R.value}}}),up={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8H296c-13.3 0-24-10.7-24-24V72c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272H216c13.3 0 24 10.7 24 24V440c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},vr={prefix:"fas",iconName:"cloud",icon:[640,512,[9729],"f0c2","M0 336c0 79.5 64.5 144 144 144H512c70.7 0 128-57.3 128-128c0-61.9-44-113.6-102.4-125.4c4.1-10.7 6.4-22.4 6.4-34.6c0-53-43-96-96-96c-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32C167.6 32 96 103.6 96 192c0 2.7 .1 5.4 .2 8.1C40.2 219.8 0 273.2 0 336z"]},dh={prefix:"fas",iconName:"hourglass-half",icon:[384,512,["hourglass-2"],"f252","M32 0C14.3 0 0 14.3 0 32S14.3 64 32 64V75c0 42.4 16.9 83.1 46.9 113.1L146.7 256 78.9 323.9C48.9 353.9 32 394.6 32 437v11c-17.7 0-32 14.3-32 32s14.3 32 32 32H64 320h32c17.7 0 32-14.3 32-32s-14.3-32-32-32V437c0-42.4-16.9-83.1-46.9-113.1L237.3 256l67.9-67.9c30-30 46.9-70.7 46.9-113.1V64c17.7 0 32-14.3 32-32s-14.3-32-32-32H320 64 32zM96 75V64H288V75c0 19-5.6 37.4-16 53H112c-10.3-15.6-16-34-16-53zm16 309c3.5-5.3 7.6-10.3 12.1-14.9L192 301.3l67.9 67.9c4.6 4.6 8.6 9.6 12.1 14.9H112z"]},uh={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0H21.3C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7h42.7C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3H405.3zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352H378.7C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7z"]},fp={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},hl={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4h54.1l109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109V104c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7H352c-8.8 0-16-7.2-16-16V102.6c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM56 432a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},gp={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"]},dl={prefix:"fas",iconName:"signal",icon:[640,512,[128246,"signal-5","signal-perfect"],"f012","M576 0c17.7 0 32 14.3 32 32V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V32c0-17.7 14.3-32 32-32zM448 96c17.7 0 32 14.3 32 32V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V128c0-17.7 14.3-32 32-32zM352 224V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V224c0-17.7 14.3-32 32-32s32 14.3 32 32zM192 288c17.7 0 32 14.3 32 32V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V320c0-17.7 14.3-32 32-32zM96 416v64c0 17.7-14.3 32-32 32s-32-14.3-32-32V416c0-17.7 14.3-32 32-32s32 14.3 32 32z"]},ul={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},pp={prefix:"fas",iconName:"suitcase-medical",icon:[512,512,["medkit"],"f0fa","M184 48H328c4.4 0 8 3.6 8 8V96H176V56c0-4.4 3.6-8 8-8zm-56 8V96v32V480H384V128 96 56c0-30.9-25.1-56-56-56H184c-30.9 0-56 25.1-56 56zM96 96H64C28.7 96 0 124.7 0 160V416c0 35.3 28.7 64 64 64H96V96zM416 480h32c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H416V480zM224 208c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v48h48c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H288v48c0 8.8-7.2 16-16 16H240c-8.8 0-16-7.2-16-16V320H176c-8.8 0-16-7.2-16-16V272c0-8.8 7.2-16 16-16h48V208z"]},xp={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},yr=xp,fh={prefix:"fas",iconName:"medal",icon:[512,512,[127941],"f5a2","M4.1 38.2C1.4 34.2 0 29.4 0 24.6C0 11 11 0 24.6 0H133.9c11.2 0 21.7 5.9 27.4 15.5l68.5 114.1c-48.2 6.1-91.3 28.6-123.4 61.9L4.1 38.2zm503.7 0L405.6 191.5c-32.1-33.3-75.2-55.8-123.4-61.9L350.7 15.5C356.5 5.9 366.9 0 378.1 0H487.4C501 0 512 11 512 24.6c0 4.8-1.4 9.6-4.1 13.6zM80 336a176 176 0 1 1 352 0A176 176 0 1 1 80 336zm184.4-94.9c-3.4-7-13.3-7-16.8 0l-22.4 45.4c-1.4 2.8-4 4.7-7 5.1L168 298.9c-7.7 1.1-10.7 10.5-5.2 16l36.3 35.4c2.2 2.2 3.2 5.2 2.7 8.3l-8.6 49.9c-1.3 7.6 6.7 13.5 13.6 9.9l44.8-23.6c2.7-1.4 6-1.4 8.7 0l44.8 23.6c6.9 3.6 14.9-2.2 13.6-9.9l-8.6-49.9c-.5-3 .5-6.1 2.7-8.3l36.3-35.4c5.6-5.4 2.5-14.8-5.2-16l-50.1-7.3c-3-.4-5.7-2.4-7-5.1l-22.4-45.4z"]},mp={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},gh=mp,bp={prefix:"fas",iconName:"hammer",icon:[576,512,[128296],"f6e3","M413.5 237.5c-28.2 4.8-58.2-3.6-80-25.4l-38.1-38.1C280.4 159 272 138.8 272 117.6V105.5L192.3 62c-5.3-2.9-8.6-8.6-8.3-14.7s3.9-11.5 9.5-14l47.2-21C259.1 4.2 279 0 299.2 0h18.1c36.7 0 72 14 98.7 39.1l44.6 42c24.2 22.8 33.2 55.7 26.6 86L503 183l8-8c9.4-9.4 24.6-9.4 33.9 0l24 24c9.4 9.4 9.4 24.6 0 33.9l-88 88c-9.4 9.4-24.6 9.4-33.9 0l-24-24c-9.4-9.4-9.4-24.6 0-33.9l8-8-17.5-17.5zM27.4 377.1L260.9 182.6c3.5 4.9 7.5 9.6 11.8 14l38.1 38.1c6 6 12.4 11.2 19.2 15.7L134.9 484.6c-14.5 17.4-36 27.4-58.6 27.4C34.1 512 0 477.8 0 435.7c0-22.6 10.1-44.1 27.4-58.6z"]},vp={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},yp={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0H488c13.3 0 24 10.7 24 24V168c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512H24c-13.3 0-24-10.7-24-24V344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},Hn={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},wp={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},kp=wp,ph={prefix:"fas",iconName:"graduation-cap",icon:[640,512,[127891,"mortar-board"],"f19d","M320 32c-8.1 0-16.1 1.4-23.7 4.1L15.8 137.4C6.3 140.9 0 149.9 0 160s6.3 19.1 15.8 22.6l57.9 20.9C57.3 229.3 48 259.8 48 291.9v28.1c0 28.4-10.8 57.7-22.3 80.8c-6.5 13-13.9 25.8-22.5 37.6C0 442.7-.9 448.3 .9 453.4s6 8.9 11.2 10.2l64 16c4.2 1.1 8.7 .3 12.4-2s6.3-6.1 7.1-10.4c8.6-42.8 4.3-81.2-2.1-108.7C90.3 344.3 86 329.8 80 316.5V291.9c0-30.2 10.2-58.7 27.9-81.5c12.9-15.5 29.6-28 49.2-35.7l157-61.7c8.2-3.2 17.5 .8 20.7 9s-.8 17.5-9 20.7l-157 61.7c-12.4 4.9-23.3 12.4-32.2 21.6l159.6 57.6c7.6 2.7 15.6 4.1 23.7 4.1s16.1-1.4 23.7-4.1L624.2 182.6c9.5-3.4 15.8-12.5 15.8-22.6s-6.3-19.1-15.8-22.6L343.7 36.1C336.1 33.4 328.1 32 320 32zM128 408c0 35.3 86 72 192 72s192-36.7 192-72L496.7 262.6 354.5 314c-11.1 4-22.8 6-34.5 6s-23.5-2-34.5-6L143.3 262.6 128 408z"]};const Jr=we(!0),Yi=wt(()=>Jr.value),Qr=we(!1),Ap={class:"flex"},Sp={class:"grid cursor-pointer place-items-center"},Cp=["checked"],Pp=Fu('',2),Lp={__name:"TheThemeButton",setup(a){const r=we(Jr.value);return Ce(r,c=>{Jr.value=c,c?document.getElementsByTagName("body")[0].classList.add("dark"):document.getElementsByTagName("body")[0].classList.remove("dark")}),(c,d)=>(ct(),gt("div",Ap,[W("label",Sp,[W("input",{type:"checkbox",onClick:d[0]||(d[0]=m=>r.value=!r.value),checked:r.value,class:"toggle theme-controller bg-slate-400 col-span-2 col-start-1 row-start-1 [--tglbg:#e2e8f0]"},null,8,Cp),Pp])]))}},Ke=Object.create(null);Ke.open="0";Ke.close="1";Ke.ping="2";Ke.pong="3";Ke.message="4";Ke.upgrade="5";Ke.noop="6";const Ss=Object.create(null);Object.keys(Ke).forEach(a=>{Ss[Ke[a]]=a});const tn={type:"error",data:"parser error"},xh=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",mh=typeof ArrayBuffer=="function",bh=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a&&a.buffer instanceof ArrayBuffer,Dn=({type:a,data:r},c,d)=>xh&&r instanceof Blob?c?d(r):fl(r,d):mh&&(r instanceof ArrayBuffer||bh(r))?c?d(r):fl(new Blob([r]),d):d(Ke[a]+(r||"")),fl=(a,r)=>{const c=new FileReader;return c.onload=function(){const d=c.result.split(",")[1];r("b"+(d||""))},c.readAsDataURL(a)};function gl(a){return a instanceof Uint8Array?a:a instanceof ArrayBuffer?new Uint8Array(a):new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}let wr;function _p(a,r){if(xh&&a.data instanceof Blob)return a.data.arrayBuffer().then(gl).then(r);if(mh&&(a.data instanceof ArrayBuffer||bh(a.data)))return r(gl(a.data));Dn(a,!1,c=>{wr||(wr=new TextEncoder),r(wr.encode(c))})}const pl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pa=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let a=0;a{let r=a.length*.75,c=a.length,d,m=0,y,S,P,I;a[a.length-1]==="="&&(r--,a[a.length-2]==="="&&r--);const R=new ArrayBuffer(r),F=new Uint8Array(R);for(d=0;d>4,F[m++]=(S&15)<<4|P>>2,F[m++]=(P&3)<<6|I&63;return R},Tp=typeof ArrayBuffer=="function",Bn=(a,r)=>{if(typeof a!="string")return{type:"message",data:vh(a,r)};const c=a.charAt(0);return c==="b"?{type:"message",data:Ip(a.substring(1),r)}:Ss[c]?a.length>1?{type:Ss[c],data:a.substring(1)}:{type:Ss[c]}:tn},Ip=(a,r)=>{if(Tp){const c=Ep(a);return vh(c,r)}else return{base64:!0,data:a}},vh=(a,r)=>{switch(r){case"blob":return a instanceof Blob?a:new Blob([a]);case"arraybuffer":default:return a instanceof ArrayBuffer?a:a.buffer}},yh="",Mp=(a,r)=>{const c=a.length,d=new Array(c);let m=0;a.forEach((y,S)=>{Dn(y,!1,P=>{d[S]=P,++m===c&&r(d.join(yh))})})},Op=(a,r)=>{const c=a.split(yh),d=[];for(let m=0;m{const d=c.length;let m;if(d<126)m=new Uint8Array(1),new DataView(m.buffer).setUint8(0,d);else if(d<65536){m=new Uint8Array(3);const y=new DataView(m.buffer);y.setUint8(0,126),y.setUint16(1,d)}else{m=new Uint8Array(9);const y=new DataView(m.buffer);y.setUint8(0,127),y.setBigUint64(1,BigInt(d))}a.data&&typeof a.data!="string"&&(m[0]|=128),r.enqueue(m),r.enqueue(c)})}})}let kr;function us(a){return a.reduce((r,c)=>r+c.length,0)}function fs(a,r){if(a[0].length===r)return a.shift();const c=new Uint8Array(r);let d=0;for(let m=0;mMath.pow(2,21)-1){P.enqueue(tn);break}m=F*Math.pow(2,32)+R.getUint32(4),d=3}else{if(us(c)a){P.enqueue(tn);break}}}})}const wh=4;function le(a){if(a)return Fp(a)}function Fp(a){for(var r in le.prototype)a[r]=le.prototype[r];return a}le.prototype.on=le.prototype.addEventListener=function(a,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+a]=this._callbacks["$"+a]||[]).push(r),this};le.prototype.once=function(a,r){function c(){this.off(a,c),r.apply(this,arguments)}return c.fn=r,this.on(a,c),this};le.prototype.off=le.prototype.removeListener=le.prototype.removeAllListeners=le.prototype.removeEventListener=function(a,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c=this._callbacks["$"+a];if(!c)return this;if(arguments.length==1)return delete this._callbacks["$"+a],this;for(var d,m=0;m(a.hasOwnProperty(d)&&(c[d]=a[d]),c),{})}const Np=ze.setTimeout,Xp=ze.clearTimeout;function tr(a,r){r.useNativeTimers?(a.setTimeoutFn=Np.bind(ze),a.clearTimeoutFn=Xp.bind(ze)):(a.setTimeoutFn=ze.setTimeout.bind(ze),a.clearTimeoutFn=ze.clearTimeout.bind(ze))}const Yp=1.33;function Hp(a){return typeof a=="string"?Dp(a):Math.ceil((a.byteLength||a.size)*Yp)}function Dp(a){let r=0,c=0;for(let d=0,m=a.length;d=57344?c+=3:(d++,c+=4);return c}function Bp(a){let r="";for(let c in a)a.hasOwnProperty(c)&&(r.length&&(r+="&"),r+=encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return r}function Wp(a){let r={},c=a.split("&");for(let d=0,m=c.length;d0);return r}function Sh(){const a=bl(+new Date);return a!==ml?(xl=0,ml=a):a+"."+bl(xl++)}for(;gs{this.readyState="paused",r()};if(this.polling||!this.writable){let d=0;this.polling&&(d++,this.once("pollComplete",function(){--d||c()})),this.writable||(d++,this.once("drain",function(){--d||c()}))}else c()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const c=d=>{if(this.readyState==="opening"&&d.type==="open"&&this.onOpen(),d.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(d)};Op(r,this.socket.binaryType).forEach(c),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,Mp(r,c=>{this.doWrite(c,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",c=this.query||{};return this.opts.timestampRequests!==!1&&(c[this.opts.timestampParam]=Sh()),!this.supportsBinary&&!c.sid&&(c.b64=1),this.createUri(r,c)}request(r={}){return Object.assign(r,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Ue(this.uri(),r)}doWrite(r,c){const d=this.request({method:"POST",data:r});d.on("success",c),d.on("error",(m,y)=>{this.onError("xhr post error",m,y)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(c,d)=>{this.onError("xhr poll error",c,d)}),this.pollXhr=r}}class Ue extends le{constructor(r,c){super(),tr(this,c),this.opts=c,this.method=c.method||"GET",this.uri=r,this.data=c.data!==void 0?c.data:null,this.create()}create(){var r;const c=kh(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");c.xdomain=!!this.opts.xd;const d=this.xhr=new Ph(c);try{d.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){d.setDisableHeaderCheck&&d.setDisableHeaderCheck(!0);for(let m in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(m)&&d.setRequestHeader(m,this.opts.extraHeaders[m])}}catch{}if(this.method==="POST")try{d.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{d.setRequestHeader("Accept","*/*")}catch{}(r=this.opts.cookieJar)===null||r===void 0||r.addCookies(d),"withCredentials"in d&&(d.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(d.timeout=this.opts.requestTimeout),d.onreadystatechange=()=>{var m;d.readyState===3&&((m=this.opts.cookieJar)===null||m===void 0||m.parseCookies(d)),d.readyState===4&&(d.status===200||d.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof d.status=="number"?d.status:0)},0))},d.send(this.data)}catch(m){this.setTimeoutFn(()=>{this.onError(m)},0);return}typeof document<"u"&&(this.index=Ue.requestsCount++,Ue.requests[this.index]=this)}onError(r){this.emitReserved("error",r,this.xhr),this.cleanup(!0)}cleanup(r){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=$p,r)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Ue.requests[this.index],this.xhr=null}}onLoad(){const r=this.xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Ue.requestsCount=0;Ue.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",vl);else if(typeof addEventListener=="function"){const a="onpagehide"in ze?"pagehide":"unload";addEventListener(a,vl,!1)}}function vl(){for(let a in Ue.requests)Ue.requests.hasOwnProperty(a)&&Ue.requests[a].abort()}const Vn=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,c)=>c(r,0),ps=ze.WebSocket||ze.MozWebSocket,yl=!0,Zp="arraybuffer",wl=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Kp extends Wn{constructor(r){super(r),this.supportsBinary=!r.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const r=this.uri(),c=this.opts.protocols,d=wl?{}:kh(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(d.headers=this.opts.extraHeaders);try{this.ws=yl&&!wl?c?new ps(r,c):new ps(r):new ps(r,c,d)}catch(m){return this.emitReserved("error",m)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let c=0;c{const S={};try{yl&&this.ws.send(y)}catch{}m&&Vn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",c=this.query||{};return this.opts.timestampRequests&&(c[this.opts.timestampParam]=Sh()),this.supportsBinary||(c.b64=1),this.createUri(r,c)}check(){return!!ps}}class Jp extends Wn{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(r=>{const c=Rp(Number.MAX_SAFE_INTEGER,this.socket.binaryType),d=r.readable.pipeThrough(c).getReader(),m=zp();m.readable.pipeTo(r.writable),this.writer=m.writable.getWriter();const y=()=>{d.read().then(({done:P,value:I})=>{P||(this.onPacket(I),y())}).catch(P=>{})};y();const S={type:"open"};this.query.sid&&(S.data=`{"sid":"${this.query.sid}"}`),this.writer.write(S).then(()=>this.onOpen())})}))}write(r){this.writable=!1;for(let c=0;c{m&&Vn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this.transport)===null||r===void 0||r.close()}}const Qp={websocket:Kp,webtransport:Jp,polling:qp},tx=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ex=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function an(a){if(a.length>2e3)throw"URI too long";const r=a,c=a.indexOf("["),d=a.indexOf("]");c!=-1&&d!=-1&&(a=a.substring(0,c)+a.substring(c,d).replace(/:/g,";")+a.substring(d,a.length));let m=tx.exec(a||""),y={},S=14;for(;S--;)y[ex[S]]=m[S]||"";return c!=-1&&d!=-1&&(y.source=r,y.host=y.host.substring(1,y.host.length-1).replace(/;/g,":"),y.authority=y.authority.replace("[","").replace("]","").replace(/;/g,":"),y.ipv6uri=!0),y.pathNames=ix(y,y.path),y.queryKey=ax(y,y.query),y}function ix(a,r){const c=/\/{2,9}/g,d=r.replace(c,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&d.splice(0,1),r.slice(-1)=="/"&&d.splice(d.length-1,1),d}function ax(a,r){const c={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(d,m,y){m&&(c[m]=y)}),c}let Lh=class Ui extends le{constructor(r,c={}){super(),this.binaryType=Zp,this.writeBuffer=[],r&&typeof r=="object"&&(c=r,r=null),r?(r=an(r),c.hostname=r.host,c.secure=r.protocol==="https"||r.protocol==="wss",c.port=r.port,r.query&&(c.query=r.query)):c.host&&(c.hostname=an(c.host).host),tr(this,c),this.secure=c.secure!=null?c.secure:typeof location<"u"&&location.protocol==="https:",c.hostname&&!c.port&&(c.port=this.secure?"443":"80"),this.hostname=c.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=c.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=c.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},c),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Wp(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(r){const c=Object.assign({},this.opts.query);c.EIO=wh,c.transport=r,this.id&&(c.sid=this.id);const d=Object.assign({},this.opts,{query:c,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new Qp[r](d)}open(){let r;if(this.opts.rememberUpgrade&&Ui.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)r="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else r=this.transports[0];this.readyState="opening";try{r=this.createTransport(r)}catch{this.transports.shift(),this.open();return}r.open(),this.setTransport(r)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",c=>this.onClose("transport close",c))}probe(r){let c=this.createTransport(r),d=!1;Ui.priorWebsocketSuccess=!1;const m=()=>{d||(c.send([{type:"ping",data:"probe"}]),c.once("packet",Y=>{if(!d)if(Y.type==="pong"&&Y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;Ui.priorWebsocketSuccess=c.name==="websocket",this.transport.pause(()=>{d||this.readyState!=="closed"&&(F(),this.setTransport(c),c.send([{type:"upgrade"}]),this.emitReserved("upgrade",c),c=null,this.upgrading=!1,this.flush())})}else{const B=new Error("probe error");B.transport=c.name,this.emitReserved("upgradeError",B)}}))};function y(){d||(d=!0,F(),c.close(),c=null)}const S=Y=>{const B=new Error("probe error: "+Y);B.transport=c.name,y(),this.emitReserved("upgradeError",B)};function P(){S("transport closed")}function I(){S("socket closed")}function R(Y){c&&Y.name!==c.name&&y()}const F=()=>{c.removeListener("open",m),c.removeListener("error",S),c.removeListener("close",P),this.off("close",I),this.off("upgrading",R)};c.once("open",m),c.once("error",S),c.once("close",P),this.once("close",I),this.once("upgrading",R),this.upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{d||c.open()},200):c.open()}onOpen(){if(this.readyState="open",Ui.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let r=0;const c=this.upgrades.length;for(;r{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const r=this.getWritablePackets();this.transport.send(r),this.prevBufferLen=r.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let c=1;for(let d=0;d0&&c>this.maxPayload)return this.writeBuffer.slice(0,d);c+=2}return this.writeBuffer}write(r,c,d){return this.sendPacket("message",r,c,d),this}send(r,c,d){return this.sendPacket("message",r,c,d),this}sendPacket(r,c,d,m){if(typeof c=="function"&&(m=c,c=void 0),typeof d=="function"&&(m=d,d=null),this.readyState==="closing"||this.readyState==="closed")return;d=d||{},d.compress=d.compress!==!1;const y={type:r,data:c,options:d};this.emitReserved("packetCreate",y),this.writeBuffer.push(y),m&&this.once("flush",m),this.flush()}close(){const r=()=>{this.onClose("forced close"),this.transport.close()},c=()=>{this.off("upgrade",c),this.off("upgradeError",c),r()},d=()=>{this.once("upgrade",c),this.once("upgradeError",c)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?d():r()}):this.upgrading?d():r()),this}onError(r){Ui.priorWebsocketSuccess=!1,this.emitReserved("error",r),this.onClose("transport error",r)}onClose(r,c){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",r,c),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(r){const c=[];let d=0;const m=r.length;for(;dtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a.buffer instanceof ArrayBuffer,_h=Object.prototype.toString,ox=typeof Blob=="function"||typeof Blob<"u"&&_h.call(Blob)==="[object BlobConstructor]",lx=typeof File=="function"||typeof File<"u"&&_h.call(File)==="[object FileConstructor]";function Gn(a){return rx&&(a instanceof ArrayBuffer||nx(a))||ox&&a instanceof Blob||lx&&a instanceof File}function Cs(a,r){if(!a||typeof a!="object")return!1;if(Array.isArray(a)){for(let c=0,d=a.length;c=0&&a.num{delete this.acks[r];for(let P=0;P{this.io.clearTimeoutFn(y),c.apply(this,P)};S.withError=!0,this.acks[r]=S}emitWithAck(r,...c){return new Promise((d,m)=>{const y=(S,P)=>S?m(S):d(P);y.withError=!0,c.push(y),this.emit(r,...c)})}_addToQueue(r){let c;typeof r[r.length-1]=="function"&&(c=r.pop());const d={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((m,...y)=>d!==this._queue[0]?void 0:(m!==null?d.tryCount>this._opts.retries&&(this._queue.shift(),c&&c(m)):(this._queue.shift(),c&&c(null,...y)),d.pending=!1,this._drainQueue())),this._queue.push(d),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const c=this._queue[0];c.pending&&!r||(c.pending=!0,c.tryCount++,this.flags=c.flags,this.emit.apply(this,c.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:Nt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,c){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,c),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(d=>String(d.id)===r)){const d=this.acks[r];delete this.acks[r],d.withError&&d.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case Nt.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Nt.EVENT:case Nt.BINARY_EVENT:this.onevent(r);break;case Nt.ACK:case Nt.BINARY_ACK:this.onack(r);break;case Nt.DISCONNECT:this.ondisconnect();break;case Nt.CONNECT_ERROR:this.destroy();const d=new Error(r.data.message);d.data=r.data.data,this.emitReserved("connect_error",d);break}}onevent(r){const c=r.data||[];r.id!=null&&c.push(this.ack(r.id)),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const d of c)d.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const c=this;let d=!1;return function(...m){d||(d=!0,c.packet({type:Nt.ACK,id:r,data:m}))}}onack(r){const c=this.acks[r.id];typeof c=="function"&&(delete this.acks[r.id],c.withError&&r.data.unshift(null),c.apply(this,r.data))}onconnect(r,c){this.id=r,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Nt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const c=this._anyListeners;for(let d=0;d0&&a.jitter<=1?a.jitter:0,this.attempts=0}oa.prototype.duration=function(){var a=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),c=Math.floor(r*this.jitter*a);a=Math.floor(r*10)&1?a+c:a-c}return Math.min(a,this.max)|0};oa.prototype.reset=function(){this.attempts=0};oa.prototype.setMin=function(a){this.ms=a};oa.prototype.setMax=function(a){this.max=a};oa.prototype.setJitter=function(a){this.jitter=a};class nn extends le{constructor(r,c){var d;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(c=r,r=void 0),c=c||{},c.path=c.path||"/socket.io",this.opts=c,tr(this,c),this.reconnection(c.reconnection!==!1),this.reconnectionAttempts(c.reconnectionAttempts||1/0),this.reconnectionDelay(c.reconnectionDelay||1e3),this.reconnectionDelayMax(c.reconnectionDelayMax||5e3),this.randomizationFactor((d=c.randomizationFactor)!==null&&d!==void 0?d:.5),this.backoff=new oa({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(c.timeout==null?2e4:c.timeout),this._readyState="closed",this.uri=r;const m=c.parser||px;this.encoder=new m.Encoder,this.decoder=new m.Decoder,this._autoConnect=c.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var c;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(c=this.backoff)===null||c===void 0||c.setMin(r),this)}randomizationFactor(r){var c;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(c=this.backoff)===null||c===void 0||c.setJitter(r),this)}reconnectionDelayMax(r){var c;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(c=this.backoff)===null||c===void 0||c.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new Lh(this.uri,this.opts);const c=this.engine,d=this;this._readyState="opening",this.skipReconnect=!1;const m=De(c,"open",function(){d.onopen(),r&&r()}),y=P=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",P),r?r(P):this.maybeReconnectOnOpen()},S=De(c,"error",y);if(this._timeout!==!1){const P=this._timeout,I=this.setTimeoutFn(()=>{m(),y(new Error("timeout")),c.close()},P);this.opts.autoUnref&&I.unref(),this.subs.push(()=>{this.clearTimeoutFn(I)})}return this.subs.push(m),this.subs.push(S),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(De(r,"ping",this.onping.bind(this)),De(r,"data",this.ondata.bind(this)),De(r,"error",this.onerror.bind(this)),De(r,"close",this.onclose.bind(this)),De(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(c){this.onclose("parse error",c)}}ondecoded(r){Vn(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,c){let d=this.nsps[r];return d?this._autoConnect&&!d.active&&d.connect():(d=new Eh(this,r,c),this.nsps[r]=d),d}_destroy(r){const c=Object.keys(this.nsps);for(const d of c)if(this.nsps[d].active)return;this._close()}_packet(r){const c=this.encoder.encode(r);for(let d=0;dr()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(r,c){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,c),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const c=this.backoff.duration();this._reconnecting=!0;const d=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(m=>{m?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",m)):r.onreconnect()}))},c);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const da={};function Ps(a,r){typeof a=="object"&&(r=a,a=void 0),r=r||{};const c=sx(a,r.path||"/socket.io"),d=c.source,m=c.id,y=c.path,S=da[m]&&y in da[m].nsps,P=r.forceNew||r["force new connection"]||r.multiplex===!1||S;let I;return P?I=new nn(d,r):(da[m]||(da[m]=new nn(d,r)),I=da[m]),c.query&&!r.query&&(r.query=c.queryKey),I.socket(c.path,r)}Object.assign(Ps,{Manager:nn,Socket:Eh,io:Ps,connect:Ps});var xs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mx(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var bx="Expected a function",Al=NaN,vx="[object Symbol]",yx=/^\s+|\s+$/g,wx=/^[-+]0x[0-9a-f]+$/i,kx=/^0b[01]+$/i,Ax=/^0o[0-7]+$/i,Sx=parseInt,Cx=typeof xs=="object"&&xs&&xs.Object===Object&&xs,Px=typeof self=="object"&&self&&self.Object===Object&&self,Lx=Cx||Px||Function("return this")(),_x=Object.prototype,Ex=_x.toString,Tx=Math.max,Ix=Math.min,Ar=function(){return Lx.Date.now()};function Mx(a,r,c){var d,m,y,S,P,I,R=0,F=!1,Y=!1,B=!0;if(typeof a!="function")throw new TypeError(bx);r=Sl(r)||0,on(c)&&(F=!!c.leading,Y="maxWait"in c,y=Y?Tx(Sl(c.maxWait)||0,r):y,B="trailing"in c?!!c.trailing:B);function q(et){var St=d,Wt=m;return d=m=void 0,R=et,S=a.apply(Wt,St),S}function pt(et){return R=et,P=setTimeout(at,r),F?q(et):S}function ht(et){var St=et-I,Wt=et-R,ie=r-St;return Y?Ix(ie,y-Wt):ie}function Lt(et){var St=et-I,Wt=et-R;return I===void 0||St>=r||St<0||Y&&Wt>=y}function at(){var et=Ar();if(Lt(et))return z(et);P=setTimeout(at,ht(et))}function z(et){return P=void 0,B&&d?q(et):(d=m=void 0,S)}function Q(){P!==void 0&&clearTimeout(P),R=0,d=I=m=P=void 0}function tt(){return P===void 0?S:z(Ar())}function V(){var et=Ar(),St=Lt(et);if(d=arguments,m=this,I=et,St){if(P===void 0)return pt(I);if(Y)return P=setTimeout(at,r),q(I)}return P===void 0&&(P=setTimeout(at,r)),S}return V.cancel=Q,V.flush=tt,V}function on(a){var r=typeof a;return!!a&&(r=="object"||r=="function")}function Ox(a){return!!a&&typeof a=="object"}function zx(a){return typeof a=="symbol"||Ox(a)&&Ex.call(a)==vx}function Sl(a){if(typeof a=="number")return a;if(zx(a))return Al;if(on(a)){var r=typeof a.valueOf=="function"?a.valueOf():a;a=on(r)?r+"":r}if(typeof a!="string")return a===0?a:+a;a=a.replace(yx,"");var c=kx.test(a);return c||Ax.test(a)?Sx(a.slice(2),c?2:8):wx.test(a)?Al:+a}var Rx=Mx;const Th=mx(Rx),Fx=void 0,Nx=30,Ih={notificationEvents:[],notificationCounter:0,notificationAPICounter:0,notificationHistory:[],notificationHistoryConfig:{},userActivity:{},userActivityConfig:{},exercises:[],selected_exercises:[],progresses:{},diagnostic:{}},Xt=Ya({...Ih}),Va=Ya({connected:!1,zmq_last_time:!1}),ne=Ps(Fx,{autoConnect:!0}),Xx=wt(()=>Xt.exercises),Cl=wt(()=>Xt.selected_exercises),Sr=wt(()=>Xt.exercises.filter(a=>Xt.selected_exercises.includes(a.uuid))),Na=wt(()=>Xt.progresses),Pl=wt(()=>Xt.notificationEvents),Yx=wt(()=>Xt.notificationCounter),Hx=wt(()=>Xt.notificationAPICounter),bi=wt(()=>Object.keys(Xt.progresses).length),ji=wt(()=>Xt.diagnostic),Cr=wt(()=>Xt.notificationHistory),Dx=wt(()=>Xt.notificationHistoryConfig),Pr=wt(()=>Xt.userActivity),Ll=wt(()=>Xt.userActivityConfig),qi=wt(()=>Va.connected),_l=wt(()=>Va.zmq_last_time);function Bx(){Object.assign(Xt,Ih)}function ln(){Kx(),zh(),Rh(),Ga(),Jx()}function Mh(a,r,c,d){tm(a,{user_id:r,exercise_uuid:c,task_uuid:d})}function Wx(){em()}function Vx(){im()}function Gx(){am()}function jx(a,r){sm({exercise_uuid:a,selected:r})}function $x(a){rm(a)}function Ux(a){nm(a)}function qx(a){om(a,r=>{r.success?Xt.diagnostic.settings[a].value=Xt.diagnostic.settings[a].expected_value:(Xt.diagnostic.settings[a].error=!0,Xt.diagnostic.settings[a].errorMessage=r.message)})}const Oh=Th(Ga,200,{leading:!0}),Zx=Th(Qx,1e3,{leading:!0});function Kx(){ne.emit("get_exercises",a=>{Xt.exercises=a})}function zh(){ne.emit("get_selected_exercises",a=>{Xt.selected_exercises=a})}function Rh(){ne.emit("get_notifications",a=>{Xt.notificationEvents=a})}function Ga(){ne.emit("get_progress",a=>{Xt.progresses=a})}function Jx(){ne.emit("get_users_activity",a=>{Xt.userActivity=a.activity,Xt.userActivityConfig=a.config})}function Qx(){Xt.diagnostic={},ne.emit("get_diagnostic",a=>{Xt.diagnostic=a})}function tm(a,r){const c=a?"mark_task_incomplete":"mark_task_completed";ne.emit(c,r,()=>{Ga()})}function em(){ne.emit("reset_all_exercise_progress",()=>{Ga()})}function im(){ne.emit("reset_all",()=>{Ga()})}function am(){ne.emit("reset_notifications",()=>{Rh()})}function sm(a){ne.emit("change_exercise_selection",a,()=>{zh()})}function rm(a){const r={verbose:a};ne.emit("toggle_verbose_mode",r,()=>{})}function nm(a){const r={apiquery:a};ne.emit("toggle_apiquery_mode",r,()=>{})}function om(a,r){const c={name:a};ne.emit("remediate_setting",c,d=>{r(d)})}ne.on("connect",()=>{Va.connected=!0});ne.on("disconnect",()=>{Va.connected=!1});ne.on("notification",a=>{Xt.notificationCounter+=1,a.is_api_request&&(Xt.notificationAPICounter+=1),lm(Xt.notificationEvents,a,Nx)});ne.on("new_user",a=>{Oh()});ne.on("refresh_score",a=>{Oh()});ne.on("keep_alive",a=>{Va.zmq_last_time=a.zmq_last_time});ne.on("update_notification_history",a=>{Xt.notificationHistory=a.history,Xt.notificationHistoryConfig=a.config});ne.on("update_users_activity",a=>{Xt.userActivity=a.activity,Xt.userActivityConfig=a.config});function lm(a,r,c){a.unshift(r),a.length>c&&(a.length=c)}const cm={class:"modal-box w-11/12 max-w-6xl top-24 absolute bg-slate-200 dark:bg-slate-600 text-slate-700 dark:text-slate-200"},hm={class:"text-2xl font-bold"},dm=W("div",{class:"modal-action"},[W("form",{method:"dialog"},[W("button",{class:"btn btn-sm btn-circle btn-ghost absolute right-2 top-2"},"✕")])],-1),um={class:"flex mb-5 gap-2"},fm={class:"text-lg font-semibold"},gm={class:"label cursor-pointer justify-start"},pm=["onChange","checked","value"],xm={class:"font-mono font-semibold text-base ml-3"},mm={class:"text-lg font-semibold mt-4"},bm={class:"font-semibold ml-1 my-3"},vm=W("strong",null,"MISP Status:",-1),ym={class:"ml-2"},wm={key:0,class:"loading loading-dots loading-sm h-4 inline-block align-middle"},km={key:1,class:"font-bold"},Am={class:"font-semibold ml-1 my-3"},Sm=W("strong",null,"ZMQ Status:",-1),Cm={class:"ml-2"},Pm={key:0,class:"loading loading-dots loading-sm h-4 inline-block align-middle"},Lm={key:1,class:"font-bold"},_m=W("h4",{class:"font-semibold ml-1"},[W("strong",null,"MISP Settings:")],-1),Em={class:"ml-3"},Tm={key:0,class:"flex justify-center"},Im=W("span",{class:"loading loading-dots loading-lg"},null,-1),Mm=[Im],Om={key:1,class:"bg-white dark:bg-slate-700 rounded-lg shadow-xl w-full mt-2"},zm=W("thead",null,[W("tr",null,[W("th",{class:"border-b border-slate-200 dark:border-slate-600 p-2 text-left"},"Setting"),W("th",{class:"border-b border-slate-200 dark:border-slate-600 p-2 text-left"},"Value"),W("th",{class:"border-b border-slate-200 dark:border-slate-600 p-2 text-left"},"Expected Value"),W("th",{class:"border-b border-slate-200 dark:border-slate-600 p-2 text-center"},"Action")])],-1),Rm={class:"font-mono font-semibold text-base px-2"},Fm={key:0,class:"text-nowrap"},Nm={class:"font-mono text-base tracking-tight px-2"},Xm={class:"px-2 text-center"},Ym={key:0,class:"text-red-600 dark:text-red-600"},Hm=["onClick","disabled"],Dm={key:1,class:"loading loading-dots loading-sm"},Bm={key:2,class:"text-base font-bold text-green-600 dark:text-green-600"},Wm=W("form",{method:"dialog",class:"modal-backdrop backdrop-blur"},[W("button",null,"close")],-1),Vm={__name:"TheAdminPanel",setup(a){const r=we(null),c=we([]),d=wt(()=>Object.keys(ji.value).length==0),m=wt(()=>{var F;return((F=ji.value.version)==null?void 0:F.version)!==void 0}),y=wt(()=>ji.value.zmq_message_count>0),S=wt(()=>ji.value.zmq_message_count);function P(F,Y){jx(Y,F)}function I(F){qx(F)}function R(){r.value.showModal(),c.value=[],Zx()}return(F,Y)=>(ct(),gt(Ut,null,[W("button",{onClick:Y[0]||(Y[0]=B=>R()),class:"px-2 py-1 rounded-md focus-outline font-semibold bg-blue-600 text-slate-200 hover:bg-blue-700"},[At(it(Vt),{icon:it(hl),class:"mr-1"},null,8,["icon"]),$t(" Admin panel ")]),W("dialog",{ref_key:"admin_modal",ref:r,class:"modal"},[W("div",cm,[W("h2",hm,[At(it(Vt),{icon:it(hl),class:""},null,8,["icon"]),$t(" Admin panel ")]),dm,W("div",null,[W("div",um,[W("button",{onClick:Y[1]||(Y[1]=B=>it(ln)()),class:"h-10 min-h-10 px-2 py-1 font-semibold bg-blue-600 text-slate-200 hover:bg-blue-700 btn btn-sm gap-1"},[At(it(Vt),{icon:it(vp),size:"lg","fixed-width":""},null,8,["icon"]),$t(" Full refresh ")]),W("button",{onClick:Y[2]||(Y[2]=B=>it(Wx)()),class:"h-10 min-h-10 px-2 py-1 font-semibold bg-red-600 text-slate-200 hover:bg-red-700 btn btn-sm gap-1"},[At(it(Vt),{icon:it(ul),size:"lg","fixed-width":""},null,8,["icon"]),$t(" Reset All Exercises ")]),W("button",{onClick:Y[3]||(Y[3]=B=>it(Vx)()),class:"h-10 min-h-10 px-2 py-1 font-semibold bg-red-600 text-slate-200 hover:bg-red-700 btn btn-sm gap-1"},[At(it(Vt),{icon:it(ul),size:"lg","fixed-width":""},null,8,["icon"]),$t(" Reset All ")]),W("button",{onClick:Y[4]||(Y[4]=B=>it(Gx)()),class:"h-10 min-h-10 px-2 py-1 font-semibold bg-amber-600 text-slate-200 hover:bg-amber-700 btn btn-sm gap-1"},[At(it(Vt),{icon:it(fp),size:"lg"},{default:nc(()=>[$t(" fixed-width")]),_:1},8,["icon"]),$t(" Clear Live Logs ")])]),W("h3",fm,[At(it(Vt),{icon:it(ph),class:"mr-1"},null,8,["icon"]),$t(" Selected Exercises ")]),(ct(!0),gt(Ut,null,Fe(it(Xx),B=>(ct(),gt("div",{key:B.name,class:"form-control pl-3"},[W("label",gm,[W("input",{onChange:q=>P(q.target.checked,B.uuid),type:"checkbox",checked:it(Cl).includes(B.uuid),value:B.uuid,class:Tt(`checkbox ${it(Cl).includes(B.uuid)?"checkbox-success":""} [--fallback-bc:#94a3b8]`)},null,42,pm),W("span",xm,Ft(B.name),1)])]))),128)),W("h3",mm,[At(it(Vt),{icon:it(pp),class:"mr-1"},null,8,["icon"]),$t(" Diagnostic ")]),W("h4",bm,[vm,W("span",ym,[W("span",{class:Tt({"rounded-lg py-1 px-2":!0,"dark:bg-neutral-800 bg-neutral-400 text-slate-800 dark:text-slate-200":d.value,"dark:bg-green-700 bg-green-500 text-slate-800 dark:text-slate-200":!d.value&&m.value,"dark:bg-red-700 bg-red-700 text-slate-200 dark:text-slate-200":!d.value&&!m.value})},[d.value?(ct(),gt("span",wm)):(ct(),gt("span",km,Ft(m.value?`Online (${it(ji).version.version})`:"Unreachable"),1))],2)])]),W("h4",Am,[Sm,W("span",Cm,[W("span",{class:Tt({"rounded-lg py-1 px-2":!0,"dark:bg-neutral-800 bg-neutral-400 text-slate-800 dark:text-slate-200":d.value,"dark:bg-green-700 bg-green-500 text-slate-800 dark:text-slate-200":!d.value&&y.value,"dark:bg-red-700 bg-red-700 text-slate-200 dark:text-slate-200":!d.value&&!y.value})},[d.value?(ct(),gt("span",Pm)):(ct(),gt("span",Lm,Ft(y.value?`ZMQ Active (${S.value} messages)`:"No message received yet"),1))],2)])]),d.value||m.value?(ct(),gt(Ut,{key:0},[_m,W("div",Em,[d.value?(ct(),gt("div",Tm,Mm)):(ct(),gt("table",Om,[zm,W("tbody",null,[(ct(!0),gt(Ut,null,Fe(it(ji).settings,(B,q)=>(ct(),gt("tr",{key:q},[W("td",Rm,Ft(q),1),W("td",{class:Tt(`font-mono text-base tracking-tight px-2 ${B.expected_value!=B.value?"text-red-600 dark:text-red-600":""}`)},[B.value===void 0||B.value===null?(ct(),gt("i",Fm,"- none -")):Ze("",!0),$t(" "+Ft(B.value),1)],2),W("td",Nm,Ft(B.expected_value),1),W("td",Xm,[B.error===!0?(ct(),gt("span",Ym,"Error: "+Ft(B.errorMessage),1)):B.expected_value!=B.value?(ct(),gt("button",{key:1,onClick:pt=>c.value.push(q)&&I(q),disabled:c.value.includes(q),class:"h-8 min-h-8 px-2 font-semibold bg-green-600 text-slate-200 hover:bg-green-700 btn gap-1"},[c.value.includes(q)?(ct(),gt("span",Dm)):(ct(),gt(Ut,{key:0},[At(it(Vt),{icon:it(bp),size:"sm","fixed-width":""},null,8,["icon"]),$t(" Remediate ")],64))],8,Hm)):(ct(),gt("span",Bm,[At(it(Vt),{icon:it(Hn),class:""},null,8,["icon"]),$t(" OK ")]))])]))),128))])]))])],64)):Ze("",!0)])]),Wm],512)],64))}},Gm={class:"flex flex-col justify-center mt-1"},jm=W("span",{class:"mr-1"},"Socket.IO:",-1),$m={class:"font-semibold text-green-600 dark:text-green-400"},Um={class:"font-semibold text-slate-50"},qm={key:0,class:"text-xs font-thin leading-3 inline-block text-center"},Zm={__name:"TheSocketConnectionState",setup(a){const r=we("?");function c(){_l.value!==!1?r.value=parseInt((new Date().getTime()-_l.value*1e3)/1e3):r.value="?"}return ra(()=>{setInterval(()=>{c()},1e3)}),(d,m)=>(ct(),gt("span",Gm,[W("span",{class:Tt({"px-2 rounded-md inline-block w-48 leading-4":!0,"text-slate-900 dark:text-slate-400":it(qi),"text-slate-50 bg-red-600 px-2 py-1":!it(qi)})},[jm,Ea(W("span",$m,"Connected",512),[[Ia,it(qi)]]),Ea(W("span",Um,"Disconnected",512),[[Ia,!it(qi)]])],2),it(qi)?(ct(),gt("span",qm,[r.value==0?(ct(),gt(Ut,{key:0},[$t(" online ")],64)):(ct(),gt(Ut,{key:1},[$t(" Last keep-alive: "+Ft(r.value)+"s ago ",1)],64))])):Ze("",!0)]))}},Km={class:"my-2 --ml-1 bg-slate-50 dark:bg-slate-600 py-1 pl-1 pr-3 rounded-md relative flex flex-col"},Jm={class:"text-xxs flex justify-between h-full items-center text-slate-500 dark:text-slate-300 select-none"},Qm={class:"-rotate-90 w-8 -ml-3"},tb=W("span",{class:"-rotate-90 w-8 text-xs"},"–",-1),eb=W("span",{class:"-rotate-90 w-8 text-lg"},"–",-1),ib=W("span",{class:"-rotate-90 w-8 text-xs"},"–",-1),ab=W("span",{class:"-rotate-90 w-8 -mr-1.5"},"- 0min",-1),sb={__name:"TheLiveLogsActivityGraph",setup(a){const r=we(null),c=[{data:Array.from(Array(12*20)).map(()=>0)}],d=wt(()=>Cr.value.length>0),m=wt(()=>Cr.value?y.value:c.value),y=wt(()=>[{data:Array.from(Cr.value)}]),S=wt(()=>({chart:{type:"bar",width:"100%",height:32,sparkline:{enabled:!0},dropShadow:{enabled:!0,enabledOnSeries:void 0,top:2,left:1,blur:2,color:"#000",opacity:Yi.value?.35:.15},animations:{enabled:!1,easing:"easeinout",speed:200}},colors:[Yi.value?"#008ffb":"#1f9eff"],plotOptions:{bar:{columnWidth:"80%"}},yaxis:{min:0,max:20,labels:{show:!1}},tooltip:{enabled:!1}}));return(P,I)=>{const R=oc("apexchart");return ct(),gt("div",Km,[W("div",{class:Tt(`${d.value?"absolute":"hidden"} h-10 -mt-1 w-full z-30`)},[W("div",Jm,[W("span",Qm,"- "+Ft(it(Dx).buffer_timestamp_min)+"min",1),tb,eb,ib,ab])],2),W("i",{class:Tt(["text-center text-slate-600 dark:text-slate-400",d.value?"hidden":"block"])}," - No recorded activity - ",2),At(R,{ref_key:"theChart",ref:r,class:Tt(d.value?"block":"absolute h-8 w-full"),height:"32",width:"100%",options:S.value,series:m.value},null,8,["class","options","series"])])}}},rb={class:"text-2xl mt-6 mb-2 font-bold text-blue-500 dark:text-blue-400"},nb={class:"mb-2 flex flex-wrap gap-x-3"},ob={class:"rounded-lg py-1 px-2 dark:bg-sky-700 bg-sky-400 text-slate-800 dark:text-slate-200"},lb={class:"mr-1"},cb={class:"font-bold"},hb={class:"rounded-lg py-1 px-2 dark:bg-sky-700 bg-sky-400 text-slate-800 dark:text-slate-200"},db={class:"mr-1"},ub={class:"font-bold"},fb={class:"rounded-lg py-1 px-2 dark:bg-sky-700 bg-sky-400 text-slate-800 dark:text-slate-200"},gb={class:"mr-1"},pb={class:"font-bold"},xb={class:"flex items-center"},mb={class:"mr-1 flex items-center cursor-pointer text-slate-700 dark:text-slate-300"},bb=["checked"],vb={class:"flex items-center"},yb={class:"mr-1 flex items-center cursor-pointer text-slate-700 dark:text-slate-300"},wb=["checked"],kb={class:"bg-white dark:bg-slate-800 rounded-lg shadow-xl w-full"},Ab=W("thead",null,[W("tr",{class:"font-medium dark:text-slate-200 text-slate-600"},[W("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 pl-6 text-left"}),W("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 pl-2 text-left"},"User"),W("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 text-left"},"Time"),W("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 text-left"},"URL"),W("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 text-left"},"Payload")])],-1),Sb={key:0},Cb=W("td",{colspan:"5",class:"text-center border-b border-slate-100 dark:border-slate-700 text-slate-600 dark:text-slate-400 p-3 pl-6"},[W("i",null,"- No logs yet -")],-1),Pb=[Cb],Lb={class:"border-b border-slate-100 dark:border-slate-700 text-slate-600 dark:text-slate-400 p-1 pl-2 w-12 whitespace-nowrap"},_b={class:"inline ml-1"},Eb=["title"],Tb={class:"text-lg font-bold font-mono"},Ib={class:"text-xs font-mono"},Mb={class:"border-b border-slate-100 dark:border-slate-700 text-slate-600 dark:text-slate-400 p-1"},Ob={class:"border-b border-slate-100 dark:border-slate-700 text-sky-600 dark:text-sky-400 p-1"},zb={class:"flex items-center"},Rb={key:0,class:"p-1 rounded-md font-bold text-xs mr-2 w-10 inline-block text-center dark:bg-amber-600 dark:text-neutral-100 bg-amber-600 text-neutral-100"},Fb={key:1,class:"p-1 rounded-md font-bold text-xs mr-2 w-10 inline-block text-center dark:bg-amber-600 dark:text-neutral-100 bg-amber-600 text-neutral-100"},Nb={key:2,class:"p-1 rounded-md font-bold text-xs mr-2 w-10 inline-block text-center dark:bg-red-600 dark:text-neutral-100 bg-red-600 text-neutral-100"},Xb={key:3,class:"p-1 rounded-md font-bold text-xs mr-2 w-10 inline-block text-center dark:bg-blue-600 dark:text-neutral-100 bg-blue-600 text-neutral-100"},Yb={class:"text-sm inline"},Hb={class:"border-b border-slate-100 dark:border-slate-700 text-slate-600 dark:text-slate-300 p-1"},Db={key:0,class:"border border-slate-200 dark:border-slate-600 bg-slate-100 dark:bg-slate-600 rounded-md"},Bb={class:"p-1 text-xs"},Wb={__name:"TheLiveLogs",setup(a){const r=we(!1),c=we(!1);Ce(r,m=>{$x(m==!0)}),Ce(c,m=>{Ux(m==!0)});function d(m){return String(m).startsWith("2")||m==302?"text-green-500":String(m).startsWith("5")?"text-red-600":"text-amber-600"}return(m,y)=>(ct(),gt("div",null,[W("h3",rb,[At(it(Vt),{icon:it(dl)},null,8,["icon"]),$t(" Live logs ")]),W("div",nb,[W("span",ob,[W("span",lb,[At(it(Vt),{icon:it(uh),size:"sm"},null,8,["icon"]),$t(" Players: ")]),W("span",cb,Ft(it(bi)),1)]),W("span",hb,[W("span",db,[At(it(Vt),{icon:it(dl),size:"sm"},null,8,["icon"]),$t(" Total Queries: ")]),W("span",ub,Ft(it(Yx)),1)]),W("span",fb,[W("span",gb,[At(it(Vt),{icon:it(yr),size:"sm",mask:it(vr),transform:"shrink-7 left-1"},null,8,["icon","mask"]),$t(" Total API Queries: ")]),W("span",pb,Ft(it(Hx)),1)]),W("span",xb,[W("label",mb,[W("input",{type:"checkbox",class:"toggle toggle-warning [--fallback-su:#22c55e] mr-1",checked:r.value,onChange:y[0]||(y[0]=S=>r.value=!r.value)},null,40,bb),$t(" Verbose ")])]),W("span",vb,[W("label",yb,[W("input",{type:"checkbox",class:"toggle toggle-success [--fallback-su:#22c55e] mr-1",checked:c.value,onChange:y[1]||(y[1]=S=>c.value=!c.value)},null,40,wb),At(it(Vt),{icon:it(yr),size:"sm",mask:it(vr),transform:"shrink-7 left-1",class:"mr-1"},null,8,["icon","mask"]),$t(" API Queries ")])])]),At(sb),W("table",kb,[Ab,W("tbody",null,[it(Pl).length==0?(ct(),gt("tr",Sb,Pb)):(ct(!0),gt(Ut,{key:1},Fe(it(Pl),S=>(ct(),gt("tr",{key:S.id},[W("td",Lb,[At(it(Vt),{icon:it(gp),size:"xs",class:Tt(d(S.response_code))},null,8,["icon","class"]),W("pre",_b,Ft(S.response_code),1)]),W("td",{class:"border-b border-slate-100 dark:border-slate-700 text-slate-600 dark:text-slate-400 p-1 pl-2",title:S.user_id},[W("span",Tb,Ft(S.user.split("@")[0]),1),W("span",Ib,"@"+Ft(S.user.split("@")[1]),1)],8,Eb),W("td",Mb,Ft(S.time),1),W("td",Ob,[W("div",zb,[S.http_method=="POST"?(ct(),gt("span",Rb,"POST")):S.http_method=="PUT"?(ct(),gt("span",Fb,"PUT")):S.http_method=="DELETE"?(ct(),gt("span",Nb,"DEL")):(ct(),gt("span",Xb,Ft(S.http_method),1)),S.is_api_request?(ct(),Ie(it(Vt),{key:4,class:"text-slate-800 dark:text-slate-100 mr-1 inline-block",icon:it(yr),mask:it(vr),transform:"shrink-7 left-1"},null,8,["icon","mask"])):Ze("",!0),W("pre",Yb,Ft(S.url),1)])]),W("td",Hb,[S.http_method=="POST"?(ct(),gt("div",Db,[W("pre",Bb,Ft(JSON.stringify(S.payload,null,2)),1)])):Ze("",!0)])]))),128))])])]))}};var Fh={prefix:"far",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z"]};const Vb=["title"],Gb="blue",$n={__name:"LiveLogsUserActivityGraph",props:["user_id","compact_view","ultra_compact_view"],setup(a){const r=a;we(null);const c=wt(()=>Ll.value.activity_buffer_size),d=wt(()=>Ll.value.timestamp_min),m=wt(()=>Array.from(Array(c.value)).map(()=>0)),y=wt(()=>Pr.value.length!=0),S=wt(()=>y.value?P.value:m.value),P=wt(()=>Pr.value[r.user_id]===void 0?m.value:Pr.value[r.user_id]),I=[0,1,2,3,4,5,1e3],R=["900","700","600","500","400","300","200"],F=["50","100","300","400","500","600","700"];function Y(B){for(let q=0;q(ct(),gt("span",{class:Tt(`${r.ultra_compact_view?"w-[120px]":"w-60"} ${r.compact_view?"h-1.5 inline-flex":"h-3"}`),title:`Activity over ${d.value}min`},[(ct(!0),gt(Ut,null,Fe(S.value,(pt,ht)=>(ct(),gt("span",{key:ht,class:Tt(["inline-block rounded-[1px] mr-px",r.compact_view?"h-1.5":"h-3",`bg-${Gb}-${Y(pt)}`]),style:ia(`width: ${(((r.ultra_compact_view?120:240)-S.value.length)/S.value.length).toFixed(1)}px`)},null,6))),128))],10,Vb))}},jb={class:"bg-white dark:bg-slate-800 rounded-lg shadow-xl w-full mb-4"},$b=["colspan"],Ub={class:"flex justify-between items-center"},qb={class:"dark:text-blue-200 text-slate-200"},Zb={class:"text-lg"},Kb={class:""},Jb=W("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 pl-6 text-left"},"User",-1),Qb=["title"],tv={class:"flex flex-col"},ev={class:"text-center font-normal text-sm dark:text-blue-200 text-slate-500 text-nowrap"},iv={class:"text-center"},av=["aria-valuenow","title"],sv=W("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 text-left"},"Progress",-1),rv={key:0},nv=["colspan"],ov=W("i",null,"- No user yet -",-1),lv=[ov],cv={class:"border-b border-slate-200 dark:border-slate-700 text-slate-600 dark:text-slate-400 p-0 pl-2 relative"},hv={class:"flex flex-col max-w-60"},dv=["title"],uv={class:"text-lg font-bold font-mono leading-5 tracking-tight"},fv={class:"text-xs font-mono tracking-tight"},gv=["onClick"],pv={class:"flex flex-col"},xv={class:"text-nowrap"},mv={class:"border-b border-slate-200 dark:border-slate-700 text-slate-500 dark:text-slate-400 p-3"},bv=["aria-valuenow"],vv={__name:"TheScoreTable",props:["exercise","exercise_index"],setup(a){const r=a,c=we([]);function d(R,F,Y,B){Mh(R,F,Y,B)}function m(R){const F=c.value.indexOf(R);F>=0?c.value.splice(F,1):c.value.push(R)}const y=wt(()=>bi.value>20),S=wt(()=>Object.keys(Na.value).length>0),P=wt(()=>Object.values(Na.value).sort((R,F)=>R.emailF.email?1:0)),I=wt(()=>{const R={};Object.values(r.exercise.tasks).forEach(F=>{R[F.uuid]=0}),P.value.forEach(F=>{for(const[Y,B]of Object.entries(F.exercises[r.exercise.uuid].tasks_completion))B!==!1&&(R[Y]+=1)});for(const[F,Y]of Object.entries(R))R[F]=100*(Y/bi.value);return R});return(R,F)=>(ct(),gt("table",jb,[W("thead",null,[W("tr",{onClick:F[0]||(F[0]=Y=>m(a.exercise_index)),class:"cursor-pointer"},[W("th",{colspan:2+a.exercise.tasks.length,class:"rounded-tl-lg border-b border-slate-100 dark:border-slate-700 text-md p-3 pl-6 text-center dark:bg-blue-800 bg-blue-500 dark:text-slate-300 text-slate-100"},[W("div",Ub,[W("span",qb,"# "+Ft(a.exercise_index+1),1),W("span",Zb,Ft(a.exercise.name),1),W("span",Kb,[$t(" Level: "),W("span",{class:Tt({"rounded-lg px-1 ml-2":!0,"dark:bg-sky-400 bg-sky-400 text-neutral-950":a.exercise.level=="beginner","dark:bg-orange-400 bg-orange-400 text-neutral-950":a.exercise.level=="advanced","dark:bg-red-600 bg-red-600 text-neutral-950":a.exercise.level=="expert"})},Ft(a.exercise.level),3)])])],8,$b)]),W("tr",{class:Tt(`font-medium text-slate-600 dark:text-slate-200 ${c.value.includes(a.exercise_index)?"hidden":""}`)},[Jb,(ct(!0),gt(Ut,null,Fe(a.exercise.tasks,(Y,B)=>(ct(),gt("th",{key:Y.name,class:"border-b border-slate-100 dark:border-slate-700 p-3 align-top",title:Y.description},[W("div",tv,[W("span",ev,"Task "+Ft(B+1),1),W("i",iv,Ft(Y.name),1),W("div",{role:"progressbar",class:"flex w-full h-1 bg-gray-200 rounded-full overflow-hidden dark:bg-neutral-600","aria-valuenow":I.value[Y.uuid],"aria-valuemin":0,"aria-valuemax":"100",title:`${I.value[Y.uuid].toFixed(0)}%`},[W("div",{class:"flex flex-col justify-center rounded-full overflow-hidden bg-blue-600 text-xs text-white text-center whitespace-nowrap transition duration-500 dark:bg-blue-500 transition-width transition-slowest ease",style:ia(`width: ${I.value[Y.uuid]}%`)},null,4)],8,av)])],8,Qb))),128)),sv],2)]),W("tbody",{class:Tt(`${c.value.includes(a.exercise_index)?"hidden":""}`)},[S.value?(ct(!0),gt(Ut,{key:1},Fe(P.value,Y=>(ct(),gt("tr",{key:Y.user_id,class:"bg-slate-100 dark:bg-slate-900"},[W("td",cv,[W("span",hv,[W("span",{title:Y.user_id,class:"text-nowrap inline-block leading-5 truncate"},[Y.exercises[a.exercise.uuid].score/Y.exercises[a.exercise.uuid].max_score==1?(ct(),Ie(it(Vt),{key:0,icon:it(fh),class:"mr-1 text-amber-300"},null,8,["icon"])):Ze("",!0),W("span",uv,Ft(Y.email.split("@")[0]),1),W("span",fv,"@"+Ft(Y.email.split("@")[1]),1)],8,dv),At($n,{user_id:Y.user_id,compact_view:y.value},null,8,["user_id","compact_view"])])]),(ct(!0),gt(Ut,null,Fe(a.exercise.tasks,(B,q)=>{var pt;return ct(),gt("td",{key:q,class:Tt(`text-center border-b border-slate-200 dark:border-slate-700 text-slate-500 dark:text-slate-400 ${y.value?"p-0":"p-2"}`)},[W("span",{class:"select-none cursor-pointer flex justify-center content-center flex-wrap h-9",onClick:ht=>d(Y.exercises[a.exercise.uuid].tasks_completion[B.uuid],Y.user_id,a.exercise.uuid,B.uuid)},[W("span",pv,[W("span",xv,[Y.exercises[a.exercise.uuid].tasks_completion[B.uuid]?(ct(),Ie(it(Vt),{key:0,icon:Y.exercises[a.exercise.uuid].tasks_completion[B.uuid].first_completion?it(Fh):it(Hn),class:Tt(` ${Y.exercises[a.exercise.uuid].tasks_completion[B.uuid]?"dark:text-green-400 text-green-600":"dark:text-slate-500 text-slate-400"} ${Y.exercises[a.exercise.uuid].tasks_completion[B.uuid].first_completion?"text-lg":"text-xl"} `)},null,8,["icon","class"])):((pt=B.requirements)==null?void 0:pt.inject_uuid)!==void 0&&!Y.exercises[a.exercise.uuid].tasks_completion[B.requirements.inject_uuid]?(ct(),Ie(it(Vt),{key:1,title:"All requirements for that task haven't been fullfilled yet",icon:it(dh),class:Tt(`text-lg ${Y.exercises[a.exercise.uuid].tasks_completion[B.uuid]?"dark:text-green-400 text-green-600":"dark:text-slate-500 text-slate-400"}`)},null,8,["icon","class"])):(ct(),Ie(it(Vt),{key:2,icon:it(gh),class:Tt(`text-xl ${Y.exercises[a.exercise.uuid].tasks_completion[B.uuid]?"dark:text-green-400 text-green-600":"dark:text-slate-500 text-slate-400"}`)},null,8,["icon","class"])),W("small",{class:Tt(Y.exercises[a.exercise.uuid].tasks_completion[B.uuid]?"dark:text-green-400 text-green-600":"dark:text-slate-500 text-slate-400")}," (+"+Ft(B.score)+")",3)]),W("span",{class:Tt(["leading-3",y.value?"text-xs":"text-sm"])},[Y.exercises[a.exercise.uuid].tasks_completion[B.uuid].timestamp?(ct(),gt("span",{key:0,class:Tt(Y.exercises[a.exercise.uuid].tasks_completion[B.uuid].first_completion?"font-bold":"font-extralight")},Ft(new Date(Y.exercises[a.exercise.uuid].tasks_completion[B.uuid].timestamp*1e3).toTimeString().split(" ",1)[0]),3)):Ze("",!0)],2)])],8,gv)],2)}),128)),W("td",mv,[W("div",{class:"flex w-full h-2 bg-gray-200 rounded-full overflow-hidden dark:bg-neutral-600",role:"progressbar","aria-valuenow":Y.exercises[a.exercise.uuid].score,"aria-valuemin":0,"aria-valuemax":"100"},[W("div",{class:"flex flex-col justify-center rounded-full overflow-hidden bg-green-600 text-xs text-white text-center whitespace-nowrap transition duration-500 dark:bg-green-500 transition-width transition-slowest ease",style:ia(`width: ${100*(Y.exercises[a.exercise.uuid].score/Y.exercises[a.exercise.uuid].max_score)}%`)},null,4)],8,bv)])]))),128)):(ct(),gt("tr",rv,[W("td",{colspan:2+a.exercise.tasks.length,class:"text-center border-b border-slate-100 dark:border-slate-700 text-slate-600 dark:text-slate-400 p-3 pl-6"},lv,8,nv)]))],2)]))}},yv={class:"fixed inset-2 z-40 h-100 overflow-x-hidden rounded-lg bg-slate-300 dark:bg-slate-800 border border-slate-400 dark:border-slate-800"},wv={class:"rounded-t-lg text-md p-3 pl-6 text-center dark:bg-blue-800 bg-blue-500 dark:text-slate-300 text-slate-100"},kv={class:"flex justify-between items-center"},Av={class:"text-lg font-semibold"},Sv={class:"mr-8"},Cv={class:"p-2"},Pv={class:"flex justify-between mb-3"},Lv=["title"],_v={class:"flex flex-col"},Ev={class:"text-center font-normal text-sm dark:text-blue-200 text-slate-800 text-nowrap"},Tv={class:"text-center leading-4 text-slate-600 dark:text-slate-400"},Iv={class:"inline-block h-18 -mt-4 mx-auto"},Mv={class:"flex p-2 mb-1 text-slate-600 dark:text-slate-400"},Ov=["title"],zv={class:"flex flex-row justify-between px-2 text-slate-500 dark:text-slate-400"},Rv=["onClick","title"],Fv={class:"text-nowrap"},Nv={__name:"TheFullScreenScoreGrid",props:["exercise","exercise_index"],setup(a){const r=a;we([]);const c=wt(()=>({chart:{type:"radialBar",height:120,sparkline:{enabled:!0},animations:{enabled:!1,easing:"easeinout",speed:200}},colors:[Yi.value?"#008ffb":"#1f9eff"],plotOptions:{radialBar:{startAngle:-110,endAngle:110,hollow:{margin:0,size:"30%",background:"#64748b",position:"front",dropShadow:{enabled:!0,top:3,left:0,blur:4,opacity:.24}},track:{background:"#475569",strokeWidth:"97%",margin:0,dropShadow:{enabled:!0,top:3,left:0,blur:3,opacity:.35}},dataLabels:{show:!0,name:{show:!1},value:{formatter:function(I){return parseInt(I*bi.value/100)},offsetY:7,color:Yi.value?"#cbd5e1":"#f1f5f9",fontSize:"1.25rem",show:!0}}}},stroke:{lineCap:"smooth"},colors:[Yi.value?"#008ffb":"#1f9eff"],labels:["Progress"],tooltip:{enabled:!1}}));function d(I,R,F,Y){Mh(I,R,F,Y)}const m=wt(()=>bi.value>70),y=wt(()=>bi.value>100);wt(()=>Object.keys(Na.value).length>0);const S=wt(()=>Object.values(Na.value).sort((I,R)=>I.emailR.email?1:0)),P=wt(()=>{const I={};Object.values(r.exercise.tasks).forEach(R=>{I[R.uuid]=0}),S.value.forEach(R=>{for(const[F,Y]of Object.entries(R.exercises[r.exercise.uuid].tasks_completion))Y!==!1&&(I[F]+=1)});for(const[R,F]of Object.entries(I))I[R]=100*(F/bi.value);return I});return(I,R)=>{const F=oc("apexchart");return ct(),gt("div",yv,[W("div",wv,[W("div",kv,[W("span",Av,Ft(a.exercise.name),1),W("span",Sv,[$t(" Level: "),W("span",{class:Tt({"rounded-lg px-1 ml-2":!0,"dark:bg-sky-400 bg-sky-400 text-neutral-950":a.exercise.level=="beginner","dark:bg-orange-400 bg-orange-400 text-neutral-950":a.exercise.level=="advanced","dark:bg-red-600 bg-red-600 text-neutral-950":a.exercise.level=="expert"})},Ft(a.exercise.level),3)])])]),W("div",Cv,[W("div",Pv,[(ct(!0),gt(Ut,null,Fe(a.exercise.tasks,(Y,B)=>(ct(),gt("span",{key:Y.name,class:"p-1 inline-block",title:Y.description},[W("span",_v,[W("span",Ev,"Task "+Ft(B+1),1),W("i",Tv,Ft(Y.name),1),W("span",Iv,[At(F,{ref_for:!0,ref:"theChart",class:"",height:"120",width:"100",options:c.value,series:[P.value[Y.uuid]]},null,8,["options","series"])])])],8,Lv))),128))]),W("div",{class:Tt(`flex flex-wrap ${m.value?"gap-1":"gap-2"}`)},[(ct(!0),gt(Ut,null,Fe(S.value,Y=>(ct(),gt("span",{key:Y.user_id,class:Tt(["bg-slate-200 dark:bg-slate-900 rounded border drop-shadow-lg",Y.exercises[a.exercise.uuid].score/Y.exercises[a.exercise.uuid].max_score==1?"border-green-700":"border-slate-700"])},[W("span",Mv,[W("span",{class:Tt(`flex flex-col ${m.value?"w-[120px]":"w-60"} ${m.value?"":"mb-1"}`)},[W("span",{title:Y.user_id,class:"text-nowrap inline-block leading-5 truncate mb-1"},[Y.exercises[a.exercise.uuid].score/Y.exercises[a.exercise.uuid].max_score==1?(ct(),Ie(it(Vt),{key:0,icon:it(fh),class:"mr-1 text-amber-300"},null,8,["icon"])):Ze("",!0),W("span",{class:Tt(`${m.value?"text-base":"text-lg"} font-bold font-mono leading-5 tracking-tight`)},Ft(Y.email.split("@")[0]),3),W("span",{class:Tt(`${m.value,"text-xs"} font-mono tracking-tight`)},"@"+Ft(Y.email.split("@")[1]),3)],8,Ov),At($n,{user_id:Y.user_id,compact_view:m.value,ultra_compact_view:y.value},null,8,["user_id","compact_view","ultra_compact_view"])],2)]),W("span",zv,[(ct(!0),gt(Ut,null,Fe(a.exercise.tasks,(B,q)=>{var pt;return ct(),gt("span",{key:q,class:"select-none cursor-pointer",onClick:ht=>d(Y.exercises[a.exercise.uuid].tasks_completion[B.uuid],Y.user_id,a.exercise.uuid,B.uuid),title:B.name},[W("span",Fv,[Y.exercises[a.exercise.uuid].tasks_completion[B.uuid]?(ct(),Ie(it(Vt),{key:0,icon:Y.exercises[a.exercise.uuid].tasks_completion[B.uuid]&&Y.exercises[a.exercise.uuid].tasks_completion[B.uuid].first_completion?it(Fh):it(Hn),class:Tt(`${m.value?"text-xs":"text-xl"} dark:text-green-400 text-green-600`),"fixed-width":""},null,8,["icon","class"])):((pt=B.requirements)==null?void 0:pt.inject_uuid)!==void 0&&!Y.exercises[a.exercise.uuid].tasks_completion[B.requirements.inject_uuid]?(ct(),Ie(it(Vt),{key:1,title:"All requirements for that task haven't been fullfilled yet",icon:it(dh),class:Tt(`${m.value?"text-xs":"text-lg"} dark:text-slate-500 text-slate-400`),"fixed-width":""},null,8,["icon","class"])):(ct(),Ie(it(Vt),{key:2,icon:it(gh),class:Tt(`${m.value?"text-xs":"text-xl"} dark:text-slate-500 text-slate-400`),"fixed-width":""},null,8,["icon","class"]))])],8,Rv)}),128))])],2))),128))],2)])])}}},Xv={class:"mt-2 px-2 pt-1 pb-2 rounded border bg-slate-100 border-slate-300 dark:bg-slate-600 dark:border-slate-800"},Yv={class:"text-xl mb-2 font-bold text-blue-500 dark:text-blue-400"},Hv={class:"flex p-2 mb-1 text-slate-600 dark:text-slate-400"},Dv=["title"],Bv={__name:"ThePlayerGrid",setup(a){const r=wt(()=>bi.value>70),c=wt(()=>Object.values(Na.value).sort((d,m)=>d.emailm.email?1:0));return(d,m)=>(ct(),gt("div",Xv,[W("h4",Yv,[At(it(Vt),{icon:it(uh)},null,8,["icon"]),$t(" Active Players ")]),W("div",{class:Tt(`flex flex-wrap ${r.value?"gap-1":"gap-2"}`)},[(ct(!0),gt(Ut,null,Fe(c.value,y=>(ct(),gt("span",{key:y.user_id,class:"bg-slate-200 dark:bg-slate-900 rounded border drop-shadow-lg border-slate-700"},[W("span",Hv,[W("span",{class:Tt(`flex flex-col ${r.value?"w-[120px]":"w-60"}`)},[W("span",{title:y.user_id,class:"text-nowrap inline-block leading-5 truncate"},[W("span",{class:Tt(`${r.value?"text-base":"text-lg"} font-bold font-mono leading-5 tracking-tight`)},Ft(y.email.split("@")[0]),3),W("span",{class:Tt(`${r.value,"text-xs"} font-mono tracking-tight`)},"@"+Ft(y.email.split("@")[1]),3)],8,Dv),At($n,{user_id:y.user_id,compact_view:r.value,ultra_compact_view:!1},null,8,["user_id","compact_view"])],2)])]))),128))],2)]))}},Wv={class:"text-2xl mt-6 mb-2 font-bold text-blue-500 dark:text-blue-400"},Vv={key:0,class:"text-slate-600 dark:text-slate-400 p-3 pl-6"},Gv={class:"p-2 border-l-4 text-left rounded dark:bg-yellow-300 dark:text-slate-900 dark:border-yellow-700 bg-yellow-200 text-slate-900 border-yellow-700"},jv=W("strong",{class:""},"No Exercise available.",-1),$v=W("span",{class:"ml-1"},[$t("Select an exercise in the "),W("i",{class:"underline"},"Admin panel"),$t(".")],-1),Uv=["onClick"],qv={__name:"TheScores",setup(a){const r=wt(()=>Sr.value.length>0),c=we(!1);function d(m){c.value===m?(c.value=!1,Qr.value=!1):(c.value=m,Qr.value=!0)}return(m,y)=>(ct(),gt(Ut,null,[W("h3",Wv,[At(it(Vt),{icon:it(ph)},null,8,["icon"]),$t(" Active Exercises ")]),r.value?Ze("",!0):(ct(),gt("div",Vv,[W("div",Gv,[At(it(Vt),{icon:it(kp),class:"text-yellow-700 text-lg mx-3"},null,8,["icon"]),jv,$v]),At(Bv)])),(ct(!0),gt(Ut,null,Fe(it(Sr),(S,P)=>(ct(),gt("div",{key:S.name,class:Tt(c.value===!1?"relative min-w-fit":"")},[Ea(W("span",{class:Tt(["inline-block absolute shadow-lg z-50",c.value===!1?"top-0 -right-7":"top-2 right-2"])},[W("button",{onClick:I=>d(P),title:"Toggle fullscreen mode",class:Tt(` w-7 p-1 focus-outline font-semibold text-slate-800 bg-slate-100 hover:bg-slate-200 dark:text-slate-200 dark:bg-slate-800 dark:hover:bg-slate-900 ${c.value===!1?"rounded-r-md":"rounded-bl-md"} `)},[At(it(Vt),{icon:c.value!==P?it(yp):it(up),"fixed-width":""},null,8,["icon"])],10,Uv)],2),[[Ia,c.value===!1||c.value===P]]),(ct(),Ie(ko,null,[Ea(At(vv,{exercise:S,exercise_index:P},null,8,["exercise","exercise_index"]),[[Ia,c.value===!1]])],1024)),(ct(),Ie(ko,null,[c.value!==!1?(ct(),Ie(Nv,{key:0,exercise:it(Sr)[c.value],exercise_index:P},null,8,["exercise","exercise_index"])):Ze("",!0)],1024))],2))),128))],64))}},Zv={class:"mb-3"},Kv={__name:"TheDahboard",setup(a){return Ce(qi,r=>{r&&(Bx(),ln())}),ra(()=>{ln()}),(r,c)=>(ct(),gt("div",Zv,[At(qv),Ea(At(Wb,null,null,512),[[Ia,!it(Qr)]])]))}},Jv=W("h1",{class:"text-2xl text-center text-slate-500 dark:text-slate-400 absolute top-1 left-1"},"Exercise Dashboard",-1),Qv={class:"absolute top-1 right-1"},t0={class:"flex gap-2"},e0={__name:"App",setup(a){return ra(()=>{Yi.value&&document.getElementsByTagName("body")[0].classList.add("dark")}),(r,c)=>(ct(),gt("main",null,[Jv,W("div",Qv,[W("div",t0,[At(Lp),At(Vm),At(Zm)])]),At(Kv)]))}},Nh=xf(e0);Nh.use(Rs);Nh.mount("#app");