1487 lines
725 KiB
JavaScript
1487 lines
725 KiB
JavaScript
(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<a.length;c++)a[c](...r)},Ol=(a,r,c,d=!1)=>{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<a.length;c++){const d=a[c],m=ce(d)?od(d):ia(d);if(m)for(const y in m)r[y]=m[y]}return r}else if(ce(a)||Qt(a))return a}const sd=/;(?![^(]*\))/g,rd=/:([^]+)/,nd=/\/\*[^]*?\*\//g;function od(a){const r={};return a.replace(nd,"").split(sd).forEach(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;c<a.length;c++){const d=Tt(a[c]);d&&(r+=d+" ")}else if(Qt(a))for(const c in a)a[c]&&(r+=c+" ");return r.trim()}const ld="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",cd=cn(ld);function Rl(a){return!!a||a===""}const Ft=a=>ce(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<d;c++)this.effects[c].stop();for(c=0,d=this.cleanups.length;c<d;c++)this.cleanups[c]();if(this.scopes)for(c=0,d=this.scopes.length;c<d;c++)this.scopes[c].stop(!0);if(!this.detached&&this.parent&&!r){const m=this.parent.scopes.pop();m&&m!==this&&(this.parent.scopes[this.index]=m,m.index=this.index)}this.parent=void 0,this._active=!1}}}function dd(a,r=He){r&&r.active&&r.effects.push(a)}function ud(){return He}let Ni;class fn{constructor(r,c,d,m){this.fn=r,this.trigger=c,this.scheduler=d,this.active=!0,this.deps=[],this._dirtyLevel=5,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,dd(this,m)}get dirty(){if(this._dirtyLevel===2)return!1;if(this._dirtyLevel===3||this._dirtyLevel===4){this._dirtyLevel=1,Ci();for(let r=0;r<this._depsLength;r++){const c=this.deps[r];if(c.computed){if(c.computed.effect._dirtyLevel===2)return!0;if(fd(c.computed),this._dirtyLevel>=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;r<a.deps.length;r++)Nl(a.deps[r],a);a.deps.length=a._depsLength}}function Nl(a,r){const c=a.get(r);c!==void 0&&r._trackId!==c&&(a.delete(r),a.size===0&&a.cleanup())}let vi=!0,Lr=0;const Xl=[];function Ci(){Xl.push(vi),vi=!1}function Pi(){const a=Xl.pop();vi=a===void 0?!0:a}function gn(){Lr++}function pn(){for(Lr--;!Lr&&_r.length;)_r.shift()()}function Yl(a,r,c){if(r.get(a)!==a._trackId){r.set(a,a._trackId);const d=a.deps[a._depsLength];d!==r?(d&&Nl(d,a),a.deps[a._depsLength++]=r):a._depsLength++}}const _r=[];function Hl(a,r,c){gn();for(const d of a.keys()){if(!a.computed&&d.computed&&a.get(d)===d._trackId&&d._runnings>0){d._dirtyLevel=2;continue}let m;d._dirtyLevel<r&&(m??(m=a.get(d)===d._trackId))&&(d._shouldSchedule||(d._shouldSchedule=d._dirtyLevel===0),d.computed&&d._dirtyLevel===2&&(d._shouldSchedule=!0),d._dirtyLevel=r),d._shouldSchedule&&(m??(m=a.get(d)===d._trackId))&&(d.trigger(),(!d._runnings||d.allowRecurse)&&d._dirtyLevel!==3&&(d._shouldSchedule=!1,d.scheduler&&_r.push(d.scheduler)))}pn()}const Dl=(a,r)=>{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<S;y++)Le(d,"get",y+"");const m=d[r](...c);return m===-1||m===!1?d[r](...c.map(Bt)):m}}),["push","pop","shift","unshift","splice"].forEach(r=>{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)<r.length:Ht(r,c),P=Reflect.set(r,c,d,m);return r===Bt(m)&&(S?wi(d,y)&&si(r,"set",c,d):si(r,"add",c,d)),P}deleteProperty(r,c){const d=Ht(r,c);r[c];const m=Reflect.deleteProperty(r,c);return m&&d&&si(r,"delete",c,void 0),m}has(r,c){const d=Reflect.has(r,c);return(!Vi(c)||!Bl.has(c))&&Le(r,"has",c),d}ownKeys(r){return Le(r,"iterate",Ct(r)?"length":Xi),Reflect.ownKeys(r)}}class bd extends Wl{constructor(r=!1){super(!0,r)}set(r,c){return!0}deleteProperty(r,c){return!0}}const vd=new Vl,yd=new bd,wd=new Vl(!0);const xn=a=>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<a.length;y++)m.push(Ve(a[y],r,c,d));return m}}function Vs(a,r,c,d=!0){const m=r?r.vnode:null;if(r){let y=r.parent;const S=r.proxy,P=`https://vuejs.org/error-reference/#runtime-${c}`;for(;y;){const R=y.ec;if(R){for(let F=0;F<R.length;F++)if(R[F](a,S,P)===!1)return}y=y.parent}const I=r.appContext.config.errorHandler;if(I){Ci(),yi(I,null,10,[a,S,P]),Pi();return}}Bd(a,c,m,d)}function Bd(a,r,c,d=!0){console.error(a)}let La=!1,Tr=!1;const me=[];let je=0;const ta=[];let pi=null,zi=0;const Ql=Promise.resolve();let yn=null;function tc(a){const r=yn||Ql;return a?r.then(this?a.bind(this):a):r}function Wd(a){let r=je+1,c=me.length;for(;r<c;){const d=r+c>>>1,m=me[d],y=_a(m);y<a||y===a&&m.pre?r=d+1:c=d}return r}function wn(a){(!me.length||!me.includes(a,La&&a.allowRecurse?je+1:je))&&(a.id==null?me.push(a):me.splice(Wd(a.id),0,a),ec())}function ec(){!La&&!Tr&&(Tr=!0,yn=Ql.then(ac))}function Vd(a){const r=me.indexOf(a);r>je&&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<me.length;c++){const d=me[c];if(d&&d.pre){if(a&&d.id!==a.uid)continue;me.splice(c,1),c--,d()}}}function ic(a){if(ta.length){const r=[...new Set(ta)].sort((c,d)=>_a(c)-_a(d));if(ta.length=0,pi){pi.push(...r);return}for(pi=r,zi=0;zi<pi.length;zi++){const c=pi[zi];c.active!==!1&&c()}pi=null,zi=0}}const _a=a=>a.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;je<me.length;je++){const r=me[je];r&&r.active!==!1&&yi(r,null,14)}}finally{je=0,me.length=0,ic(),La=!1,yn=null,(me.length||ta.length)&&ac()}}function $d(a,r,...c){if(a.isUnmounted)return;const d=a.vnode.props||qt;let m=c;const y=r.startsWith("update:"),S=y&&r.slice(7);if(S&&S in d){const F=`${S==="modelValue"?"model":S}Modifiers`,{number:Y,trim:B}=d[F]||qt;B&&(m=c.map(q=>ce(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;Y<F.length;Y++){const B=F[Y];if(S[B]!==d[B]&&!Gs(R,B))return!0}}}else return(m||P)&&(!P||!P.$stable)?!0:d===S?!1:d?S?uo(d,S,R):!0:!!S;return!1}function uo(a,r,c){const d=Object.keys(r);if(d.length!==Object.keys(a).length)return!0;for(let m=0;m<d.length;m++){const y=d[m];if(r[y]!==a[y]&&!Gs(c,y))return!0}return!1}function Kd({vnode:a,parent:r},c){for(;r;){const d=r.subTree;if(d.suspense&&d.suspense.activeBranch===a&&(d.el=a.el),d===a)(a=r.vnode).el=c,r=r.parent;else break}}const Jd="components";function oc(a,r){return tu(Jd,a,!0,r)||a}const Qd=Symbol.for("v-ndc");function tu(a,r,c=!0,d=!1){const m=Pe||ge;if(m){const y=m.type;{const P=Xr(y,!1);if(P&&(P===r||P===qe(r)||P===Bs(qe(r))))return y}const S=fo(m[a]||y[a],r)||fo(m.appContext[a],r);return!S&&d?y:S}}function fo(a,r){return a&&(a[r]||a[qe(r)]||a[Bs(qe(r))])}const Ir=a=>a.__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;m<r.length;m++){let[y,S,P,I=qt]=r[m];y&&(_t(y)&&(y={mounted:y,updated:y}),y.deep&&mi(S),d.push({dir:y,instance:c,value:S,oldValue:void 0,arg:P,modifiers:I}))}return a}function Mi(a,r,c,d){const m=a.dirs,y=r&&r.dirs;for(let S=0;S<m.length;S++){const P=m[S];y&&(P.oldValue=y[S].value);let I=P.dir[d];I&&(Ci(),Ve(I,c,8,[a.el,P,a,r]),Pi())}}function Fe(a,r,c,d){let m;const y=c;if(Ct(a)||ce(a)){m=new Array(a.length);for(let S=0,P=a.length;S<P;S++)m[S]=r(a[S],S,void 0,y)}else if(typeof a=="number"){m=new Array(a);for(let S=0;S<a;S++)m[S]=r(S+1,S,void 0,y)}else if(Qt(a))if(a[Symbol.iterator])m=Array.from(a,(S,P)=>r(S,P,void 0,y));else{const S=Object.keys(a);m=new Array(S.length);for(let P=0,I=S.length;P<I;P++){const R=S[P];m[P]=r(a[R],R,P,y)}}else m=[];return m}/*! #__NO_SIDE_EFFECTS__ */function dc(a,r){return _t(a)?ue({name:a.name},r,{setup:a}):a}const va=a=>!!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;c<a.length;c++)r[a[c]]=a[c];return r}return a}function ve(a,r){return a?[...new Set([].concat(a,r))]:r}function ua(a,r){return a?ue(Object.create(null),a,r):r}function mo(a,r){return a?Ct(a)&&Ct(r)?[...new Set([...a,...r])]:ue(Object.create(null),go(a),go(r??{})):r}function uu(a,r){if(!a)return r;if(!r)return a;const c=ue(Object.create(null),a);for(const d in r)c[d]=ve(a[d],r[d]);return c}function fc(){return{app:null,config:{isNativeTag:Kh,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let fu=0;function gu(a,r){return function(d,m=null){_t(d)||(d=ue({},d)),m!=null&&!Qt(m)&&(m=null);const y=fc(),S=new WeakSet;let P=!1;const I=y.app={_uid:fu++,_component:d,_props:m,_container:null,_context:y,_instance:null,version:ju,get config(){return y.config},set config(R){},use(R,...F){return S.has(R)||(R&&_t(R.install)?(S.add(R),R.install(I,...F)):_t(R)&&(S.add(R),R(I,...F))),I},mixin(R){return y.mixins.includes(R)||y.mixins.push(R),I},component(R,F){return F?(y.components[R]=F,I):y.components[R]},directive(R,F){return F?(y.directives[R]=F,I):y.directives[R]},mount(R,F,Y){if(!P){const B=At(d,m);return B.appContext=y,Y===!0?Y="svg":Y===!1&&(Y=void 0),F&&r?r(B,R):a(B,R,Y),P=!0,I._container=R,R.__vue_app__=I,qs(B.component)}},unmount(){P&&(a(null,I._container),delete I._container.__vue_app__)},provide(R,F){return y.provides[R]=F,I},runWithContext(R){const F=wa;wa=I;try{return R()}finally{wa=F}}};return I}}let wa=null;function pu(a,r){if(ge){let c=ge.provides;const d=ge.parent&&ge.parent.provides;d===c&&(c=ge.provides=Object.create(d)),c[a]=r}}function bs(a,r,c=!1){const d=ge||Pe;if(d||wa){const m=d?d.parent==null?d.vnode.appContext&&d.vnode.appContext.provides:d.parent.provides:wa._context.provides;if(m&&a in m)return m[a];if(arguments.length>1)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<F.length;Y++){let B=F[Y];if(Gs(a.emitsOptions,B))continue;const q=r[B];if(I)if(Ht(y,B))q!==y[B]&&(y[B]=q,R=!0);else{const pt=qe(B);m[pt]=Rr(I,P,pt,q,a,!1)}else q!==y[B]&&(y[B]=q,R=!0)}}}else{mc(a,r,m,y)&&(R=!0);let F;for(const Y in P)(!r||!Ht(r,Y)&&((F=sa(Y))===Y||!Ht(r,F)))&&(I?c&&(c[Y]!==void 0||c[F]!==void 0)&&(m[Y]=Rr(I,P,Y,void 0,a,!0)):delete m[Y]);if(y!==P)for(const Y in y)(!r||!Ht(r,Y))&&(delete y[Y],R=!0)}R&&si(a.attrs,"set","")}function mc(a,r,c,d){const[m,y]=a.propsOptions;let S=!1,P;if(r)for(let I in r){if(xa(I))continue;const R=r[I];let F;m&&Ht(m,F=qe(I))?!y||!y.includes(F)?c[F]=R:(P||(P={}))[F]=R:Gs(a.emitsOptions,I)||(!(I in d)||R!==d[I])&&(d[I]=R,S=!0)}if(y){const I=Bt(c),R=P||qt;for(let F=0;F<y.length;F++){const Y=y[F];c[Y]=Rr(m,I,Y,R[Y],a,!Ht(R,Y))}}return S}function Rr(a,r,c,d,m,y){const S=a[c];if(S!=null){const P=Ht(S,"default");if(P&&d===void 0){const I=S.default;if(S.type!==Function&&!S.skipFactory&&_t(I)){const{propsDefaults:R}=m;if(c in R)d=R[c];else{const F=Ha(m);d=R[c]=I.call(null,r),F()}}else d=I}S[0]&&(y&&!P?d=!1:S[1]&&(d===""||d===sa(c))&&(d=!0))}return d}function bc(a,r,c=!1){const d=r.propsCache,m=d.get(a);if(m)return m;const y=a.props,S={},P=[];let I=!1;if(!_t(a)){const F=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<y.length;F++){const Y=qe(y[F]);bo(Y)&&(S[Y]=qt)}else if(y)for(const F in y){const Y=qe(F);if(bo(Y)){const B=y[F],q=S[Y]=Ct(B)||_t(B)?{type:B}:ue({},B);if(q){const pt=wo(Boolean,q.type),ht=wo(String,q.type);q[0]=pt>-1,q[1]=ht<0||pt<ht,(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<Z.length;st++)q(H,Z[st]);if(K){let st=K.subTree;if(D===st){const lt=K.vnode;St(H,lt,lt.scopeId,lt.slotScopeIds,K.parent)}}},Wt=(H,D,$,Z,K,st,lt,rt,nt=0)=>{for(let J=nt;J<H.length;J++){const dt=H[J]=rt?xi(H[J]):Ge(H[J]);ht(null,dt,D,$,Z,K,st,lt,rt)}},ie=(H,D,$,Z,K,st,lt)=>{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<Mt.length;Gt++){const Yt=Mt[Gt],oe=yt[Yt],ke=mt[Yt];(ke!==oe||Yt==="value")&&y(rt,Yt,oe,ke,K,H.children,$,Z,se)}}nt&1&&H.children!==D.children&&F(rt,D.children)}else!lt&&J==null&&bt(rt,D,yt,mt,$,Z,K);((kt=mt.onVnodeUpdated)||dt)&&de(()=>{kt&&Oe(kt,$,D,H),dt&&Mi(D,H,$,"updated")},Z)},te=(H,D,$,Z,K,st,lt)=>{for(let rt=0;rt<D.length;rt++){const nt=H[rt],J=D[rt],dt=nt.el&&(nt.type===Ut||!$i(nt,J)||nt.shapeFlag&70)?Y(nt.el):$;ht(nt,J,dt,null,Z,K,st,lt,!0)}},bt=(H,D,$,Z,K,st,lt)=>{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;mt<yt;mt++){const kt=D[mt]=nt?xi(D[mt]):Ge(D[mt]);ht(H[mt],kt,$,null,K,st,lt,rt,nt)}J>dt?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=kt<dt?D[kt].el:Z;for(;J<=mt;)ht(null,D[J]=nt?xi(D[J]):Ge(D[J]),$,Mt,K,st,lt,rt,nt),J++}}else if(J>mt)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;J++)Ti[J]=0;for(J=kt;J<=yt;J++){const be=H[J];if(oe>=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<dt?D[be+1].el:Z;Ti[J]===0?ht(null,Te,$,Ua,K,st,lt,rt,nt):ui&&(Yt<0||J!==$a[Yt]?Je(Te,$,Ua,2):Yt--)}}},Je=(H,D,$,Z,K=null)=>{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;yt<nt.length;yt++)Je(nt[yt],D,$,Z);d(H.anchor,D,$);return}if(lt===vs){Q(H,D,$);return}if(Z!==2&&J&1&&rt)if(Z===0)rt.beforeEnter(st),d(st,D,$),de(()=>rt.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;lt<H.length;lt++)ae(H[lt],D,$,Z,K)},_i=H=>H.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<d.length;y++){const S=d[y];let P=m[y];P.shapeFlag&1&&!P.dynamicChildren&&((P.patchFlag<=0||P.patchFlag===32)&&(P=m[y]=xi(m[y]),P.el=S.el),!c&&P.patchFlag!==-2&&kc(S,P)),P.type===$s&&(P.el=S.el)}}function Su(a){const r=a.slice(),c=[0];let d,m,y,S,P;const I=a.length;for(d=0;d<I;d++){const R=a[d];if(R!==0){if(m=c[c.length-1],a[m]<R){r[d]=m,c.push(d);continue}for(y=0,S=c.length-1;y<S;)P=y+S>>1,a[c[P]]<R?y=P+1:S=P;R<a[c[y]]&&(y>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;r<a.length;r++)a[r].active=!1}const Cu=Symbol.for("v-scx"),Pu=()=>bs(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<c.length&&d;m++)d=d[c[m]];return d}}function mi(a,r=1/0,c){if(r<=0||!Qt(a)||a.__v_skip||(c=c||new Set,c.has(a)))return a;if(c.add(a),r--,ye(a))mi(a.value,r,c);else if(Ct(a))for(let d=0;d<a.length;d++)mi(a[d],r,c);else if(El(a)||Qi(a))a.forEach(d=>{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;c<a.length;c++){const d=a[c];for(const m in d)if(m==="class")r.class!==d.class&&(r.class=Tt([r.class,d.class]));else if(m==="style")r.style=ia([r.style,d.style]);else if(Hs(m)){const y=r[m],S=d[m];S&&y!==S&&!(Ct(y)&&y.includes(S))&&(r[m]=y?[].concat(y,S):S)}else m!==""&&(r[m]=d[m])}return r}function Oe(a,r,c,d=null){Ve(a,r,7,[c,d])}const Xu=fc();let Yu=0;function Hu(a,r,c){const d=a.type,m=(r?r.appContext:a.appContext)||Xu,y={uid:Yu++,vnode:a,type:d,parent:r,appContext:m,root:null,next:null,subTree:null,effect:null,update:null,scope:new hd(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:r?r.provides:Object.create(m.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bc(d,m),emitsOptions:sc(d,m),emit:null,emitted:null,propsDefaults:qt,inheritAttrs:d.inheritAttrs,ctx:qt,data:qt,props:qt,attrs:qt,slots:qt,refs:qt,setupState:qt,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:c,suspenseId:c?c.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return y.ctx={_:y},y.root=r?r.root:y,y.emit=$d.bind(null,y),a.ce&&a.ce(y),y}let ge=null;const Tc=()=>ge||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"?`<svg>${a}</svg>`:d==="mathml"?`<math>${a}</math>`: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;m<Eo.length;m++){const y=Eo[m]+d;if(y in a)return ur[r]=y}return r}const To="http://www.w3.org/1999/xlink";function Io(a,r,c,d,m,y=cd(r)){d&&r.startsWith("xlink:")?c==null?a.removeAttributeNS(To,r.slice(6,r.length)):a.setAttributeNS(To,r,c):c==null||y&&!Rl(c)?a.removeAttribute(r):a.setAttribute(r,y?"":String(c))}function af(a,r,c,d,m,y,S){if(r==="innerHTML"||r==="textContent"){d&&S(d,m,y),a[r]=c??"";return}const P=a.tagName;if(r==="value"&&P!=="PROGRESS"&&!P.includes("-")){const R=P==="OPTION"?a.getAttribute("value")||"":a.value,F=c==null?"":String(c);(R!==F||!("_value"in a))&&(a.value=F),c==null&&a.removeAttribute(r),a._value=c;return}let I=!1;if(c===""||c==null){const R=typeof a[r];R==="boolean"?c=Rl(c):c==null&&R==="string"?(c="",I=!0):R==="number"&&(c=0,I=!0)}try{a[r]=c}catch{}I&&a.removeAttribute(r)}function sf(a,r,c,d){a.addEventListener(r,c,d)}function rf(a,r,c,d){a.removeEventListener(r,c,d)}const Mo=Symbol("_vei");function nf(a,r,c,d,m=null){const y=a[Mo]||(a[Mo]={}),S=y[r];if(d&&S)S.value=d;else{const[P,I]=of(r);if(d){const R=y[r]=hf(d,m);sf(a,P,R,I)}else S&&(rf(a,P,S,I),y[r]=void 0)}}const Oo=/(?:Once|Passive|Capture)$/;function of(a){let r;if(Oo.test(a)){r={};let d;for(;d=a.match(Oo);)a=a.slice(0,a.length-d[0].length),r[d[0].toLowerCase()]=!0}return[a[2]===":"?a.slice(3):sa(a.slice(2)),r]}let fr=0;const lf=Promise.resolve(),cf=()=>fr||(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<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?c(Object(e),!0).forEach(function(i){I(_,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach(function(i){Object.defineProperty(_,i,Object.getOwnPropertyDescriptor(e,i))})}return _}function m(_){return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(_)}function y(_,t){if(!(_ instanceof t))throw new TypeError("Cannot call a class as a function")}function S(_,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(_,i.key,i)}}function P(_,t,e){return t&&S(_.prototype,t),e&&S(_,e),_}function I(_,t,e){return t in _?Object.defineProperty(_,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):_[t]=e,_}function R(_,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(t&&t.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),t&&Y(_,t)}function F(_){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},F(_)}function Y(_,t){return Y=Object.setPrototypeOf||function(e,i){return e.__proto__=i,e},Y(_,t)}function B(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function q(_){var t=function(){if(typeof Reflect>"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<t;e++)i[e]=_[e];return i}var z=function(){function _(){y(this,_)}return P(_,[{key:"shadeRGBColor",value:function(t,e){var i=e.split(","),s=t<0?0:255,n=t<0?-1*t:t,o=parseInt(i[0].slice(4),10),l=parseInt(i[1],10),h=parseInt(i[2],10);return"rgb("+(Math.round((s-o)*n)+o)+","+(Math.round((s-l)*n)+l)+","+(Math.round((s-h)*n)+h)+")"}},{key:"shadeHexColor",value:function(t,e){var i=parseInt(e.slice(1),16),s=t<0?0:255,n=t<0?-1*t:t,o=i>>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;e<t.length;e++)i[e]=t[e];return i}},{key:"extend",value:function(t,e){var i=this;typeof Object.assign!="function"&&(Object.assign=function(n){if(n==null)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(n),l=1;l<arguments.length;l++){var h=arguments[l];if(h!=null)for(var f in h)h.hasOwnProperty(f)&&(o[f]=h[f])}return o});var s=Object.assign({},t);return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach(function(n){i.isObject(e[n])&&n in t?s[n]=i.extend(t[n],e[n]):Object.assign(s,I({},n,e[n]))}),s}},{key:"extendArray",value:function(t,e){var i=[];return t.map(function(s){i.push(_.extend(e,s))}),t=i}},{key:"monthMod",value:function(t){return t%12}},{key:"clone",value:function(t){if(_.is("Array",t)){for(var e=[],i=0;i<t.length;i++)e[i]=this.clone(t[i]);return e}if(_.is("Null",t))return null;if(_.is("Date",t))return t;if(m(t)==="object"){var s={};for(var n in t)t.hasOwnProperty(n)&&(s[n]=this.clone(t[n]));return s}return t}},{key:"log10",value:function(t){return Math.log(t)/Math.LN10}},{key:"roundToBase10",value:function(t){return Math.pow(10,Math.floor(Math.log10(t)))}},{key:"roundToBase",value:function(t,e){return Math.pow(e,Math.floor(Math.log(t)/Math.log(e)))}},{key:"parseNumber",value:function(t){return t===null?t:parseFloat(t)}},{key:"stripNumber",value:function(t){var e=arguments.length>1&&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;s<i.length;s++)i[s]=parseInt(i[s].length===1?i[s]+i[s]:i[s],16);return e!==void 0&&i.push(e),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(t){return parseFloat(t.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&t.length===4?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(t)}},{key:"getPolygonPos",value:function(t,e){for(var i=[],s=2*Math.PI/e,n=0;n<e;n++){var o={};o.x=t*Math.sin(n*s),o.y=-t*Math.cos(n*s),i.push(o)}return i}},{key:"polarToCartesian",value:function(t,e,i,s){var n=(s-90)*Math.PI/180;return{x:t+i*Math.cos(n),y:e+i*Math.sin(n)}}},{key:"escapeString",value:function(t){var e=arguments.length>1&&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;p<l.length;p++){var x=h[h.length-1],v=l[p],w=v==g?l[1]:l[p+1];if(w&&x&&x.length>2&&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<o.width?e.slice(0,h-3)+"...":e}},{key:"drawText",value:function(t){var e=this,i=t.x,s=t.y,n=t.text,o=t.textAnchor,l=t.fontSize,h=t.fontFamily,f=t.fontWeight,g=t.foreColor,p=t.opacity,x=t.maxWidth,v=t.cssClass,w=v===void 0?"":v,A=t.isPlainText,C=A===void 0||A,E=t.dominantBaseline,M=E===void 0?"auto":E,u=this.w;n===void 0&&(n="");var b=n;o||(o="start"),g&&g.length||(g=u.config.chart.foreColor),h=h||u.config.chart.fontFamily,f=f||"regular";var k,L={maxWidth:x,fontSize:l=l||"11px",fontFamily:h};return Array.isArray(n)?k=u.globals.dom.Paper.text(function(T){for(var O=0;O<n.length;O++)b=n[O],x&&(b=e.getTextBasedOnMaxWidth(d({text:n[O]},L))),O===0?T.tspan(b):T.tspan(b).newLine()}):(x&&(b=this.getTextBasedOnMaxWidth(d({text:n},L))),k=C?u.globals.dom.Paper.plain(n):u.globals.dom.Paper.text(function(T){return T.tspan(b)})),k.attr({x:i,y:s,"text-anchor":o,"dominant-baseline":M,"font-size":l,"font-family":h,"font-weight":f,fill:g,class:"apexcharts-text "+w}),k.node.style.fontFamily=h,k.node.style.opacity=p,k}},{key:"drawMarker",value:function(t,e,i){t=t||0;var s=i.pSize||0,n=null;if(i.shape==="square"||i.shape==="rect"){var o=i.pRadius===void 0?s/2:i.pRadius;e!==null&&s||(s=0,o=0);var l=1.2*s+o,h=this.drawRect(l,l,l,l,o);h.attr({x:t-l/2,y:e-l/2,cx:t,cy:e,class:i.class?i.class:"",fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,stroke:i.pointStrokeColor,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}),n=h}else i.shape!=="circle"&&i.shape||(z.isNumber(e)||(s=0,e=0),n=this.drawCircle(s,{cx:t,cy:e,class:i.class?i.class:"",stroke:i.pointStrokeColor,fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}));return n}},{key:"pathMouseEnter",value:function(t,e){var i=this.w,s=new tt(this.ctx),n=parseInt(t.node.getAttribute("index"),10),o=parseInt(t.node.getAttribute("j"),10);if(typeof i.config.chart.events.dataPointMouseEnter=="function"&&i.config.chart.events.dataPointMouseEnter(e,this.ctx,{seriesIndex:n,dataPointIndex:o,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[e,this.ctx,{seriesIndex:n,dataPointIndex:o,w:i}]),(i.config.states.active.filter.type==="none"||t.node.getAttribute("selected")!=="true")&&i.config.states.hover.filter.type!=="none"&&!i.globals.isTouchDevice){var l=i.config.states.hover.filter;s.applyFilter(t,n,l.type,l.value)}}},{key:"pathMouseLeave",value:function(t,e){var i=this.w,s=new tt(this.ctx),n=parseInt(t.node.getAttribute("index"),10),o=parseInt(t.node.getAttribute("j"),10);typeof i.config.chart.events.dataPointMouseLeave=="function"&&i.config.chart.events.dataPointMouseLeave(e,this.ctx,{seriesIndex:n,dataPointIndex:o,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[e,this.ctx,{seriesIndex:n,dataPointIndex:o,w:i}]),i.config.states.active.filter.type!=="none"&&t.node.getAttribute("selected")==="true"||i.config.states.hover.filter.type!=="none"&&s.getDefaultFilter(t,n)}},{key:"pathMouseDown",value:function(t,e){var i=this.w,s=new tt(this.ctx),n=parseInt(t.node.getAttribute("index"),10),o=parseInt(t.node.getAttribute("j"),10),l="false";if(t.node.getAttribute("selected")==="true"){if(t.node.setAttribute("selected","false"),i.globals.selectedDataPoints[n].indexOf(o)>-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;s<e.globals.series[e.globals.maxValsInArrayIndex].length;s++){for(var n=0,o=0;o<e.globals.series.length;o++)e.globals.series[o][s]!==void 0&&t.indexOf(o)===-1&&(n+=e.globals.series[o][s]);i.push(n)}return i}},{key:"getSeriesTotalByIndex",value:function(){var t=arguments.length>0&&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;n<e.length;n++)s+=e[n];else s+=e;return s})}},{key:"getSeriesTotalsXRange",value:function(t,e){var i=this.w;return i.globals.series.map(function(s,n){for(var o=0,l=0;l<s.length;l++)i.globals.seriesX[n][l]>t&&i.globals.seriesX[n][l]<e&&(o+=s[l]);return o})}},{key:"getPercentSeries",value:function(){var t=this.w;t.globals.seriesPercent=t.globals.series.map(function(e,i){var s=[];if(Array.isArray(e))for(var n=0;n<e.length;n++){var o=t.globals.stackedSeriesTotals[n],l=0;o&&(l=100*e[n]/o),s.push(l)}else{var h=100*e/t.globals.seriesTotals.reduce(function(f,g){return f+g},0);s.push(h)}return s})}},{key:"getCalculatedRatios",value:function(){var t,e,i,s=this.w.globals,n=[],o=0,l=[],h=.1,f=0;if(s.yRange=[],s.isMultipleYAxis)for(var g=0;g<s.minYArr.length;g++)s.yRange.push(Math.abs(s.minYArr[g]-s.maxYArr[g])),l.push(0);else s.yRange.push(Math.abs(s.minY-s.maxY));s.xRange=Math.abs(s.maxX-s.minX),s.zRange=Math.abs(s.maxZ-s.minZ);for(var p=0;p<s.yRange.length;p++)n.push(s.yRange[p]/s.gridHeight);if(e=s.xRange/s.gridWidth,t=s.yRange/s.gridWidth,i=s.xRange/s.gridHeight,(o=s.zRange/s.gridHeight*16)||(o=1),s.minY!==Number.MIN_VALUE&&Math.abs(s.minY)!==0&&(s.hasNegs=!0),s.isMultipleYAxis){l=[];for(var x=0;x<n.length;x++)l.push(-s.minYArr[x]/n[x])}else l.push(-s.minY/n[0]),s.minY!==Number.MIN_VALUE&&Math.abs(s.minY)!==0&&(h=-s.minY/t,f=s.minX/e);return{yRatio:n,invertedYRatio:t,zRatio:o,xRatio:e,invertedXRatio:i,baseLineInvertedY:h,baseLineY:l,baseLineX:f}}},{key:"getLogSeries",value:function(t){var e=this,i=this.w;return i.globals.seriesLog=t.map(function(s,n){return i.config.yaxis[n]&&i.config.yaxis[n].logarithmic?s.map(function(o){return o===null?null:e.getLogVal(i.config.yaxis[n].logBase,o,n)}):s}),i.globals.invalidLogScale?t:i.globals.seriesLog}},{key:"getBaseLog",value:function(t,e){return Math.log(e)/Math.log(t)}},{key:"getLogVal",value:function(t,e,i){if(e===0)return 0;var s=this.w,n=s.globals.minYArr[i]===0?-1:this.getBaseLog(t,s.globals.minYArr[i]),o=(s.globals.maxYArr[i]===0?0:this.getBaseLog(t,s.globals.maxYArr[i]))-n;return e<1?e/o:(this.getBaseLog(t,e)-n)/o}},{key:"getLogYRatios",value:function(t){var e=this,i=this.w,s=this.w.globals;return s.yLogRatio=t.slice(),s.logYRange=s.yRange.map(function(n,o){if(i.config.yaxis[o]&&e.w.config.yaxis[o].logarithmic){var l,h=-Number.MAX_VALUE,f=Number.MIN_VALUE;return s.seriesLog.forEach(function(g,p){g.forEach(function(x){i.config.yaxis[p]&&i.config.yaxis[p].logarithmic&&(h=Math.max(x,h),f=Math.min(x,f))})}),l=Math.pow(s.yRange[o],Math.abs(f-h)/s.yRange[o]),s.yLogRatio[o]=l/s.gridHeight,l}}),s.invalidLogScale?t.slice():s.yLogRatio}}],[{key:"checkComboSeries",value:function(t){var e=!1,i=0,s=0;return t.length&&t[0].type!==void 0&&t.forEach(function(n){n.type!=="bar"&&n.type!=="column"&&n.type!=="candlestick"&&n.type!=="boxPlot"||i++,n.type!==void 0&&s++}),s>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))<o){var g=o;o=s,s=g}var p=this.annoCtx.graphics.drawRect(o+t.offsetX,0+t.offsetY,s-o,n.globals.gridHeight+t.offsetY,0,t.fillColor,t.opacity,1,t.borderColor,h);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=this.annoCtx.graphics.getTextRects(l,parseFloat(t.label.style.fontSize)),v=t.label.position==="top"?4:t.label.position==="center"?n.globals.gridHeight/2+(t.label.orientation==="vertical"?x.width/2:0):n.globals.gridHeight,w=this.annoCtx.graphics.drawText({x:o+t.label.offsetX,y:v+t.label.offsetY-(t.label.orientation==="vertical"?t.label.position==="top"?x.width/2-12:-x.width/2:0),text:l,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-xaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});w.attr({rel:i}),e.appendChild(w.node),this.annoCtx.helpers.setOrientations(t,i)}}},{key:"drawXAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return e.config.annotations.xaxis.map(function(s,n){t.addXaxisAnnotation(s,i.node,n)}),i}}]),_}(),ie=function(){function _(t){y(this,_),this.w=t.w,this.annoCtx=t,this.helpers=new St(this.annoCtx)}return P(_,[{key:"addYaxisAnnotation",value:function(t,e,i){var s,n=this.w,o=t.strokeDashArray,l=this.helpers.getY1Y2("y1",t),h=t.label.text;if(t.y2===null||t.y2===void 0){var f=this.annoCtx.graphics.drawLine(0+t.offsetX,l+t.offsetY,this._getYAxisAnnotationWidth(t),l+t.offsetY,t.borderColor,o,t.borderWidth);e.appendChild(f.node),t.id&&f.node.classList.add(t.id)}else{if((s=this.helpers.getY1Y2("y2",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.length<N;)X="0"+X;return X}var g=s?t.getUTCFullYear():t.getFullYear();e=(e=(e=e.replace(/(^|[^\\])yyyy+/g,"$1"+g)).replace(/(^|[^\\])yy/g,"$1"+g.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+g);var p=(s?t.getUTCMonth():t.getMonth())+1;e=(e=(e=(e=e.replace(/(^|[^\\])MMMM+/g,"$1"+n[0])).replace(/(^|[^\\])MMM/g,"$1"+o[0])).replace(/(^|[^\\])MM/g,"$1"+f(p))).replace(/(^|[^\\])M/g,"$1"+p);var x=s?t.getUTCDate():t.getDate();e=(e=(e=(e=e.replace(/(^|[^\\])dddd+/g,"$1"+l[0])).replace(/(^|[^\\])ddd/g,"$1"+h[0])).replace(/(^|[^\\])dd/g,"$1"+f(x))).replace(/(^|[^\\])d/g,"$1"+x);var v=s?t.getUTCHours():t.getHours(),w=v>12?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=`<span class="value start-value">
|
||
`.concat(s,`
|
||
</span> <span class="separator">-</span> <span class="value end-value">
|
||
`).concat(n,`
|
||
</span>`);return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(e||"")+'</span></div><div> <span class="category">'+i+": </span> "+(_.w.globals.comboCharts?_.w.config.series[o].type==="rangeArea"||_.w.config.series[o].type==="rangeBar"?g:"<span>".concat(f,"</span>"):g)+" </div></div>"},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?`<div class="apexcharts-custom-tooltip">
|
||
`.concat(t.config.series[e].name?t.config.series[e].name:"series-"+(e+1),": <strong>").concat(t.globals.series[e][i],`</strong>
|
||
</div>`):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(t.config.chart.type,'">')+"<div>".concat(s[0],': <span class="value">')+o+"</span></div>"+"<div>".concat(s[1],': <span class="value">')+l+"</span></div>"+(h?"<div>".concat(s[2],': <span class="value">')+h+"</span></div>":"")+"<div>".concat(s[3],': <span class="value">')+f+"</span></div>"+"<div>".concat(s[4],': <span class="value">')+g+"</span></div></div>"}}]),_}(),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<p.length?p[t.seriesNumber]:p[0]:p,width:t.width?t.width:void 0,height:t.height?t.height:void 0,patternUnits:t.patternUnits,patternID:"pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(x)}),i="url(#pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(x,")")}else i=h==="gradient"?n:h==="pattern"?s:g;return t.solid&&(i=g),i}},{key:"getFillType",value:function(t){var e=this.w;return Array.isArray(e.config.fill.type)?e.config.fill.type[t]:e.config.fill.type}},{key:"getFillColors",value:function(){var t=this.w,e=t.config,i=this.opts,s=[];return t.globals.comboCharts?t.config.series[this.seriesIndex].type==="line"?Array.isArray(t.globals.stroke.colors)?s=t.globals.stroke.colors:s.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?s=t.globals.fill.colors:s.push(t.globals.fill.colors):e.chart.type==="line"?Array.isArray(t.globals.stroke.colors)?s=t.globals.stroke.colors:s.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?s=t.globals.fill.colors:s.push(t.globals.fill.colors),i.fillColors!==void 0&&(s=[],Array.isArray(i.fillColors)?s=i.fillColors.slice():s.push(i.fillColors)),s}},{key:"handlePatternFill",value:function(t){var e=t.fillConfig,i=t.patternFill,s=t.fillColor,n=t.fillOpacity,o=t.defaultColor,l=this.w.config.fill;e&&(l=e);var h=this.opts,f=new V(this.ctx),g=Array.isArray(l.pattern.strokeWidth)?l.pattern.strokeWidth[this.seriesIndex]:l.pattern.strokeWidth,p=s;return Array.isArray(l.pattern.style)?i=l.pattern.style[h.seriesNumber]!==void 0?f.drawPattern(l.pattern.style[h.seriesNumber],l.pattern.width,l.pattern.height,p,g,n):o:i=f.drawPattern(l.pattern.style,l.pattern.width,l.pattern.height,p,g,n),i}},{key:"handleGradientFill",value:function(t){var e=t.fillColor,i=t.fillOpacity,s=t.fillConfig,n=t.i,o=this.w.config.fill;s&&(o=d(d({},o),s));var l,h=this.opts,f=new V(this.ctx),g=new z,p=o.gradient.type,x=e,v=o.gradient.opacityFrom===void 0?i:Array.isArray(o.gradient.opacityFrom)?o.gradient.opacityFrom[n]:o.gradient.opacityFrom;x.indexOf("rgba")>-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.length<t.globals.series.length+1)for(var e=0;e<=t.globals.series.length;e++)t.globals.markers.size[e]===void 0&&t.globals.markers.size.push(t.globals.markers.size[0])}else t.globals.markers.size=t.config.series.map(function(i){return t.config.markers.size})}},{key:"plotChartMarkers",value:function(t,e,i,s){var n,o=arguments.length>4&&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;v<f.x.length;v++){var w=i;i===1&&v===0&&(w=0),i===1&&v===1&&(w=1);var A="apexcharts-marker";if(l.config.chart.type!=="line"&&l.config.chart.type!=="area"||l.globals.comboCharts||l.config.tooltip.intersect||(A+=" no-pointer-events"),(Array.isArray(l.config.markers.size)?l.globals.markers.size[e]>0: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;p<l.x.length;p++){var x=e+1,v=!0;e===0&&p===0&&(x=0),e===0&&p===1&&(x=1);var w=0,A=s.globals.markers.size[o];if(h!==1/0){var C=s.config.plotOptions.bubble;A=s.globals.seriesZ[o][x],C.zScaling&&(A/=h),C.minBubbleRadius&&A<C.minBubbleRadius&&(A=C.minBubbleRadius),C.maxBubbleRadius&&A>C.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;N<h.globals.collapsedSeries.length;N++)h.globals.collapsedSeries[N].index===n&&(O=1,s=0);t===0&&e===0&&(s=0),g.animateCircle(C,{cx:b,cy:k,r:L},{cx:t,cy:e,r:s},O,h.globals.easing)}else C.attr({r:s});return C.attr({rel:o,j:o,index:n,"default-marker-size":s}),p.setSelectionFilter(C,n,o),v.addEvents(C),C.node.classList.add("apexcharts-marker"),C}},{key:"centerTextInBubble",value:function(t){var e=this.w;return{y:t+=parseInt(e.config.dataLabels.style.fontSize,10)/4}}}]),_}(),di=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"dataLabelsCorrection",value:function(t,e,i,s,n,o,l){var h=this.w,f=!1,g=new V(this.ctx).getTextRects(i,l),p=g.width,x=g.height;e<0&&(e=0),e>h.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+x<A.y||t+p<A.x)&&(f=!0)}return(n===0||o)&&(f=!0),{x:t,y:e,textRects:g,drawnextLabel:f}}},{key:"drawDataLabel",value:function(t){var e=this,i=t.type,s=t.pos,n=t.i,o=t.j,l=t.isRangeStart,h=t.strokeWidth,f=h===void 0?2:h,g=this.w,p=new V(this.ctx),x=g.config.dataLabels,v=0,w=0,A=o,C=null;if(!x.enabled||!Array.isArray(s.x))return C;C=p.group({class:"apexcharts-data-labels"});for(var E=0;E<s.x.length;E++)if(v=s.x[E]+x.offsetX,w=s.y[E]+x.offsetY+f,!isNaN(v)){o===1&&E===0&&(A=0),o===1&&E===1&&(A=1);var M=g.globals.series[n][A];i==="rangeArea"&&(M=l?g.globals.seriesRangeStart[n][A]:g.globals.seriesRangeEnd[n][A]);var u="",b=function(k){return g.config.dataLabels.formatter(k,{ctx:e.ctx,seriesIndex:n,dataPointIndex:A,w:g})};g.config.chart.type==="bubble"?(u=b(M=g.globals.seriesZ[n][A]),w=s.y[E],w=new ja(this.ctx).centerTextInBubble(w,n,A).y):M!==void 0&&(u=b(M)),this.plotDataLabelsText({x:v,y:w,text:u,i:n,j:A,parent:C,offsetCorrection:!0,dataLabelsConfig:g.config.dataLabels})}return C}},{key:"plotDataLabelsText",value:function(t){var e=this.w,i=new V(this.ctx),s=t.x,n=t.y,o=t.i,l=t.j,h=t.text,f=t.textAnchor,g=t.fontSize,p=t.parent,x=t.dataLabelsConfig,v=t.color,w=t.alwaysDrawDataLabel,A=t.offsetCorrection;if(!(Array.isArray(e.config.dataLabels.enabledOnSeries)&&e.config.dataLabels.enabledOnSeries.indexOf(o)<0)){var C={x:s,y:n,drawnextLabel:!0,textRects:null};A&&(C=this.dataLabelsCorrection(s,n,h,o,l,w,parseInt(x.style.fontSize,10))),e.globals.zoomed||(s=C.x,n=C.y),C.textRects&&(s<-20-C.textRects.width||s>e.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;i<e.length;i++){var s=e[i],n=s.getBBox(),o=null;if(n.width&&n.height&&(o=this.addBackgroundToDataLabel(s,n)),o){s.parentNode.insertBefore(o.node,s);var l=s.getAttribute("fill");t.config.chart.animations.enabled&&!t.globals.resized&&!t.globals.dataChanged?o.animate().attr({fill:l}):o.attr({fill:l}),s.setAttribute("fill",t.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var t=this.w,e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=t.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),s=0;s<e.length;s++)i&&i.insertBefore(e[s],i.nextSibling)}}]),_}(),se=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.legendInactiveClass="legend-mouseover-inactive"}return P(_,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(t){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(z.escapeString(t),"']"))}},{key:"isSeriesHidden",value:function(t){var e=this.getSeriesByName(t),i=parseInt(e.getAttribute("data:realIndex"),10);return{isHidden:e.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(t,e){var i=this.w;function s(n){for(var o=0;o<n.length;o++)n[o].index===e&&t.node.classList.add("apexcharts-series-collapsed")}s(i.globals.collapsedSeries),s(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(t){var e=this.isSeriesHidden(t);return this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,e.isHidden),e.isHidden}},{key:"showSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!0)}},{key:"hideSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!1)}},{key:"resetSeries",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],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<t.length;i++)e.globals.collapsedSeriesIndices.indexOf(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<s.length;h++)s[h].classList.add(this.legendInactiveClass);o!==null&&(i.globals.axisCharts||o.parentNode.classList.remove(this.legendInactiveClass),o.classList.remove(this.legendInactiveClass),l!==null&&l.classList.remove(this.legendInactiveClass))}else if(t.type==="mouseout")for(var f=0;f<s.length;f++)s[f].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(t,e){var i=this,s=this.w,n=s.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),o=function(h){for(var f=0;f<n.length;f++)n[f].classList[h](i.legendInactiveClass)};if(t.type==="mousemove"){var l=parseInt(e.getAttribute("rel"),10)-1;o("add"),function(h){for(var f=0;f<n.length;f++){var g=parseInt(n[f].getAttribute("val"),10);g>=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<n.length: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;p<f.length;p++)if(f[p].hasAttribute("pathTo")){var x=f[p].getAttribute("pathTo");g.paths.push({d:x})}t.globals.previousPaths.push(g)}t.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(o){for(var l,h=(l=o,t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(l,"-series .apexcharts-series"))),f=0;f<h.length;f++)e(h,f,o)}),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series"));if(i.length>0)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;g<l.length;g++)f(g);t.globals.previousPaths.push(h)},n=0;n<i.length;n++)s(n);t.globals.axisCharts||(t.globals.previousPaths=t.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(t){var e=this.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series"));if(i.length>0)for(var s=0;s<i.length;s++){for(var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series[data\\:realIndex='").concat(s,"'] circle")),o=[],l=0;l<n.length;l++)o.push({x:n[l].getAttribute("cx"),y:n[l].getAttribute("cy"),r:n[l].getAttribute("r")});e.globals.previousPaths.push(o)}}},{key:"clearPreviousPaths",value:function(){var t=this.w;t.globals.previousPaths=[],t.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var t=this.w,e=t.config.noData,i=new V(this.ctx),s=t.globals.svgWidth/2,n=t.globals.svgHeight/2,o="middle";if(t.globals.noData=!0,t.globals.animationEnded=!0,e.align==="left"?(s=10,o="start"):e.align==="right"&&(s=t.globals.svgWidth-10,o="end"),e.verticalAlign==="top"?n=50:e.verticalAlign==="bottom"&&(n=t.globals.svgHeight-50),s+=e.offsetX,n=n+parseInt(e.style.fontSize,10)+2+e.offsetY,e.text!==void 0&&e.text!==""){var l=i.drawText({x:s,y:n,text:e.text,textAnchor:o,fontSize:e.style.fontSize,fontFamily:e.style.fontFamily,foreColor:e.style.color,opacity:1,class:"apexcharts-text-nodata"});t.globals.dom.Paper.add(l)}}},{key:"setNullSeriesToZeroValues",value:function(t){for(var e=this.w,i=0;i<t.length;i++)if(t[i].length===0)for(var s=0;s<t[e.globals.maxValsInArrayIndex].length;s++)t[i].push(0);return t}},{key:"hasAllSeriesEqualX",value:function(){for(var t=!0,e=this.w,i=this.filteredSeriesX(),s=0;s<i.length-1;s++)if(i[s][0]!==i[s+1][0]){t=!1;break}return e.globals.allSeriesHasEqualX=t,t}},{key:"filteredSeriesX",value:function(){var t=this.w.globals.seriesX.map(function(e){return e.length>0?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<t[e].data.length;o++)if(t[e].data[o][1]!==void 0&&(Array.isArray(t[e].data[o][1])&&t[e].data[o][1].length===4&&!n?this.twoDSeries.push(z.parseNumber(t[e].data[o][1][3])):t[e].data[o].length>=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<t[e].data.length;h++)t[e].data[h][2]!==void 0&&(this.threeDSeries.push(t[e].data[h][2]),s.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(t,e){var i=this.w.config,s=this.w.globals,n=new Ot(this.ctx),o=e;s.collapsedSeriesIndices.indexOf(e)>-1&&(o=this.activeSeriesIndex);for(var l=0;l<t[e].data.length;l++)t[e].data[l].y!==void 0&&(Array.isArray(t[e].data[l].y)?this.twoDSeries.push(z.parseNumber(t[e].data[l].y[t[e].data[l].y.length-1])):this.twoDSeries.push(z.parseNumber(t[e].data[l].y))),t[e].data[l].goals!==void 0&&Array.isArray(t[e].data[l].goals)?(this.seriesGoals[e]===void 0&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(t[e].data[l].goals)):(this.seriesGoals[e]===void 0&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(null));for(var h=0;h<t[o].data.length;h++){var f=typeof t[o].data[h].x=="string",g=Array.isArray(t[o].data[h].x),p=!g&&!!n.isValidDate(t[o].data[h].x);if(f||p)if(f||i.xaxis.convertedCatToNumeric){var x=s.isBarHorizontal&&s.isRangeData;i.xaxis.type!=="datetime"||x?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[o].data[h].x),isNaN(t[o].data[h].x)||this.w.config.xaxis.type==="category"||typeof t[o].data[h].x=="string"||(s.isXNumeric=!0)):this.twoDSeriesX.push(n.parseDate(t[o].data[h].x))}else i.xaxis.type==="datetime"?this.twoDSeriesX.push(n.parseDate(t[o].data[h].x.toString())):(s.dataFormatXNumeric=!0,s.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(t[o].data[h].x)));else g?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[o].data[h].x)):(s.isXNumeric=!0,s.dataFormatXNumeric=!0,this.twoDSeriesX.push(t[o].data[h].x))}if(t[e].data[0]&&t[e].data[0].z!==void 0){for(var v=0;v<t[e].data.length;v++)this.threeDSeries.push(t[e].data[v].z);s.isDataXYZ=!0}}},{key:"handleRangeData",value:function(t,e){var i=this.w.globals,s={};return this.isFormat2DArray()?s=this.handleRangeDataFormat("array",t,e):this.isFormatXY()&&(s=this.handleRangeDataFormat("xy",t,e)),i.seriesRangeStart.push(s.start),i.seriesRangeEnd.push(s.end),i.seriesRange.push(s.rangeUniques),i.seriesRange.forEach(function(n,o){n&&n.forEach(function(l,h){l.y.forEach(function(f,g){for(var p=0;p<l.y.length;p++)if(g!==p){var x=f.y1,v=f.y2,w=l.y[p].y1;x<=l.y[p].y2&&w<=v&&(l.overlaps.indexOf(f.rangeName)<0&&l.overlaps.push(f.rangeName),l.overlaps.indexOf(l.y[p].rangeName)<0&&l.overlaps.push(l.y[p].rangeName))}})})}),s}},{key:"handleCandleStickBoxData",value:function(t,e){var i=this.w.globals,s={};return this.isFormat2DArray()?s=this.handleCandleStickBoxDataFormat("array",t,e):this.isFormatXY()&&(s=this.handleCandleStickBoxDataFormat("xy",t,e)),i.seriesCandleO[e]=s.o,i.seriesCandleH[e]=s.h,i.seriesCandleM[e]=s.m,i.seriesCandleL[e]=s.l,i.seriesCandleC[e]=s.c,s}},{key:"handleRangeDataFormat",value:function(t,e,i){var s=[],n=[],o=e[i].data.filter(function(g,p,x){return p===x.findIndex(function(v){return v.x===g.x})}).map(function(g,p){return{x:g.x,overlaps:[],y:[]}});if(t==="array")for(var l=0;l<e[i].data.length;l++)Array.isArray(e[i].data[l])?(s.push(e[i].data[l][1][0]),n.push(e[i].data[l][1][1])):(s.push(e[i].data[l]),n.push(e[i].data[l]));else if(t==="xy")for(var h=function(g){var p=Array.isArray(e[i].data[g].y),x=z.randomId(),v=e[i].data[g].x,w={y1:p?e[i].data[g].y[0]:e[i].data[g].y,y2:p?e[i].data[g].y[1]:e[i].data[g].y,rangeName:x};e[i].data[g].rangeName=x;var A=o.findIndex(function(C){return C.x===v});o[A].y.push(w),s.push(w.y1),n.push(w.y2)},f=0;f<e[i].data.length;f++)h(f);return{start:s,end:n,rangeUniques:o}}},{key:"handleCandleStickBoxDataFormat",value:function(t,e,i){var s=this.w,n=s.config.chart.type==="boxPlot"||s.config.series[i].type==="boxPlot",o=[],l=[],h=[],f=[],g=[];if(t==="array")if(n&&e[i].data[0].length===6||!n&&e[i].data[0].length===5)for(var p=0;p<e[i].data.length;p++)o.push(e[i].data[p][1]),l.push(e[i].data[p][2]),n?(h.push(e[i].data[p][3]),f.push(e[i].data[p][4]),g.push(e[i].data[p][5])):(f.push(e[i].data[p][3]),g.push(e[i].data[p][4]));else for(var x=0;x<e[i].data.length;x++)Array.isArray(e[i].data[x][1])&&(o.push(e[i].data[x][1][0]),l.push(e[i].data[x][1][1]),n?(h.push(e[i].data[x][1][2]),f.push(e[i].data[x][1][3]),g.push(e[i].data[x][1][4])):(f.push(e[i].data[x][1][2]),g.push(e[i].data[x][1][3])));else if(t==="xy")for(var v=0;v<e[i].data.length;v++)Array.isArray(e[i].data[v].y)&&(o.push(e[i].data[v].y[0]),l.push(e[i].data[v].y[1]),n?(h.push(e[i].data[v].y[2]),f.push(e[i].data[v].y[3]),g.push(e[i].data[v].y[4])):(f.push(e[i].data[v].y[2]),g.push(e[i].data[v].y[3])));return{o,h:l,m:h,l:f,c:g}}},{key:"parseDataAxisCharts",value:function(t){var e,i=this,s=arguments.length>1&&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;w<h.length;w++)if(typeof h[w]=="string"){if(!l.isValidDate(h[w]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");i.twoDSeriesX.push(l.parseDate(h[w]))}else i.twoDSeriesX.push(h[w])},x=0;x<t.length;x++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],t[x].data===void 0)return void console.error("It is a possibility that you may have not included 'data' property in series.");if(n.chart.type!=="rangeBar"&&n.chart.type!=="rangeArea"&&t[x].type!=="rangeBar"&&t[x].type!=="rangeArea"||(o.isRangeData=!0,n.chart.type!=="rangeBar"&&n.chart.type!=="rangeArea"||this.handleRangeData(t,x)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,x):this.isFormatXY()&&this.handleFormatXY(t,x),n.chart.type!=="candlestick"&&t[x].type!=="candlestick"&&n.chart.type!=="boxPlot"&&t[x].type!=="boxPlot"||this.handleCandleStickBoxData(t,x),o.series.push(this.twoDSeries),o.labels.push(this.twoDSeriesX),o.seriesX.push(this.twoDSeriesX),o.seriesGoals=this.seriesGoals,x!==this.activeSeriesIndex||this.fallbackToCategory||(o.isXNumeric=!0);else{n.xaxis.type==="datetime"?(o.isXNumeric=!0,p(),o.seriesX.push(this.twoDSeriesX)):n.xaxis.type==="numeric"&&(o.isXNumeric=!0,h.length>0&&(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;s<e.series.length;s++)e.seriesNames[s]===void 0&&e.seriesNames.push("series-"+(s+1));return this.w}},{key:"handleExternalLabelsData",value:function(t){var e=this.w.config,i=this.w.globals;e.xaxis.categories.length>0?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;l<n[o].length;l++)s.push(l+1);else for(var h=0;h<e.series[e.maxValsInArrayIndex].length;h++)s.push(h+1);e.seriesX=[];for(var f=0;f<t.length;f++)e.seriesX.push(s);this.w.globals.isBarHorizontal||(e.isXNumeric=!0)}if(s.length===0){s=e.axisCharts?[]:e.series.map(function(p,x){return x+1});for(var g=0;g<t.length;g++)e.seriesX.push(s)}e.labels=s,i.xaxis.convertedCatToNumeric&&(e.categoryLabels=s.map(function(p){return i.xaxis.labels.formatter(p)})),e.noLabelsProvided=!0}},{key:"parseData",value:function(t){var e=this.w,i=e.config,s=e.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),s.axisCharts?(this.parseDataAxisCharts(t),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(t),i.chart.stacked){var n=new se(this.ctx);s.series=n.setNullSeriesToZeroValues(s.series)}this.coreUtils.getSeriesTotals(),s.axisCharts&&(s.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),s.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),s.dataFormatXNumeric||s.isXNumeric&&(i.xaxis.type!=="numeric"||i.labels.length!==0||i.xaxis.categories.length!==0)||this.handleExternalLabelsData(t);for(var o=this.coreUtils.getCategoryLabels(s.labels),l=0;l<o.length;l++)if(Array.isArray(o[l])){s.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var t=this,e=this.w;e.globals.ignoreYAxisIndexes=e.globals.collapsedSeries.map(function(i,s){if(t.w.globals.isMultipleYAxis&&!e.config.chart.stacked)return i.index})}}]),_}(),Ne=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"getLabel",value:function(t,e,i,s){var n=arguments.length>4&&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.x<l.textRect.width/(o.globals.rotateXLabels?Math.abs(o.config.xaxis.labels.rotate)/12:1.01)+l.x&&(e.text="")}return e}},{key:"checkForReversedLabels",value:function(t,e){var i=this.w;return i.config.yaxis[t]&&i.config.yaxis[t].reversed&&e.reverse(),e}},{key:"isYAxisHidden",value:function(t){var e=this.w,i=new et(this.ctx);return!e.config.yaxis[t].show||!e.config.yaxis[t].showForNullSeries&&i.isSeriesNull(t)&&e.globals.collapsedSeriesIndices.indexOf(t)===-1}},{key:"getYAxisForeColor",value:function(t,e){var i=this.w;return Array.isArray(t)&&i.globals.yAxisScale[e]&&this.ctx.theme.pushExtraColors(t,i.globals.yAxisScale[e].result.length,!1),t}},{key:"drawYAxisTicks",value:function(t,e,i,s,n,o,l){var h=this.w,f=new V(this.ctx),g=h.globals.translateY;if(s.show&&e>0){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;O<L.data.length;O++){x=[];var N=b(O);if(N||(M.isFormatXY()?N=i[T].data[O].x:M.isFormat2DArray()&&(N=i[T].data[O]?i[T].data[O][0]:"")),T===0){x.push(C(N)?f.config.chart.toolbar.export.csv.dateFormatter(N):z.isNumber(N)?N:N.split(o).join(""));for(var X=0;X<f.globals.series.length;X++){var G;M.isFormatXY()?x.push((G=i[X].data[O])===null||G===void 0?void 0:G.y):x.push(A[X][O])}}(f.config.chart.type==="candlestick"||L.type&&L.type==="candlestick")&&(x.pop(),x.push(f.globals.seriesCandleO[T][O]),x.push(f.globals.seriesCandleH[T][O]),x.push(f.globals.seriesCandleL[T][O]),x.push(f.globals.seriesCandleC[T][O])),(f.config.chart.type==="boxPlot"||L.type&&L.type==="boxPlot")&&(x.pop(),x.push(f.globals.seriesCandleO[T][O]),x.push(f.globals.seriesCandleH[T][O]),x.push(f.globals.seriesCandleM[T][O]),x.push(f.globals.seriesCandleL[T][O]),x.push(f.globals.seriesCandleC[T][O])),f.config.chart.type==="rangeBar"&&(x.pop(),x.push(f.globals.seriesRangeStart[T][O]),x.push(f.globals.seriesRangeEnd[T][O])),x.length&&v.push(x.join(o))}}};x.push(f.config.chart.toolbar.export.csv.headerCategory),f.config.chart.type==="boxPlot"?(x.push("minimum"),x.push("q1"),x.push("median"),x.push("q3"),x.push("maximum")):f.config.chart.type==="candlestick"?(x.push("open"),x.push("high"),x.push("low"),x.push("close")):f.config.chart.type==="rangeBar"?(x.push("minimum"),x.push("maximum")):i.map(function(L,T){var O=(L.name?L.name:"series-".concat(T))+"";f.globals.axisCharts&&x.push(O.split(o).join("")?O.split(o).join(""):"series-".concat(T))}),f.globals.axisCharts||(x.push(f.config.chart.toolbar.export.csv.headerValue),v.push(x.join(o))),f.globals.allSeriesHasEqualX||!f.globals.axisCharts||f.config.xaxis.categories.length||f.config.labels.length?i.map(function(L,T){f.globals.axisCharts?k(L,T):((x=[]).push(f.globals.labels[T].split(o).join("")),x.push(A[T]),v.push(x.join(o)))}):(g=new Set,p={},i.forEach(function(L,T){L==null||L.data.forEach(function(O){var N,X;if(M.isFormatXY())N=O.x,X=O.y;else{if(!M.isFormat2DArray())return;N=O[0],X=O[1]}p[N]||(p[N]=Array(i.length).fill("")),p[N][T]=X,g.add(N)})}),x.length&&v.push(x.join(o)),Array.from(g).sort().forEach(function(L){v.push([C(L)&&f.config.xaxis.type==="datetime"?f.config.chart.toolbar.export.csv.dateFormatter(L):z.isNumber(L)?L:L.split(o).join(""),p[L].join(o)])})),w+=v.join(h),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+w),s||f.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(t,e,i){var s=document.createElement("a");s.href=t,s.download=(e||this.w.globals.chartID)+i,document.body.appendChild(s),s.click(),document.body.removeChild(s)}}]),_}(),Xe=function(){function _(t,e){y(this,_),this.ctx=t,this.elgrid=e,this.w=t.w;var i=this.w;this.axesUtils=new Ne(t),this.xaxisLabels=i.globals.labels.slice(),i.globals.timescaleLabels.length>0&&!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;o<this.xaxisLabels.length;o++)n.push(this.xaxisLabels[o]);if(this.drawXAxisLabelAndGroup(!0,e,s,n,t.globals.isXNumeric,function(w,A){return A}),t.globals.hasXaxisGroups){var l=t.globals.groups;n=[];for(var h=0;h<l.length;h++)n.push(l[h].title);var f={};t.config.xaxis.group.style&&(f.xaxisFontSize=t.config.xaxis.group.style.fontSize,f.xaxisFontFamily=t.config.xaxis.group.style.fontFamily,f.xaxisForeColors=t.config.xaxis.group.style.colors,f.fontWeight=t.config.xaxis.group.style.fontWeight,f.cssClass=t.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,e,s,n,!1,function(w,A){return l[w].cols*A},f)}if(t.config.xaxis.title.text!==void 0){var g=e.group({class:"apexcharts-xaxis-title"}),p=e.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+(t.config.xaxis.position==="bottom"?t.globals.xAxisLabelsHeight:-t.globals.xAxisLabelsHeight-10)+t.config.xaxis.title.offsetY,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});g.add(p),i.add(g)}if(t.config.xaxis.axisBorder.show){var x=t.globals.barPadForNumericAxis,v=e.drawLine(t.globals.padHorizontal+t.config.xaxis.axisBorder.offsetX-x,this.offY,this.xaxisBorderWidth+x,this.offY,t.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(v):i.add(v)}return i}},{key:"drawXAxisLabelAndGroup",value:function(t,e,i,s,n,o){var l,h=this,f=arguments.length>6&&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))}}O<u-1&&(M+=o(O+1,l))},T=0;T<=u-1;T++)L(T)}},{key:"drawXaxisInversed",value:function(t){var e,i,s=this,n=this.w,o=new V(this.ctx),l=n.config.yaxis[0].opposite?n.globals.translateYAxisX[t]:0,h=o.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:t}),f=o.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+l+", 0)"});h.add(f);var g=[];if(n.config.yaxis[t].show)for(var p=0;p<this.xaxisLabels.length;p++)g.push(this.xaxisLabels[p]);e=n.globals.gridHeight/g.length,i=-e/2.2;var x=n.globals.yLabelFormatters[0],v=n.config.yaxis[0].labels;if(v.show)for(var w=function(k){var L=g[k]===void 0?"":g[k];L=x(L,{seriesIndex:t,dataPointIndex:k,w:n});var T=s.axesUtils.getYAxisForeColor(v.style.colors,t),O=0;Array.isArray(L)&&(O=L.length/2*parseInt(v.style.fontSize,10));var N=v.offsetX-15,X="end";s.yaxis.opposite&&(X="start"),n.config.yaxis[0].labels.align==="left"?(N=v.offsetX,X="start"):n.config.yaxis[0].labels.align==="center"?(N=v.offsetX,X="middle"):n.config.yaxis[0].labels.align==="right"&&(X="end");var G=o.drawText({x:N,y:i+e+v.offsetY-O,text:L,textAnchor:X,foreColor:Array.isArray(T)?T[k]:T,fontSize:v.style.fontSize,fontFamily:v.style.fontFamily,fontWeight:v.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+v.style.cssClass,maxWidth:v.maxWidth});f.add(G),G.on("click",function(ot){if(typeof n.config.chart.events.xAxisLabelClick=="function"){var ft=Object.assign({},n,{labelIndex:k});n.config.chart.events.xAxisLabelClick(ot,s.ctx,ft)}});var U=document.createElementNS(n.globals.SVGNS,"title");if(U.textContent=Array.isArray(L)?L.join(" "):L,G.node.appendChild(U),n.config.yaxis[t].labels.rotate!==0){var j=o.rotateAroundCenter(G.node);G.node.setAttribute("transform","rotate(".concat(n.config.yaxis[t].labels.rotate," 0 ").concat(j.y,")"))}i+=e},A=0;A<=g.length-1;A++)w(A);if(n.config.yaxis[0].title.text!==void 0){var C=o.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+l+", 0)"}),E=o.drawText({x:n.config.yaxis[0].title.offsetX,y:n.globals.gridHeight/2+n.config.yaxis[0].title.offsetY,text:n.config.yaxis[0].title.text,textAnchor:"middle",foreColor:n.config.yaxis[0].title.style.color,fontSize:n.config.yaxis[0].title.style.fontSize,fontWeight:n.config.yaxis[0].title.style.fontWeight,fontFamily:n.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+n.config.yaxis[0].title.style.cssClass});C.add(E),h.add(C)}var M=0;this.isCategoryBarHorizontal&&n.config.yaxis[0].opposite&&(M=n.globals.gridWidth);var u=n.config.xaxis.axisBorder;if(u.show){var b=o.drawLine(n.globals.padHorizontal+u.offsetX+M,1+u.offsetY,n.globals.padHorizontal+u.offsetX+M,n.globals.gridHeight+u.offsetY,u.color,0);this.elgrid&&this.elgrid.elGridBorders&&n.config.grid.show?this.elgrid.elGridBorders.add(b):h.add(b)}return n.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(M,g.length,n.config.yaxis[0].axisBorder,n.config.yaxis[0].axisTicks,0,e,h),h}},{key:"drawXaxisTicks",value:function(t,e,i){var s=this.w,n=t;if(!(t<0||t-2>s.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;n<i;n++)s=this.xaxisLabels[n].position,e.push(s);else for(var o=i,l=0;l<o;l++){var h=o;t.globals.isXNumeric&&t.config.chart.type!=="bar"&&(h-=1),s+=t.globals.gridWidth/h,e.push(s)}return e}},{key:"xAxisLabelCorrections",value:function(){var t=this.w,e=new V(this.ctx),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(t.globals.rotateXLabels||t.config.xaxis.labels.rotateAlways)for(var l=0;l<s.length;l++){var h=e.rotateAroundCenter(s[l]);h.y=h.y-1,h.x=h.x+1,s[l].setAttribute("transform","rotate(".concat(t.config.xaxis.labels.rotate," ").concat(h.x," ").concat(h.y,")")),s[l].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var f=s[l].childNodes;t.config.xaxis.labels.trim&&Array.prototype.forEach.call(f,function(v){e.placeTextWithEllipsis(v,v.textContent,t.globals.xAxisLabelsHeight-(t.config.legend.position==="bottom"?20:10))})}else(function(){for(var v=t.globals.gridWidth/(t.globals.labels.length+1),w=0;w<s.length;w++){var A=s[w].childNodes;t.config.xaxis.labels.trim&&t.config.xaxis.type!=="datetime"&&Array.prototype.forEach.call(A,function(C){e.placeTextWithEllipsis(C,C.textContent,v)})}})();if(n.length>0){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;x<o.length;x++)e.placeTextWithEllipsis(o[x],o[x].textContent,t.config.yaxis[0].labels.maxWidth-(t.config.yaxis[0].title.text?2*parseFloat(t.config.yaxis[0].title.style.fontSize):0)-15)}}}]),_}(),la=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w;var e=this.w;this.xaxisLabels=e.globals.labels.slice(),this.axesUtils=new Ne(t),this.isRangeBar=e.globals.seriesRange.length&&e.globals.isBarHorizontal,e.globals.timescaleLabels.length>0&&(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;x<e&&v<p.length;v++)x+=p[v].cols;x===e&&(g=.6*f.globals.xAxisLabelsHeight)}}new Xe(this.ctx).drawXaxisTicks(i,g,f.globals.dom.elGraphical)}}},{key:"_drawGridLine",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,g=!1,p=h.node.classList.contains("apexcharts-gridlines-horizontal"),x=f.config.grid.strokeDashArray,v=f.globals.barPadForNumericAxis;(s===0&&o===0||i===0&&n===0)&&(g=!0),s===f.globals.gridHeight&&o===f.globals.gridHeight&&(g=!0),!f.globals.isBarHorizontal||e!==0&&e!==l-1||(g=!0);var w=new V(this).drawLine(i-(p?v:0),s,n+(p?v:0),o,f.config.grid.borderColor,x);w.node.classList.add("apexcharts-gridline"),g&&f.config.grid.show?this.elGridBorders.add(w):h.add(w)}},{key:"_drawGridBandRect",value:function(t){var e=t.c,i=t.x1,s=t.y1,n=t.x2,o=t.y2,l=t.type,h=this.w,f=new V(this.ctx),g=h.globals.barPadForNumericAxis;if(l!=="column"||h.config.xaxis.type!=="datetime"){var p=h.config.grid[l].colors[e],x=f.drawRect(i-(l==="row"?g:0),s,n+(l==="row"?2*g:0),o,0,p,h.config.grid[l].opacity);this.elg.add(x),x.attr("clip-path","url(#gridRectMask".concat(h.globals.cuid,")")),x.node.classList.add("apexcharts-grid-".concat(l))}}},{key:"_drawXYLines",value:function(t){var e=this,i=t.xCount,s=t.tickAmount,n=this.w;if(n.config.grid.xaxis.lines.show||n.config.xaxis.axisTicks.show){var o,l=n.globals.padHorizontal,h=n.globals.gridHeight;n.globals.timescaleLabels.length?function(w){for(var A=w.xC,C=w.x1,E=w.y1,M=w.x2,u=w.y2,b=0;b<A;b++)C=e.xaxisLabels[b].position,M=e.xaxisLabels[b].position,e._drawGridLines({i:b,x1:C,y1:E,x2:M,y2:u,xCount:i,parent:e.elgridLinesV})}({xC:i,x1:l,y1:0,x2:o,y2:h}):(n.globals.isXNumeric&&(i=n.globals.xAxisScale.result.length),function(w){for(var A=w.xC,C=w.x1,E=w.y1,M=w.x2,u=w.y2,b=0;b<A+(n.globals.isXNumeric?0:1);b++)b===0&&A===1&&n.globals.dataPoints===1&&(M=C=n.globals.gridWidth/2),e._drawGridLines({i:b,x1:C,y1:E,x2:M,y2:u,xCount:i,parent:e.elgridLinesV}),M=C+=n.globals.gridWidth/(n.globals.isXNumeric?A-1:A)}({xC:i,x1:l,y1:0,x2:o,y2:h}))}if(n.config.grid.yaxis.lines.show){var f=0,g=0,p=n.globals.gridWidth,x=s+1;this.isRangeBar&&(x=n.globals.labels.length);for(var v=0;v<x+(this.isRangeBar?1:0);v++)this._drawGridLine({i:v,xCount:x+(this.isRangeBar?1:0),x1:0,y1:f,x2:p,y2:g,parent:this.elgridLinesH}),g=f+=n.globals.gridHeight/(this.isRangeBar?x:s)}}},{key:"_drawInvertedXYLines",value:function(t){var e=t.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var s,n=i.globals.padHorizontal,o=i.globals.gridHeight,l=0;l<e+1;l++)i.config.grid.xaxis.lines.show&&this._drawGridLine({i:l,xCount:e+1,x1:n,y1:0,x2:s,y2:o,parent:this.elgridLinesV}),new Xe(this.ctx).drawXaxisTicks(n,0,i.globals.dom.elGraphical),s=n=n+i.globals.gridWidth/e+.3;if(i.config.grid.yaxis.lines.show)for(var h=0,f=0,g=i.globals.gridWidth,p=0;p<i.globals.dataPoints+1;p++)this._drawGridLine({i:p,xCount:i.globals.dataPoints+1,x1:0,y1:h,x2:g,y2:f,parent:this.elgridLinesH}),f=h+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var t=this.w,e=new V(this.ctx);this.elg=e.group({class:"apexcharts-grid"}),this.elgridLinesH=e.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=e.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=e.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),t.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var i,s=t.globals.yAxisScale.length?t.globals.yAxisScale[0].result.length-1:5,n=0;n<t.globals.series.length&&(t.globals.yAxisScale[n]!==void 0&&(s=t.globals.yAxisScale[n].result.length-1),!(s>2));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<e;l++,h++)h>=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<t;v++,w++)w>=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));o<n;o++)s.push(Math.pow(i,o));return{result:s,niceMin:s[0],niceMax:s[s.length-1]}}},{key:"logarithmicScale",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var s=[],n=Math.log(e)/Math.log(i),o=Math.log(t)/Math.log(i),l=n-o,h=Math.round(l),f=l/h,g=0,p=o;g<h;g++,p+=f)s.push(Math.pow(i,p));return s.push(Math.pow(i,n)),{result:s,niceMin:t,niceMax:e}}},{key:"_adjustTicksForSmallRange",value:function(t,e,i){var s=t;if(e!==void 0&&this.w.config.yaxis[e].labels.formatter&&this.w.config.yaxis[e].tickAmount===void 0){var n=Number(this.w.config.yaxis[e].labels.formatter(1));z.isNumber(n)&&this.w.globals.yValueDecimal===0&&(s=Math.ceil(i))}return s<t?s:t}},{key:"setYScaleForIndex",value:function(t,e,i){var s=this.w.globals,n=this.w.config,o=s.isBarHorizontal?n.xaxis:n.yaxis[t];s.yAxisScale[t]===void 0&&(s.yAxisScale[t]=[]);var l=Math.abs(i-e);if(o.logarithmic&&l<=5&&(s.invalidLogScale=!0),o.logarithmic&&l>5)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<n.length;g++)if(n[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]<p&&C[b]!==null&&(p=C[b]))})):(p=x=M,C.forEach(function(u,b){if(n[b]<=i.xaxis.max&&n[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),k<p&&k!==null&&(p=k)}})),p===void 0&&x===void 0&&(p=v,x=w),x*=x<0?.9:1.1,(p*=p<0?1.1:.9)===0&&x===0&&(p=-1,x=1),x<0&&x<w&&(x=w),p<0&&p>v&&(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;x<s;x++){o.dataPoints=Math.max(o.dataPoints,f[x].length),o.categoryLabels.length&&(o.dataPoints=o.categoryLabels.filter(function(A){return A!==void 0}).length),o.labels.length&&n.xaxis.type!=="datetime"&&o.series.reduce(function(A,C){return A+C.length},0)!==0&&(o.dataPoints=Math.max(o.dataPoints,o.labels.length));for(var v=0;v<o.series[x].length;v++){var w=f[x][v];w!==null&&z.isNumber(w)?(p[x][v]!==void 0&&(l=Math.max(l,p[x][v]),e=Math.min(e,p[x][v])),g[x][v]!==void 0&&(e=Math.min(e,g[x][v]),i=Math.max(i,g[x][v])),this.w.config.chart.type!=="candlestick"&&this.w.config.chart.type!=="boxPlot"&&this.w.config.chart.type==="rangeArea"&&this.w.config.chart.type==="rangeBar"||(this.w.config.chart.type!=="candlestick"&&this.w.config.chart.type!=="boxPlot"||o.seriesCandleC[x][v]!==void 0&&(l=Math.max(l,o.seriesCandleO[x][v]),l=Math.max(l,o.seriesCandleH[x][v]),l=Math.max(l,o.seriesCandleL[x][v]),l=Math.max(l,o.seriesCandleC[x][v]),this.w.config.chart.type==="boxPlot"&&(l=Math.max(l,o.seriesCandleM[x][v]))),!n.series[x].type||n.series[x].type==="candlestick"&&n.series[x].type==="boxPlot"&&n.series[x].type==="rangeArea"&&n.series[x].type==="rangeBar"||(l=Math.max(l,o.series[x][v]),e=Math.min(e,o.series[x][v])),i=l),o.seriesGoals[x]&&o.seriesGoals[x][v]&&Array.isArray(o.seriesGoals[x][v])&&o.seriesGoals[x][v].forEach(function(A){h!==Number.MIN_VALUE&&(h=Math.min(h,A.value),e=h),l=Math.max(l,A.value),i=l}),z.isFloat(w)&&(w=z.noExponents(w),o.yValueDecimal=Math.max(o.yValueDecimal,w.toString().split(".")[1].length)),h>g[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<t.series.length;s++){var n=this.getMinYMaxY(s,i,null,s+1);t.minYArr.push(n.minY),t.maxYArr.push(n.maxY),i=n.lowestY}var o=this.getMinYMaxY(0,i,null,t.series.length);if(t.minY=o.minY,t.maxY=o.maxY,i=o.lowestY,e.chart.stacked&&this._setStackedMinMax(),(e.chart.type==="line"||e.chart.type==="area"||e.chart.type==="candlestick"||e.chart.type==="boxPlot"||e.chart.type==="rangeBar"&&!t.isBarHorizontal)&&t.minY===Number.MIN_VALUE&&i!==-Number.MAX_VALUE&&i!==t.maxY){var l=t.maxY-i;(i>=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;l<t.series.length;l++)if(t.labels[l])for(var h=0;h<t.labels[l].length;h++)t.labels[l][h]!==null&&z.isNumber(t.labels[l][h])&&(t.maxX=Math.max(t.maxX,t.labels[l][h]),t.initialMaxX=Math.max(t.maxX,t.labels[l][h]),t.minX=Math.min(t.minX,t.labels[l][h]),t.initialMinX=Math.min(t.minX,t.labels[l][h]))}(),t.noLabelsProvided&&e.xaxis.categories.length===0&&(t.maxX=t.labels[t.labels.length-1],t.initialMaxX=t.labels[t.labels.length-1],t.minX=1,t.initialMinX=1),t.isXNumeric||t.noLabelsProvided||t.dataFormatXNumeric){var s;if(e.xaxis.tickAmount===void 0?(s=Math.round(t.svgWidth/150),e.xaxis.type==="numeric"&&t.dataPoints<30&&(s=t.dataPoints-1),s>t.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;o<t.maxX;o++)n.push(o+1);t.xAxisScale={result:n,niceMin:n[0],niceMax:n[n.length-1]}}else t.xAxisScale=this.scales.setXScale(t.minX,t.maxX);else t.xAxisScale=this.scales.linearScale(0,s,s,0,e.xaxis.stepSize),t.noLabelsProvided&&t.labels.length>0&&(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;e<t.series.length;e++)if(t.seriesZ[e]!==void 0)for(var i=0;i<t.seriesZ[e].length;i++)t.seriesZ[e][i]!==null&&z.isNumber(t.seriesZ[e][i])&&(t.maxZ=Math.max(t.maxZ,t.seriesZ[e][i]),t.minZ=Math.min(t.minZ,t.seriesZ[e][i]))}}},{key:"_handleSingleDataPoint",value:function(){var t=this.w.globals,e=this.w.config;if(t.minX===t.maxX){var i=new Ot(this.ctx);if(e.xaxis.type==="datetime"){var s=i.getDate(t.minX);e.xaxis.labels.datetimeUTC?s.setUTCDate(s.getUTCDate()-2):s.setDate(s.getDate()-2),t.minX=new Date(s).getTime();var n=i.getDate(t.maxX);e.xaxis.labels.datetimeUTC?n.setUTCDate(n.getUTCDate()+2):n.setDate(n.getDate()+2),t.maxX=new Date(n).getTime()}else(e.xaxis.type==="numeric"||e.xaxis.type==="category"&&!t.noLabelsProvided)&&(t.minX=t.minX-2,t.initialMinX=t.minX,t.maxX=t.maxX+2,t.initialMaxX=t.maxX)}}},{key:"_getMinXDiff",value:function(){var t=this.w.globals;t.isXNumeric&&t.seriesX.forEach(function(e,i){e.length===1&&e.push(t.seriesX[t.maxValsInArrayIndex][t.seriesX[t.maxValsInArrayIndex].length-1]);var s=e.slice();s.sort(function(n,o){return n-o}),s.forEach(function(n,o){if(o>0){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;h<e.series[e.maxValsInArrayIndex].length;h++){var f,g;s[o][h]===void 0&&(s[o][h]=0,n[o][h]=0),(t.w.config.chart.stacked&&!e.comboCharts||t.w.config.chart.stacked&&e.comboCharts&&(!t.w.config.chart.stackOnlyBar||((f=t.w.config.series)===null||f===void 0||(g=f[l])===null||g===void 0?void 0:g.type)==="bar"))&&e.series[l][h]!==null&&z.isNumber(e.series[l][h])&&(e.series[l][h]>0?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<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;o<n;o++)s[o].apply(null,e)}}},{key:"setupEventHandlers",value:function(){var t=this,e=this.w,i=this.ctx,s=e.globals.dom.baseEl.querySelector(e.globals.chartClass);this.ctx.eventList.forEach(function(n){s.addEventListener(n,function(o){var l=Object.assign({},e,{seriesIndex:e.globals.capturedSeriesIndex,dataPointIndex:e.globals.capturedDataPointIndex});o.type==="mousemove"||o.type==="touchmove"?typeof e.config.chart.events.mouseMove=="function"&&e.config.chart.events.mouseMove(o,i,l):o.type==="mouseleave"||o.type==="touchleave"?typeof e.config.chart.events.mouseLeave=="function"&&e.config.chart.events.mouseLeave(o,i,l):(o.type==="mouseup"&&o.which===1||o.type==="touchend")&&(typeof e.config.chart.events.click=="function"&&e.config.chart.events.click(o,i,l),i.ctx.events.fireEvent("click",[o,i,l]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(n){e.globals.dom.baseEl.addEventListener(n,t.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(t){var e=this.w,i=t.target.className;if(t.type==="click"){var s=e.globals.dom.baseEl.querySelector(".apexcharts-menu");s&&s.classList.contains("apexcharts-menu-open")&&i!=="apexcharts-menu-icon"&&s.classList.remove("apexcharts-menu-open")}e.globals.clientX=t.type==="touchmove"?t.touches[0].clientX:t.clientX,e.globals.clientY=t.type==="touchmove"?t.touches[0].clientY:t.clientY}}]),_}(),Z=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"setCurrentLocaleValues",value:function(t){var e=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(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;v<n.length;v++)p<n[v].breakpoint&&(f=et.extendArrayProps(o,n[v].options,i),f=z.extend(i.config,f),e.overrideResponsiveOptions(f))};if(t){var h=et.extendArrayProps(o,t,i);h=z.extend(i.config,h),l(h=z.extend(h,t))}else l({})}}},{key:"overrideResponsiveOptions",value:function(t){var e=new Ee(t).init({responsiveOverride:!0});this.w.config=e}}]),_}(),rt=function(){function _(t){y(this,_),this.ctx=t,this.colors=[],this.w=t.w;var e=this.w;this.isColorFn=!1,this.isHeatmapDistributed=e.config.chart.type==="treemap"&&e.config.plotOptions.treemap.distributed||e.config.chart.type==="heatmap"&&e.config.plotOptions.heatmap.distributed,this.isBarDistributed=e.config.plotOptions.bar.distributed&&(e.config.chart.type==="bar"||e.config.chart.type==="rangeBar")}return P(_,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var t,e=this,i=this.w,s=new z;if(i.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(i.config.theme.mode)),i.config.colors===void 0||((t=i.config.colors)===null||t===void 0?void 0:t.length)===0?i.globals.colors=this.predefined():(i.globals.colors=i.config.colors,Array.isArray(i.config.colors)&&i.config.colors.length>0&&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;p<o;p++){var x=void 0;f==="dark"?(x=s.shadeColor(-1*g,l),g+=h):(x=s.shadeColor(g,l),g+=h),n.push(x)}i.globals.colors=n.slice()}var v=i.globals.colors.slice();this.pushExtraColors(i.globals.colors),["fill","stroke"].forEach(function(w){i.config[w].colors===void 0?i.globals[w].colors=e.isColorFn?i.config.colors:v:i.globals[w].colors=i.config[w].colors.slice(),e.pushExtraColors(i.globals[w].colors)}),i.config.dataLabels.style.colors===void 0?i.globals.dataLabels.style.colors=v:i.globals.dataLabels.style.colors=i.config.dataLabels.style.colors.slice(),this.pushExtraColors(i.globals.dataLabels.style.colors,50),i.config.plotOptions.radar.polygons.fill.colors===void 0?i.globals.radarPolygons.fill.colors=[i.config.theme.mode==="dark"?"#424242":"none"]:i.globals.radarPolygons.fill.colors=i.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(i.globals.radarPolygons.fill.colors,20),i.config.markers.colors===void 0?i.globals.markers.colors=v:i.globals.markers.colors=i.config.markers.colors.slice(),this.pushExtraColors(i.globals.markers.colors)}},{key:"pushExtraColors",value:function(t,e){var i=arguments.length>2&&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.length<n)for(var o=n-t.length,l=0;l<o;l++)t.push(t[l])}},{key:"updateThemeOptions",value:function(t){t.chart=t.chart||{},t.tooltip=t.tooltip||{};var e=t.theme.mode||"light",i=t.theme.palette?t.theme.palette:e==="dark"?"palette4":"palette1",s=t.chart.foreColor?t.chart.foreColor:e==="dark"?"#f6f7f8":"#373d3f";return t.tooltip.theme=e,t.chart.foreColor=s,t.theme.palette=i,t}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"]}return this.colors}}]),_}(),nt=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(t){var e=this.w,i=t==="title"?e.config.title:e.config.subtitle,s=e.globals.svgWidth/2,n=i.offsetY,o="middle";if(i.align==="left"?(s=10,o="start"):i.align==="right"&&(s=e.globals.svgWidth-10,o="end"),s+=i.offsetX,n=n+parseInt(i.style.fontSize,10)+i.margin/2,i.text!==void 0){var l=new V(this.ctx).drawText({x:s,y:n,text:i.text,textAnchor:o,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});l.node.setAttribute("class","apexcharts-".concat(t,"-text")),e.globals.dom.Paper.add(l)}}}]),_}(),J=function(){function _(t){y(this,_),this.w=t.w,this.dCtx=t}return P(_,[{key:"getTitleSubtitleCoords",value:function(t){var e=this.w,i=0,s=0,n=t==="title"?e.config.title.floating:e.config.subtitle.floating,o=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(t,"-text"));if(o!==null&&!n){var l=o.getBoundingClientRect();i=l.width,s=e.globals.axisCharts?l.height+5:l.height}return{width:i,height:s}}},{key:"getLegendsRect",value:function(){var t=this.w,e=t.globals.dom.elLegendWrap;t.config.legend.height||t.config.legend.position!=="top"&&t.config.legend.position!=="bottom"||(e.style.maxHeight=t.globals.svgHeight/2+"px");var i=Object.assign({},z.getBoundingClientRect(e));return e!==null&&!t.config.legend.floating&&t.config.legend.show?this.dCtx.lgRect={x:i.x,y:i.y,height:i.height,width:i.height===0?0:i.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},t.config.legend.position!=="left"&&t.config.legend.position!=="right"||1.5*this.dCtx.lgRect.width>t.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<l&&!s.rotateXLabels&&(s.skipLastTimelinelabel=!0):o!=="datetime"&&e.dCtx.gridPad.right<l/2-e.dCtx.yAxisWidthRight&&!s.rotateXLabels&&!i.config.xaxis.labels.trim&&(i.config.xaxis.tickPlacement!=="between"||i.globals.isBarHorizontal)&&(e.dCtx.xPadRight=l/2+1)}(g)};n.yaxis.forEach(function(g,p){h?(e.dCtx.gridPad.left<l&&(e.dCtx.xPadLeft=l/2+1),e.dCtx.xPadRight=l/2+1):f(g,p)})}}]),_}(),yt=function(){function _(t){y(this,_),this.w=t.w,this.dCtx=t}return P(_,[{key:"getyAxisLabelsCoords",value:function(){var t=this,e=this.w,i=[],s=10,n=new Ne(this.dCtx.ctx);return e.config.yaxis.map(function(o,l){var h={seriesIndex:l,dataPointIndex:-1,w:e},f=e.globals.yAxisScale[l],g=0;if(!n.isYAxisHidden(l)&&o.labels.show&&o.labels.minWidth!==void 0&&(g=o.labels.minWidth),!n.isYAxisHidden(l)&&o.labels.show&&f.result.length){var p=e.globals.yLabelFormatters[l],x=f.niceMin===Number.MIN_VALUE?0:f.niceMin,v=f.result.reduce(function(b,k){var L,T;return((L=String(p(b,h)))===null||L===void 0?void 0:L.length)>((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.xAxisHeight<s.config.xaxis.labels.minHeight&&(this.xAxisHeight=s.config.xaxis.labels.minHeight),s.config.xaxis.floating&&(this.xAxisHeight=0);var g=0,p=0;s.config.yaxis.forEach(function(x){g+=x.labels.minWidth,p+=x.labels.maxWidth}),this.yAxisWidth<g&&(this.yAxisWidth=g),this.yAxisWidth>p&&(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;f<h.length;f++)h[f].classList.contains("apexcharts-series-markers-wrap")&&(h[f].classList.contains("apexcharts-hide")?h[f].classList.remove("apexcharts-hide"):h[f].classList.add("apexcharts-hide"));s.globals.allSeriesCollapsed=s.globals.collapsedSeries.length===s.config.series.length,n=this._getSeriesBasedOnCollapsedState(n),this.lgCtx.ctx.updateHelpers._updateSeries(n,s.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(t,e,i){var s=this.w,n=z.clone(s.config.series);if(t.length>0){for(var o=0;o<t.length;o++)t[o].index===i&&(s.globals.axisCharts?(n[i].data=t[o].data.slice(),t.splice(o,1),e.splice(o,1),s.globals.risingSeries.push(i)):(n[i]=t[o].data,t.splice(o,1),e.splice(o,1),s.globals.risingSeries.push(i)));n=this._getSeriesBasedOnCollapsedState(n),this.lgCtx.ctx.updateHelpers._updateSeries(n,s.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(t){var e=this.w;return e.globals.axisCharts?t.forEach(function(i,s){e.globals.collapsedSeriesIndices.indexOf(s)>-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;w<e.globals.collapsedSeries.length;w++)e.globals.collapsedSeries[w].index===f&&(x=!0);if(e.globals.ancillaryCollapsedSeriesIndices.length>0)for(var A=0;A<e.globals.ancillaryCollapsedSeriesIndices.length;A++)e.globals.ancillaryCollapsedSeriesIndices[A]===f&&(v=!0);var C=document.createElement("span");C.classList.add("apexcharts-legend-marker");var E=e.config.legend.markers.offsetX,M=e.config.legend.markers.offsetY,u=e.config.legend.markers.height,b=e.config.legend.markers.width,k=e.config.legend.markers.strokeWidth,L=e.config.legend.markers.strokeColor,T=e.config.legend.markers.radius,O=C.style;O.background=n[f],O.color=n[f],O.setProperty("background",n[f],"important"),e.config.legend.markers.fillColors&&e.config.legend.markers.fillColors[f]&&(O.background=e.config.legend.markers.fillColors[f]),e.globals.seriesColors[f]!==void 0&&(O.background=e.globals.seriesColors[f],O.color=e.globals.seriesColors[f]),O.height=Array.isArray(u)?parseFloat(u[f])+"px":parseFloat(u)+"px",O.width=Array.isArray(b)?parseFloat(b[f])+"px":parseFloat(b)+"px",O.left=(Array.isArray(E)?parseFloat(E[f]):parseFloat(E))+"px",O.top=(Array.isArray(M)?parseFloat(M[f]):parseFloat(M))+"px",O.borderWidth=Array.isArray(k)?k[f]:k,O.borderColor=Array.isArray(L)?L[f]:L,O.borderRadius=Array.isArray(T)?parseFloat(T[f])+"px":parseFloat(T)+"px",e.config.legend.markers.customHTML&&(Array.isArray(e.config.legend.markers.customHTML)?e.config.legend.markers.customHTML[f]&&(C.innerHTML=e.config.legend.markers.customHTML[f]()):C.innerHTML=e.config.legend.markers.customHTML()),V.setAttrs(C,{rel:f+1,"data:collapsed":x||v}),(x||v)&&C.classList.add("apexcharts-inactive-legend");var N=document.createElement("div"),X=document.createElement("span");X.classList.add("apexcharts-legend-text"),X.innerHTML=Array.isArray(p)?p.join(" "):p;var G=e.config.legend.labels.useSeriesColors?e.globals.colors[f]:Array.isArray(e.config.legend.labels.colors)?(g=e.config.legend.labels.colors)===null||g===void 0?void 0:g[f]:e.config.legend.labels.colors;G||(G=e.config.chart.foreColor),X.style.color=G,X.style.fontSize=parseFloat(e.config.legend.fontSize)+"px",X.style.fontWeight=e.config.legend.fontWeight,X.style.fontFamily=i||e.config.chart.fontFamily,V.setAttrs(X,{rel:f+1,i:f,"data:default-text":encodeURIComponent(p),"data:collapsed":x||v}),N.appendChild(C),N.appendChild(X);var U=new et(this.ctx);e.config.legend.showForZeroSeries||U.getSeriesTotalByIndex(f)===0&&U.seriesHaveSameValues(f)&&!U.isSeriesNull(f)&&e.globals.collapsedSeriesIndices.indexOf(f)===-1&&e.globals.ancillaryCollapsedSeriesIndices.indexOf(f)===-1&&N.classList.add("apexcharts-hidden-zero-series"),e.config.legend.showForNullSeries||U.isSeriesNull(f)&&e.globals.collapsedSeriesIndices.indexOf(f)===-1&&e.globals.ancillaryCollapsedSeriesIndices.indexOf(f)===-1&&N.classList.add("apexcharts-hidden-null-series"),e.globals.dom.elLegendWrap.appendChild(N),e.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(e.config.legend.horizontalAlign)),e.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+e.config.legend.position),N.classList.add("apexcharts-legend-series"),N.style.margin="".concat(e.config.legend.itemMargin.vertical,"px ").concat(e.config.legend.itemMargin.horizontal,"px"),e.globals.dom.elLegendWrap.style.width=e.config.legend.width?e.config.legend.width+"px":"",e.globals.dom.elLegendWrap.style.height=e.config.legend.height?e.config.legend.height+"px":"",V.setAttrs(N,{rel:f+1,seriesName:z.escapeString(s[f]),"data:collapsed":x||v}),(x||v)&&N.classList.add("apexcharts-inactive-legend"),e.config.legend.onItemClick.toggleDataSeries||N.classList.add("apexcharts-no-click")}e.globals.dom.elWrap.addEventListener("click",t.onLegendClick,!0),e.config.legend.onItemHover.highlightDataSeries&&e.config.legend.customLegendItems.length===0&&(e.globals.dom.elWrap.addEventListener("mousemove",t.onLegendHovered,!0),e.globals.dom.elWrap.addEventListener("mouseout",t.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(t,e){var i=this.w,s=i.globals.dom.elLegendWrap,n=s.getBoundingClientRect(),o=0,l=0;if(i.config.legend.position==="bottom")l+=i.globals.svgHeight-n.height/2;else if(i.config.legend.position==="top"){var h=new kt(this.ctx),f=h.dimHelpers.getTitleSubtitleCoords("title").height,g=h.dimHelpers.getTitleSubtitleCoords("subtitle").height;l=l+(f>0?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<this.t.customIcons.length;n++)this.elCustomIcons.push(i());var o=[],l=function(p,x,v){var w=p.toLowerCase();t.t[w]&&e.config.chart.zoom.enabled&&o.push({el:x,icon:typeof t.t[w]=="string"?t.t[w]:v,title:t.localeValues[p],class:"apexcharts-".concat(w,"-icon")})};l("zoomIn",this.elZoomIn,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
||
<path d="M0 0h24v24H0z" fill="none"/>
|
||
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
|
||
</svg>
|
||
`),l("zoomOut",this.elZoomOut,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
||
<path d="M0 0h24v24H0z" fill="none"/>
|
||
<path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
|
||
</svg>
|
||
`);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"?`<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
|
||
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
|
||
<path d="M0 0h24v24H0V0z" fill="none"/>
|
||
<path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>
|
||
</svg>`:`<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||
<path d="M0 0h24v24H0z" fill="none"/>
|
||
<path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>
|
||
</svg>`,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:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
|
||
<defs>
|
||
<path d="M0 0h24v24H0z" id="a"/>
|
||
</defs>
|
||
<clipPath id="b">
|
||
<use overflow="visible" xlink:href="#a"/>
|
||
</clipPath>
|
||
<path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>
|
||
</svg>`,title:this.localeValues.pan,class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),l("reset",this.elZoomReset,`<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
|
||
<path d="M0 0h24v24H0z" fill="none"/>
|
||
</svg>`),this.t.download&&o.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var f=0;f<this.elCustomIcons.length;f++)o.push({el:this.elCustomIcons[f],icon:this.t.customIcons[f].icon,title:this.t.customIcons[f].title,index:this.t.customIcons[f].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[f].class});o.forEach(function(p,x){p.index&&z.moveIndexInArray(o,x,p.index)});for(var g=0;g<o.length;g++)V.setAttrs(o[g].el,{class:o[g].class,title:o[g].title}),o[g].el.innerHTML=o[g].icon,s.appendChild(o[g].el);this._createHamburgerMenu(s),e.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):e.globals.panEnabled?this.elPan.classList.add(this.selectedClass):e.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(t){this.elMenuItems=[],t.appendChild(this.elMenu),V.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var e=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],i=0;i<e.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=e[i].title,V.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(e[i].name),title:e[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var t=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(i){i.classList.contains("exportSVG")?i.addEventListener("click",t.handleDownload.bind(t,"svg")):i.classList.contains("exportPNG")?i.addEventListener("click",t.handleDownload.bind(t,"png")):i.classList.contains("exportCSV")&&i.addEventListener("click",t.handleDownload.bind(t,"csv"))});for(var e=0;e<this.t.customIcons.length;e++)this.elCustomIcons[e].addEventListener("click",this.t.customIcons[e].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(t){this.ctx.getSyncedCharts().forEach(function(e){e.ctx.toolbar.toggleOtherControls();var i=t==="selection"?e.ctx.toolbar.elSelection:e.ctx.toolbar.elZoom,s=t==="selection"?"selectionEnabled":"zoomEnabled";e.w.globals[s]=!e.w.globals[s],i.classList.contains(e.ctx.toolbar.selectedClass)?i.classList.remove(e.ctx.toolbar.selectedClass):i.classList.add(e.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var t=this.w;this.elZoom||(this.elZoom=t.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=t.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=t.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(t){this.toggleOtherControls(),t==="pan"?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var e=t==="pan"?this.elPan:this.elZoom,i=t==="pan"?this.elZoom:this.elPan;e&&e.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(t){t.ctx.toolbar.toggleOtherControls(),t.w.globals.panEnabled=!t.w.globals.panEnabled,t.ctx.toolbar.elPan.classList.contains(t.ctx.toolbar.selectedClass)?t.ctx.toolbar.elPan.classList.remove(t.ctx.toolbar.selectedClass):t.ctx.toolbar.elPan.classList.add(t.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var t=this,e=this.w;e.globals.panEnabled=!1,e.globals.zoomEnabled=!1,e.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(i){i&&i.classList.remove(t.selectedClass)})}},{key:"handleZoomIn",value:function(){var t=this.w;t.globals.isRangeBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY);var e=(this.minX+this.maxX)/2,i=(this.minX+e)/2,s=(this.maxX+e)/2,n=this._getNewMinXMaxX(i,s);t.globals.disableZoomIn||this.zoomUpdateOptions(n.minX,n.maxX)}},{key:"handleZoomOut",value:function(){var t=this.w;if(t.globals.isRangeBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY),!(t.config.xaxis.type==="datetime"&&new Date(this.minX).getUTCFullYear()<1e3)){var e=(this.minX+this.maxX)/2,i=this.minX-(e-this.minX),s=this.maxX-(e-this.maxX),n=this._getNewMinXMaxX(i,s);t.globals.disableZoomOut||this.zoomUpdateOptions(n.minX,n.maxX)}}},{key:"_getNewMinXMaxX",value:function(t,e){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(t):t,maxX:i?Math.floor(e):e}}},{key:"zoomUpdateOptions",value:function(t,e){var i=this.w;if(t!==void 0||e!==void 0){if(!(i.config.xaxis.convertedCatToNumeric&&(t<1&&(t=1,e=i.globals.dataPoints),e-t<2))){var s={min:t,max:e},n=this.getBeforeZoomRange(s);n&&(s=n.xaxis);var o={xaxis:s},l=z.clone(i.globals.initialConfig.yaxis);i.config.chart.zoom.autoScaleYaxis&&(l=new Qe(this.ctx).autoScaleY(this.ctx,l,{xaxis:s})),i.config.chart.group||(o.yaxis=l),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(o,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(s,l)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(t,e){typeof this.ev.zoomed=="function"&&this.ev.zoomed(this.ctx,{xaxis:t,yaxis:e})}},{key:"getBeforeZoomRange",value:function(t,e){var i=null;return typeof this.ev.beforeZoom=="function"&&(i=this.ev.beforeZoom(this,{xaxis:t,yaxis:e})),i}},{key:"toggleMenu",value:function(){var t=this;window.setTimeout(function(){t.elMenu.classList.contains("apexcharts-menu-open")?t.elMenu.classList.remove("apexcharts-menu-open"):t.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(t){var e=this.w,i=new Ei(this.ctx);switch(t){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:e.config.series,columnDelimiter:e.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(t){this.ctx.getSyncedCharts().forEach(function(e){var i=e.w;if(i.globals.lastXAxis.min=i.globals.initialConfig.xaxis.min,i.globals.lastXAxis.max=i.globals.initialConfig.xaxis.max,e.updateHelpers.revertDefaultAxisMinMax(),typeof i.config.chart.events.beforeResetZoom=="function"){var s=i.config.chart.events.beforeResetZoom(e,i);s&&e.updateHelpers.revertDefaultAxisMinMax(s)}typeof i.config.chart.events.zoomed=="function"&&e.ctx.toolbar.zoomCallback({min:i.config.xaxis.min,max:i.config.xaxis.max}),i.globals.zoomed=!1;var n=e.ctx.series.emptyCollapsedSeries(z.clone(i.globals.initialSeries));e.updateHelpers._updateSeries(n,i.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),_}(),oe=function(_){R(e,Yt);var t=q(e);function e(i){var s;return y(this,e),(s=t.call(this,i)).ctx=i,s.w=i.w,s.dragged=!1,s.graphics=new V(s.ctx),s.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],s.clientX=0,s.clientY=0,s.startX=0,s.endX=0,s.dragX=0,s.startY=0,s.endY=0,s.dragY=0,s.moveDirection="none",s}return P(e,[{key:"init",value:function(i){var s=this,n=i.xyRatios,o=this.w,l=this;this.xyRatios=n,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=o.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),o.globals.dom.elGraphical.add(this.zoomRect),o.globals.dom.elGraphical.add(this.selectionRect),o.config.chart.selection.type==="x"?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:o.globals.gridWidth,maxY:o.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):o.config.chart.selection.type==="y"?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:o.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=o.globals.dom.baseEl.querySelector("".concat(o.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(h){s.hoverArea.addEventListener(h,l.svgMouseEvents.bind(l,n),{capture:!1,passive:!0})})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(i,s){var n=this.w,o=this,l=this.ctx.toolbar,h=n.globals.zoomEnabled?n.config.chart.zoom.type:n.config.chart.selection.type,f=n.config.chart.toolbar.autoSelected;if(s.shiftKey?(this.shiftWasPressed=!0,l.enableZoomPanFromToolbar(f==="pan"?"zoom":"pan")):this.shiftWasPressed&&(l.enableZoomPanFromToolbar(f),this.shiftWasPressed=!1),s.target){var g,p=s.target.classList;if(s.target.parentNode&&s.target.parentNode!==null&&(g=s.target.parentNode.classList),!(p.contains("apexcharts-selection-rect")||p.contains("apexcharts-legend-marker")||p.contains("apexcharts-legend-text")||g&&g.contains("apexcharts-toolbar"))){if(o.clientX=s.type==="touchmove"||s.type==="touchstart"?s.touches[0].clientX:s.type==="touchend"?s.changedTouches[0].clientX:s.clientX,o.clientY=s.type==="touchmove"||s.type==="touchstart"?s.touches[0].clientY:s.type==="touchend"?s.changedTouches[0].clientY:s.clientY,s.type==="mousedown"&&s.which===1){var x=o.gridRect.getBoundingClientRect();o.startX=o.clientX-x.left,o.startY=o.clientY-x.top,o.dragged=!1,o.w.globals.mousedown=!0}if((s.type==="mousemove"&&s.which===1||s.type==="touchmove")&&(o.dragged=!0,n.globals.panEnabled?(n.globals.selection=null,o.w.globals.mousedown&&o.panDragging({context:o,zoomtype:h,xyRatios:i})):(o.w.globals.mousedown&&n.globals.zoomEnabled||o.w.globals.mousedown&&n.globals.selectionEnabled)&&(o.selection=o.selectionDrawing({context:o,zoomtype:h}))),s.type==="mouseup"||s.type==="touchend"||s.type==="mouseleave"){var v=o.gridRect.getBoundingClientRect();o.w.globals.mousedown&&(o.endX=o.clientX-v.left,o.endY=o.clientY-v.top,o.dragX=Math.abs(o.endX-o.startX),o.dragY=Math.abs(o.endY-o.startY),(n.globals.zoomEnabled||n.globals.selectionEnabled)&&o.selectionDrawn({context:o,zoomtype:h}),n.globals.panEnabled&&n.config.xaxis.convertedCatToNumeric&&o.delayedPanScrolled()),n.globals.zoomEnabled&&o.hideSelectionRect(this.selectionRect),o.dragged=!1,o.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"makeSelectionRectDraggable",value:function(){var i=this.w;if(this.selectionRect){var s=this.selectionRect.node.getBoundingClientRect();s.width>0&&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||(i<n.globals.initialMinX||s>n.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;n<s.length;n++)if(s[n]!==-1&&e.globals.collapsedSeriesIndices.indexOf(n)===-1&&e.globals.ancillaryCollapsedSeriesIndices.indexOf(n)===-1){i=s[n];break}return i}},{key:"closestInArray",value:function(t,e){for(var i=e[0],s=null,n=Math.abs(t-i),o=0;o<e.length;o++){var l=Math.abs(t-e[o]);l<n&&(n=l,s=o)}return{index:s}}},{key:"isXoverlap",value:function(t){var e=[],i=this.w.globals.seriesX.filter(function(n){return n[0]!==void 0});if(i.length>0)for(var s=0;s<i.length-1;s++)i[s][t]!==void 0&&i[s+1][t]!==void 0&&i[s][t]!==i[s+1][t]&&e.push("unEqual");return e.length===0}},{key:"isInitialSeriesSameLen",value:function(){for(var t=!0,e=this.w.globals.initialSeries,i=0;i<e.length-1;i++)if(e[i].data.length!==e[i+1].data.length){t=!1;break}return t}},{key:"getBarsHeight",value:function(t){return ht(t).reduce(function(e,i){return e+i.getBBox().height},0)}},{key:"getElMarkers",value:function(t){return typeof t=="number"?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers-wrap > *")):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 o<n?1:o>n?-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<s.length;n++)t==="enable"?(s[n].classList.add("apexcharts-active"),s[n].style.display=e.config.tooltip.items.display):(s[n].classList.remove("apexcharts-active"),s[n].style.display="none")}}]),_}(),ui=function(){function _(t){y(this,_),this.w=t.w,this.ctx=t.ctx,this.ttCtx=t,this.tooltipUtil=new ke(t)}return P(_,[{key:"drawSeriesTexts",value:function(t){var e=t.shared,i=e===void 0||e,s=t.ttItems,n=t.i,o=n===void 0?0:n,l=t.j,h=l===void 0?null:l,f=t.y1,g=t.y2,p=t.e,x=this.w;x.config.tooltip.custom!==void 0?this.handleCustomTooltip({i:o,j:h,y1:f,y2:g,w:x}):this.toggleActiveInactiveSeries(i);var v=this.getValuesToPrint({i:o,j:h});this.printLabels({i:o,j:h,values:v,ttItems:s,shared:i,e:p});var w=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=w.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=w.getBoundingClientRect().height}},{key:"printLabels",value:function(t){var e,i=this,s=t.i,n=t.j,o=t.values,l=t.ttItems,h=t.shared,f=t.e,g=this.w,p=[],x=function(k){return g.globals.seriesGoals[k]&&g.globals.seriesGoals[k][n]&&Array.isArray(g.globals.seriesGoals[k][n])},v=o.xVal,w=o.zVal,A=o.xAxisTTVal,C="",E=g.globals.colors[s];n!==null&&g.config.plotOptions.bar.distributed&&(E=g.globals.colors[n]);for(var M=function(k,L){var T=i.getFormatters(s);C=i.getSeriesName({fn:T.yLbTitleFormatter,index:s,seriesIndex:s,j:n}),g.config.chart.type==="treemap"&&(C=T.yLbTitleFormatter(String(g.config.series[s].data[n].x),{series:g.globals.series,seriesIndex:s,dataPointIndex:n,w:g}));var O=g.config.tooltip.inverseOrder?L:k;if(g.globals.axisCharts){var N=function(U){var j,ot,ft,vt;return g.globals.isRangeData?T.yLbFormatter((j=g.globals.seriesRangeStart)===null||j===void 0||(ot=j[U])===null||ot===void 0?void 0:ot[n],{series:g.globals.seriesRangeStart,seriesIndex:U,dataPointIndex:n,w:g})+" - "+T.yLbFormatter((ft=g.globals.seriesRangeEnd)===null||ft===void 0||(vt=ft[U])===null||vt===void 0?void 0:vt[n],{series:g.globals.seriesRangeEnd,seriesIndex:U,dataPointIndex:n,w:g}):T.yLbFormatter(g.globals.series[U][n],{series:g.globals.series,seriesIndex:U,dataPointIndex:n,w:g})};if(h)T=i.getFormatters(O),C=i.getSeriesName({fn:T.yLbTitleFormatter,index:O,seriesIndex:s,j:n}),E=g.globals.colors[O],e=N(O),x(O)&&(p=g.globals.seriesGoals[O][n].map(function(U){return{attrs:U,val:T.yLbFormatter(U.value,{seriesIndex:O,dataPointIndex:n,w:g})}}));else{var X,G=f==null||(X=f.target)===null||X===void 0?void 0:X.getAttribute("fill");G&&(E=G.indexOf("url")!==-1?document.querySelector(G.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):G),e=N(s),x(s)&&Array.isArray(g.globals.seriesGoals[s][n])&&(p=g.globals.seriesGoals[s][n].map(function(U){return{attrs:U,val:T.yLbFormatter(U.value,{seriesIndex:s,dataPointIndex:n,w:g})}}))}}n===null&&(e=T.yLbFormatter(g.globals.series[s],d(d({},g),{},{seriesIndex:s,dataPointIndex:s}))),i.DOMHandling({i:s,t:O,j:n,ttItems:l,values:{val:e,goalVals:p,xVal:v,xAxisTTVal:A,zVal:w},seriesName:C,shared:h,pColor:E})},u=0,b=g.globals.series.length-1;u<g.globals.series.length;u++,b--)M(u,b)}},{key:"getFormatters",value:function(t){var e,i=this.w,s=i.globals.yLabelFormatters[t];return i.globals.ttVal!==void 0?Array.isArray(i.globals.ttVal)?(s=i.globals.ttVal[t]&&i.globals.ttVal[t].formatter,e=i.globals.ttVal[t]&&i.globals.ttVal[t].title&&i.globals.ttVal[t].title.formatter):(s=i.globals.ttVal.formatter,typeof i.globals.ttVal.title.formatter=="function"&&(e=i.globals.ttVal.title.formatter)):e=i.config.tooltip.y.title.formatter,typeof s!="function"&&(s=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(n){return n}),typeof e!="function"&&(e=function(n){return n}),{yLbFormatter:s,yLbTitleFormatter:e}}},{key:"getSeriesName",value:function(t){var e=t.fn,i=t.index,s=t.seriesIndex,n=t.j,o=this.w;return e(String(o.globals.seriesNames[i]),{series:o.globals.series,seriesIndex:s,dataPointIndex:n,w:o})}},{key:"DOMHandling",value:function(t){t.i;var e=t.t,i=t.j,s=t.ttItems,n=t.values,o=t.seriesName,l=t.shared,h=t.pColor,f=this.w,g=this.ttCtx,p=n.val,x=n.goalVals,v=n.xVal,w=n.xAxisTTVal,A=n.zVal,C=null;C=s[e].children,f.config.tooltip.fillSeriesColor&&(s[e].style.backgroundColor=h,C[0].style.display="none"),g.showTooltipTitle&&(g.tooltipTitle===null&&(g.tooltipTitle=f.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),g.tooltipTitle.innerHTML=v),g.isXAxisTooltipEnabled&&(g.xaxisTooltipText.innerHTML=w!==""?w:v);var E=s[e].querySelector(".apexcharts-tooltip-text-y-label");E&&(E.innerHTML=o||"");var M=s[e].querySelector(".apexcharts-tooltip-text-y-value");M&&(M.innerHTML=p!==void 0?p:""),C[0]&&C[0].classList.contains("apexcharts-tooltip-marker")&&(f.config.tooltip.marker.fillColors&&Array.isArray(f.config.tooltip.marker.fillColors)&&(h=f.config.tooltip.marker.fillColors[e]),C[0].style.backgroundColor=h),f.config.tooltip.marker.show||(C[0].style.display="none");var u=s[e].querySelector(".apexcharts-tooltip-text-goals-label"),b=s[e].querySelector(".apexcharts-tooltip-text-goals-value");if(x.length&&f.globals.seriesGoals[e]){var k=function(){var O="<div >",N="<div>";x.forEach(function(X,G){O+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(X.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(X.attrs.name,"</div>"),N+="<div>".concat(X.val,"</div>")}),u.innerHTML=O+"</div>",b.innerHTML=N+"</div>"};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;o<n.length;o++)parseInt(n[o].getAttribute("rel"),10)===e&&(s.marker.resetPointsSize(),s.marker.enlargeCurrentPoint(e,n[o]));else s.marker.resetPointsSize(),this.moveDynamicPointOnHover(e,t)}},{key:"moveDynamicPointOnHover",value:function(t,e){var i,s,n=this.w,o=this.ttCtx,l=n.globals.pointsArray,h=o.tooltipUtil.getHoverMarkerSize(e),f=n.config.series[e].type;if(!f||f!=="column"&&f!=="candlestick"&&f!=="boxPlot"){i=l[e][t][0],s=l[e][t][1]?l[e][t][1]:0;var g=n.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers circle"));g&&s<n.globals.gridHeight&&s>0&&(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;g<s.globals.series.length;g++){var p=l[g];if(s.globals.comboCharts&&p===void 0&&f.splice(g,0,null),p&&p.length){var x=l[g][t][1],v=void 0;if(f[g].setAttribute("cx",n),s.config.chart.type==="rangeArea"&&!s.globals.comboCharts){var w=t+s.globals.series[g].length;v=l[g][w][1],x-=Math.abs(x-v)/2}x!==null&&!isNaN(x)&&x<s.globals.gridHeight+h&&x+h>0?(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;n<s.length;n++){var o=s[n].querySelector(".apexcharts-series-markers-wrap");if(o!==null){var l=void 0,h="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));t.config.chart.type!=="line"&&t.config.chart.type!=="area"||t.globals.comboCharts||t.config.tooltip.intersect||(h+=" no-pointer-events");var f=i.getMarkerConfig({cssClass:h,seriesIndex:Number(o.getAttribute("data:realIndex"))});(l=e.drawMarker(0,0,f)).node.setAttribute("default-marker-size",0);var g=document.createElementNS(t.globals.SVGNS,"g");g.classList.add("apexcharts-series-markers"),g.appendChild(l.node),o.appendChild(g)}}}},{key:"enlargeCurrentPoint",value:function(t,e){var i=arguments.length>2&&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<o.length;h++){var f=o[h].getAttribute("rel"),g=o[h].getAttribute("index");if(l===void 0&&(l=e.globals.markers.size[g]+e.config.markers.hover.sizeOffset),n===parseInt(f,10)){i.newPointSize(n,o[h]);var p=o[h].getAttribute("cx"),x=o[h].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(p),s.fixedTooltip||i.tooltipPosition.moveTooltip(p,x,l)}else i.oldPointSize(o[h])}}},{key:"newPointSize",value:function(t,e){var i=this.w,s=i.config.markers.hover.size,n=t===0?e.parentNode.firstChild:e.parentNode.lastChild;if(n.getAttribute("default-marker-size")!=="0"){var o=parseInt(n.getAttribute("index"),10);s===void 0&&(s=i.globals.markers.size[o]+i.config.markers.hover.sizeOffset),s<0&&(s=0),n.setAttribute("r",s)}}},{key:"oldPointSize",value:function(t){var e=parseFloat(t.getAttribute("default-marker-size"));t.setAttribute("r",e)}},{key:"resetPointsSize",value:function(){for(var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),e=0;e<t.length;e++){var i=parseFloat(t[e].getAttribute("default-marker-size"));z.isNumber(i)&&i>=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)<l.xyRatios.baseLineInvertedY&&(f=u-l.tooltipRect.ttWidth),g=N()):(f=O(),g=b)}return{x:f,y:g,barHeight:x,barWidth:p,i:h,j:o}}}]),_}(),be=function(){function _(t){y(this,_),this.w=t.w,this.ttCtx=t}return P(_,[{key:"drawXaxisTooltip",value:function(){var t=this.w,e=this.ttCtx,i=t.config.xaxis.position==="bottom";e.xaxisOffY=i?t.globals.gridHeight+1:-t.globals.xAxisHeight-t.config.xaxis.axisTicks.height+3;var s=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",n=t.globals.dom.elWrap;e.isXAxisTooltipEnabled&&t.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")===null&&(e.xaxisTooltip=document.createElement("div"),e.xaxisTooltip.setAttribute("class",s+" apexcharts-theme-"+t.config.tooltip.theme),n.appendChild(e.xaxisTooltip),e.xaxisTooltipText=document.createElement("div"),e.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),e.xaxisTooltipText.style.fontFamily=t.config.xaxis.tooltip.style.fontFamily||t.config.chart.fontFamily,e.xaxisTooltipText.style.fontSize=t.config.xaxis.tooltip.style.fontSize,e.xaxisTooltip.appendChild(e.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var t=this.w,e=this.ttCtx,i=function(n){var o=t.config.yaxis[n].opposite||t.config.yaxis[n].crosshairs.opposite;e.yaxisOffX=o?t.globals.gridWidth+1:1;var l="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(n,o?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");t.globals.yAxisSameScaleIndices.map(function(f,g){f.map(function(p,x){x===n&&(l+=t.config.yaxis[x].show?" ":" apexcharts-yaxistooltip-hidden")})});var h=t.globals.dom.elWrap;t.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(n))===null&&(e.yaxisTooltip=document.createElement("div"),e.yaxisTooltip.setAttribute("class",l+" apexcharts-theme-"+t.config.tooltip.theme),h.appendChild(e.yaxisTooltip),n===0&&(e.yaxisTooltipText=[]),e.yaxisTooltipText[n]=document.createElement("div"),e.yaxisTooltipText[n].classList.add("apexcharts-yaxistooltip-text"),e.yaxisTooltip.appendChild(e.yaxisTooltipText[n]))},s=0;s<t.config.yaxis.length;s++)i(s)}},{key:"setXCrosshairWidth",value:function(){var t=this.w,e=this.ttCtx,i=e.getElXCrosshairs();if(e.xcrosshairsWidth=parseInt(t.config.xaxis.crosshairs.width,10),t.globals.comboCharts){var s=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(s!==null&&t.config.xaxis.crosshairs.width==="barWidth"){var n=parseFloat(s.getAttribute("barWidth"));e.xcrosshairsWidth=n}else if(t.config.xaxis.crosshairs.width==="tickWidth"){var o=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/o}}else if(t.config.xaxis.crosshairs.width==="tickWidth"){var l=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/l}else if(t.config.xaxis.crosshairs.width==="barWidth"){var h=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(h!==null){var f=parseFloat(h.getAttribute("barWidth"));e.xcrosshairsWidth=f}else e.xcrosshairsWidth=1}t.globals.isBarHorizontal&&(e.xcrosshairsWidth=0),i!==null&&e.xcrosshairsWidth>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;l<t;l++)o(l);return s}},{key:"addSVGEvents",value:function(){var t=this.w,e=t.config.chart.type,i=this.getElTooltip(),s=!(e!=="bar"&&e!=="candlestick"&&e!=="boxPlot"&&e!=="rangeBar"),n=e==="area"||e==="line"||e==="scatter"||e==="bubble"||e==="radar",o=t.globals.dom.Paper.node,l=this.getElGrid();l&&(this.seriesBound=l.getBoundingClientRect());var h,f=[],g=[],p={hoverArea:o,elGrid:l,tooltipEl:i,tooltipY:f,tooltipX:g,ttItems:this.ttItems};if(t.globals.axisCharts&&(n?h=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):s?h=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):e!=="heatmap"&&e!=="treemap"||(h=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),h&&h.length))for(var x=0;x<h.length;x++)f.push(h[x].getAttribute("cy")),g.push(h[x].getAttribute("cx"));if(t.globals.xyCharts&&!this.showOnIntersect||t.globals.comboCharts&&!this.showOnIntersect||s&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([o],p);else if(s&&!t.globals.comboCharts||n&&this.showOnIntersect)this.addDatapointEventsListeners(p);else if(!t.globals.axisCharts||e==="heatmap"||e==="treemap"){var v=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(v,p)}if(this.showOnIntersect){var w=t.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");w.length>0&&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<t.length;n++)s(n)}},{key:"onSeriesHover",value:function(t,e){var i=this,s=Date.now()-this.lastHoverTime;s>=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,f<l.top||f>l.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;C<o.config.yaxis.length;C++)this.axesTooltip.drawYaxisTooltipText(C,f,this.xyRatios);n.tooltipEl.classList.add("apexcharts-active")}else s.type!=="mouseout"&&s.type!=="touchend"||this.handleMouseOut(n)}}},{key:"nonAxisChartsTooltips",value:function(t){var e=t.e,i=t.opt,s=t.tooltipRect,n=this.w,o=i.paths.getAttribute("rel"),l=this.getElTooltip(),h=n.globals.dom.elWrap.getBoundingClientRect();if(e.type==="mousemove"||e.type==="touchmove"){l.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(o,10)-1,shared:!1});var f=n.globals.clientX-h.left-s.ttWidth/2,g=n.globals.clientY-h.top-s.ttHeight-10;if(l.style.left=f+"px",l.style.top=g+"px",n.config.legend.tooltipHoverFormatter){var p=o-1,x=(0,n.config.legend.tooltipHoverFormatter)(this.legendLabels[p].getAttribute("data:default-text"),{seriesIndex:p,dataPointIndex:p,w:n});this.legendLabels[p].innerHTML=x}}else e.type!=="mouseout"&&e.type!=="touchend"||(l.classList.remove("apexcharts-active"),n.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(v){var w=v.getAttribute("data:default-text");v.innerHTML=decodeURIComponent(w)}))}},{key:"handleStickyTooltip",value:function(t,e,i,s){var n=this.w,o=this.tooltipUtil.getNearestValues({context:this,hoverArea:s.hoverArea,elGrid:s.elGrid,clientX:e,clientY:i}),l=o.j,h=o.capturedSeries;n.globals.collapsedSeriesIndices.includes(h)&&(h=null);var f=s.elGrid.getBoundingClientRect();if(o.hoverX<0||o.hoverX>f.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;s<i.length;s++)e.pathMouseLeave(i[s])}},{key:"handleMouseOut",value:function(t){var e=this.w,i=this.getElXCrosshairs();if(t.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),e.config.chart.type!=="bubble"&&this.marker.resetPointsSize(),i!==null&&i.classList.remove("apexcharts-active"),this.ycrosshairs!==null&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){this.yaxisTTEls===null&&(this.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var s=0;s<this.yaxisTTEls.length;s++)this.yaxisTTEls[s].classList.remove("apexcharts-active")}e.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(n){var o=n.getAttribute("data:default-text");n.innerHTML=decodeURIComponent(o)})}},{key:"markerClick",value:function(t,e,i){var s=this.w;typeof s.config.chart.events.markerClick=="function"&&s.config.chart.events.markerClick(t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:s}),this.ctx.events.fireEvent("markerClick",[t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:s}])}},{key:"create",value:function(t,e,i,s,n){var o,l,h,f,g,p,x,v,w,A,C,E,M,u,b,k,L=arguments.length>5&&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;j<U.length;j++){var ot=U[j],ft=parseInt(ot.getAttribute("i"),10),vt=decodeURIComponent(ot.getAttribute("data:default-text")),Pt=G(vt,{seriesIndex:L?ft:i,dataPointIndex:s,w:T});if(L)ot.innerHTML=T.globals.collapsedSeriesIndices.indexOf(ft)<0?Pt:vt;else if(ot.innerHTML=ft===i?Pt:vt,i===ft)break}}var zt=d(d({ttItems:n,i,j:s},((o=T.globals.seriesRange)===null||o===void 0||(l=o[i])===null||l===void 0||(h=l[s])===null||h===void 0||(f=h.y[0])===null||f===void 0?void 0:f.y1)!==void 0&&{y1:(g=T.globals.seriesRange)===null||g===void 0||(p=g[i])===null||p===void 0||(x=p[s])===null||x===void 0||(v=x.y[0])===null||v===void 0?void 0:v.y1}),((w=T.globals.seriesRange)===null||w===void 0||(A=w[i])===null||A===void 0||(C=A[s])===null||C===void 0||(E=C.y[0])===null||E===void 0?void 0:E.y2)!==void 0&&{y2:(M=T.globals.seriesRange)===null||M===void 0||(u=M[i])===null||u===void 0||(b=u[s])===null||b===void 0||(k=b.y[0])===null||k===void 0?void 0:k.y2});if(L){if(O.tooltipLabels.drawSeriesTexts(d(d({},zt),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),N)T.globals.markers.largestSize>0?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;Jt<jt.length;Jt++)Et.pathMouseEnter(jt[Jt])}}else O.tooltipLabels.drawSeriesTexts(d({shared:!1},zt)),this.tooltipUtil.hasBars()&&O.tooltipPosition.moveStickyTooltipOverBars(s,i),N&&O.tooltipPosition.moveMarkers(i,s)}}]),_}(),Ua=function(){function _(t){y(this,_),this.w=t.w,this.barCtx=t,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return P(_,[{key:"handleBarDataLabels",value:function(t){var e=t.x,i=t.y,s=t.y1,n=t.y2,o=t.i,l=t.j,h=t.realIndex,f=t.groupIndex,g=t.series,p=t.barHeight,x=t.barWidth,v=t.barXPosition,w=t.barYPosition,A=t.visibleSeries,C=t.renderedPath,E=this.w,M=new V(this.barCtx.ctx),u=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[h]:this.barCtx.strokeWidth,b=e+parseFloat(x*A),k=i+parseFloat(p*A);E.globals.isXNumeric&&!E.globals.isBarHorizontal&&(b=e+parseFloat(x*(A+1)),k=i+parseFloat(p*(A+1))-u);var L,T=null,O=e,N=i,X={},G=E.config.dataLabels,U=this.barCtx.barOptions.dataLabels,j=this.barCtx.barOptions.dataLabels.total;w!==void 0&&this.barCtx.isRangeBar&&(k=w,N=w),v!==void 0&&this.barCtx.isVerticalGroupedRangeBar&&(b=v,O=v);var ot=G.offsetX,ft=G.offsetY,vt={width:0,height:0};if(E.config.dataLabels.enabled){var Pt=this.barCtx.series[o][l];vt=M.getTextRects(E.globals.yLabelFormatters[0](Pt),parseFloat(G.style.fontSize))}var zt={x:e,y:i,i:o,j:l,realIndex:h,groupIndex:f||-1,renderedPath:C,bcx:b,bcy:k,barHeight:p,barWidth:x,textRects:vt,strokeWidth:u,dataLabelsX:O,dataLabelsY:N,dataLabelsConfig:G,barDataLabelsConfig:U,barTotalDataLabelsConfig:j,offX:ot,offY:ft};return X=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(zt):this.calculateColumnsDataLabelsPosition(zt),C.attr({cy:X.bcy,cx:X.bcx,j:l,val:g[o][l],barHeight:p,barWidth:x}),L=this.drawCalculatedDataLabels({x:X.dataLabelsX,y:X.dataLabelsY,val:this.barCtx.isRangeBar?[s,n]:g[o][l],i:h,j:l,barWidth:x,barHeight:p,textRects:vt,dataLabelsConfig:G}),E.config.chart.stacked&&j.enabled&&(T=this.drawTotalDataLabels({x:X.totalDataLabelsX,y:X.totalDataLabelsY,barWidth:x,barHeight:p,realIndex:h,textAnchor:X.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:h,j:l}),dataLabelsConfig:G,barTotalDataLabelsConfig:j})),{dataLabels:L,totalDataLabels:T}}},{key:"getStackedTotalDataLabel",value:function(t){var e=t.realIndex,i=t.j,s=this.w,n=this.barCtx.stackedSeriesTotals[i];return this.totalFormatter&&(n=this.totalFormatter(n,d(d({},s),{},{seriesIndex:e,dataPointIndex:i,w:s}))),n}},{key:"calculateColumnsDataLabelsPosition",value:function(t){var e,i,s=this.w,n=t.i,o=t.j,l=t.realIndex,h=t.groupIndex,f=t.y,g=t.bcx,p=t.barWidth,x=t.barHeight,v=t.textRects,w=t.dataLabelsX,A=t.dataLabelsY,C=t.dataLabelsConfig,E=t.barDataLabelsConfig,M=t.barTotalDataLabelsConfig,u=t.strokeWidth,b=t.offX,k=t.offY;x=Math.abs(x);var L=s.config.plotOptions.bar.dataLabels.orientation==="vertical",T=this.barCtx.barHelpers.getZeroValueEncounters({i:n,j:o}).zeroEncounters;g=g-u/2+(h!==-1?h*p:0);var O=s.globals.gridWidth/s.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?w+=p/2:(w=s.globals.isXNumeric?g-p/2+b:g-O+p/2+b,T>0&&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&&f<w.getTextRects(M,parseFloat(g.style.fontSize)).width&&(M=""),p.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?l.width/1.6>Math.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;i<t.length;i++)if(t[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=t[i].length),e.globals.isXNumeric)for(var s=0;s<t[i].length;s++)e.globals.seriesX[i][s]>e.globals.minX&&e.globals.seriesX[i][s]<e.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=e.globals.dataPoints;this.barCtx.seriesLen===0&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],e.globals.comboCharts||this.checkZeroSeries({series:t})}},{key:"initialPositions",value:function(){var t,e,i,s,n,o,l,h,f=this.w,g=f.globals.dataPoints;this.barCtx.isRangeBar&&(g=f.globals.labels.length);var p=this.barCtx.seriesLen;if(f.config.plotOptions.bar.rangeBarGroupRows&&(p=1),this.barCtx.isHorizontal)n=(i=f.globals.gridHeight/g)/p,f.globals.isXNumeric&&(n=(i=f.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),n=n*parseInt(this.barCtx.barOptions.barHeight,10)/100,String(this.barCtx.barOptions.barHeight).indexOf("%")===-1&&(n=parseInt(this.barCtx.barOptions.barHeight,10)),h=this.barCtx.baseLineInvertedY+f.globals.padHorizontal+(this.barCtx.isReversed?f.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(h=f.globals.gridWidth/2),e=(i-n*this.barCtx.seriesLen)/2;else{if(s=f.globals.gridWidth/this.barCtx.visibleItems,f.config.xaxis.convertedCatToNumeric&&(s=f.globals.gridWidth/f.globals.dataPoints),o=s/p*parseInt(this.barCtx.barOptions.columnWidth,10)/100,f.globals.isXNumeric){var x=this.barCtx.xRatio;f.globals.minXDiff&&f.globals.minXDiff!==.5&&f.globals.minXDiff/x>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;s<e.length;s++){for(var n=0,o=0;o<e[i.globals.maxValsInArrayIndex].length;o++)n+=e[s][o];n===0&&this.barCtx.zeroSerieses.push(s)}}},{key:"getXForValue",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.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++,h<e&&l[i]===0&&o++}),{nonZeroColumns:n,zeroEncounters:o}}}]),_}(),Gi=function(){function _(t,e){y(this,_),this.ctx=t,this.w=t.w;var i=this.w;this.barOptions=i.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=i.config.stroke.width,this.isNullValue=!1,this.isRangeBar=i.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&i.globals.seriesRange.length&&i.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=e,this.xyRatios!==null&&(this.xRatio=e.xRatio,this.yRatio=e.yRatio,this.invertedXRatio=e.invertedXRatio,this.invertedYRatio=e.invertedYRatio,this.baseLineY=e.baseLineY,this.baseLineInvertedY=e.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.pathArr=[];var s=new se(this.ctx);this.lastActiveBarSerieIndex=s.getActiveConfigSeriesIndex("desc",["bar","column"]);var n=s.getBarSeriesIndices(),o=new et(this.ctx);this.stackedSeriesTotals=o.getStackedSeriesTotals(this.w.config.series.map(function(l,h){return n.indexOf(h)===-1?h:-1}).filter(function(l){return l!==-1})),this.barHelpers=new Xh(this)}return P(_,[{key:"draw",value:function(t,e){var i=this.w,s=new V(this.ctx),n=new et(this.ctx,i);t=n.getLogSeries(t),this.series=t,this.yRatio=n.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);var o=s.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.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;l<t.length;l++,h++){var f,g,p,x,v=void 0,w=void 0,A=[],C=[],E=i.globals.comboCharts?e[l]:l,M=s.group({class:"apexcharts-series",rel:l+1,seriesName:z.escapeString(i.globals.seriesNames[E]),"data:realIndex":E});this.ctx.series.addCollapsedClassToSeries(M,E),t[l].length>0&&(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;N<i.globals.dataPoints;N++){var X=this.barHelpers.getStrokeWidth(l,N,E),G=null,U={indexes:{i:l,j:N,realIndex:E,bc:h},x:v,y:w,strokeWidth:X,elSeries:M};this.isHorizontal?(G=this.drawBarPaths(d(d({},U),{},{barHeight:u,zeroW:x,yDivision:g})),b=this.series[l][N]/this.invertedYRatio):(G=this.drawColumnPaths(d(d({},U),{},{xDivision:f,barWidth:b,zeroH:p})),u=this.series[l][N]/this.yRatio[this.yaxisIndex]);var j=this.barHelpers.getPathFillColor(t,l,N,E);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&N>0){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++,M<x&&E[v]===0&&A++}),w>0&&(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;n<s.globals.previousPaths.length;n++){var o=s.globals.previousPaths[n];o.paths&&o.paths.length>0&&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;ot<o.globals.dataPoints;ot++){var ft=n.barHelpers.getStrokeWidth(w,ot,T),vt={indexes:{i:w,j:ot,realIndex:T,bc:A},strokeWidth:ft,x:f,y:g,elSeries:O,groupIndex:b,seriesGroup:o.globals.seriesGroups[b]},Pt=null;n.isHorizontal?(Pt=n.drawStackedBarPaths(d(d({},vt),{},{zeroW:u,barHeight:G,yDivision:E})),U=n.series[w][ot]/n.invertedYRatio):(Pt=n.drawStackedColumnPaths(d(d({},vt),{},{xDivision:C,barWidth:U,zeroH:M})),G=n.series[w][ot]/n.yRatio[n.yaxisIndex]);var zt=n.barHelpers.drawGoalLine({barXPosition:Pt.barXPosition,barYPosition:Pt.barYPosition,goalX:Pt.goalX,goalY:Pt.goalY,barHeight:G,barWidth:U});zt&&X.add(zt),g=Pt.y,f=Pt.x,k.push(f),L.push(g);var Et=n.barHelpers.getPathFillColor(i,w,ot,T);O=n.renderSeries({realIndex:T,pathFill:Et,j:ot,i:w,groupIndex:b,pathFrom:Pt.pathFrom,pathTo:Pt.pathTo,strokeWidth:ft,elSeries:O,x:f,y:g,series:i,barHeight:G,barWidth:U,elDataLabelsWrap:N,elGoalsMarkers:X,type:"bar",visibleSeries:0})}o.globals.seriesXvalues[T]=k,o.globals.seriesYvalues[T]=L,n.groupCtx.prevY.push(n.groupCtx.yArrj),n.groupCtx.prevYF.push(n.groupCtx.yArrjF),n.groupCtx.prevYVal.push(n.groupCtx.yArrjVal),n.groupCtx.prevX.push(n.groupCtx.xArrj),n.groupCtx.prevXF.push(n.groupCtx.xArrjF),n.groupCtx.prevXVal.push(n.groupCtx.xArrjVal),h.add(O)},x=0,v=0;x<i.length;x++,v++)p(x,v);return h}},{key:"initialPositions",value:function(i,s,n,o,l,h){var f,g,p,x,v=this.w;return this.isHorizontal?(p=(p=o=v.globals.gridHeight/v.globals.dataPoints)*parseInt(v.config.plotOptions.bar.barHeight,10)/100,String(v.config.plotOptions.bar.barHeight).indexOf("%")===-1&&(p=parseInt(v.config.plotOptions.bar.barHeight,10)),h=this.baseLineInvertedY+v.globals.padHorizontal+(this.isReversed?v.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),s=(o-p)/2):(x=n=v.globals.gridWidth/v.globals.dataPoints,x=v.globals.isXNumeric&&v.globals.dataPoints>1?(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;b<this.groupCtx.prevXF.length;b++)u+=this.groupCtx.prevXF[b][M];var k=E;if(x&&(k=x.indexOf(A.config.series[E].name)),k>0){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;k<this.groupCtx.prevYF.length;k++)b+=isNaN(this.groupCtx.prevYF[k][A])?0:this.groupCtx.prevYF[k][A];var L=w;if(p&&(L=p.indexOf(v.config.series[w].name)),L>0&&!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<X;G++){var U;if(!isNaN((U=this.groupCtx.prevY[L-G])===null||U===void 0?void 0:U[A])){N=this.groupCtx.prevY[L-G][A];break}}for(var j=1;j<X;j++){var ot,ft;if(((ot=this.groupCtx.prevYVal[L-j])===null||ot===void 0?void 0:ot[A])<0){O=this.series[w][A]>=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;ft<l.globals.dataPoints;ft++)ot(ft);l.globals.seriesXvalues[O]=T,l.globals.seriesYvalues[O]=L,x.add(N)},w=0;w<i.length;w++)v(w);return x}},{key:"drawVerticalBoxPaths",value:function(i){var s=i.indexes,n=i.x;i.y;var o=i.xDivision,l=i.barWidth,h=i.zeroH,f=i.strokeWidth,g=this.w,p=new V(this.ctx),x=s.i,v=s.j,w=!0,A=g.config.plotOptions.candlestick.colors.upward,C=g.config.plotOptions.candlestick.colors.downward,E="";this.isBoxPlot&&(E=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var M=this.yRatio[this.yaxisIndex],u=s.realIndex,b=this.getOHLCValue(u,v),k=h,L=h;b.o>b.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.min<s.globals.minY?o.colorScale.min:s.globals.minY,p=o.colorScale.max>s.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<f.length: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<f[g].length;A++){var C=this.helpers.getShadeColor(e.config.chart.type,g,A,this.negRange),E=C.color,M=C.colorProps;e.config.fill.type==="image"&&(E=new ae(this.ctx).fillPath({seriesNumber:g,dataPointIndex:A,opacity:e.globals.hasNegs?M.percent<0?1-(1+M.percent/100):w+M.percent/100:M.percent/100,patternID:z.randomId(),width:e.config.fill.image.width?e.config.fill.image.width:n,height:e.config.fill.image.height?e.config.fill.image.height:o}));var u=this.rectRadius,b=i.drawRect(v,l,n,o,u);if(b.attr({cx:v,cy:l}),b.node.classList.add("apexcharts-heatmap-rect"),p.add(b),b.attr({fill:E,i:g,index:g,j:A,val:t[g][A],"stroke-width":this.strokeWidth,stroke:e.config.plotOptions.heatmap.useFillColorAsStroke?E:e.globals.stroke.colors[0],color:E}),this.helpers.addListeners(b),e.config.chart.animations.enabled&&!e.globals.dataChanged){var k=1;e.globals.resized||(k=e.config.chart.animations.speed),this.animateHeatMap(b,v,l,n,o,k)}if(e.globals.dataChanged){var L=1;if(this.dynamicAnim.enabled&&e.globals.shouldAnimate){L=this.dynamicAnim.speed;var T=e.globals.previousPaths[g]&&e.globals.previousPaths[g][A]&&e.globals.previousPaths[g][A].color;T||(T="rgba(255, 255, 255, 0)"),this.animateHeatColor(b,z.isColorHex(T)?T:z.rgb2hex(T),z.isColorHex(E)?E:z.rgb2hex(E),L)}}var O=(0,e.config.dataLabels.formatter)(e.globals.series[g][A],{value:e.globals.series[g][A],seriesIndex:g,dataPointIndex:A,w:e}),N=this.helpers.calculateDataLabels({text:O,x:v+n/2,y:l+o/2,i:g,j:A,colorProps:M,series:f});N!==null&&p.add(N),v+=n}l+=o,s.add(p)}var X=e.globals.yAxisScale[0].result.slice();return e.config.yaxis[0].reversed?X.unshift(""):X.push(""),e.globals.yAxisScale[0].result=X,s}},{key:"animateHeatMap",value:function(t,e,i,s,n,o){var l=new Q(this.ctx);l.animateRect(t,{x:e+s/2,y:i+n/2,width:0,height:0},{x:e,y:i,width:s,height:n},o,function(){l.animationCompleted(t)})}},{key:"animateHeatColor",value:function(t,e,i,s){t.attr({fill:e}).animate(s).attr({fill:i})}}]),_}(),Zn=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return P(_,[{key:"drawYAxisTexts",value:function(t,e,i,s){var n=this.w,o=n.config.yaxis[0],l=n.globals.yLabelFormatters[0];return new V(this.ctx).drawText({x:t+o.labels.offsetX,y:e+o.labels.offsetY,text:l(s,i),textAnchor:"middle",fontSize:o.labels.style.fontSize,fontFamily:o.labels.style.fontFamily,foreColor:Array.isArray(o.labels.style.colors)?o.labels.style.colors[i]:o.labels.style.colors})}}]),_}(),Kn=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w;var e=this.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.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=e.globals.stroke.colors!==void 0?e.globals.stroke.colors:e.globals.colors,this.defaultSize=Math.min(e.globals.gridWidth,e.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=e.globals.gridWidth/2,e.config.chart.type==="radialBar"?this.fullAngle=360:this.fullAngle=Math.abs(e.config.plotOptions.pie.endAngle-e.config.plotOptions.pie.startAngle),this.initialAngle=e.config.plotOptions.pie.startAngle%this.fullAngle,e.globals.radialSize=this.defaultSize/2.05-e.config.stroke.width-(e.config.chart.sparkline.enabled?0:e.config.chart.dropShadow.blur),this.donutSize=e.globals.radialSize*parseInt(e.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return P(_,[{key:"draw",value:function(t){var e=this,i=this.w,s=new V(this.ctx);if(this.ret=s.group({class:"apexcharts-pie"}),i.globals.noData)return this.ret;for(var n=0,o=0;o<t.length;o++)n+=z.negToZero(t[o]);var l=[],h=s.group();n===0&&(n=1e-5),t.forEach(function(T){e.maxY=Math.max(e.maxY,T)}),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),i.config.grid.position==="back"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret);for(var f=0;f<t.length;f++){var g=this.fullAngle*z.negToZero(t[f])/n;l.push(g),this.chartType==="polarArea"?(l[f]=this.fullAngle/t.length,this.sliceSizes.push(i.globals.radialSize*t[f]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var p,x=0,v=0;v<i.globals.previousPaths.length;v++)x+=z.negToZero(i.globals.previousPaths[v]);for(var w=0;w<i.globals.previousPaths.length;w++)p=this.fullAngle*z.negToZero(i.globals.previousPaths[w])/x,this.prevSectorAngleArr.push(p)}this.donutSize<0&&(this.donutSize=0);var A=i.config.plotOptions.pie.customScale,C=i.globals.gridWidth/2,E=i.globals.gridHeight/2,M=C-i.globals.gridWidth/2*A,u=E-i.globals.gridHeight/2*A;if(this.chartType==="donut"){var b=s.drawCircle(this.donutSize);b.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),h.add(b)}var k=this.drawArcs(l,t);if(this.sliceLabels.forEach(function(T){k.add(T)}),h.attr({transform:"translate(".concat(M,", ").concat(u,") scale(").concat(A,")")}),h.add(k),this.ret.add(h),this.donutDataLabels.show){var L=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:M,translateY:u});this.ret.add(L)}return i.config.grid.position==="front"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(t,e){var i=this.w,s=new tt(this.ctx),n=new V(this.ctx),o=new ae(this.ctx),l=n.group({class:"apexcharts-slices"}),h=this.initialAngle,f=this.initialAngle,g=this.initialAngle,p=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var x=0;x<t.length;x++){var v=n.group({class:"apexcharts-series apexcharts-pie-series",seriesName:z.escapeString(i.globals.seriesNames[x]),rel:x+1,"data:realIndex":x});l.add(v),f=p,g=(h=g)+t[x],p=f+this.prevSectorAngleArr[x];var w=g<h?this.fullAngle+g-h:g-h,A=o.fillPath({seriesNumber:x,size:this.sliceSizes[x],value:e[x]}),C=this.getChangedPath(f,p),E=n.drawPath({d:C,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[x]:this.lineColorArr,strokeWidth:0,fill:A,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(x)});if(E.attr({index:0,j:x}),s.setSelectionFilter(E,0,x),i.config.chart.dropShadow.enabled){var M=i.config.chart.dropShadow;s.dropShadow(E,M,x)}this.addListeners(E,this.donutDataLabels),V.setAttrs(E.node,{"data:angle":w,"data:startAngle":h,"data:strokeWidth":this.strokeWidth,"data:value":e[x]});var u={x:0,y:0};this.chartType==="pie"||this.chartType==="polarArea"?u=z.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(h+w/2)%this.fullAngle):this.chartType==="donut"&&(u=z.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(h+w/2)%this.fullAngle)),v.add(E);var b=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):((b=w/this.fullAngle*i.config.chart.animations.speed)===0&&(b=1),this.animDur=b+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(E,{size:this.sliceSizes[x],endAngle:g,startAngle:h,prevStartAngle:f,prevEndAngle:p,animateStartingPos:!0,i:x,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(E,{size:this.sliceSizes[x],endAngle:g,startAngle:h,i:x,totalItems:t.length-1,animBeginArr:this.animBeginArr,dur:b}),i.config.plotOptions.pie.expandOnClick&&this.chartType!=="polarArea"&&E.click(this.pieClicked.bind(this,x)),i.globals.selectedDataPoints[0]!==void 0&&i.globals.selectedDataPoints[0].indexOf(x)>-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.minAngleToShowLabel<t[x]){var O=i.config.dataLabels.formatter;O!==void 0&&(T=O(i.globals.seriesPercent[x][0],{seriesIndex:x,w:i}));var N=i.globals.dataLabels.style.colors[x],X=n.group({class:"apexcharts-datalabels"}),G=n.drawText({x:k,y:L,text:T,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:N});if(X.add(G),i.config.dataLabels.dropShadow.enabled){var U=i.config.dataLabels.dropShadow;s.dropShadow(G,U)}G.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&i.globals.resized===!1&&(G.node.classList.add("apexcharts-pie-label-delay"),G.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(X)}}}return l}},{key:"addListeners",value:function(t,e){var i=new V(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,t)),t.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this,t)),this.donutDataLabels.total.showAlways||(t.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,t.node,e)))}},{key:"animatePaths",value:function(t,e){var i=this.w,s=e.endAngle<e.startAngle?this.fullAngle+e.endAngle-e.startAngle:e.endAngle-e.startAngle,n=s,o=e.startAngle,l=e.startAngle;e.prevStartAngle!==void 0&&e.prevEndAngle!==void 0&&(o=e.prevEndAngle,n=e.prevEndAngle<e.prevStartAngle?this.fullAngle+e.prevEndAngle-e.prevStartAngle:e.prevEndAngle-e.prevStartAngle),e.i===i.config.series.length-1&&(s+l>this.fullAngle?e.endAngle=e.endAngle-(s+l):s+l<this.fullAngle&&(e.endAngle=e.endAngle+(this.fullAngle-(s+l)))),s===this.fullAngle&&(s=this.fullAngle-.01),this.animateArc(t,o,l,s,n,e)}},{key:"animateArc",value:function(t,e,i,s,n,o){var l,h=this,f=this.w,g=new Q(this.ctx),p=o.size;(isNaN(e)||isNaN(n))&&(e=i,n=s,o.dur=0);var x=s,v=i,w=e<i?this.fullAngle+e-i:e-i;f.globals.dataChanged&&o.shouldSetPrevPaths&&o.prevEndAngle&&(l=h.getPiePath({me:h,startAngle:o.prevStartAngle,angle:o.prevEndAngle<o.prevStartAngle?this.fullAngle+o.prevEndAngle-o.prevStartAngle:o.prevEndAngle-o.prevStartAngle,size:p}),t.attr({d:l})),o.dur!==0?t.animate(o.dur,f.globals.easing,o.animBeginArr[o.i]).afterAll(function(){h.chartType!=="pie"&&h.chartType!=="donut"&&h.chartType!=="polarArea"||this.animate(f.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":h.strokeWidth}),o.i===f.config.series.length-1&&g.animationCompleted(t)}).during(function(A){x=w+(s-w)*A,o.animateStartingPos&&(x=n+(s-n)*A,v=e-n+(i-(e-n))*A),l=h.getPiePath({me:h,startAngle:v,angle:x,size:p}),t.node.setAttribute("data:pathOrig",l),t.attr({d:l})}):(l=h.getPiePath({me:h,startAngle:v,angle:s,size:p}),o.isTrack||(f.globals.animationEnded=!0),t.node.setAttribute("data:pathOrig",l),t.attr({d:l,"stroke-width":h.strokeWidth}))}},{key:"pieClicked",value:function(t){var e,i=this.w,s=this,n=s.sliceSizes[t]+(i.config.plotOptions.pie.expandOnClick?4:0),o=i.globals.dom.Paper.select(".apexcharts-".concat(s.chartType.toLowerCase(),"-slice-").concat(t)).members[0];if(o.attr("data:pieClicked")!=="true"){var l=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(l,function(p){p.setAttribute("data:pieClicked","false");var x=p.getAttribute("data:pathOrig");x&&p.setAttribute("d",x)}),o.attr("data:pieClicked","true");var h=parseInt(o.attr("data:startAngle"),10),f=parseInt(o.attr("data:angle"),10);e=s.getPiePath({me:s,startAngle:h,angle:f,size:n}),f!==360&&o.plot(e)}else{o.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(o.node,this.donutDataLabels);var g=o.attr("data:pathOrig");o.attr({d:g})}}},{key:"getChangedPath",value:function(t,e){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:t,angle:e-t,size:this.size})),i}},{key:"getPiePath",value:function(t){var e,i=t.me,s=t.startAngle,n=t.angle,o=t.size,l=new V(this.ctx),h=s,f=Math.PI*(h-90)/180,g=n+s;Math.ceil(g)>=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;v<g-1;v++){var w=s.drawCircle(p);if(w.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":e.config.plotOptions.polarArea.rings.strokeWidth,stroke:e.config.plotOptions.polarArea.rings.strokeColor}),e.config.yaxis[0].show){var A=n.drawYAxisTexts(this.centerX,this.centerY-p+parseInt(e.config.yaxis[0].labels.style.fontSize,10)/2,v,f[v]);l.add(A)}o.add(w),p-=x}this.drawSpokes(t),t.add(o),t.add(l)}},{key:"renderInnerDataLabels",value:function(t,e){var i=this.w,s=new V(this.ctx),n=s.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(e.translateX?e.translateX:0,", ").concat(e.translateY?e.translateY:0,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),o=t.total.show;n.node.style.opacity=e.opacity;var l,h,f=e.centerX,g=e.centerY;l=t.name.color===void 0?i.globals.colors[0]:t.name.color;var p=t.name.fontSize,x=t.name.fontFamily,v=t.name.fontWeight;h=t.value.color===void 0?i.config.chart.foreColor:t.value.color;var w=t.value.formatter,A="",C="";if(o?(l=t.total.color,p=t.total.fontSize,x=t.total.fontFamily,v=t.total.fontWeight,C=t.total.label,A=t.total.formatter(i)):i.globals.series.length===1&&(A=w(i.globals.series[0],i),C=i.globals.seriesNames[0]),C&&(C=t.name.formatter(C,t.total.show,i)),t.name.show){var E=s.drawText({x:f,y:g+parseFloat(t.name.offsetY),text:C,textAnchor:"middle",foreColor:l,fontSize:p,fontWeight:v,fontFamily:x});E.node.classList.add("apexcharts-datalabel-label"),n.add(E)}if(t.value.show){var M=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,u=s.drawText({x:f,y:g+M,text:A,textAnchor:"middle",foreColor:h,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});u.node.classList.add("apexcharts-datalabel-value"),n.add(u)}return n}},{key:"printInnerLabels",value:function(t,e,i,s){var n,o=this.w;s?n=t.name.color===void 0?o.globals.colors[parseInt(s.parentNode.getAttribute("rel"),10)-1]:t.name.color:o.globals.series.length>1&&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;h<i.globals.series.length;h++)o.push(z.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+l*h));o.forEach(function(f,g){var p=s.drawLine(f.x,f.y,e.centerX,e.centerY,Array.isArray(n.connectorColors)?n.connectorColors[g]:n.connectorColors);t.add(p)})}}},{key:"revertDataLabelsInner",value:function(t,e,i){var s=this,n=this.w,o=n.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),l=!1,h=n.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),f=function(x){var v=x.makeSliceOut,w=x.printLabel;Array.prototype.forEach.call(h,function(A){A.getAttribute("data:pieClicked")==="true"&&(v&&(l=!0),w&&s.printDataLabelsInner(A,e))})};if(f({makeSliceOut:!0,printLabel:!1}),e.total.show&&n.globals.series.length>1)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.svgHeight<e.globals.svgWidth?e.globals.gridHeight+1.5*e.globals.goldenPadding:e.globals.gridWidth,this.isLog=e.config.yaxis[0].logarithmic,this.coreUtils=new et(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(e.globals.maxY,0):e.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):e.globals.minY,this.polygons=e.config.plotOptions.radar.polygons,this.strokeWidth=e.config.stroke.show?e.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-e.config.chart.dropShadow.blur,e.config.xaxis.labels.show&&(this.size=this.size-e.globals.xAxisLabelsWidth/1.75),e.config.plotOptions.radar.size!==void 0&&(this.size=e.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return P(_,[{key:"draw",value:function(t){var e=this,i=this.w,s=new ae(this.ctx),n=[],o=new di(this.ctx);t.length&&(this.dataPointsLen=t[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var l=i.globals.gridWidth/2,h=i.globals.gridHeight/2,f=l+i.config.plotOptions.radar.offsetX,g=h+i.config.plotOptions.radar.offsetY,p=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(f||0,", ").concat(g||0,")")}),x=[],v=null,w=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),t.forEach(function(C,E){var M=C.length===i.globals.dataPoints,u=e.graphics.group().attr({class:"apexcharts-series","data:longestSeries":M,seriesName:z.escapeString(i.globals.seriesNames[E]),rel:E+1,"data:realIndex":E});e.dataRadiusOfPercent[E]=[],e.dataRadius[E]=[],e.angleArr[E]=[],C.forEach(function(j,ot){var ft=Math.abs(e.maxValue-e.minValue);j+=Math.abs(e.minValue),e.isLog&&(j=e.coreUtils.getLogVal(j,0)),e.dataRadiusOfPercent[E][ot]=j/ft,e.dataRadius[E][ot]=e.dataRadiusOfPercent[E][ot]*e.size,e.angleArr[E][ot]=ot*e.disAngle}),x=e.getDataPointsPos(e.dataRadius[E],e.angleArr[E]);var b=e.createPaths(x,{x:0,y:0});v=e.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),w=e.graphics.group({class:"apexcharts-datalabels","data:realIndex":E}),i.globals.delayedElements.push({el:v.node,index:E});var k={i:E,realIndex:E,animationDelay:E,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:i.globals.stroke.colors[E],strokeLineCap:i.config.stroke.lineCap},L=null;i.globals.previousPaths.length>0&&(L=e.getPreviousPath(E));for(var T=0;T<b.linePathsTo.length;T++){var O=e.graphics.renderPaths(d(d({},k),{},{pathFrom:L===null?b.linePathsFrom[T]:L,pathTo:b.linePathsTo[T],strokeWidth:Array.isArray(e.strokeWidth)?e.strokeWidth[E]:e.strokeWidth,fill:"none",drawShadow:!1}));u.add(O);var N=s.fillPath({seriesNumber:E}),X=e.graphics.renderPaths(d(d({},k),{},{pathFrom:L===null?b.areaPathsFrom[T]:L,pathTo:b.areaPathsTo[T],strokeWidth:0,fill:N,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var G=new tt(e.ctx),U=i.config.chart.dropShadow;G.dropShadow(X,Object.assign({},U,{noUserSpaceOnUse:!0}),E)}u.add(X)}C.forEach(function(j,ot){var ft=new hi(e.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:E,dataPointIndex:ot}),vt=e.graphics.drawMarker(x[ot].x,x[ot].y,ft);vt.attr("rel",ot),vt.attr("j",ot),vt.attr("index",E),vt.node.setAttribute("default-marker-size",ft.pSize);var Pt=e.graphics.group({class:"apexcharts-series-markers"});Pt&&Pt.add(vt),v.add(Pt),u.add(v);var zt=i.config.dataLabels;if(zt.enabled){var Et=zt.formatter(i.globals.series[E][ot],{seriesIndex:E,dataPointIndex:ot,w:i});o.plotDataLabelsText({x:x[ot].x,y:x[ot].y,text:Et,textAnchor:"middle",i:E,j:E,parent:w,offsetCorrection:!1,dataLabelsConfig:d({},zt)})}u.add(w)}),n.push(u)}),this.drawPolygons({parent:p}),i.config.xaxis.labels.show){var A=this.drawXAxisTexts();p.add(A)}return n.forEach(function(C){p.add(C)}),p.add(this.yaxisLabels),p}},{key:"drawPolygons",value:function(t){for(var e=this,i=this.w,s=t.parent,n=new Zn(this.ctx),o=i.globals.yAxisScale[0].result.reverse(),l=o.length,h=[],f=this.size/(l-1),g=0;g<l;g++)h[g]=f*g;h.reverse();var p=[],x=[];h.forEach(function(v,w){var A=z.getPolygonPos(v,e.dataPointsLen),C="";A.forEach(function(E,M){if(w===0){var u=e.graphics.drawLine(E.x,E.y,0,0,Array.isArray(e.polygons.connectorColors)?e.polygons.connectorColors[M]:e.polygons.connectorColors);x.push(u)}M===0&&e.yaxisLabelsTextsPos.push({x:E.x,y:E.y}),C+=E.x+","+E.y+" "}),p.push(C)}),p.forEach(function(v,w){var A=e.polygons.strokeColors,C=e.polygons.strokeWidth,E=e.graphics.drawPolygon(v,Array.isArray(A)?A[w]:A,Array.isArray(C)?C[w]:C,i.globals.radarPolygons.fill.colors[w]);s.add(E)}),x.forEach(function(v){s.add(v)}),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(v,w){var A=n.drawYAxisTexts(v.x,v.y,w,o[w]);e.yaxisLabels.add(A)})}},{key:"drawXAxisTexts",value:function(){var t=this,e=this.w,i=e.config.xaxis.labels,s=this.graphics.group({class:"apexcharts-xaxis"}),n=z.getPolygonPos(this.size,this.dataPointsLen);return e.globals.labels.forEach(function(o,l){var h=e.config.xaxis.labels.formatter,f=new di(t.ctx);if(n[l]){var g=t.getTextPos(n[l],t.size),p=h(o,{seriesIndex:-1,dataPointIndex:l,w:e});f.plotDataLabelsText({x:g.newX,y:g.newY,text:p,textAnchor:g.textAnchor,i:l,j:l,parent:s,color:Array.isArray(i.style.colors)&&i.style.colors[l]?i.style.colors[l]:"#a8a8a8",dataLabelsConfig:d({textAnchor:g.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1})}}),s}},{key:"createPaths",value:function(t,e){var i=this,s=[],n=[],o=[],l=[];if(t.length){n=[this.graphics.move(e.x,e.y)],l=[this.graphics.move(e.x,e.y)];var h=this.graphics.move(t[0].x,t[0].y),f=this.graphics.move(t[0].x,t[0].y);t.forEach(function(g,p){h+=i.graphics.line(g.x,g.y),f+=i.graphics.line(g.x,g.y),p===t.length-1&&(h+="Z",f+="Z")}),s.push(h),o.push(f)}return{linePathsFrom:n,linePathsTo:s,areaPathsFrom:l,areaPathsTo:o}}},{key:"getTextPos",value:function(t,e){var i="middle",s=t.x,n=t.y;return Math.abs(t.x)>=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;s<e.globals.previousPaths.length;s++){var n=e.globals.previousPaths[s];n.paths.length>0&&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<i;n++){var o={};o.x=t[n]*Math.sin(e[n]),o.y=-t[n]*Math.cos(e[n]),s.push(o)}return s}}]),_}(),Dh=function(_){R(e,Kn);var t=q(e);function e(i){var s;y(this,e),(s=t.call(this,i)).ctx=i,s.w=i.w,s.animBeginArr=[0],s.animDur=0;var n=s.w;return s.startAngle=n.config.plotOptions.radialBar.startAngle,s.endAngle=n.config.plotOptions.radialBar.endAngle,s.totalAngle=Math.abs(n.config.plotOptions.radialBar.endAngle-n.config.plotOptions.radialBar.startAngle),s.trackStartAngle=n.config.plotOptions.radialBar.track.startAngle,s.trackEndAngle=n.config.plotOptions.radialBar.track.endAngle,s.barLabels=s.w.config.plotOptions.radialBar.barLabels,s.donutDataLabels=s.w.config.plotOptions.radialBar.dataLabels,s.radialDataLabels=s.donutDataLabels,s.trackStartAngle||(s.trackStartAngle=s.startAngle),s.trackEndAngle||(s.trackEndAngle=s.endAngle),s.endAngle===360&&(s.endAngle=359.99),s.margin=parseInt(n.config.plotOptions.radialBar.track.margin,10),s.onBarLabelClick=s.onBarLabelClick.bind(B(s)),s}return P(e,[{key:"draw",value:function(i){var s=this.w,n=new V(this.ctx),o=n.group({class:"apexcharts-radialbar"});if(s.globals.noData)return o;var l=n.group(),h=this.defaultSize/2,f=s.globals.gridWidth/2,g=this.defaultSize/2.05;s.config.chart.sparkline.enabled||(g=g-s.config.stroke.width-s.config.chart.dropShadow.blur);var p=s.globals.fill.colors;if(s.config.plotOptions.radialBar.track.show){var x=this.drawTracks({size:g,centerX:f,centerY:h,colorArr:p,series:i});l.add(x)}var v=this.drawArcs({size:g,centerX:f,centerY:h,colorArr:p,series:i}),w=360;s.config.plotOptions.radialBar.startAngle<0&&(w=this.totalAngle);var A=(360-w)/360;if(s.globals.radialSize=g-g*A,this.radialDataLabels.value.show){var C=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);s.globals.radialSize+=C*A}return l.add(v.g),s.config.plotOptions.radialBar.hollow.position==="front"&&(v.g.add(v.elHollow),v.dataLabels&&v.g.add(v.dataLabels)),o.add(l),o}},{key:"drawTracks",value:function(i){var s=this.w,n=new V(this.ctx),o=n.group({class:"apexcharts-tracks"}),l=new tt(this.ctx),h=new ae(this.ctx),f=this.getStrokeWidth(i);i.size=i.size-f/2;for(var g=0;g<i.series.length;g++){var p=n.group({class:"apexcharts-radialbar-track apexcharts-track"});o.add(p),p.attr({rel:g+1}),i.size=i.size-f-this.margin;var x=s.config.plotOptions.radialBar.track,v=h.fillPath({seriesNumber:0,size:i.size,fillColors:Array.isArray(x.background)?x.background[g]:x.background,solid:!0}),w=this.trackStartAngle,A=this.trackEndAngle;Math.abs(A)+Math.abs(w)>=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:M<i.series.length;E?M--:M++){var u=n.group({class:"apexcharts-series apexcharts-radial-series",seriesName:z.escapeString(s.globals.seriesNames[M])});h.add(u),u.attr({rel:M+1,"data:realIndex":M}),this.ctx.series.addCollapsedClassToSeries(u,M),i.size=i.size-f-this.margin;var b=o.fillPath({seriesNumber:M,size:i.size,value:i.series[M]}),k=this.startAngle,L=void 0,T=z.negToZero(i.series[M]>100?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;h<i.length;h++){var f,g,p,x,v=void 0,w=void 0,A=n.globals.comboCharts?s[h]:h,C=o.group({class:"apexcharts-series",seriesName:z.escapeString(n.globals.seriesNames[A]),rel:h+1,"data:realIndex":A});this.ctx.series.addCollapsedClassToSeries(C,A),i[h].length>0&&(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;L<n.globals.dataPoints;L++){var T,O=this.barHelpers.getStrokeWidth(h,L,A),N=this.seriesRangeStart[h][L],X=this.seriesRangeEnd[h][L],G=null,U=null,j=null,ot={x:v,y:w,strokeWidth:O,elSeries:C},ft=this.seriesLen;if(n.config.plotOptions.bar.rangeBarGroupRows&&(ft=1),n.config.series[h].data[L]===void 0)break;if(this.isHorizontal){j=w+E*this.visibleI;var vt=(g-E*ft)/2;if(n.config.series[h].data[L].x){var Pt=this.detectOverlappingBars({i:h,j:L,barYPosition:j,srty:vt,barHeight:E,yDivision:g,initPositions:u});E=Pt.barHeight,j=Pt.barYPosition}M=(G=this.drawRangeBarPaths(d({indexes:{i:h,j:L,realIndex:A},barHeight:E,barYPosition:j,zeroW:x,yDivision:g,y1:N,y2:X},ot))).barWidth}else{n.globals.isXNumeric&&(v=(n.globals.seriesX[h][L]-n.globals.minX)/this.xRatio-M/2),U=v+M*this.visibleI;var zt=(f-M*ft)/2;if(n.config.series[h].data[L].x){var Et=this.detectOverlappingBars({i:h,j:L,barXPosition:U,srtx:zt,barWidth:M,xDivision:f,initPositions:u});M=Et.barWidth,U=Et.barXPosition}E=(G=this.drawRangeColumnPaths(d({indexes:{i:h,j:L,realIndex:A},barWidth:M,barXPosition:U,zeroH:p,xDivision:f},ot))).barHeight}var jt=this.barHelpers.drawGoalLine({barXPosition:G.barXPosition,barYPosition:j,goalX:G.goalX,goalY:G.goalY,barHeight:E,barWidth:M});jt&&k.add(jt),w=G.y,v=G.x;var Jt=this.barHelpers.getPathFillColor(i,h,L,A),Ye=n.globals.stroke.colors[A];this.renderSeries((I(T={realIndex:A,pathFill:Jt,lineFill:Ye,j:L,i:h,x:v,y:w,y1:N,y2:X,pathFrom:G.pathFrom,pathTo:G.pathTo,strokeWidth:O,elSeries:C,series:i,barHeight:E,barWidth:M,barXPosition:U,barYPosition:j},"barWidth",M),I(T,"elDataLabelsWrap",b),I(T,"elGoalsMarkers",k),I(T,"visibleSeries",this.visibleI),I(T,"type","rangebar"),T))}l.add(C)}return l}},{key:"detectOverlappingBars",value:function(i){var s=i.i,n=i.j,o=i.barYPosition,l=i.barXPosition,h=i.srty,f=i.srtx,g=i.barHeight,p=i.barWidth,x=i.yDivision,v=i.xDivision,w=i.initPositions,A=this.w,C=[],E=A.config.series[s].data[n].rangeName,M=A.config.series[s].data[n].x,u=Array.isArray(M)?M.join(" "):M,b=A.globals.labels.map(function(L){return Array.isArray(L)?L.join(" "):L}).indexOf(u),k=A.globals.seriesRange[s].findIndex(function(L){return L.x===u&&L.overlaps.length>0});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;o<n.globals.previousPaths.length;o++){var l=n.globals.previousPaths[o];(l.type==="line"||l.type==="area")&&l.paths.length>0&&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;A<C;A++)x=v,v=g[A+1],p[A]=.5*(w+(w=ar(x,v)));return p[A]=w,p}(_),o=_.length-1,l=[],h=0;h<o;h++)i=ar(_[h],_[h+1]),Math.abs(i)<1e-6?n[h]=n[h+1]=0:(s=(t=n[h]/i)*t+(e=n[h+1]/i)*e)>9&&(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;l<h;l++){var f=_[l],g=t[l];s.push([f[0]-g[0],f[1]-g[1],f[0],f[1]])}return s};function ar(_,t){return(t[1]-_[1])/(t[0]-_[0])}var sr=function(){function _(t,e,i){y(this,_),this.ctx=t,this.w=t.w,this.xyRatios=e,this.pointsChart=!(this.w.config.chart.type!=="bubble"&&this.w.config.chart.type!=="scatter")||i,this.scatter=new ja(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Wh(this),this.markers=new hi(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return P(_,[{key:"draw",value:function(t,e,i,s){var n,o=this.w,l=new V(this.ctx),h=o.globals.comboCharts?e:o.config.chart.type,f=l.group({class:"apexcharts-".concat(h,"-series apexcharts-plot-series")}),g=new et(this.ctx,o);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,t=g.getLogSeries(t),this.yRatio=g.getLogYRatios(this.yRatio);for(var p=[],x=0;x<t.length;x++){t=this.lineHelpers.sameValueSeriesFix(x,t);var v=o.globals.comboCharts?i[x]:x;this._initSerieVariables(t,x,v);var w=[],A=[],C=[],E=o.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,v),o.globals.isXNumeric&&o.globals.seriesX.length>0&&(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;j<p.length;j++)f.add(p[j]);return f}},{key:"_initSerieVariables",value:function(t,e,i){var s=this.w,n=new V(this.ctx);this.xDivision=s.globals.gridWidth/(s.globals.dataPoints-(s.config.xaxis.tickPlacement==="on"?1:0)),this.strokeWidth=Array.isArray(s.config.stroke.width)?s.config.stroke.width[i]:s.config.stroke.width,this.yRatio.length>1&&(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;A<l[h].length;A++)if(l[h][A]!==null){g=this.xDivision*A,p=this.zeroY-l[h][A]/this.yRatio[this.yaxisIndex],e=w.move(g,p),i=w.move(g,this.areaBottomY);break}}else e=w.move(g,p),o==="rangeArea"&&(e=w.move(g,x)+w.line(g,p)),i=w.move(g,this.areaBottomY)+w.line(g,p);if(s=w.move(-1,this.zeroY)+w.line(-1,this.zeroY),n=w.move(-1,this.zeroY)+w.line(-1,this.zeroY),v.globals.previousPaths.length>0){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;A<n.areaPaths.length;A++){var C=l.renderPaths(d(d({},v),{},{pathFrom:n.pathFromArea,pathTo:n.areaPaths[A],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:w}));this.elSeries.add(C)}if(o.config.stroke.show&&!this.pointsChart){var E=null;if(e==="line")E=h.fillPath({seriesNumber:i,i:s});else if(o.config.stroke.fill.type==="solid")E=o.globals.stroke.colors[i];else{var M=o.config.fill;o.config.fill=o.config.stroke.fill,E=h.fillPath({seriesNumber:i,i:s}),o.config.fill=M}for(var u=0;u<n.linePaths.length;u++){var b=E;e==="rangeArea"&&(b=h.fillPath({seriesNumber:i}));var k=d(d({},v),{},{pathFrom:n.pathFromLine,pathTo:n.linePaths[u],stroke:E,strokeWidth:this.strokeWidth,strokeLineCap:o.config.stroke.lineCap,fill:e==="rangeArea"?b:"none"}),L=l.renderPaths(k);if(this.elSeries.add(L),L.attr("fill-rule","evenodd"),f.count>0&&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;Et<o;Et++){var jt=n[h][Et+1]===void 0||n[h][Et+1]===null;if(T.globals.isXNumeric){var Jt=T.globals.seriesX[l][Et+1];T.globals.seriesX[l][Et+1]===void 0&&(Jt=T.globals.seriesX[l][o-1]),f=(Jt-T.globals.minX)/this.xRatio}else f+=this.xDivision;zt?h>0&&T.globals.collapsedSeries.length<T.config.series.length-1?E=this.prevSeriesY[function(ti){for(var ei=ti,fe=0;fe<T.globals.series.length;fe++)if(T.globals.collapsedSeriesIndices.indexOf(ti)>-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<p.length;x++)v.push([w,A,w+C,A+p[x]/C]),A+=p[x]/C;else for(x=0;x<p.length;x++)v.push([w,A,w+p[x]/E,A+E]),w+=p[x]/E;return v},this.cutArea=function(p){var x;if(this.width>=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<v.length;A++)C[A]=v[A]*E;return C}(l,h*f),[],new _(g,p,h,f),[]);return function(v){var w,A,C=[];for(w=0;w<v.length;w++)for(A=0;A<v[w].length;A++)C.push(v[w][A]);return C}(x)}function e(l,h,f,g){var p,x,v;if(l.length!==0)return p=f.shortestEdge(),function(w,A,C){var E;if(w.length===0)return!0;(E=w.slice()).push(A);var M=i(w,C),u=i(E,C);return M>=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;h<l.length;h++)f+=l[h];return f}function o(l){var h,f=0;if(s(l[0]))for(h=0;h<l.length;h++)f+=o(l[h]);else f=n(l);return f}return function l(h,f,g,p,x){p=p===void 0?0:p,x=x===void 0?0:x;var v,w,A=[],C=[];if(s(h[0])){for(w=0;w<h.length;w++)A[w]=o(h[w]);for(v=t(A,f,g,p,x),w=0;w<h.length;w++)C.push(l(h[w],v[w][2]-v[w][0],v[w][3]-v[w][1],v[w][0],v[w][1]))}else C=t(h,f,g,p,x);return C}}();var Ii,qa,Gh=function(){function _(t,e){y(this,_),this.ctx=t,this.w=t.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new qn(t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return P(_,[{key:"draw",value:function(t){var e=this,i=this.w,s=new V(this.ctx),n=new ae(this.ctx),o=s.group({class:"apexcharts-treemap"});if(i.globals.noData)return o;var l=[];return t.forEach(function(h){var f=h.map(function(g){return Math.abs(g)});l.push(f)}),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach(function(h,f){h.data.forEach(function(g){Array.isArray(e.labels[f])||(e.labels[f]=[]),e.labels[f].push(g.x)})}),window.TreemapSquared.generate(l,i.globals.gridWidth,i.globals.gridHeight).forEach(function(h,f){var g=s.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:z.escapeString(i.globals.seriesNames[f]),rel:f+1,"data:realIndex":f});if(i.config.chart.dropShadow.enabled){var p=i.config.chart.dropShadow;new tt(e.ctx).dropShadow(o,p,f)}var x=s.group({class:"apexcharts-data-labels"});h.forEach(function(v,w){var A=v[0],C=v[1],E=v[2],M=v[3],u=s.drawRect(A,C,E-A,M-C,i.config.plotOptions.treemap.borderRadius,"#fff",1,e.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?k:i.globals.stroke.colors[f]);u.attr({cx:A,cy:C,index:f,i:f,j:w,width:E-A,height:M-C});var b=e.helpers.getShadeColor(i.config.chart.type,f,w,e.negRange),k=b.color;i.config.series[f].data[w]!==void 0&&i.config.series[f].data[w].fillColor&&(k=i.config.series[f].data[w].fillColor);var L=n.fillPath({color:k,seriesNumber:f,dataPointIndex:w});u.node.classList.add("apexcharts-treemap-rect"),u.attr({fill:L}),e.helpers.addListeners(u);var T={x:A+(E-A)/2,y:C+(M-C)/2,width:0,height:0},O={x:A,y:C,width:E-A,height:M-C};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var N=1;i.globals.resized||(N=i.config.chart.animations.speed),e.animateTreemap(u,T,O,N)}if(i.globals.dataChanged){var X=1;e.dynamicAnim.enabled&&i.globals.shouldAnimate&&(X=e.dynamicAnim.speed,i.globals.previousPaths[f]&&i.globals.previousPaths[f][w]&&i.globals.previousPaths[f][w].rect&&(T=i.globals.previousPaths[f][w].rect),e.animateTreemap(u,T,O,X))}var G=e.getFontSize(v),U=i.config.dataLabels.formatter(e.labels[f][w],{value:i.globals.series[f][w],seriesIndex:f,dataPointIndex:w,w:i});i.config.plotOptions.treemap.dataLabels.format==="truncate"&&(G=parseInt(i.config.dataLabels.style.fontSize,10),U=e.truncateLabels(U,G,A,C,E,M));var j=e.helpers.calculateDataLabels({text:U,x:(A+E)/2,y:(C+M)/2+e.strokeWidth/2+G/3,i:f,j:w,colorProps:b,fontSize:G,series:t});i.config.dataLabels.enabled&&j&&e.rotateToFitLabel(j,G,U,A,C,E,M),g.add(u),j!==null&&g.add(j)}),g.add(x),o.add(g)}),o}},{key:"getFontSize",value:function(t){var e=this.w,i,s,n,o,l=function h(f){var g,p=0;if(Array.isArray(f[0]))for(g=0;g<f.length;g++)p+=h(f[g]);else for(g=0;g<f.length;g++)p+=f[g].length;return p}(this.labels)/function h(f){var g,p=0;if(Array.isArray(f[0]))for(g=0;g<f.length;g++)p+=h(f[g]);else for(g=0;g<f.length;g++)p+=1;return p}(this.labels);return i=t[2]-t[0],s=t[3]-t[1],n=i*s,o=Math.pow(n,.5),Math.min(o/l,parseInt(e.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(t,e,i,s,n,o,l){var h=new V(this.ctx),f=h.getTextRects(i,e);if(f.width+this.w.config.stroke.width+5>o-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;w<o;w++)x++,v=f.determineDaysOfYear(x-1)*n+v,this.timeScaleArray.push({position:v,value:x,unit:g,year:x,month:1})}},{key:"generateMonthScale",value:function(t){var e=t.firstVal,i=t.currentMonthDate,s=t.currentMonth,n=t.currentYear,o=t.daysWidthOnXAxis,l=t.numberOfMonths,h=s,f=0,g=new Ot(this.ctx),p="month",x=0;if(e.minDate>1){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;M<l;M++,u++){(C=z.monthMod(C))===0?(p="year",x+=1):p="month";var b=this._getYear(n,C,x);E=g.determineDaysOfMonths(C,b)*o+E;var k=C===0?b:C;this.timeScaleArray.push({position:E,value:k,unit:p,year:b,month:C===0?1:C}),C++}}},{key:"generateDayScale",value:function(t){var e=t.firstVal,i=t.currentMonth,s=t.currentYear,n=t.hoursWidthOnXAxis,o=t.numberOfDays,l=new Ot(this.ctx),h="day",f=e.minDate+1,g=f,p=function(u,b,k){return u>l.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;C<o;C++){h="day",w=p(g+=1,w,this._getYear(s,w,0));var E=this._getYear(s,w,0);A=24*n+A;var M=g===1?z.monthMod(w):g;this.timeScaleArray.push({position:A,value:M,unit:h,year:E,month:z.monthMod(w),day:M})}}},{key:"generateHourScale",value:function(t){var e=t.firstVal,i=t.currentDate,s=t.currentMonth,n=t.currentYear,o=t.minutesWidthOnXAxis,l=t.numberOfHours,h=new Ot(this.ctx),f="hour",g=function(L,T){return L>h.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<l;u++){f="hour",A>=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<p;M++)x>=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<g;M++)p>=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;x<p.globals.collapsedSeriesIndices.length;x++){var v=p.config.series[p.globals.collapsedSeriesIndices[x]];p.globals.collapsedSeries[x].data=p.globals.axisCharts?v.data.slice():v}for(var w=0;w<p.globals.ancillaryCollapsedSeriesIndices.length;w++){var A=p.config.series[p.globals.ancillaryCollapsedSeriesIndices[w]];p.globals.ancillaryCollapsedSeries[w].data=p.globals.axisCharts?A.data.slice():A}f.series.emptyCollapsedSeries(p.config.series)}return f.update(t).then(function(){g===h.length-1&&l(f)})})})}},{key:"_updateSeries",value:function(t,e){var i=this,s=arguments.length>2&&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;T<k;T++)L.push(b(u[T]));return L},filter:function(u,b){for(var k=u.length,L=[],T=0;T<k;T++)b(u[T])&&L.push(u[T]);return L},filterSVGElements:function(u){return this.filter(u,function(b){return b instanceof _.SVGElement})}},e.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},e.Color=function(u){var b,k;this.r=0,this.g=0,this.b=0,u&&(typeof u=="string"?e.regex.isRgb.test(u)?(b=e.regex.rgb.exec(u.replace(e.regex.whitespace,"")),this.r=parseInt(b[1]),this.g=parseInt(b[2]),this.b=parseInt(b[3])):e.regex.isHex.test(u)&&(b=e.regex.hex.exec((k=u).length==4?["#",k.substring(1,2),k.substring(1,2),k.substring(2,3),k.substring(2,3),k.substring(3,4),k.substring(3,4)].join(""):k),this.r=parseInt(b[1],16),this.g=parseInt(b[2],16),this.b=parseInt(b[3],16)):m(u)==="object"&&(this.r=u.r,this.g=u.g,this.b=u.b))},e.extend(e.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+p(this.r)+p(this.g)+p(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(u){return this.destination=new e.Color(u),this},at:function(u){return this.destination?(u=u<0?0:u>1?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;n<o;++n)i[s[n]]=function(u){return function(b,k,L){if(u=="H")b[0]=b[0]+k.x;else if(u=="V")b[0]=b[0]+k.y;else if(u=="A")b[5]=b[5]+k.x,b[6]=b[6]+k.y;else for(var T=0,O=b.length;T<O;++T)b[T]=b[T]+(T%2?k.y:k.x);if(i&&typeof i[u]=="function")return i[u](b,k,L)}}(s[n].toUpperCase());e.PathArray=function(u,b){e.Array.call(this,u,b||[["M",0,0]])},e.PathArray.prototype=new e.Array,e.PathArray.prototype.constructor=e.PathArray,e.extend(e.PathArray,{toString:function(){return function(u){for(var b=0,k=u.length,L="";b<k;b++)L+=u[b][0],u[b][1]!=null&&(L+=u[b][1],u[b][2]!=null&&(L+=" ",L+=u[b][2],u[b][3]!=null&&(L+=" ",L+=u[b][3],L+=" ",L+=u[b][4],u[b][5]!=null&&(L+=" ",L+=u[b][5],L+=" ",L+=u[b][6],u[b][7]!=null&&(L+=" ",L+=u[b][7])))));return L+" "}(this.value)},move:function(u,b){var k=this.bbox();return k.x,k.y,this},at:function(u){if(!this.destination)return this;for(var b=this.value,k=this.destination.value,L=[],T=new e.PathArray,O=0,N=b.length;O<N;O++){L[O]=[b[O][0]];for(var X=1,G=b[O].length;X<G;X++)L[O][X]=b[O][X]+(k[O][X]-b[O][X])*u;L[O][0]==="A"&&(L[O][4]=+(L[O][4]!=0),L[O][5]=+(L[O][5]!=0))}return T.value=L,T},parse:function(u){if(u instanceof e.PathArray)return u.valueOf();var b,k={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};u=typeof u=="string"?u.replace(e.regex.numbersWithDots,h).replace(e.regex.pathLetters," $& ").replace(e.regex.hyphen,"$1 -").trim().split(e.regex.delimiter):u.reduce(function(G,U){return[].concat.call(G,U)},[]);var L=[],T=new e.Point,O=new e.Point,N=0,X=u.length;do e.regex.isPathLetter.test(u[N])?(b=u[N],++N):b=="M"?b="L":b=="m"&&(b="l"),L.push(i[b].call(null,u.slice(N,N+=k[b.toUpperCase()]).map(parseFloat),T,O));while(X>N);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(/^<svg>/,"").replace(/<\/svg>$/,"");b.innerHTML="<svg>"+u.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var k=0,L=b.firstChild.childNodes.length;k<L;k++)this.node.appendChild(b.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each(function(){this.writeDataToDom()}),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(u){return this.dom=u,this},is:function(u){return function(b,k){return b instanceof k}(this,u)}}}),e.easing={"-":function(u){return u},"<>":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||k<this.situation.loops?(this.pos=b-k,L=this.situation.loop,this.situation.loop=k):(this.absPos=this.situation.loops,this.pos=1,L=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=!!((this.situation.loop-L)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var T=this.situation.ease(this.pos);for(var O in this.situation.once)O>this.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<O;T++){var N=L.transforms[T];N instanceof e.Matrix?u=N.relative?u.multiply(new e.Matrix().morph(N).at(L.ease(this.pos))):u.morph(N).at(L.ease(this.pos)):(N.relative||N.undo(u.extract()),u=u.multiply(N.at(L.ease(this.pos))))}k.matrix(u)}return this},once:function(u,b,k){var L=this.last();return k||(u=L.ease(u)),L.once[u]=b,this},_callStart:function(){return setTimeout((function(){this.start()}).bind(this),0),this}},parent:e.Element,construct:{animate:function(u,b,k){return(this.fx||(this.fx=new e.FX(this))).animate(u,b,k)},delay:function(u){return(this.fx||(this.fx=new e.FX(this))).delay(u)},stop:function(u,b){return this.fx&&this.fx.stop(u,b),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),e.MorphObj=e.invent({create:function(u,b){return e.Color.isColor(b)?new e.Color(u).morph(b):e.regex.delimiter.test(u)?e.regex.pathLetters.test(u)?new e.PathArray(u).morph(b):new e.Array(u).morph(b):e.regex.numberAndUnit.test(b)?new e.Number(u).morph(b):(this.value=u,void(this.destination=b))},extend:{at:function(u,b){return b<1?this.value:this.destination},valueOf:function(){return this.value}}}),e.extend(e.FX,{attr:function(u,b,k){if(m(u)==="object")for(var L in u)this.attr(L,u[L]);else this.add(u,b,"attrs");return this},plot:function(u,b,k,L){return arguments.length==4?this.plot([u,b,k,L]):this.add("plot",new(this.target()).morphArray(u))}}),e.Box=e.invent({create:function(u,b,k,L){if(!(m(u)!=="object"||u instanceof e.Element))return e.Box.call(this,u.left!=null?u.left:u.x,u.top!=null?u.top:u.y,u.width,u.height);var T;arguments.length==4&&(this.x=u,this.y=b,this.width=k,this.height=L),(T=this).x==null&&(T.x=0,T.y=0,T.width=0,T.height=0),T.w=T.width,T.h=T.height,T.x2=T.x+T.width,T.y2=T.y+T.height,T.cx=T.x+T.width/2,T.cy=T.y+T.height/2}}),e.BBox=e.invent({create:function(u){if(e.Box.apply(this,[].slice.call(arguments)),u instanceof e.Element){var b;try{if(!t.documentElement.contains){for(var k=u.node;k.parentNode;)k=k.parentNode;if(k!=t)throw new Error("Element not in the dom")}b=u.node.getBBox()}catch{if(u instanceof e.Shape){e.parser.draw||e.prepare();var L=u.clone(e.parser.draw.instance).show();L&&L.node&&typeof L.node.getBBox=="function"&&(b=L.node.getBBox()),L&&typeof L.remove=="function"&&L.remove()}else b={x:u.node.clientLeft,y:u.node.clientTop,width:u.node.clientWidth,height:u.node.clientHeight}}e.Box.call(this,b)}},inherit:e.Box,parent:e.Element,construct:{bbox:function(){return new e.BBox(this)}}}),e.BBox.prototype.constructor=e.BBox,e.Matrix=e.invent({create:function(u){var b=w([1,0,0,1,0,0]);u=u===null?b:u instanceof e.Element?u.matrixify():typeof u=="string"?w(u.split(e.regex.delimiter).map(parseFloat)):arguments.length==6?w([].slice.call(arguments)):Array.isArray(u)?w(u):u&&m(u)==="object"?u:b;for(var k=E.length-1;k>=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<L;++k)this[this.arguments[k]]=u[k];else if(u&&m(u)==="object")for(k=0,L=this.arguments.length;k<L;++k)this[this.arguments[k]]=u[this.arguments[k]];this.inversed=!1,b===!0&&(this.inversed=!0)}}),e.Translate=e.invent({parent:e.Matrix,inherit:e.Transformation,create:function(u,b){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),e.extend(e.Element,{style:function(u,b){if(arguments.length==0)return this.node.style.cssText||"";if(arguments.length<2)if(m(u)==="object")for(var k in u)this.style(k,u[k]);else{if(!e.regex.isCss.test(u))return this.node.style[f(u)];for(u=u.split(/\s*;\s*/).filter(function(L){return!!L}).map(function(L){return L.split(/\s*:\s*/)});b=u.pop();)this.style(b[0],b[1])}else this.node.style[f(u)]=b===null||e.regex.isBlank.test(b)?"":b;return this}}),e.Parent=e.invent({create:function(u){this.constructor.call(this,u)},inherit:e.Element,extend:{children:function(){return e.utils.map(e.utils.filterSVGElements(this.node.childNodes),function(u){return e.adopt(u)})},add:function(u,b){return b==null?this.node.appendChild(u.node):u.node!=this.node.childNodes[b]&&this.node.insertBefore(u.node,this.node.childNodes[b]),this},put:function(u,b){return this.add(u,b),u},has:function(u){return this.index(u)>=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<T;L++)k[L]instanceof e.Element&&u.apply(k[L],[L,k]),b&&k[L]instanceof e.Container&&k[L].each(u,b);return this},removeElement:function(u){return this.node.removeChild(u.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),e.extend(e.Parent,{ungroup:function(u,b){return b===0||this instanceof e.Defs||this.node==e.parser.draw||(u=u||(this instanceof e.Doc?this:this.parent(e.Parent)),b=b||1/0,this.each(function(){return this instanceof e.Defs?this:this instanceof e.Parent?this.ungroup(u,b-1):this.toParent(u)}),this.node.firstChild||this.remove()),this},flatten:function(u,b){return this.ungroup(u,b)}}),e.Container=e.invent({create:function(u){this.constructor.call(this,u)},inherit:e.Parent}),e.ViewBox=e.invent({parent:e.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(u){e.Element.prototype[u]=function(b){return e.on(this.node,u,b),this}}),e.listeners=[],e.handlerMap=[],e.listenerId=0,e.on=function(u,b,k,L,T){var O=k.bind(L||u.instance||u),N=(e.handlerMap.indexOf(u)+1||e.handlerMap.push(u))-1,X=b.split(".")[0],G=b.split(".")[1]||"*";e.listeners[N]=e.listeners[N]||{},e.listeners[N][X]=e.listeners[N][X]||{},e.listeners[N][X][G]=e.listeners[N][X][G]||{},k._svgjsListenerId||(k._svgjsListenerId=++e.listenerId),e.listeners[N][X][G][k._svgjsListenerId]=O,u.addEventListener(X,O,T||{passive:!0})},e.off=function(u,b,k){var L=e.handlerMap.indexOf(u),T=b&&b.split(".")[0],O=b&&b.split(".")[1],N="";if(L!=-1)if(k){if(typeof k=="function"&&(k=k._svgjsListenerId),!k)return;e.listeners[L][T]&&e.listeners[L][T][O||"*"]&&(u.removeEventListener(T,e.listeners[L][T][O||"*"][k],!1),delete e.listeners[L][T][O||"*"][k])}else if(O&&T){if(e.listeners[L][T]&&e.listeners[L][T][O]){for(var X in e.listeners[L][T][O])e.off(u,[T,O].join("."),X);delete e.listeners[L][T][O]}}else if(O)for(var G in e.listeners[L])for(var N in e.listeners[L][G])O===N&&e.off(u,[G,O].join("."));else if(T){if(e.listeners[L][T]){for(var N in e.listeners[L][T])e.off(u,[T,N].join("."));delete e.listeners[L][T]}}else{for(var G in e.listeners[L])e.off(u,G);delete e.listeners[L],delete e.handlerMap[L]}},e.extend(e.Element,{on:function(u,b,k,L){return e.on(this.node,u,b,k,L),this},off:function(u,b){return e.off(this.node,u,b),this},fire:function(u,b){return u instanceof _.Event?this.node.dispatchEvent(u):this.node.dispatchEvent(u=new e.CustomEvent(u,{detail:b,cancelable:!0})),this._event=u,this},event:function(){return this._event}}),e.Defs=e.invent({create:"defs",inherit:e.Container}),e.G=e.invent({create:"g",inherit:e.Container,extend:{x:function(u){return u==null?this.transform("x"):this.transform({x:u-this.x()},!0)}},construct:{group:function(){return this.put(new e.G)}}}),e.Doc=e.invent({create:function(u){u&&((u=typeof u=="string"?t.getElementById(u):u).nodeName=="svg"?this.constructor.call(this,u):(this.constructor.call(this,e.create("svg")),u.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:e.Container,extend:{namespace:function(){return this.attr({xmlns:e.ns,version:"1.1"}).attr("xmlns:xlink",e.xlink,e.xmlns).attr("xmlns:svgjs",e.svgjs,e.xmlns)},defs:function(){var u;return this._defs||((u=this.node.getElementsByTagName("defs")[0])?this._defs=e.adopt(u):this._defs=new e.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&this.node.parentNode.nodeName!="#document"?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,e.parser.draw&&!e.parser.draw.parentNode&&this.node.appendChild(e.parser.draw),this},clone:function(u){this.writeDataToDom();var b=this.node,k=A(b.cloneNode(!0));return u?(u.node||u).appendChild(k.node):b.parentNode.insertBefore(k.node,b.nextSibling),k}}}),e.extend(e.Element,{}),e.Gradient=e.invent({create:function(u){this.constructor.call(this,e.create(u+"Gradient")),this.type=u},inherit:e.Container,extend:{at:function(u,b,k){return this.put(new e.Stop).update(u,b,k)},update:function(u){return this.clear(),typeof u=="function"&&u.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(u,b,k){return u=="transform"&&(u="gradientTransform"),e.Container.prototype.attr.call(this,u,b,k)}},construct:{gradient:function(u,b){return this.defs().gradient(u,b)}}}),e.extend(e.Gradient,e.FX,{from:function(u,b){return(this._target||this).type=="radial"?this.attr({fx:new e.Number(u),fy:new e.Number(b)}):this.attr({x1:new e.Number(u),y1:new e.Number(b)})},to:function(u,b){return(this._target||this).type=="radial"?this.attr({cx:new e.Number(u),cy:new e.Number(b)}):this.attr({x2:new e.Number(u),y2:new e.Number(b)})}}),e.extend(e.Defs,{gradient:function(u,b){return this.put(new e.Gradient(u)).update(b)}}),e.Stop=e.invent({create:"stop",inherit:e.Element,extend:{update:function(u){return(typeof u=="number"||u instanceof e.Number)&&(u={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),u.opacity!=null&&this.attr("stop-opacity",u.opacity),u.color!=null&&this.attr("stop-color",u.color),u.offset!=null&&this.attr("offset",new e.Number(u.offset)),this}}}),e.Pattern=e.invent({create:"pattern",inherit:e.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(u){return this.clear(),typeof u=="function"&&u.call(this,this),this},toString:function(){return this.fill()},attr:function(u,b,k){return u=="transform"&&(u="patternTransform"),e.Container.prototype.attr.call(this,u,b,k)}},construct:{pattern:function(u,b,k){return this.defs().pattern(u,b,k)}}}),e.extend(e.Defs,{pattern:function(u,b,k){return this.put(new e.Pattern).update(k).attr({x:0,y:0,width:u,height:b,patternUnits:"userSpaceOnUse"})}}),e.Shape=e.invent({create:function(u){this.constructor.call(this,u)},inherit:e.Element}),e.Symbol=e.invent({create:"symbol",inherit:e.Container,construct:{symbol:function(){return this.put(new e.Symbol)}}}),e.Use=e.invent({create:"use",inherit:e.Shape,extend:{element:function(u,b){return this.attr("href",(b||"")+"#"+u,e.xlink)}},construct:{use:function(u,b){return this.put(new e.Use).element(u,b)}}}),e.Rect=e.invent({create:"rect",inherit:e.Shape,construct:{rect:function(u,b){return this.put(new e.Rect).size(u,b)}}}),e.Circle=e.invent({create:"circle",inherit:e.Shape,construct:{circle:function(u){return this.put(new e.Circle).rx(new e.Number(u).divide(2)).move(0,0)}}}),e.extend(e.Circle,e.FX,{rx:function(u){return this.attr("r",u)},ry:function(u){return this.rx(u)}}),e.Ellipse=e.invent({create:"ellipse",inherit:e.Shape,construct:{ellipse:function(u,b){return this.put(new e.Ellipse).size(u,b).move(0,0)}}}),e.extend(e.Ellipse,e.Rect,e.FX,{rx:function(u){return this.attr("rx",u)},ry:function(u){return this.attr("ry",u)}}),e.extend(e.Circle,e.Ellipse,{x:function(u){return u==null?this.cx()-this.rx():this.cx(u+this.rx())},y:function(u){return u==null?this.cy()-this.ry():this.cy(u+this.ry())},cx:function(u){return u==null?this.attr("cx"):this.attr("cx",u)},cy:function(u){return u==null?this.attr("cy"):this.attr("cy",u)},width:function(u){return u==null?2*this.rx():this.rx(new e.Number(u).divide(2))},height:function(u){return u==null?2*this.ry():this.ry(new e.Number(u).divide(2))},size:function(u,b){var k=x(this,u,b);return this.rx(new e.Number(k.width).divide(2)).ry(new e.Number(k.height).divide(2))}}),e.Line=e.invent({create:"line",inherit:e.Shape,extend:{array:function(){return new e.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(u,b,k,L){return u==null?this.array():(u=b!==void 0?{x1:u,y1:b,x2:k,y2:L}:new e.PointArray(u).toLine(),this.attr(u))},move:function(u,b){return this.attr(this.array().move(u,b).toLine())},size:function(u,b){var k=x(this,u,b);return this.attr(this.array().size(k.width,k.height).toLine())}},construct:{line:function(u,b,k,L){return e.Line.prototype.plot.apply(this.put(new e.Line),u!=null?[u,b,k,L]:[0,0,0,0])}}}),e.Polyline=e.invent({create:"polyline",inherit:e.Shape,construct:{polyline:function(u){return this.put(new e.Polyline).plot(u||new e.PointArray)}}}),e.Polygon=e.invent({create:"polygon",inherit:e.Shape,construct:{polygon:function(u){return this.put(new e.Polygon).plot(u||new e.PointArray)}}}),e.extend(e.Polyline,e.Polygon,{array:function(){return this._array||(this._array=new e.PointArray(this.attr("points")))},plot:function(u){return u==null?this.array():this.clear().attr("points",typeof u=="string"?u:this._array=new e.PointArray(u))},clear:function(){return delete this._array,this},move:function(u,b){return this.attr("points",this.array().move(u,b))},size:function(u,b){var k=x(this,u,b);return this.attr("points",this.array().size(k.width,k.height))}}),e.extend(e.Line,e.Polyline,e.Polygon,{morphArray:e.PointArray,x:function(u){return u==null?this.bbox().x:this.move(u,this.bbox().y)},y:function(u){return u==null?this.bbox().y:this.move(this.bbox().x,u)},width:function(u){var b=this.bbox();return u==null?b.width:this.size(u,b.height)},height:function(u){var b=this.bbox();return u==null?b.height:this.size(b.width,u)}}),e.Path=e.invent({create:"path",inherit:e.Shape,extend:{morphArray:e.PathArray,array:function(){return this._array||(this._array=new e.PathArray(this.attr("d")))},plot:function(u){return u==null?this.array():this.clear().attr("d",typeof u=="string"?u:this._array=new e.PathArray(u))},clear:function(){return delete this._array,this}},construct:{path:function(u){return this.put(new e.Path).plot(u||new e.PathArray)}}}),e.Image=e.invent({create:"image",inherit:e.Shape,extend:{load:function(u){if(!u)return this;var b=this,k=new _.Image;return e.on(k,"load",function(){e.off(k);var L=b.parent(e.Pattern);L!==null&&(b.width()==0&&b.height()==0&&b.size(k.width,k.height),L&&L.width()==0&&L.height()==0&&L.size(b.width(),b.height()),typeof b._loaded=="function"&&b._loaded.call(b,{width:k.width,height:k.height,ratio:k.width/k.height,url:u}))}),e.on(k,"error",function(L){e.off(k),typeof b._error=="function"&&b._error.call(b,L)}),this.attr("href",k.src=this.src=u,e.xlink)},loaded:function(u){return this._loaded=u,this},error:function(u){return this._error=u,this}},construct:{image:function(u,b,k){return this.put(new e.Image).load(u).size(b||0,k||b||0)}}}),e.Text=e.invent({create:function(){this.constructor.call(this,e.create("text")),this.dom.leading=new e.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",e.defaults.attrs["font-family"])},inherit:e.Shape,extend:{x:function(u){return u==null?this.attr("x"):this.attr("x",u)},text:function(u){if(u===void 0){u="";for(var b=this.node.childNodes,k=0,L=b.length;k<L;++k)k!=0&&b[k].nodeType!=3&&e.adopt(b[k]).dom.newLined==1&&(u+=`
|
||
`),u+=b[k].textContent;return u}if(this.clear().build(!0),typeof u=="function")u.call(this,this);else{k=0;for(var T=(u=u.split(`
|
||
`)).length;k<T;k++)this.tspan(u[k]).newLine()}return this.build(!1).rebuild()},size:function(u){return this.attr("font-size",u).rebuild()},leading:function(u){return u==null?this.dom.leading:(this.dom.leading=new e.Number(u),this.rebuild())},lines:function(){var u=(this.textPath&&this.textPath()||this).node,b=e.utils.map(e.utils.filterSVGElements(u.childNodes),function(k){return e.adopt(k)});return new e.Set(b)},rebuild:function(u){if(typeof u=="boolean"&&(this._rebuild=u),this._rebuild){var b=this,k=0,L=this.dom.leading*new e.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(b.textPath()||this.attr("x",b.attr("x")),this.text()==`
|
||
`?k+=L:(this.attr("dy",L+k),k=0))}),this.fire("rebuild")}return this},build:function(u){return this._build=!!u,this},setData:function(u){return this.dom=u,this.dom.leading=new e.Number(u.leading||1.3),this}},construct:{text:function(u){return this.put(new e.Text).text(u)},plain:function(u){return this.put(new e.Text).plain(u)}}}),e.Tspan=e.invent({create:"tspan",inherit:e.Shape,extend:{text:function(u){return u==null?this.node.textContent+(this.dom.newLined?`
|
||
`:""):(typeof u=="function"?u.call(this,this):this.plain(u),this)},dx:function(u){return this.attr("dx",u)},dy:function(u){return this.attr("dy",u)},newLine:function(){var u=this.parent(e.Text);return this.dom.newLined=!0,this.dy(u.dom.leading*u.attr("font-size")).attr("x",u.x())}}}),e.extend(e.Text,e.Tspan,{plain:function(u){return this._build===!1&&this.clear(),this.node.appendChild(t.createTextNode(u)),this},tspan:function(u){var b=(this.textPath&&this.textPath()||this).node,k=new e.Tspan;return this._build===!1&&this.clear(),b.appendChild(k.node),k.text(u)},clear:function(){for(var u=(this.textPath&&this.textPath()||this).node;u.hasChildNodes();)u.removeChild(u.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),e.TextPath=e.invent({create:"textPath",inherit:e.Parent,parent:e.Text,construct:{morphArray:e.PathArray,array:function(){var u=this.track();return u?u.array():null},plot:function(u){var b=this.track(),k=null;return b&&(k=b.plot(u)),u==null?k:this},track:function(){var u=this.textPath();if(u)return u.reference("href")},textPath:function(){if(this.node.firstChild&&this.node.firstChild.nodeName=="textPath")return e.adopt(this.node.firstChild)}}}),e.Nested=e.invent({create:function(){this.constructor.call(this,e.create("svg")),this.style("overflow","visible")},inherit:e.Container,construct:{nested:function(){return this.put(new e.Nested)}}});var l={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(u,b){return b=="color"?u:u+"-"+b}};function h(u,b,k,L){return k+L.replace(e.regex.dots," .")}function f(u){return u.toLowerCase().replace(/-(.)/g,function(b,k){return k.toUpperCase()})}function g(u){return u.charAt(0).toUpperCase()+u.slice(1)}function p(u){var b=u.toString(16);return b.length==1?"0"+b:b}function x(u,b,k){if(b==null||k==null){var L=u.bbox();b==null?b=L.width/L.height*k:k==null&&(k=L.height/L.width*b)}return{width:b,height:k}}function v(u,b,k){return{x:b*u.a+k*u.c+0,y:b*u.b+k*u.d+0}}function w(u){return{a:u[0],b:u[1],c:u[2],d:u[3],e:u[4],f:u[5]}}function A(u){for(var b=u.childNodes.length-1;b>=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<k;b++)this.members.push(u[b]);return this},remove:function(u){var b=this.index(u);return b>-1&&this.members.splice(b,1),this},each:function(u){for(var b=0,k=this.members.length;b<k;b++)u.apply(this.members[b],[b,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(u){return this.index(u)>=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<O;T++)this.members[T]&&typeof this.members[T][L]=="function"&&this.members[T][L].apply(this.members[T],arguments);return L=="animate"?this.fx||(this.fx=new e.FX.Set(this)):this}}),u=[],e.FX.prototype)typeof e.FX.prototype[b]=="function"&&typeof e.FX.Set.prototype[b]!="function"&&u.push(b);u.forEach(function(k){e.FX.Set.prototype[k]=function(){for(var L=0,T=this.set.members.length;L<T;L++)this.set.members[L].fx[k].apply(this.set.members[L].fx,arguments);return this}})},e.extend(e.Element,{}),e.extend(e.Element,{remember:function(u,b){if(m(arguments[0])==="object")for(var k in u)this.remember(k,u[k]);else{if(arguments.length==1)return this.memory()[u];this.memory()[u]=b}return this},forget:function(){if(arguments.length==0)this._memory={};else for(var u=arguments.length-1;u>=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=[];f<g;f++)p.push(h[f]);return p.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(o,l){this.attr({operator:o,radius:l})},tile:function(){},turbulence:function(o,l,h,f,g){this.attr({numOctaves:l,seed:h,stitchTiles:f,baseFrequency:o,type:g})}},e={merge:function(){var o;if(arguments[0]instanceof SVG.Set){var l=this;arguments[0].each(function(f){this instanceof SVG.MergeNode?l.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&l.put(new SVG.MergeNode(this))})}else{o=Array.isArray(arguments[0])?arguments[0]:arguments;for(var h=0;h<o.length;h++)o[h]instanceof SVG.MergeNode?this.put(o[h]):this.put(new SVG.MergeNode(o[h]))}},componentTransfer:function(o){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach((function(h){this[h]=new SVG["Func"+h.toUpperCase()]("identity"),this.rgb.add(this[h]),this.node.appendChild(this[h].node)}).bind(this)),o)for(var l in o.rgb&&(["r","g","b"].forEach((function(h){this[h].attr(o.rgb)}).bind(this)),delete o.rgb),o)this[l].attr(o[l])},diffuseLighting:function(o,l,h){this.attr({surfaceScale:o,diffuseConstant:l,kernelUnitLength:h})},specularLighting:function(o,l,h,f){this.attr({surfaceScale:o,diffuseConstant:l,specularExponent:h,kernelUnitLength:f})}},i={distantLight:function(o,l){this.attr({azimuth:o,elevation:l})},pointLight:function(o,l,h){this.attr({x:o,y:l,z:h})},spotLight:function(o,l,h,f,g,p){this.attr({x:o,y:l,z:h,pointsAtX:f,pointsAtY:g,pointsAtZ:p})},mergeNode:function(o){this.attr("in",o)}};function s(o){return Array.isArray(o)&&(o=new SVG.Array(o)),o.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function n(){var o=function(){};for(var l in typeof arguments[arguments.length-1]=="function"&&(o=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var h in arguments[l])o(arguments[l][h],h,arguments[l])}["r","g","b","a"].forEach(function(o){i["Func"+o.toUpperCase()]=function(l){switch(this.attr("type",l),l){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}}),n(t,function(o,l){var h=l.charAt(0).toUpperCase()+l.slice(1);SVG[h+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+h)),o.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})}),n(e,function(o,l){var h=l.charAt(0).toUpperCase()+l.slice(1);SVG[h+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+h)),o.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})}),n(i,function(o,l){var h=l.charAt(0).toUpperCase()+l.slice(1);SVG[h]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+h)),o.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})}),SVG.extend(SVG.MergeEffect,{in:function(o){return o instanceof SVG.MergeNode?this.add(o,0):this.add(new SVG.MergeNode(o),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(o){return o==null?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",o)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}).call(void 0),function(){function _(n,o,l,h,f,g,p){for(var x=n.slice(o,l||p),v=h.slice(f,g||p),w=0,A={pos:[0,0],start:[0,0]},C={pos:[0,0],start:[0,0]};x[w]=t.call(A,x[w]),v[w]=t.call(C,v[w]),x[w][0]!=v[w][0]||x[w][0]=="M"||x[w][0]=="A"&&(x[w][4]!=v[w][4]||x[w][5]!=v[w][5])?(Array.prototype.splice.apply(x,[w,1].concat(i.call(A,x[w]))),Array.prototype.splice.apply(v,[w,1].concat(i.call(C,v[w])))):(x[w]=e.call(A,x[w]),v[w]=e.call(C,v[w])),!(++w==x.length&&w==v.length);)w==x.length&&x.push(["C",A.pos[0],A.pos[1],A.pos[0],A.pos[1],A.pos[0],A.pos[1]]),w==v.length&&v.push(["C",C.pos[0],C.pos[1],C.pos[0],C.pos[1],C.pos[0],C.pos[1]]);return{start:x,dest:v}}function t(n){switch(n[0]){case"z":case"Z":n[0]="L",n[1]=this.start[0],n[2]=this.start[1];break;case"H":n[0]="L",n[2]=this.pos[1];break;case"V":n[0]="L",n[2]=n[1],n[1]=this.pos[0];break;case"T":n[0]="Q",n[3]=n[1],n[4]=n[2],n[1]=this.reflection[1],n[2]=this.reflection[0];break;case"S":n[0]="C",n[6]=n[4],n[5]=n[3],n[4]=n[2],n[3]=n[1],n[2]=this.reflection[1],n[1]=this.reflection[0]}return n}function e(n){var o=n.length;return this.pos=[n[o-2],n[o-1]],"SCQT".indexOf(n[0])!=-1&&(this.reflection=[2*this.pos[0]-n[o-4],2*this.pos[1]-n[o-3]]),n}function i(n){var o=[n];switch(n[0]){case"M":return this.pos=this.start=[n[1],n[2]],o;case"L":n[5]=n[3]=n[1],n[6]=n[4]=n[2],n[1]=this.pos[0],n[2]=this.pos[1];break;case"Q":n[6]=n[4],n[5]=n[3],n[4]=1*n[4]/3+2*n[2]/3,n[3]=1*n[3]/3+2*n[1]/3,n[2]=1*this.pos[1]/3+2*n[2]/3,n[1]=1*this.pos[0]/3+2*n[1]/3;break;case"A":o=function(l,h){var f,g,p,x,v,w,A,C,E,M,u,b,k,L,T,O,N,X,G,U,j,ot,ft,vt,Pt,zt,Et=Math.abs(h[1]),jt=Math.abs(h[2]),Jt=h[3]%360,Ye=h[4],Ae=h[5],ti=h[6],ei=h[7],fe=new SVG.Point(l),xe=new SVG.Point(ti,ei),eo=[];if(Et===0||jt===0||fe.x===xe.x&&fe.y===xe.y)return[["C",fe.x,fe.y,xe.x,xe.y,xe.x,xe.y]];for(f=new SVG.Point((fe.x-xe.x)/2,(fe.y-xe.y)/2).transform(new SVG.Matrix().rotate(Jt)),(g=f.x*f.x/(Et*Et)+f.y*f.y/(jt*jt))>1&&(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&&u<b&&(b-=2*Math.PI),L=Math.ceil(2*Math.abs(u-b)/Math.PI),O=[],N=u,k=(b-u)/L,T=4*Math.tan(k/4)/3,j=0;j<=L;j++)G=Math.cos(N),X=Math.sin(N),U=new SVG.Point(C.x+G,C.y+X),O[j]=[new SVG.Point(U.x+T*X,U.y-T*G),U,new SVG.Point(U.x-T*X,U.y+T*G)],N+=k;for(O[0][0]=O[0][1].clone(),O[O.length-1][2]=O[O.length-1][1].clone(),p=new SVG.Matrix().rotate(Jt).scale(Et,jt).rotate(-Jt),j=0,ot=O.length;j<ot;j++)O[j][0]=O[j][0].transform(p),O[j][1]=O[j][1].transform(p),O[j][2]=O[j][2].transform(p);for(j=1,ot=O.length;j<ot;j++)ft=(U=O[j-1][2]).x,vt=U.y,Pt=(U=O[j][0]).x,zt=U.y,ti=(U=O[j][1]).x,ei=U.y,eo.push(["C",ft,vt,Pt,zt,ti,ei]);return eo}(this.pos,n),n=o[0]}return n[0]="C",this.pos=[n[5],n[6]],this.reflection=[2*n[5]-n[3],2*n[6]-n[4]],o}function s(n,o){if(o===!1)return!1;for(var l=o,h=n.length;l<h;++l)if(n[l][0]=="M")return l;return!1}SVG.extend(SVG.PathArray,{morph:function(n){for(var o=this.value,l=this.parse(n),h=0,f=0,g=!1,p=!1;h!==!1||f!==!1;){var x;g=s(o,h!==!1&&h+1),p=s(l,f!==!1&&f+1),h===!1&&(h=(x=new SVG.PathArray(v.start).bbox()).height==0||x.width==0?o.push(o[0])-1:o.push(["M",x.x+x.width/2,x.y+x.height/2])-1),f===!1&&(f=(x=new SVG.PathArray(v.dest).bbox()).height==0||x.width==0?l.push(l[0])-1:l.push(["M",x.x+x.width/2,x.y+x.height/2])-1);var v=_(o,h,g,l,f,p);o=o.slice(0,h).concat(v.start,g===!1?[]:o.slice(g)),l=l.slice(0,f).concat(v.dest,p===!1?[]:l.slice(p)),h=g!==!1&&h+v.start.length,f=p!==!1&&f+v.dest.length}return this.value=o,this.destination=new SVG.PathArray,this.destination.value=l,this}})}(),(function(){function _(t){t.remember("_draggable",this),this.el=t}_.prototype.init=function(t,e){var i=this;this.constraint=t,this.value=e,this.el.on("mousedown.drag",function(s){i.start(s)}),this.el.on("touchstart.drag",function(s){i.start(s)})},_.prototype.transformPoint=function(t,e){var i=(t=t||window.event).changedTouches&&t.changedTouches[0]||t;return this.p.x=i.clientX-(e||0),this.p.y=i.clientY,this.p.matrixTransform(this.m)},_.prototype.getBBox=function(){var t=this.el.bbox();return this.el instanceof SVG.Nested&&(t=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(t.x=this.el.x(),t.y=this.el.y()),t},_.prototype.start=function(t){if(t.type!="click"&&t.type!="mousedown"&&t.type!="mousemove"||(t.which||t.buttons)==1){var e=this;if(this.el.fire("beforedrag",{event:t,handler:this}),!this.el.event().defaultPrevented){t.preventDefault(),t.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var i,s=this.getBBox();if(this.el instanceof SVG.Text)switch(i=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":i/=2;break;case"start":i=0}this.startPoints={point:this.transformPoint(t,i),box:s,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(n){e.drag(n)}),SVG.on(window,"touchmove.drag",function(n){e.drag(n)}),SVG.on(window,"mouseup.drag",function(n){e.end(n)}),SVG.on(window,"touchend.drag",function(n){e.end(n)}),this.el.fire("dragstart",{event:t,p:this.startPoints.point,m:this.m,handler:this})}}},_.prototype.drag=function(t){var e=this.getBBox(),i=this.transformPoint(t),s=this.startPoints.box.x+i.x-this.startPoints.point.x,n=this.startPoints.box.y+i.y-this.startPoints.point.y,o=this.constraint,l=i.x-this.startPoints.point.x,h=i.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:t,p:i,m:this.m,handler:this}),this.el.event().defaultPrevented)return i;if(typeof o=="function"){var f=o.call(this.el,s,n,this.m);typeof f=="boolean"&&(f={x:f,y:f}),f.x===!0?this.el.x(s):f.x!==!1&&this.el.x(f.x),f.y===!0?this.el.y(n):f.y!==!1&&this.el.y(f.y)}else typeof o=="object"&&(o.minX!=null&&s<o.minX?l=(s=o.minX)-this.startPoints.box.x:o.maxX!=null&&s>o.maxX-e.width&&(l=(s=o.maxX-e.width)-this.startPoints.box.x),o.minY!=null&&n<o.minY?h=(n=o.minY)-this.startPoints.box.y:o.maxY!=null&&n>o.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;i<s;++i){var n=function(l){return function(h){(h=h||window.event).preventDefault?h.preventDefault():h.returnValue=!1,h.stopPropagation();var f=h.pageX||h.touches[0].pageX,g=h.pageY||h.touches[0].pageY;t.el.fire("point",{x:f,y:g,i:l,event:h})}}(i),o=this.drawPoint(e[i][0],e[i][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",n).on("mousedown",n);this.pointSelection.set.add(o)}},_.prototype.drawPoint=function(t,e){var i=this.options.pointType;switch(i){case"circle":return this.drawCircle(t,e);case"rect":return this.drawRect(t,e);default:if(typeof i=="function")return i.call(this,t,e);throw new Error("Unknown "+i+" point type!")}},_.prototype.drawCircle=function(t,e){return this.nested.circle(this.options.pointSize).center(t,e)},_.prototype.drawRect=function(t,e){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(t,e)},_.prototype.updatePointSelection=function(){var t=this.getPointArray();this.pointSelection.set.each(function(e){this.cx()===t[e][0]&&this.cy()===t[e][1]||this.center(t[e][0],t[e][1])})},_.prototype.updateRectSelection=function(){var t=this,e=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:e.width,height:e.height}),this.options.points.length&&this.options.points.map(function(s,n){var o=t.pointCoords(s,e);t.rectSelection.set.get(n+1).center(o.x,o.y)}),this.options.rotationPoint){var i=this.rectSelection.set.length();this.rectSelection.set.get(i-1).center(e.width/2,20)}},_.prototype.selectRect=function(t){var e=this,i=this.el.bbox();function s(l){return function(h){(h=h||window.event).preventDefault?h.preventDefault():h.returnValue=!1,h.stopPropagation();var f=h.pageX||h.touches[0].pageX,g=h.pageY||h.touches[0].pageY;e.el.fire(l,{x:f,y:g,event:h})}}if(this.rectSelection.isSelected=t,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(i.width,i.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map(function(l,h){var f=e.pointCoords(l,i),g=e.drawPoint(f.x,f.y).attr("class",e.options.classPoints+"_"+l).on("mousedown",s(l)).on("touchstart",s(l));e.rectSelection.set.add(g)}),this.rectSelection.set.each(function(){this.addClass(e.options.classPoints)})),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var n=function(l){(l=l||window.event).preventDefault?l.preventDefault():l.returnValue=!1,l.stopPropagation();var h=l.pageX||l.touches[0].pageX,f=l.pageY||l.touches[0].pageY;e.el.fire("rot",{x:h,y:f,event:l})},o=this.drawPoint(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",n).on("mousedown",n);this.rectSelection.set.add(o)}},_.prototype.handler=function(){var t=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(t.x,t.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},_.prototype.observe=function(){var t=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver(function(){t.handler()}),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch{}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",function(){t.handler()})},_.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each(function(){this.remove()}),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each(function(){this.remove()}),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(t,e){return typeof t=="object"&&(e=t,t=!0),(this.remember("_selectHandler")||new _(this)).init(t===void 0||t,e||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function _(t){t.remember("_resizeHandler",this),this.el=t,this.parameters={},this.lastUpdateCall=null,this.p=t.doc().node.createSVGPoint()}_.prototype.transformPoint=function(t,e,i){return this.p.x=t-(this.offset.x-window.pageXOffset),this.p.y=e-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)},_.prototype._extractPosition=function(t){return{x:t.clientX!=null?t.clientX:t.touches[0].clientX,y:t.clientY!=null?t.clientY:t.touches[0].clientY}},_.prototype.init=function(t){var e=this;if(this.stop(),t!=="stop"){for(var i in this.options={},this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],t[i]!==void 0&&(this.options[i]=t[i]);this.el.on("lt.resize",function(s){e.resize(s||window.event)}),this.el.on("rt.resize",function(s){e.resize(s||window.event)}),this.el.on("rb.resize",function(s){e.resize(s||window.event)}),this.el.on("lb.resize",function(s){e.resize(s||window.event)}),this.el.on("t.resize",function(s){e.resize(s||window.event)}),this.el.on("r.resize",function(s){e.resize(s||window.event)}),this.el.on("b.resize",function(s){e.resize(s||window.event)}),this.el.on("l.resize",function(s){e.resize(s||window.event)}),this.el.on("rot.resize",function(s){e.resize(s||window.event)}),this.el.on("point.resize",function(s){e.resize(s||window.event)}),this.update()}},_.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},_.prototype.resize=function(t){var e=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var i=this._extractPosition(t.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:t.detail.x,y:t.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},this.el.type==="text"&&(this.parameters.fontSize=this.el.attr()["font-size"]),t.detail.i!==void 0){var s=this.el.array().valueOf();this.parameters.i=t.detail.i,this.parameters.pointCoords=[s[t.detail.i][0],s[t.detail.i][1]]}switch(t.type){case"lt":this.calc=function(n,o){var l=this.snapToGrid(n,o);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+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])<this.options.snapToGrid/2?n[0]:n[0]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),e-=Math.abs(n[1])<this.options.snapToGrid/2?n[1]:n[1]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(t,e,i,s)},_.prototype.constraintToBox=function(t,e,i,s){var n,o,l=this.options.constraint||{};return s!==void 0?(n=i,o=s):(n=this.parameters.box.x+(1&i?0:this.parameters.box.width),o=this.parameters.box.y+(2&i?0:this.parameters.box.height)),l.minX!==void 0&&n+t<l.minX&&(t=l.minX-n),l.maxX!==void 0&&n+t>l.maxX&&(t=l.maxX-n),l.minY!==void 0&&o+e<l.minY&&(e=l.minY-o),l.maxY!==void 0&&o+e>l.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 l<s?(i[1]=n/s-this.parameters.box.height,e&&(i[1]=-i[1])):l>s&&(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;g<e.elGraph.length;g++)s.globals.dom.elGraphical.add(e.elGraph[g]);else s.globals.dom.elGraphical.add(e.elGraph);s.config.grid.position==="front"&&(f&&s.globals.dom.elGraphical.add(f.el),f!=null&&(h=f.elGridBorders)!==null&&h!==void 0&&h.node&&s.globals.dom.elGraphical.add(f.elGridBorders)),s.config.xaxis.crosshairs.position==="front"&&i.crosshairs.drawXCrosshairs(),s.config.yaxis[0].crosshairs.position==="front"&&i.crosshairs.drawYCrosshairs(),s.config.chart.type!=="treemap"&&i.axes.drawAxis(s.config.chart.type,f);var p=new Xe(t.ctx,f),x=new D(t.ctx,f);if(f!==null&&(p.xAxisLabelCorrections(f.xAxisTickWidth),x.setYAxisTextAlignments(),s.config.yaxis.map(function(w,A){s.globals.ignoreYAxisIndexes.indexOf(A)===-1&&x.yAxisTitleRotate(A,w.opposite)})),i.annotations.drawAxesAnnotations(),!s.globals.noData){if(s.config.tooltip.enabled&&!s.globals.noData&&i.w.globals.tooltip.drawTooltip(e.xyRatios),s.globals.axisCharts&&(s.globals.isXNumeric||s.config.xaxis.convertedCatToNumeric||s.globals.isRangeBar))(s.config.chart.zoom.enabled||s.config.chart.selection&&s.config.chart.selection.enabled||s.config.chart.pan&&s.config.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:e.xyRatios});else{var v=s.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(w){v[w]=!1})}s.config.chart.toolbar.show&&!s.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}s.globals.memory.methodsToExec.length>0&&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;n<s.length;n++)if(t[n]!==null&&t[n]!==void 0)for(var o=0;o<t[n].data.length;o++)s[n].data.push(t[n].data[o]);return i.w.config.series=s,e&&(i.w.globals.initialSeries=z.clone(i.w.config.series)),this.update()}},{key:"update",value:function(t){var e=this;return new Promise(function(i,s){new to(e.ctx).clear({isUpdating:!0});var n=e.create(e.w.config.series,t);if(!n)return i(e);e.mount(n).then(function(){typeof e.w.config.chart.events.updated=="function"&&e.w.config.chart.events.updated(e,e.w),e.events.fireEvent("updated",[e,e.w]),e.w.globals.isDirty=!0,i(e)}).catch(function(o){s(o)})})}},{key:"getSyncedCharts",value:function(){var t=this.getGroupedCharts(),e=[this];return t.length&&(e=[],t.forEach(function(i){e.push(i)})),e}},{key:"getGroupedCharts",value:function(){var t=this;return Apex._chartInstances.filter(function(e){if(e.group)return!0}).map(function(e){return t.w.config.chart.group===e.group?e.chart:t})}},{key:"toggleSeries",value:function(t){return this.series.toggleSeries(t)}},{key:"highlightSeriesOnLegendHover",value:function(t,e){return this.series.toggleSeriesOnHover(t,e)}},{key:"showSeries",value:function(t){this.series.showSeries(t)}},{key:"hideSeries",value:function(t){this.series.hideSeries(t)}},{key:"isSeriesHidden",value:function(t){this.series.isSeriesHidden(t)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&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;e<t.length;e++)new _(t[e],JSON.parse(t[e].getAttribute("data-options"))).render()}},{key:"exec",value:function(t,e){var i=this.getChartByID(t);if(i){i.w.globals.isExecCalled=!0;var s=null;if(i.publicMethods.indexOf(e)!==-1){for(var n=arguments.length,o=new Array(n>2?n-2:0),l=2;l<n;l++)o[l-2]=arguments[l];s=i[e].apply(i,o)}return s}}},{key:"merge",value:function(t,e){return z.extend(t,e)}}]),_}();a.exports=Zh})(Yr,Yr.exports);var yf=Yr.exports;const Fo=vf(yf),No=["animationEnd","beforeMount","mounted","updated","click","mouseMove","mouseLeave","legendClick","markerClick","selection","dataPointSelection","dataPointMouseEnter","dataPointMouseLeave","beforeZoom","beforeResetZoom","zoomed","scrolled","brushScrolled"],Rs=dc({name:"apexchart",props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0},width:{default:"100%"},height:{default:"auto"}},emits:No,setup(a,{emit:r}){const c=we(null),d=we(null),m=bt=>bt&&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<arguments.length;ee++){let Dt=arguments[ee];if(Dt!=null)for(let Rt in Dt)Dt.hasOwnProperty(Rt)&&(_e[Rt]=Dt[Rt])}return _e}}();let pe=Object.assign({},bt);return m(bt)&&m(It)&&Object.keys(It).forEach(Ot=>{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;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Xo(Object(c),!0).forEach(function(d){he(a,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):Xo(Object(c)).forEach(function(d){Object.defineProperty(a,d,Object.getOwnPropertyDescriptor(c,d))})}return a}function Fs(a){"@babel/helpers - typeof";return Fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fs(a)}function kf(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function Af(a,r){for(var c=0;c<r.length;c++){var d=r[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}function Sf(a,r,c){return r&&Af(a.prototype,r),Object.defineProperty(a,"prototype",{writable:!1}),a}function he(a,r,c){return r in a?Object.defineProperty(a,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[r]=c,a}function Ln(a,r){return Pf(a)||_f(a,r)||Rc(a,r)||Tf()}function Da(a){return Cf(a)||Lf(a)||Rc(a)||Ef()}function Cf(a){if(Array.isArray(a))return Hr(a)}function Pf(a){if(Array.isArray(a))return a}function Lf(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function _f(a,r){var c=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(c!=null){var d=[],m=!0,y=!1,S,P;try{for(c=c.call(a);!(m=(S=c.next()).done)&&(d.push(S.value),!(r&&d.length===r));m=!0);}catch(I){y=!0,P=I}finally{try{!m&&c.return!=null&&c.return()}finally{if(y)throw P}}return d}}function Rc(a,r){if(a){if(typeof a=="string")return Hr(a,r);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Hr(a,r)}}function Hr(a,r){(r==null||r>a.length)&&(r=a.length);for(var c=0,d=new Array(r);c<r;c++)d[c]=a[c];return d}function Ef(){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 Tf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Yo=function(){},_n={},Fc={},Nc=null,Xc={mark:Yo,measure:Yo};try{typeof window<"u"&&(_n=window),typeof document<"u"&&(Fc=document),typeof MutationObserver<"u"&&(Nc=MutationObserver),typeof performance<"u"&&(Xc=performance)}catch{}var If=_n.navigator||{},Ho=If.userAgent,Do=Ho===void 0?"":Ho,ki=_n,Kt=Fc,Bo=Nc,as=Xc;ki.document;var ci=!!Kt.documentElement&&!!Kt.head&&typeof Kt.addEventListener=="function"&&typeof Kt.createElement=="function",Yc=~Do.indexOf("MSIE")||~Do.indexOf("Trident/"),ss,rs,ns,os,ls,ri="___FONT_AWESOME___",Dr=16,Hc="fa",Dc="svg-inline--fa",Bi="data-fa-i2svg",Br="data-fa-pseudo-element",Mf="data-fa-pseudo-element-pending",En="data-prefix",Tn="data-icon",Wo="fontawesome-i2svg",Of="async",zf=["HTML","HEAD","STYLE","SCRIPT"],Bc=function(){try{return!0}catch{return!1}}(),Zt="classic",re="sharp",In=[Zt,re];function Ba(a){return new Proxy(a,{get:function(c,d){return d in c?c[d]:c[Zt]}})}var Ma=Ba((ss={},he(ss,Zt,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),he(ss,re,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),ss)),Oa=Ba((rs={},he(rs,Zt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),he(rs,re,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),rs)),za=Ba((ns={},he(ns,Zt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),he(ns,re,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),ns)),Rf=Ba((os={},he(os,Zt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),he(os,re,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),os)),Ff=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,Wc="fa-layers-text",Nf=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Xf=Ba((ls={},he(ls,Zt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),he(ls,re,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),ls)),Vc=[1,2,3,4,5,6,7,8,9,10],Yf=Vc.concat([11,12,13,14,15,16,17,18,19,20]),Hf=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ri={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Ra=new Set;Object.keys(Oa[Zt]).map(Ra.add.bind(Ra));Object.keys(Oa[re]).map(Ra.add.bind(Ra));var Df=[].concat(In,Da(Ra),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Ri.GROUP,Ri.SWAP_OPACITY,Ri.PRIMARY,Ri.SECONDARY]).concat(Vc.map(function(a){return"".concat(a,"x")})).concat(Yf.map(function(a){return"w-".concat(a)})),Aa=ki.FontAwesomeConfig||{};function Bf(a){var r=Kt.querySelector("script["+a+"]");if(r)return r.getAttribute(a)}function Wf(a){return a===""?!0:a==="false"?!1:a==="true"?!0:a}if(Kt&&typeof Kt.querySelector=="function"){var Vf=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Vf.forEach(function(a){var r=Ln(a,2),c=r[0],d=r[1],m=Wf(Bf(c));m!=null&&(Aa[d]=m)})}var Gc={styleDefault:"solid",familyDefault:"classic",cssPrefix:Hc,replacementClass:Dc,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Aa.familyPrefix&&(Aa.cssPrefix=Aa.familyPrefix);var aa=ut(ut({},Gc),Aa);aa.autoReplaceSvg||(aa.observeMutations=!1);var xt={};Object.keys(Gc).forEach(function(a){Object.defineProperty(xt,a,{enumerable:!0,set:function(c){aa[a]=c,Sa.forEach(function(d){return d(xt)})},get:function(){return aa[a]}})});Object.defineProperty(xt,"familyPrefix",{enumerable:!0,set:function(r){aa.cssPrefix=r,Sa.forEach(function(c){return c(xt)})},get:function(){return aa.cssPrefix}});ki.FontAwesomeConfig=xt;var Sa=[];function Gf(a){return Sa.push(a),function(){Sa.splice(Sa.indexOf(a),1)}}var gi=Dr,$e={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function jf(a){if(!(!a||!ci)){var r=Kt.createElement("style");r.setAttribute("type","text/css"),r.innerHTML=a;for(var c=Kt.head.childNodes,d=null,m=c.length-1;m>-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,"<").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(""),"</").concat(r,">")}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<S;I++)R=y[I],F=P(F,r[R],R,r);return F};function eg(a){for(var r=[],c=0,d=a.length;c<d;){var m=a.charCodeAt(c++);if(m>=55296&&m<=56319&&c<d){var y=a.charCodeAt(c++);(y&64512)==56320?r.push(((m&1023)<<10)+(y&1023)+65536):(r.push(m),c--)}else r.push(m)}return r}function Wr(a){var r=eg(a);return r.length===1?r[0].toString(16):null}function ig(a,r){var c=a.length,d=a.charCodeAt(r),m;return d>=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;y<d;y++)m[y]=arguments[y];var S=m.reduce(this._pullDefinitions,{});Object.keys(S).forEach(function(P){c.definitions[P]=ut(ut({},c.definitions[P]||{}),S[P]),Vr(P,S[P]);var I=za[Zt][P];I&&Vr(I,S[P]),th()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(c,d){var m=d.prefix&&d.iconName&&d.icon?{0:d}:d;return Object.keys(m).map(function(y){var S=m[y],P=S.prefix,I=S.iconName,R=S.icon,F=R[2];c[P]||(c[P]={}),F.length>0&&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;m<c;m++)d[m-2]=arguments[m];var y=Ki[a]||[];return y.forEach(function(S){r=S.apply(null,[r].concat(d))}),r}function Wi(a){for(var r=arguments.length,c=new Array(r>1?r-1:0),d=1;d<r;d++)c[d-1]=arguments[d];var m=Ki[a]||[];m.forEach(function(y){y.apply(null,c)})}function oi(){var a=arguments[0],r=Array.prototype.slice.call(arguments,1);return ea[a]?ea[a].apply(null,r):void 0}function jr(a){a.prefix==="fa"&&(a.prefix="fas");var r=a.iconName,c=a.prefix||Ai();if(r)return r=Fi(c,r)||r,Go(ih.definitions,c,r)||Go(We.styles,c,r)}var ih=new hg,fg=function(){xt.autoReplaceSvg=!1,xt.observeMutations=!1,Wi("noAuto")},gg={i2svg:function(){var r=arguments.length>0&&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<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?ll(Object(c),!0).forEach(function(d){Se(a,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):ll(Object(c)).forEach(function(d){Object.defineProperty(a,d,Object.getOwnPropertyDescriptor(c,d))})}return a}function ep(a,r){if(typeof a!="object"||!a)return a;var c=a[Symbol.toPrimitive];if(c!==void 0){var d=c.call(a,r||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(a)}function ip(a){var r=ep(a,"string");return typeof r=="symbol"?r:r+""}function Ys(a){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ys(a)}function Se(a,r,c){return r=ip(r),r in a?Object.defineProperty(a,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[r]=c,a}function ap(a,r){if(a==null)return{};var c={};for(var d in a)if(Object.prototype.hasOwnProperty.call(a,d)){if(r.indexOf(d)>=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<y.length;m++)d=y[m],!(r.indexOf(d)>=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;V<et;V++)tt.push(c(at,z[V],Q));else{tt={};for(var St in z)Object.prototype.hasOwnProperty.call(z,St)&&(tt[at(St,Q)]=c(at,z[St],Q))}return tt},d=function(at,z){z=z||{};var Q=z.separator||"_",tt=z.split||/(?=[A-Z])/;return at.split(tt).join(Q)},m=function(at){return pt(at)?at:(at=at.replace(/[\-_\s]+(.)?/g,function(z,Q){return Q?Q.toUpperCase():""}),at.substr(0,1).toLowerCase()+at.substr(1))},y=function(at){var z=m(at);return z.substr(0,1).toUpperCase()+z.substr(1)},S=function(at,z){return d(at,z).toLowerCase()},P=Object.prototype.toString,I=function(at){return typeof at=="function"},R=function(at){return at===Object(at)},F=function(at){return P.call(at)=="[object Array]"},Y=function(at){return P.call(at)=="[object Date]"},B=function(at){return P.call(at)=="[object RegExp]"},q=function(at){return P.call(at)=="[object Boolean]"},pt=function(at){return at=at-0,at===at},ht=function(at,z){var Q=z&&"process"in z?z.process:z;return typeof Q!="function"?at:function(tt,V){return Q(tt,at,V)}},Lt={camelize:m,decamelize:S,pascalize:y,depascalize:S,camelizeKeys:function(at,z){return c(ht(m,z),at)},decamelizeKeys:function(at,z){return c(ht(S,z),at,z)},pascalizeKeys:function(at,z){return c(ht(y,z),at)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};a.exports?a.exports=Lt:r.humps=Lt})(rp)})(lh);var np=lh.exports,op=["class","style"];function lp(a){return a.split(";").map(function(r){return r.trim()}).filter(function(r){return r}).reduce(function(r,c){var d=c.indexOf(":"),m=np.camelize(c.slice(0,d)),y=c.slice(d+1).trim();return r[m]=y,r},{})}function cp(a){return a.split(/\s+/).reduce(function(r,c){return r[c]=!0,r},{})}function ch(a){var r=arguments.length>1&&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('<svg class="stroke-base-100 fill-base-100 col-start-1 row-start-1" xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><path d="M12 1v2M12 21v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M1 12h2M21 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4"></path></svg><svg class="stroke-base-100 fill-base-100 col-start-2 row-start-1" xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>',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<pl.length;a++)pa[pl.charCodeAt(a)]=a;const Ep=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<c;d+=4)y=pa[a.charCodeAt(d)],S=pa[a.charCodeAt(d+1)],P=pa[a.charCodeAt(d+2)],I=pa[a.charCodeAt(d+3)],F[m++]=y<<2|S>>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<c.length;m++){const y=Bn(c[m],r);if(d.push(y),y.type==="error")break}return d};function zp(){return new TransformStream({transform(a,r){_p(a,c=>{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;m<r;m++)c[m]=a[0][d++],d===a[0].length&&(a.shift(),d=0);return a.length&&d<a[0].length&&(a[0]=a[0].slice(d)),c}function Rp(a,r){kr||(kr=new TextDecoder);const c=[];let d=0,m=-1,y=!1;return new TransformStream({transform(S,P){for(c.push(S);;){if(d===0){if(us(c)<1)break;const I=fs(c,1);y=(I[0]&128)===128,m=I[0]&127,m<126?d=3:m===126?d=1:d=2}else if(d===1){if(us(c)<2)break;const I=fs(c,2);m=new DataView(I.buffer,I.byteOffset,I.length).getUint16(0),d=3}else if(d===2){if(us(c)<8)break;const I=fs(c,8),R=new DataView(I.buffer,I.byteOffset,I.length),F=R.getUint32(0);if(F>Math.pow(2,21)-1){P.enqueue(tn);break}m=F*Math.pow(2,32)+R.getUint32(4),d=3}else{if(us(c)<m)break;const I=fs(c,m);P.enqueue(Bn(y?I:kr.decode(I),r)),d=0}if(m===0||m>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<c.length;m++)if(d=c[m],d===r||d.fn===r){c.splice(m,1);break}return c.length===0&&delete this._callbacks["$"+a],this};le.prototype.emit=function(a){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),c=this._callbacks["$"+a],d=1;d<arguments.length;d++)r[d-1]=arguments[d];if(c){c=c.slice(0);for(var d=0,m=c.length;d<m;++d)c[d].apply(this,r)}return this};le.prototype.emitReserved=le.prototype.emit;le.prototype.listeners=function(a){return this._callbacks=this._callbacks||{},this._callbacks["$"+a]||[]};le.prototype.hasListeners=function(a){return!!this.listeners(a).length};const ze=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function kh(a,...r){return r.reduce((c,d)=>(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<m;d++)r=a.charCodeAt(d),r<128?c+=1:r<2048?c+=2:r<55296||r>=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;d<m;d++){let y=c[d].split("=");r[decodeURIComponent(y[0])]=decodeURIComponent(y[1])}return r}class Vp extends Error{constructor(r,c,d){super(r),this.description=c,this.context=d,this.type="TransportError"}}class Wn extends le{constructor(r){super(),this.writable=!1,tr(this,r),this.opts=r,this.query=r.query,this.socket=r.socket}onError(r,c,d){return super.emitReserved("error",new Vp(r,c,d)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const c=Bn(r,this.socket.binaryType);this.onPacket(c)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,c={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(c)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const c=Bp(r);return c.length?"?"+c:""}}const Ah="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),en=64,Gp={};let xl=0,gs=0,ml;function bl(a){let r="";do r=Ah[a%en]+r,a=Math.floor(a/en);while(a>0);return r}function Sh(){const a=bl(+new Date);return a!==ml?(xl=0,ml=a):a+"."+bl(xl++)}for(;gs<en;gs++)Gp[Ah[gs]]=gs;let Ch=!1;try{Ch=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const jp=Ch;function Ph(a){const r=a.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||jp))return new XMLHttpRequest}catch{}if(!r)try{return new ze[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function $p(){}const Up=function(){return new Ph({xdomain:!1}).responseType!=null}();class qp extends Wn{constructor(r){if(super(r),this.polling=!1,typeof location<"u"){const d=location.protocol==="https:";let m=location.port;m||(m=d?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||m!==r.port}const c=r&&r.forceBase64;this.supportsBinary=Up&&!c,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(r){this.readyState="pausing";const c=()=>{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<r.length;c++){const d=r[c],m=c===r.length-1;Dn(d,this.supportsBinary,y=>{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<r.length;c++){const d=r[c],m=c===r.length-1;this.writer.write(d).then(()=>{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<c;r++)this.probe(this.upgrades[r])}}onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),this.resetPingTimeout(),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const c=new Error("server error");c.code=r.data,this.onError(c);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this.upgrades=this.filterUpgrades(r.upgrades),this.pingInterval=r.pingInterval,this.pingTimeout=r.pingTimeout,this.maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{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;d<this.writeBuffer.length;d++){const m=this.writeBuffer[d].data;if(m&&(c+=Hp(m)),d>0&&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(;d<m;d++)~this.transports.indexOf(r[d])&&c.push(r[d]);return c}};Lh.protocol=wh;function sx(a,r="",c){let d=a;c=c||typeof location<"u"&&location,a==null&&(a=c.protocol+"//"+c.host),typeof a=="string"&&(a.charAt(0)==="/"&&(a.charAt(1)==="/"?a=c.protocol+a:a=c.host+a),/^(https?|wss?):\/\//.test(a)||(typeof c<"u"?a=c.protocol+"//"+a:a="https://"+a),d=an(a)),d.port||(/^(http|ws)$/.test(d.protocol)?d.port="80":/^(http|ws)s$/.test(d.protocol)&&(d.port="443")),d.path=d.path||"/";const y=d.host.indexOf(":")!==-1?"["+d.host+"]":d.host;return d.id=d.protocol+"://"+y+":"+d.port+r,d.href=d.protocol+"://"+y+(c&&c.port===d.port?"":":"+d.port),d}const rx=typeof ArrayBuffer=="function",nx=a=>typeof 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<d;c++)if(Cs(a[c]))return!0;return!1}if(Gn(a))return!0;if(a.toJSON&&typeof a.toJSON=="function"&&arguments.length===1)return Cs(a.toJSON(),!0);for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)&&Cs(a[c]))return!0;return!1}function cx(a){const r=[],c=a.data,d=a;return d.data=sn(c,r),d.attachments=r.length,{packet:d,buffers:r}}function sn(a,r){if(!a)return a;if(Gn(a)){const c={_placeholder:!0,num:r.length};return r.push(a),c}else if(Array.isArray(a)){const c=new Array(a.length);for(let d=0;d<a.length;d++)c[d]=sn(a[d],r);return c}else if(typeof a=="object"&&!(a instanceof Date)){const c={};for(const d in a)Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=sn(a[d],r));return c}return a}function hx(a,r){return a.data=rn(a.data,r),delete a.attachments,a}function rn(a,r){if(!a)return a;if(a&&a._placeholder===!0){if(typeof a.num=="number"&&a.num>=0&&a.num<r.length)return r[a.num];throw new Error("illegal attachments")}else if(Array.isArray(a))for(let c=0;c<a.length;c++)a[c]=rn(a[c],r);else if(typeof a=="object")for(const c in a)Object.prototype.hasOwnProperty.call(a,c)&&(a[c]=rn(a[c],r));return a}const dx=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ux=5;var Nt;(function(a){a[a.CONNECT=0]="CONNECT",a[a.DISCONNECT=1]="DISCONNECT",a[a.EVENT=2]="EVENT",a[a.ACK=3]="ACK",a[a.CONNECT_ERROR=4]="CONNECT_ERROR",a[a.BINARY_EVENT=5]="BINARY_EVENT",a[a.BINARY_ACK=6]="BINARY_ACK"})(Nt||(Nt={}));class fx{constructor(r){this.replacer=r}encode(r){return(r.type===Nt.EVENT||r.type===Nt.ACK)&&Cs(r)?this.encodeAsBinary({type:r.type===Nt.EVENT?Nt.BINARY_EVENT:Nt.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let c=""+r.type;return(r.type===Nt.BINARY_EVENT||r.type===Nt.BINARY_ACK)&&(c+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(c+=r.nsp+","),r.id!=null&&(c+=r.id),r.data!=null&&(c+=JSON.stringify(r.data,this.replacer)),c}encodeAsBinary(r){const c=cx(r),d=this.encodeAsString(c.packet),m=c.buffers;return m.unshift(d),m}}function kl(a){return Object.prototype.toString.call(a)==="[object Object]"}class jn extends le{constructor(r){super(),this.reviver=r}add(r){let c;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");c=this.decodeString(r);const d=c.type===Nt.BINARY_EVENT;d||c.type===Nt.BINARY_ACK?(c.type=d?Nt.EVENT:Nt.ACK,this.reconstructor=new gx(c),c.attachments===0&&super.emitReserved("decoded",c)):super.emitReserved("decoded",c)}else if(Gn(r)||r.base64)if(this.reconstructor)c=this.reconstructor.takeBinaryData(r),c&&(this.reconstructor=null,super.emitReserved("decoded",c));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let c=0;const d={type:Number(r.charAt(0))};if(Nt[d.type]===void 0)throw new Error("unknown packet type "+d.type);if(d.type===Nt.BINARY_EVENT||d.type===Nt.BINARY_ACK){const y=c+1;for(;r.charAt(++c)!=="-"&&c!=r.length;);const S=r.substring(y,c);if(S!=Number(S)||r.charAt(c)!=="-")throw new Error("Illegal attachments");d.attachments=Number(S)}if(r.charAt(c+1)==="/"){const y=c+1;for(;++c&&!(r.charAt(c)===","||c===r.length););d.nsp=r.substring(y,c)}else d.nsp="/";const m=r.charAt(c+1);if(m!==""&&Number(m)==m){const y=c+1;for(;++c;){const S=r.charAt(c);if(S==null||Number(S)!=S){--c;break}if(c===r.length)break}d.id=Number(r.substring(y,c+1))}if(r.charAt(++c)){const y=this.tryParse(r.substr(c));if(jn.isPayloadValid(d.type,y))d.data=y;else throw new Error("invalid payload")}return d}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,c){switch(r){case Nt.CONNECT:return kl(c);case Nt.DISCONNECT:return c===void 0;case Nt.CONNECT_ERROR:return typeof c=="string"||kl(c);case Nt.EVENT:case Nt.BINARY_EVENT:return Array.isArray(c)&&(typeof c[0]=="number"||typeof c[0]=="string"&&dx.indexOf(c[0])===-1);case Nt.ACK:case Nt.BINARY_ACK:return Array.isArray(c)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class gx{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const c=hx(this.reconPack,this.buffers);return this.finishedReconstruction(),c}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const px=Object.freeze(Object.defineProperty({__proto__:null,Decoder:jn,Encoder:fx,get PacketType(){return Nt},protocol:ux},Symbol.toStringTag,{value:"Module"}));function De(a,r,c){return a.on(r,c),function(){a.off(r,c)}}const xx=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Eh extends le{constructor(r,c,d){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=r,this.nsp=c,d&&d.auth&&(this.auth=d.auth),this._opts=Object.assign({},d),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[De(r,"open",this.onopen.bind(this)),De(r,"packet",this.onpacket.bind(this)),De(r,"error",this.onerror.bind(this)),De(r,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...c){if(xx.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(c.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const d={type:Nt.EVENT,data:c};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const S=this.ids++,P=c.pop();this._registerAckCallback(S,P),d.id=S}const m=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!m||!this.connected)||(this.connected?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(r,c){var d;const m=(d=this.flags.timeout)!==null&&d!==void 0?d:this._opts.ackTimeout;if(m===void 0){this.acks[r]=c;return}const y=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let P=0;P<this.sendBuffer.length;P++)this.sendBuffer[P].id===r&&this.sendBuffer.splice(P,1);c.call(this,new Error("operation has timed out"))},m),S=(...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;d<c.length;d++)if(r===c[d])return c.splice(d,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const c=this._anyOutgoingListeners;for(let d=0;d<c.length;d++)if(r===c[d])return c.splice(d,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const d of c)d.apply(this,r.data)}}}function oa(a){a=a||{},this.ms=a.min||100,this.max=a.max||1e4,this.factor=a.factor||2,this.jitter=a.jitter>0&&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;d<c.length;d++)this.engine.write(c[d],r.options)}cleanup(){this.subs.forEach(r=>r()),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<I.length;q++){const pt=I[q];if(B<=pt)return Yi.value?R[q]:F[q]}}return(B,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.email<F.email?-1:R.email>F.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.email<R.email?-1:I.email>R.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.email<m.email?-1:d.email>m.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");
|