SkillAegis/dist/assets/index-BbC5Fp4k.js
2024-07-09 13:22:06 +02:00

1480 lines
709 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.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 Zr(s,n){const c=new Set(s.split(","));return d=>c.has(d)}const Vt={},qi=[],Me=()=>{},Mh=()=>!1,Es=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&(s.charCodeAt(2)>122||s.charCodeAt(2)<97),Kr=s=>s.startsWith("onUpdate:"),he=Object.assign,Jr=(s,n)=>{const c=s.indexOf(n);c>-1&&s.splice(c,1)},Oh=Object.prototype.hasOwnProperty,Nt=(s,n)=>Oh.call(s,n),wt=Array.isArray,Zi=s=>Ts(s)==="[object Map]",xl=s=>Ts(s)==="[object Set]",St=s=>typeof s=="function",le=s=>typeof s=="string",Hi=s=>typeof s=="symbol",qt=s=>s!==null&&typeof s=="object",ml=s=>(qt(s)||St(s))&&St(s.then)&&St(s.catch),bl=Object.prototype.toString,Ts=s=>bl.call(s),Rh=s=>Ts(s).slice(8,-1),vl=s=>Ts(s)==="[object Object]",Qr=s=>le(s)&&s!=="NaN"&&s[0]!=="-"&&""+parseInt(s,10)===s,ua=Zr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_s=s=>{const n=Object.create(null);return c=>n[c]||(n[c]=s(c))},zh=/-(\w)/g,Ue=_s(s=>s.replace(zh,(n,c)=>c?c.toUpperCase():"")),Fh=/\B([A-Z])/g,ea=_s(s=>s.replace(Fh,"-$1").toLowerCase()),Is=_s(s=>s.charAt(0).toUpperCase()+s.slice(1)),Ks=_s(s=>s?`on${Is(s)}`:""),bi=(s,n)=>!Object.is(s,n),Js=(s,...n)=>{for(let c=0;c<s.length;c++)s[c](...n)},yl=(s,n,c,d=!1)=>{Object.defineProperty(s,n,{configurable:!0,enumerable:!1,writable:d,value:c})},Nh=s=>{const n=parseFloat(s);return isNaN(n)?s:n};let Dn;const wl=()=>Dn||(Dn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ms(s){if(wt(s)){const n={};for(let c=0;c<s.length;c++){const d=s[c],m=le(d)?Hh(d):Ms(d);if(m)for(const y in m)n[y]=m[y]}return n}else if(le(s)||qt(s))return s}const Xh=/;(?![^(]*\))/g,Yh=/:([^]+)/,Dh=/\/\*[^]*?\*\//g;function Hh(s){const n={};return s.replace(Dh,"").split(Xh).forEach(c=>{if(c){const d=c.split(Yh);d.length>1&&(n[d[0].trim()]=d[1].trim())}}),n}function ie(s){let n="";if(le(s))n=s;else if(wt(s))for(let c=0;c<s.length;c++){const d=ie(s[c]);d&&(n+=d+" ")}else if(qt(s))for(const c in s)s[c]&&(n+=c+" ");return n.trim()}const Bh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Wh=Zr(Bh);function kl(s){return!!s||s===""}const Wt=s=>le(s)?s:s==null?"":wt(s)||qt(s)&&(s.toString===bl||!St(s.toString))?JSON.stringify(s,Al,2):String(s),Al=(s,n)=>n&&n.__v_isRef?Al(s,n.value):Zi(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((c,[d,m],y)=>(c[Qs(d,y)+" =>"]=m,c),{})}:xl(n)?{[`Set(${n.size})`]:[...n.values()].map(c=>Qs(c))}:Hi(n)?Qs(n):qt(n)&&!wt(n)&&!vl(n)?String(n):n,Qs=(s,n="")=>{var c;return Hi(s)?`Symbol(${(c=s.description)!=null?c:n})`:s};/**
* @vue/reactivity v3.4.29
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Fe;class Vh{constructor(n=!1){this.detached=n,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Fe,!n&&Fe&&(this.index=(Fe.scopes||(Fe.scopes=[])).push(this)-1)}get active(){return this._active}run(n){if(this._active){const c=Fe;try{return Fe=this,n()}finally{Fe=c}}}on(){Fe=this}off(){Fe=this.parent}stop(n){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&&!n){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 Gh(s,n=Fe){n&&n.active&&n.effects.push(s)}function jh(){return Fe}let zi;class tn{constructor(n,c,d,m){this.fn=n,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,Gh(this,m)}get dirty(){if(this._dirtyLevel===2)return!1;if(this._dirtyLevel===3||this._dirtyLevel===4){this._dirtyLevel=1,ki();for(let n=0;n<this._depsLength;n++){const c=this.deps[n];if(c.computed){if(c.computed.effect._dirtyLevel===2)return!0;if(Uh(c.computed),this._dirtyLevel>=5)break}}this._dirtyLevel===1&&(this._dirtyLevel=0),Ai()}return this._dirtyLevel>=5}set dirty(n){this._dirtyLevel=n?5:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let n=xi,c=zi;try{return xi=!0,zi=this,this._runnings++,Hn(this),this.fn()}finally{Bn(this),this._runnings--,zi=c,xi=n}}stop(){this.active&&(Hn(this),Bn(this),this.onStop&&this.onStop(),this.active=!1)}}function Uh(s){return s.value}function Hn(s){s._trackId++,s._depsLength=0}function Bn(s){if(s.deps.length>s._depsLength){for(let n=s._depsLength;n<s.deps.length;n++)Sl(s.deps[n],s);s.deps.length=s._depsLength}}function Sl(s,n){const c=s.get(n);c!==void 0&&n._trackId!==c&&(s.delete(n),s.size===0&&s.cleanup())}let xi=!0,mr=0;const Cl=[];function ki(){Cl.push(xi),xi=!1}function Ai(){const s=Cl.pop();xi=s===void 0?!0:s}function en(){mr++}function an(){for(mr--;!mr&&br.length;)br.shift()()}function Pl(s,n,c){if(n.get(s)!==s._trackId){n.set(s,s._trackId);const d=s.deps[s._depsLength];d!==n?(d&&Sl(d,s),s.deps[s._depsLength++]=n):s._depsLength++}}const br=[];function Ll(s,n,c){en();for(const d of s.keys()){if(!s.computed&&d.computed&&s.get(d)===d._trackId&&d._runnings>0){d._dirtyLevel=2;continue}let m;d._dirtyLevel<n&&(m??(m=s.get(d)===d._trackId))&&(d._shouldSchedule||(d._shouldSchedule=d._dirtyLevel===0),d.computed&&d._dirtyLevel===2&&(d._shouldSchedule=!0),d._dirtyLevel=n),d._shouldSchedule&&(m??(m=s.get(d)===d._trackId))&&(d.trigger(),(!d._runnings||d.allowRecurse)&&d._dirtyLevel!==3&&(d._shouldSchedule=!1,d.scheduler&&br.push(d.scheduler)))}an()}const El=(s,n)=>{const c=new Map;return c.cleanup=s,c.computed=n,c},ms=new WeakMap,Fi=Symbol(""),vr=Symbol("");function Ce(s,n,c){if(xi&&zi){let d=ms.get(s);d||ms.set(s,d=new Map);let m=d.get(c);m||d.set(c,m=El(()=>d.delete(c))),Pl(zi,m)}}function ii(s,n,c,d,m,y){const S=ms.get(s);if(!S)return;let L=[];if(n==="clear")L=[...S.values()];else if(c==="length"&&wt(s)){const I=Number(d);S.forEach((F,z)=>{(z==="length"||!Hi(z)&&z>=I)&&L.push(F)})}else switch(c!==void 0&&L.push(S.get(c)),n){case"add":wt(s)?Qr(c)&&L.push(S.get("length")):(L.push(S.get(Fi)),Zi(s)&&L.push(S.get(vr)));break;case"delete":wt(s)||(L.push(S.get(Fi)),Zi(s)&&L.push(S.get(vr)));break;case"set":Zi(s)&&L.push(S.get(Fi));break}en();for(const I of L)I&&Ll(I,5);an()}function $h(s,n){const c=ms.get(s);return c&&c.get(n)}const qh=Zr("__proto__,__v_isRef,__isVue"),Tl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(Hi)),Wn=Zh();function Zh(){const s={};return["includes","indexOf","lastIndexOf"].forEach(n=>{s[n]=function(...c){const d=Yt(this);for(let y=0,S=this.length;y<S;y++)Ce(d,"get",y+"");const m=d[n](...c);return m===-1||m===!1?d[n](...c.map(Yt)):m}}),["push","pop","shift","unshift","splice"].forEach(n=>{s[n]=function(...c){ki(),en();const d=Yt(this)[n].apply(this,c);return an(),Ai(),d}}),s}function Kh(s){Hi(s)||(s=String(s));const n=Yt(this);return Ce(n,"has",s),n.hasOwnProperty(s)}class _l{constructor(n=!1,c=!1){this._isReadonly=n,this._isShallow=c}get(n,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?hd:Rl:y?Ol:Ml).get(n)||Object.getPrototypeOf(n)===Object.getPrototypeOf(d)?n:void 0;const S=wt(n);if(!m){if(S&&Nt(Wn,c))return Reflect.get(Wn,c,d);if(c==="hasOwnProperty")return Kh}const L=Reflect.get(n,c,d);return(Hi(c)?Tl.has(c):qh(c))||(m||Ce(n,"get",c),y)?L:ve(L)?S&&Qr(c)?L:L.value:qt(L)?m?zl(L):Ta(L):L}}class Il extends _l{constructor(n=!1){super(!1,n)}set(n,c,d,m){let y=n[c];if(!this._isShallow){const I=va(y);if(!bs(d)&&!va(d)&&(y=Yt(y),d=Yt(d)),!wt(n)&&ve(y)&&!ve(d))return I?!1:(y.value=d,!0)}const S=wt(n)&&Qr(c)?Number(c)<n.length:Nt(n,c),L=Reflect.set(n,c,d,m);return n===Yt(m)&&(S?bi(d,y)&&ii(n,"set",c,d):ii(n,"add",c,d)),L}deleteProperty(n,c){const d=Nt(n,c);n[c];const m=Reflect.deleteProperty(n,c);return m&&d&&ii(n,"delete",c,void 0),m}has(n,c){const d=Reflect.has(n,c);return(!Hi(c)||!Tl.has(c))&&Ce(n,"has",c),d}ownKeys(n){return Ce(n,"iterate",wt(n)?"length":Fi),Reflect.ownKeys(n)}}class Jh extends _l{constructor(n=!1){super(!0,n)}set(n,c){return!0}deleteProperty(n,c){return!0}}const Qh=new Il,td=new Jh,ed=new Il(!0);const sn=s=>s,Os=s=>Reflect.getPrototypeOf(s);function Da(s,n,c=!1,d=!1){s=s.__v_raw;const m=Yt(s),y=Yt(n);c||(bi(n,y)&&Ce(m,"get",n),Ce(m,"get",y));const{has:S}=Os(m),L=d?sn:c?on:ya;if(S.call(m,n))return L(s.get(n));if(S.call(m,y))return L(s.get(y));s!==m&&s.get(n)}function Ha(s,n=!1){const c=this.__v_raw,d=Yt(c),m=Yt(s);return n||(bi(s,m)&&Ce(d,"has",s),Ce(d,"has",m)),s===m?c.has(s):c.has(s)||c.has(m)}function Ba(s,n=!1){return s=s.__v_raw,!n&&Ce(Yt(s),"iterate",Fi),Reflect.get(s,"size",s)}function Vn(s){s=Yt(s);const n=Yt(this);return Os(n).has.call(n,s)||(n.add(s),ii(n,"add",s,s)),this}function Gn(s,n){n=Yt(n);const c=Yt(this),{has:d,get:m}=Os(c);let y=d.call(c,s);y||(s=Yt(s),y=d.call(c,s));const S=m.call(c,s);return c.set(s,n),y?bi(n,S)&&ii(c,"set",s,n):ii(c,"add",s,n),this}function jn(s){const n=Yt(this),{has:c,get:d}=Os(n);let m=c.call(n,s);m||(s=Yt(s),m=c.call(n,s)),d&&d.call(n,s);const y=n.delete(s);return m&&ii(n,"delete",s,void 0),y}function Un(){const s=Yt(this),n=s.size!==0,c=s.clear();return n&&ii(s,"clear",void 0,void 0),c}function Wa(s,n){return function(d,m){const y=this,S=y.__v_raw,L=Yt(S),I=n?sn:s?on:ya;return!s&&Ce(L,"iterate",Fi),S.forEach((F,z)=>d.call(m,I(F),I(z),y))}}function Va(s,n,c){return function(...d){const m=this.__v_raw,y=Yt(m),S=Zi(y),L=s==="entries"||s===Symbol.iterator&&S,I=s==="keys"&&S,F=m[s](...d),z=c?sn:n?on:ya;return!n&&Ce(y,"iterate",I?vr:Fi),{next(){const{value:H,done:G}=F.next();return G?{value:H,done:G}:{value:L?[z(H[0]),z(H[1])]:z(H),done:G}},[Symbol.iterator](){return this}}}}function di(s){return function(...n){return s==="delete"?!1:s==="clear"?void 0:this}}function id(){const s={get(y){return Da(this,y)},get size(){return Ba(this)},has:Ha,add:Vn,set:Gn,delete:jn,clear:Un,forEach:Wa(!1,!1)},n={get(y){return Da(this,y,!1,!0)},get size(){return Ba(this)},has:Ha,add:Vn,set:Gn,delete:jn,clear:Un,forEach:Wa(!1,!0)},c={get(y){return Da(this,y,!0)},get size(){return Ba(this,!0)},has(y){return Ha.call(this,y,!0)},add:di("add"),set:di("set"),delete:di("delete"),clear:di("clear"),forEach:Wa(!0,!1)},d={get(y){return Da(this,y,!0,!0)},get size(){return Ba(this,!0)},has(y){return Ha.call(this,y,!0)},add:di("add"),set:di("set"),delete:di("delete"),clear:di("clear"),forEach:Wa(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(y=>{s[y]=Va(y,!1,!1),c[y]=Va(y,!0,!1),n[y]=Va(y,!1,!0),d[y]=Va(y,!0,!0)}),[s,c,n,d]}const[ad,sd,rd,nd]=id();function rn(s,n){const c=n?s?nd:rd:s?sd:ad;return(d,m,y)=>m==="__v_isReactive"?!s:m==="__v_isReadonly"?s:m==="__v_raw"?d:Reflect.get(Nt(c,m)&&m in d?c:d,m,y)}const od={get:rn(!1,!1)},ld={get:rn(!1,!0)},cd={get:rn(!0,!1)};const Ml=new WeakMap,Ol=new WeakMap,Rl=new WeakMap,hd=new WeakMap;function dd(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ud(s){return s.__v_skip||!Object.isExtensible(s)?0:dd(Rh(s))}function Ta(s){return va(s)?s:nn(s,!1,Qh,od,Ml)}function fd(s){return nn(s,!1,ed,ld,Ol)}function zl(s){return nn(s,!0,td,cd,Rl)}function nn(s,n,c,d,m){if(!qt(s)||s.__v_raw&&!(n&&s.__v_isReactive))return s;const y=m.get(s);if(y)return y;const S=ud(s);if(S===0)return s;const L=new Proxy(s,S===2?d:c);return m.set(s,L),L}function fa(s){return va(s)?fa(s.__v_raw):!!(s&&s.__v_isReactive)}function va(s){return!!(s&&s.__v_isReadonly)}function bs(s){return!!(s&&s.__v_isShallow)}function Fl(s){return s?!!s.__v_raw:!1}function Yt(s){const n=s&&s.__v_raw;return n?Yt(n):s}function gd(s){return Object.isExtensible(s)&&yl(s,"__v_skip",!0),s}const ya=s=>qt(s)?Ta(s):s,on=s=>qt(s)?zl(s):s;class Nl{constructor(n,c,d,m){this.getter=n,this._setter=c,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new tn(()=>n(this._value),()=>ns(this,this.effect._dirtyLevel===3?3:4)),this.effect.computed=this,this.effect.active=this._cacheable=!m,this.__v_isReadonly=d}get value(){const n=Yt(this);return(!n._cacheable||n.effect.dirty)&&bi(n._value,n._value=n.effect.run())&&ns(n,5),Xl(n),n.effect._dirtyLevel>=2&&ns(n,3),n._value}set value(n){this._setter(n)}get _dirty(){return this.effect.dirty}set _dirty(n){this.effect.dirty=n}}function pd(s,n,c=!1){let d,m;const y=St(s);return y?(d=s,m=Me):(d=s.get,m=s.set),new Nl(d,m,y||!m,c)}function Xl(s){var n;xi&&zi&&(s=Yt(s),Pl(zi,(n=s.dep)!=null?n:s.dep=El(()=>s.dep=void 0,s instanceof Nl?s:void 0)))}function ns(s,n=5,c,d){s=Yt(s);const m=s.dep;m&&Ll(m,n)}function ve(s){return!!(s&&s.__v_isRef===!0)}function He(s){return xd(s,!1)}function xd(s,n){return ve(s)?s:new md(s,n)}class md{constructor(n,c){this.__v_isShallow=c,this.dep=void 0,this.__v_isRef=!0,this._rawValue=c?n:Yt(n),this._value=c?n:ya(n)}get value(){return Xl(this),this._value}set value(n){const c=this.__v_isShallow||bs(n)||va(n);n=c?n:Yt(n),bi(n,this._rawValue)&&(this._rawValue,this._rawValue=n,this._value=c?n:ya(n),ns(this,5))}}function dt(s){return ve(s)?s.value:s}const bd={get:(s,n,c)=>dt(Reflect.get(s,n,c)),set:(s,n,c,d)=>{const m=s[n];return ve(m)&&!ve(c)?(m.value=c,!0):Reflect.set(s,n,c,d)}};function Yl(s){return fa(s)?s:new Proxy(s,bd)}function vd(s){const n=wt(s)?new Array(s.length):{};for(const c in s)n[c]=wd(s,c);return n}class yd{constructor(n,c,d){this._object=n,this._key=c,this._defaultValue=d,this.__v_isRef=!0}get value(){const n=this._object[this._key];return n===void 0?this._defaultValue:n}set value(n){this._object[this._key]=n}get dep(){return $h(Yt(this._object),this._key)}}function wd(s,n,c){const d=s[n];return ve(d)?d:new yd(s,n,c)}/**
* @vue/runtime-core v3.4.29
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function mi(s,n,c,d){try{return d?s(...d):s()}catch(m){Rs(m,n,c)}}function De(s,n,c,d){if(St(s)){const m=mi(s,n,c,d);return m&&ml(m)&&m.catch(y=>{Rs(y,n,c)}),m}if(wt(s)){const m=[];for(let y=0;y<s.length;y++)m.push(De(s[y],n,c,d));return m}}function Rs(s,n,c,d=!0){const m=n?n.vnode:null;if(n){let y=n.parent;const S=n.proxy,L=`https://vuejs.org/error-reference/#runtime-${c}`;for(;y;){const F=y.ec;if(F){for(let z=0;z<F.length;z++)if(F[z](s,S,L)===!1)return}y=y.parent}const I=n.appContext.config.errorHandler;if(I){ki(),mi(I,null,10,[s,S,L]),Ai();return}}kd(s,c,m,d)}function kd(s,n,c,d=!0){console.error(s)}let wa=!1,yr=!1;const xe=[];let Ve=0;const Ki=[];let fi=null,Ii=0;const Dl=Promise.resolve();let ln=null;function Hl(s){const n=ln||Dl;return s?n.then(this?s.bind(this):s):n}function Ad(s){let n=Ve+1,c=xe.length;for(;n<c;){const d=n+c>>>1,m=xe[d],y=ka(m);y<s||y===s&&m.pre?n=d+1:c=d}return n}function cn(s){(!xe.length||!xe.includes(s,wa&&s.allowRecurse?Ve+1:Ve))&&(s.id==null?xe.push(s):xe.splice(Ad(s.id),0,s),Bl())}function Bl(){!wa&&!yr&&(yr=!0,ln=Dl.then(Vl))}function Sd(s){const n=xe.indexOf(s);n>Ve&&xe.splice(n,1)}function Cd(s){wt(s)?Ki.push(...s):(!fi||!fi.includes(s,s.allowRecurse?Ii+1:Ii))&&Ki.push(s),Bl()}function $n(s,n,c=wa?Ve+1:0){for(;c<xe.length;c++){const d=xe[c];if(d&&d.pre){if(s&&d.id!==s.uid)continue;xe.splice(c,1),c--,d()}}}function Wl(s){if(Ki.length){const n=[...new Set(Ki)].sort((c,d)=>ka(c)-ka(d));if(Ki.length=0,fi){fi.push(...n);return}for(fi=n,Ii=0;Ii<fi.length;Ii++){const c=fi[Ii];c.active!==!1&&c()}fi=null,Ii=0}}const ka=s=>s.id==null?1/0:s.id,Pd=(s,n)=>{const c=ka(s)-ka(n);if(c===0){if(s.pre&&!n.pre)return-1;if(n.pre&&!s.pre)return 1}return c};function Vl(s){yr=!1,wa=!0,xe.sort(Pd);try{for(Ve=0;Ve<xe.length;Ve++){const n=xe[Ve];n&&n.active!==!1&&mi(n,null,14)}}finally{Ve=0,xe.length=0,Wl(),wa=!1,ln=null,(xe.length||Ki.length)&&Vl()}}function Ld(s,n,...c){if(s.isUnmounted)return;const d=s.vnode.props||Vt;let m=c;const y=n.startsWith("update:"),S=y&&n.slice(7);if(S&&S in d){const z=`${S==="modelValue"?"model":S}Modifiers`,{number:H,trim:G}=d[z]||Vt;G&&(m=c.map(J=>le(J)?J.trim():J)),H&&(m=c.map(Nh))}let L,I=d[L=Ks(n)]||d[L=Ks(Ue(n))];!I&&y&&(I=d[L=Ks(ea(n))]),I&&De(I,s,6,m);const F=d[L+"Once"];if(F){if(!s.emitted)s.emitted={};else if(s.emitted[L])return;s.emitted[L]=!0,De(F,s,6,m)}}function Gl(s,n,c=!1){const d=n.emitsCache,m=d.get(s);if(m!==void 0)return m;const y=s.emits;let S={},L=!1;if(!St(s)){const I=F=>{const z=Gl(F,n,!0);z&&(L=!0,he(S,z))};!c&&n.mixins.length&&n.mixins.forEach(I),s.extends&&I(s.extends),s.mixins&&s.mixins.forEach(I)}return!y&&!L?(qt(s)&&d.set(s,null),null):(wt(y)?y.forEach(I=>S[I]=null):he(S,y),qt(s)&&d.set(s,S),S)}function zs(s,n){return!s||!Es(n)?!1:(n=n.slice(2).replace(/Once$/,""),Nt(s,n[0].toLowerCase()+n.slice(1))||Nt(s,ea(n))||Nt(s,n))}let Se=null,jl=null;function vs(s){const n=Se;return Se=s,jl=s&&s.type.__scopeId||null,n}function Ul(s,n=Se,c){if(!n||s._n)return s;const d=(...m)=>{d._d&&oo(-1);const y=vs(n);let S;try{S=s(...m)}finally{vs(y),d._d&&oo(1)}return S};return d._n=!0,d._c=!0,d._d=!0,d}function tr(s){const{type:n,vnode:c,proxy:d,withProxy:m,propsOptions:[y],slots:S,attrs:L,emit:I,render:F,renderCache:z,props:H,data:G,setupState:J,ctx:bt,inheritAttrs:lt}=s,Ot=vs(s);let et,R;try{if(c.shapeFlag&4){const ut=m||d,W=ut;et=We(F.call(W,ut,z,H,J,G,bt)),R=L}else{const ut=n;et=We(ut.length>1?ut(H,{attrs:L,slots:S,emit:I}):ut(H,null)),R=n.props?L:Ed(L)}}catch(ut){xa.length=0,Rs(ut,s,1),et=It(Ni)}let ct=et;if(R&&lt!==!1){const ut=Object.keys(R),{shapeFlag:W}=ct;ut.length&&W&7&&(y&&ut.some(Kr)&&(R=Td(R,y)),ct=Qi(ct,R,!1,!0))}return c.dirs&&(ct=Qi(ct,null,!1,!0),ct.dirs=ct.dirs?ct.dirs.concat(c.dirs):c.dirs),c.transition&&(ct.transition=c.transition),et=ct,vs(Ot),et}const Ed=s=>{let n;for(const c in s)(c==="class"||c==="style"||Es(c))&&((n||(n={}))[c]=s[c]);return n},Td=(s,n)=>{const c={};for(const d in s)(!Kr(d)||!(d.slice(9)in n))&&(c[d]=s[d]);return c};function _d(s,n,c){const{props:d,children:m,component:y}=s,{props:S,children:L,patchFlag:I}=n,F=y.emitsOptions;if(n.dirs||n.transition)return!0;if(c&&I>=0){if(I&1024)return!0;if(I&16)return d?qn(d,S,F):!!S;if(I&8){const z=n.dynamicProps;for(let H=0;H<z.length;H++){const G=z[H];if(S[G]!==d[G]&&!zs(F,G))return!0}}}else return(m||L)&&(!L||!L.$stable)?!0:d===S?!1:d?S?qn(d,S,F):!0:!!S;return!1}function qn(s,n,c){const d=Object.keys(n);if(d.length!==Object.keys(s).length)return!0;for(let m=0;m<d.length;m++){const y=d[m];if(n[y]!==s[y]&&!zs(c,y))return!0}return!1}function Id({vnode:s,parent:n},c){for(;n;){const d=n.subTree;if(d.suspense&&d.suspense.activeBranch===s&&(d.el=s.el),d===s)(s=n.vnode).el=c,n=n.parent;else break}}const Md="components";function $l(s,n){return Rd(Md,s,!0,n)||s}const Od=Symbol.for("v-ndc");function Rd(s,n,c=!0,d=!1){const m=Se||fe;if(m){const y=m.type;{const L=Lu(y,!1);if(L&&(L===n||L===Ue(n)||L===Is(Ue(n))))return y}const S=Zn(m[s]||y[s],n)||Zn(m.appContext[s],n);return!S&&d?y:S}}function Zn(s,n){return s&&(s[n]||s[Ue(n)]||s[Is(Ue(n))])}const zd=s=>s.__isSuspense;function Fd(s,n){n&&n.pendingBranch?wt(s)?n.effects.push(...s):n.effects.push(s):Cd(s)}function Fs(s,n,c=fe,d=!1){if(c){const m=c[s]||(c[s]=[]),y=n.__weh||(n.__weh=(...S)=>{ki();const L=Ia(c),I=De(n,c,s,S);return L(),Ai(),I});return d?m.unshift(y):m.push(y),y}}const ni=s=>(n,c=fe)=>{(!Xs||s==="sp")&&Fs(s,(...d)=>n(...d),c)},ql=ni("bm"),_a=ni("m"),Nd=ni("bu"),Xd=ni("u"),Zl=ni("bum"),Kl=ni("um"),Yd=ni("sp"),Dd=ni("rtg"),Hd=ni("rtc");function Bd(s,n=fe){Fs("ec",s,n)}function Kn(s,n){if(Se===null)return s;const c=Ys(Se),d=s.dirs||(s.dirs=[]);for(let m=0;m<n.length;m++){let[y,S,L,I=Vt]=n[m];y&&(St(y)&&(y={mounted:y,updated:y}),y.deep&&pi(S),d.push({dir:y,instance:c,value:S,oldValue:void 0,arg:L,modifiers:I}))}return s}function Ti(s,n,c,d){const m=s.dirs,y=n&&n.dirs;for(let S=0;S<m.length;S++){const L=m[S];y&&(L.oldValue=y[S].value);let I=L.dir[d];I&&(ki(),De(I,c,8,[s.el,L,s,n]),Ai())}}function Mi(s,n,c,d){let m;const y=c;if(wt(s)||le(s)){m=new Array(s.length);for(let S=0,L=s.length;S<L;S++)m[S]=n(s[S],S,void 0,y)}else if(typeof s=="number"){m=new Array(s);for(let S=0;S<s;S++)m[S]=n(S+1,S,void 0,y)}else if(qt(s))if(s[Symbol.iterator])m=Array.from(s,(S,L)=>n(S,L,void 0,y));else{const S=Object.keys(s);m=new Array(S.length);for(let L=0,I=S.length;L<I;L++){const F=S[L];m[L]=n(s[F],F,L,y)}}else m=[];return m}/*! #__NO_SIDE_EFFECTS__ */function Jl(s,n){return St(s)?he({name:s.name},n,{setup:s}):s}const os=s=>!!s.type.__asyncLoader,wr=s=>s?bc(s)?Ys(s):wr(s.parent):null,ga=he(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>s.props,$attrs:s=>s.attrs,$slots:s=>s.slots,$refs:s=>s.refs,$parent:s=>wr(s.parent),$root:s=>wr(s.root),$emit:s=>s.emit,$options:s=>hn(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,cn(s.update)}),$nextTick:s=>s.n||(s.n=Hl.bind(s.proxy)),$watch:s=>cu.bind(s)}),er=(s,n)=>s!==Vt&&!s.__isScriptSetup&&Nt(s,n),Wd={get({_:s},n){if(n==="__v_skip")return!0;const{ctx:c,setupState:d,data:m,props:y,accessCache:S,type:L,appContext:I}=s;let F;if(n[0]!=="$"){const J=S[n];if(J!==void 0)switch(J){case 1:return d[n];case 2:return m[n];case 4:return c[n];case 3:return y[n]}else{if(er(d,n))return S[n]=1,d[n];if(m!==Vt&&Nt(m,n))return S[n]=2,m[n];if((F=s.propsOptions[0])&&Nt(F,n))return S[n]=3,y[n];if(c!==Vt&&Nt(c,n))return S[n]=4,c[n];kr&&(S[n]=0)}}const z=ga[n];let H,G;if(z)return n==="$attrs"&&Ce(s.attrs,"get",""),z(s);if((H=L.__cssModules)&&(H=H[n]))return H;if(c!==Vt&&Nt(c,n))return S[n]=4,c[n];if(G=I.config.globalProperties,Nt(G,n))return G[n]},set({_:s},n,c){const{data:d,setupState:m,ctx:y}=s;return er(m,n)?(m[n]=c,!0):d!==Vt&&Nt(d,n)?(d[n]=c,!0):Nt(s.props,n)||n[0]==="$"&&n.slice(1)in s?!1:(y[n]=c,!0)},has({_:{data:s,setupState:n,accessCache:c,ctx:d,appContext:m,propsOptions:y}},S){let L;return!!c[S]||s!==Vt&&Nt(s,S)||er(n,S)||(L=y[0])&&Nt(L,S)||Nt(d,S)||Nt(ga,S)||Nt(m.config.globalProperties,S)},defineProperty(s,n,c){return c.get!=null?s._.accessCache[n]=0:Nt(c,"value")&&this.set(s,n,c.value,null),Reflect.defineProperty(s,n,c)}};function Jn(s){return wt(s)?s.reduce((n,c)=>(n[c]=null,n),{}):s}let kr=!0;function Vd(s){const n=hn(s),c=s.proxy,d=s.ctx;kr=!1,n.beforeCreate&&Qn(n.beforeCreate,s,"bc");const{data:m,computed:y,methods:S,watch:L,provide:I,inject:F,created:z,beforeMount:H,mounted:G,beforeUpdate:J,updated:bt,activated:lt,deactivated:Ot,beforeDestroy:et,beforeUnmount:R,destroyed:ct,unmounted:ut,render:W,renderTracked:it,renderTriggered:Mt,errorCaptured:Ut,serverPrefetch:re,expose:de,inheritAttrs:mt,components:Pt,directives:ge,filters:Tt}=n;if(F&&Gd(F,d,null),S)for(const Xt in S){const Rt=S[Xt];St(Rt)&&(d[Xt]=Rt.bind(c))}if(m){const Xt=m.call(c,c);qt(Xt)&&(s.data=Ta(Xt))}if(kr=!0,y)for(const Xt in y){const Rt=y[Xt],Le=St(Rt)?Rt.bind(c,c):St(Rt.get)?Rt.get.bind(c,c):Me,Si=!St(Rt)&&St(Rt.set)?Rt.set.bind(c):Me,qe=Et({get:Le,set:Si});Object.defineProperty(d,Xt,{enumerable:!0,configurable:!0,get:()=>qe.value,set:Jt=>qe.value=Jt})}if(L)for(const Xt in L)Ql(L[Xt],d,c,Xt);if(I){const Xt=St(I)?I.call(c):I;Reflect.ownKeys(Xt).forEach(Rt=>{Kd(Rt,Xt[Rt])})}z&&Qn(z,s,"c");function Zt(Xt,Rt){wt(Rt)?Rt.forEach(Le=>Xt(Le.bind(c))):Rt&&Xt(Rt.bind(c))}if(Zt(ql,H),Zt(_a,G),Zt(Nd,J),Zt(Xd,bt),Zt(hu,lt),Zt(du,Ot),Zt(Bd,Ut),Zt(Hd,it),Zt(Dd,Mt),Zt(Zl,R),Zt(Kl,ut),Zt(Yd,re),wt(de))if(de.length){const Xt=s.exposed||(s.exposed={});de.forEach(Rt=>{Object.defineProperty(Xt,Rt,{get:()=>c[Rt],set:Le=>c[Rt]=Le})})}else s.exposed||(s.exposed={});W&&s.render===Me&&(s.render=W),mt!=null&&(s.inheritAttrs=mt),Pt&&(s.components=Pt),ge&&(s.directives=ge)}function Gd(s,n,c=Me){wt(s)&&(s=Ar(s));for(const d in s){const m=s[d];let y;qt(m)?"default"in m?y=ls(m.from||d,m.default,!0):y=ls(m.from||d):y=ls(m),ve(y)?Object.defineProperty(n,d,{enumerable:!0,configurable:!0,get:()=>y.value,set:S=>y.value=S}):n[d]=y}}function Qn(s,n,c){De(wt(s)?s.map(d=>d.bind(n.proxy)):s.bind(n.proxy),n,c)}function Ql(s,n,c,d){const m=d.includes(".")?uc(c,d):()=>c[d];if(le(s)){const y=n[s];St(y)&&Te(m,y)}else if(St(s))Te(m,s.bind(c));else if(qt(s))if(wt(s))s.forEach(y=>Ql(y,n,c,d));else{const y=St(s.handler)?s.handler.bind(c):n[s.handler];St(y)&&Te(m,y,s)}}function hn(s){const n=s.type,{mixins:c,extends:d}=n,{mixins:m,optionsCache:y,config:{optionMergeStrategies:S}}=s.appContext,L=y.get(n);let I;return L?I=L:!m.length&&!c&&!d?I=n:(I={},m.length&&m.forEach(F=>ys(I,F,S,!0)),ys(I,n,S)),qt(n)&&y.set(n,I),I}function ys(s,n,c,d=!1){const{mixins:m,extends:y}=n;y&&ys(s,y,c,!0),m&&m.forEach(S=>ys(s,S,c,!0));for(const S in n)if(!(d&&S==="expose")){const L=jd[S]||c&&c[S];s[S]=L?L(s[S],n[S]):n[S]}return s}const jd={data:to,props:eo,emits:eo,methods:ca,computed:ca,beforeCreate:be,created:be,beforeMount:be,mounted:be,beforeUpdate:be,updated:be,beforeDestroy:be,beforeUnmount:be,destroyed:be,unmounted:be,activated:be,deactivated:be,errorCaptured:be,serverPrefetch:be,components:ca,directives:ca,watch:$d,provide:to,inject:Ud};function to(s,n){return n?s?function(){return he(St(s)?s.call(this,this):s,St(n)?n.call(this,this):n)}:n:s}function Ud(s,n){return ca(Ar(s),Ar(n))}function Ar(s){if(wt(s)){const n={};for(let c=0;c<s.length;c++)n[s[c]]=s[c];return n}return s}function be(s,n){return s?[...new Set([].concat(s,n))]:n}function ca(s,n){return s?he(Object.create(null),s,n):n}function eo(s,n){return s?wt(s)&&wt(n)?[...new Set([...s,...n])]:he(Object.create(null),Jn(s),Jn(n??{})):n}function $d(s,n){if(!s)return n;if(!n)return s;const c=he(Object.create(null),s);for(const d in n)c[d]=be(s[d],n[d]);return c}function tc(){return{app:null,config:{isNativeTag:Mh,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 qd=0;function Zd(s,n){return function(d,m=null){St(d)||(d=he({},d)),m!=null&&!qt(m)&&(m=null);const y=tc(),S=new WeakSet;let L=!1;const I=y.app={_uid:qd++,_component:d,_props:m,_container:null,_context:y,_instance:null,version:Tu,get config(){return y.config},set config(F){},use(F,...z){return S.has(F)||(F&&St(F.install)?(S.add(F),F.install(I,...z)):St(F)&&(S.add(F),F(I,...z))),I},mixin(F){return y.mixins.includes(F)||y.mixins.push(F),I},component(F,z){return z?(y.components[F]=z,I):y.components[F]},directive(F,z){return z?(y.directives[F]=z,I):y.directives[F]},mount(F,z,H){if(!L){const G=It(d,m);return G.appContext=y,H===!0?H="svg":H===!1&&(H=void 0),z&&n?n(G,F):s(G,F,H),L=!0,I._container=F,F.__vue_app__=I,Ys(G.component)}},unmount(){L&&(s(null,I._container),delete I._container.__vue_app__)},provide(F,z){return y.provides[F]=z,I},runWithContext(F){const z=pa;pa=I;try{return F()}finally{pa=z}}};return I}}let pa=null;function Kd(s,n){if(fe){let c=fe.provides;const d=fe.parent&&fe.parent.provides;d===c&&(c=fe.provides=Object.create(d)),c[s]=n}}function ls(s,n,c=!1){const d=fe||Se;if(d||pa){const m=d?d.parent==null?d.vnode.appContext&&d.vnode.appContext.provides:d.parent.provides:pa._context.provides;if(m&&s in m)return m[s];if(arguments.length>1)return c&&St(n)?n.call(d&&d.proxy):n}}const ec={},ic=()=>Object.create(ec),ac=s=>Object.getPrototypeOf(s)===ec;function Jd(s,n,c,d=!1){const m={},y=ic();s.propsDefaults=Object.create(null),sc(s,n,m,y);for(const S in s.propsOptions[0])S in m||(m[S]=void 0);c?s.props=d?m:fd(m):s.type.props?s.props=m:s.props=y,s.attrs=y}function Qd(s,n,c,d){const{props:m,attrs:y,vnode:{patchFlag:S}}=s,L=Yt(m),[I]=s.propsOptions;let F=!1;if((d||S>0)&&!(S&16)){if(S&8){const z=s.vnode.dynamicProps;for(let H=0;H<z.length;H++){let G=z[H];if(zs(s.emitsOptions,G))continue;const J=n[G];if(I)if(Nt(y,G))J!==y[G]&&(y[G]=J,F=!0);else{const bt=Ue(G);m[bt]=Sr(I,L,bt,J,s,!1)}else J!==y[G]&&(y[G]=J,F=!0)}}}else{sc(s,n,m,y)&&(F=!0);let z;for(const H in L)(!n||!Nt(n,H)&&((z=ea(H))===H||!Nt(n,z)))&&(I?c&&(c[H]!==void 0||c[z]!==void 0)&&(m[H]=Sr(I,L,H,void 0,s,!0)):delete m[H]);if(y!==L)for(const H in y)(!n||!Nt(n,H))&&(delete y[H],F=!0)}F&&ii(s.attrs,"set","")}function sc(s,n,c,d){const[m,y]=s.propsOptions;let S=!1,L;if(n)for(let I in n){if(ua(I))continue;const F=n[I];let z;m&&Nt(m,z=Ue(I))?!y||!y.includes(z)?c[z]=F:(L||(L={}))[z]=F:zs(s.emitsOptions,I)||(!(I in d)||F!==d[I])&&(d[I]=F,S=!0)}if(y){const I=Yt(c),F=L||Vt;for(let z=0;z<y.length;z++){const H=y[z];c[H]=Sr(m,I,H,F[H],s,!Nt(F,H))}}return S}function Sr(s,n,c,d,m,y){const S=s[c];if(S!=null){const L=Nt(S,"default");if(L&&d===void 0){const I=S.default;if(S.type!==Function&&!S.skipFactory&&St(I)){const{propsDefaults:F}=m;if(c in F)d=F[c];else{const z=Ia(m);d=F[c]=I.call(null,n),z()}}else d=I}S[0]&&(y&&!L?d=!1:S[1]&&(d===""||d===ea(c))&&(d=!0))}return d}function rc(s,n,c=!1){const d=n.propsCache,m=d.get(s);if(m)return m;const y=s.props,S={},L=[];let I=!1;if(!St(s)){const z=H=>{I=!0;const[G,J]=rc(H,n,!0);he(S,G),J&&L.push(...J)};!c&&n.mixins.length&&n.mixins.forEach(z),s.extends&&z(s.extends),s.mixins&&s.mixins.forEach(z)}if(!y&&!I)return qt(s)&&d.set(s,qi),qi;if(wt(y))for(let z=0;z<y.length;z++){const H=Ue(y[z]);io(H)&&(S[H]=Vt)}else if(y)for(const z in y){const H=Ue(z);if(io(H)){const G=y[z],J=S[H]=wt(G)||St(G)?{type:G}:he({},G);if(J){const bt=ro(Boolean,J.type),lt=ro(String,J.type);J[0]=bt>-1,J[1]=lt<0||bt<lt,(bt>-1||Nt(J,"default"))&&L.push(H)}}}const F=[S,L];return qt(s)&&d.set(s,F),F}function io(s){return s[0]!=="$"&&!ua(s)}function ao(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function so(s,n){return ao(s)===ao(n)}function ro(s,n){return wt(n)?n.findIndex(c=>so(c,s)):St(n)&&so(n,s)?0:-1}const nc=s=>s[0]==="_"||s==="$stable",dn=s=>wt(s)?s.map(We):[We(s)],tu=(s,n,c)=>{if(n._n)return n;const d=Ul((...m)=>dn(n(...m)),c);return d._c=!1,d},oc=(s,n,c)=>{const d=s._ctx;for(const m in s){if(nc(m))continue;const y=s[m];if(St(y))n[m]=tu(m,y,d);else if(y!=null){const S=dn(y);n[m]=()=>S}}},lc=(s,n)=>{const c=dn(n);s.slots.default=()=>c},eu=(s,n)=>{const c=s.slots=ic();if(s.vnode.shapeFlag&32){const d=n._;d?(he(c,n),yl(c,"_",d,!0)):oc(n,c)}else n&&lc(s,n)},iu=(s,n,c)=>{const{vnode:d,slots:m}=s;let y=!0,S=Vt;if(d.shapeFlag&32){const L=n._;L?c&&L===1?y=!1:(he(m,n),!c&&L===1&&delete m._):(y=!n.$stable,oc(n,m)),S=n}else n&&(lc(s,n),S={default:1});if(y)for(const L in m)!nc(L)&&S[L]==null&&delete m[L]};function Cr(s,n,c,d,m=!1){if(wt(s)){s.forEach((G,J)=>Cr(G,n&&(wt(n)?n[J]:n),c,d,m));return}if(os(d)&&!m)return;const y=d.shapeFlag&4?Ys(d.component):d.el,S=m?null:y,{i:L,r:I}=s,F=n&&n.r,z=L.refs===Vt?L.refs={}:L.refs,H=L.setupState;if(F!=null&&F!==I&&(le(F)?(z[F]=null,Nt(H,F)&&(H[F]=null)):ve(F)&&(F.value=null)),St(I))mi(I,L,12,[S,z]);else{const G=le(I),J=ve(I);if(G||J){const bt=()=>{if(s.f){const lt=G?Nt(H,I)?H[I]:z[I]:I.value;m?wt(lt)&&Jr(lt,y):wt(lt)?lt.includes(y)||lt.push(y):G?(z[I]=[y],Nt(H,I)&&(H[I]=z[I])):(I.value=[y],s.k&&(z[s.k]=I.value))}else G?(z[I]=S,Nt(H,I)&&(H[I]=S)):J&&(I.value=S,s.k&&(z[s.k]=S))};S?(bt.id=-1,Ae(bt,c)):bt()}}}const Ae=Fd;function au(s){return su(s)}function su(s,n){const c=wl();c.__VUE__=!0;const{insert:d,remove:m,patchProp:y,createElement:S,createText:L,createComment:I,setText:F,setElementText:z,parentNode:H,nextSibling:G,setScopeId:J=Me,insertStaticContent:bt}=s,lt=(Y,D,U,q=null,Z=null,Q=null,rt=void 0,tt=null,at=!!D.dynamicChildren)=>{if(Y===D)return;Y&&!na(Y,D)&&(q=Ci(Y),Jt(Y,Z,Q,!0),Y=null),D.patchFlag===-2&&(at=!1,D.dynamicChildren=null);const{type:K,ref:nt,shapeFlag:xt}=D;switch(K){case Ns:Ot(Y,D,U,q);break;case Ni:et(Y,D,U,q);break;case cs:Y==null&&R(D,U,q,rt);break;case Kt:Pt(Y,D,U,q,Z,Q,rt,tt,at);break;default:xt&1?W(Y,D,U,q,Z,Q,rt,tt,at):xt&6?ge(Y,D,U,q,Z,Q,rt,tt,at):(xt&64||xt&128)&&K.process(Y,D,U,q,Z,Q,rt,tt,at,Re)}nt!=null&&Z&&Cr(nt,Y&&Y.ref,Q,D||Y,!D)},Ot=(Y,D,U,q)=>{if(Y==null)d(D.el=L(D.children),U,q);else{const Z=D.el=Y.el;D.children!==Y.children&&F(Z,D.children)}},et=(Y,D,U,q)=>{Y==null?d(D.el=I(D.children||""),U,q):D.el=Y.el},R=(Y,D,U,q)=>{[Y.el,Y.anchor]=bt(Y.children,D,U,q,Y.el,Y.anchor)},ct=({el:Y,anchor:D},U,q)=>{let Z;for(;Y&&Y!==D;)Z=G(Y),d(Y,U,q),Y=Z;d(D,U,q)},ut=({el:Y,anchor:D})=>{let U;for(;Y&&Y!==D;)U=G(Y),m(Y),Y=U;m(D)},W=(Y,D,U,q,Z,Q,rt,tt,at)=>{D.type==="svg"?rt="svg":D.type==="math"&&(rt="mathml"),Y==null?it(D,U,q,Z,Q,rt,tt,at):re(Y,D,Z,Q,rt,tt,at)},it=(Y,D,U,q,Z,Q,rt,tt)=>{let at,K;const{props:nt,shapeFlag:xt,transition:gt,dirs:vt}=Y;if(at=Y.el=S(Y.type,Q,nt&&nt.is,nt),xt&8?z(at,Y.children):xt&16&&Ut(Y.children,at,null,q,Z,ir(Y,Q),rt,tt),vt&&Ti(Y,null,q,"created"),Mt(at,Y,Y.scopeId,rt,q),nt){for(const Ht in nt)Ht!=="value"&&!ua(Ht)&&y(at,Ht,null,nt[Ht],Q,Y.children,q,Z,Qt);"value"in nt&&y(at,"value",null,nt.value,Q),(K=nt.onVnodeBeforeMount)&&Be(K,q,Y)}vt&&Ti(Y,null,q,"beforeMount");const Lt=ru(Z,gt);Lt&&gt.beforeEnter(at),d(at,D,U),((K=nt&&nt.onVnodeMounted)||Lt||vt)&&Ae(()=>{K&&Be(K,q,Y),Lt&&gt.enter(at),vt&&Ti(Y,null,q,"mounted")},Z)},Mt=(Y,D,U,q,Z)=>{if(U&&J(Y,U),q)for(let Q=0;Q<q.length;Q++)J(Y,q[Q]);if(Z){let Q=Z.subTree;if(D===Q){const rt=Z.vnode;Mt(Y,rt,rt.scopeId,rt.slotScopeIds,Z.parent)}}},Ut=(Y,D,U,q,Z,Q,rt,tt,at=0)=>{for(let K=at;K<Y.length;K++){const nt=Y[K]=tt?gi(Y[K]):We(Y[K]);lt(null,nt,D,U,q,Z,Q,rt,tt)}},re=(Y,D,U,q,Z,Q,rt)=>{const tt=D.el=Y.el;let{patchFlag:at,dynamicChildren:K,dirs:nt}=D;at|=Y.patchFlag&16;const xt=Y.props||Vt,gt=D.props||Vt;let vt;if(U&&_i(U,!1),(vt=gt.onVnodeBeforeUpdate)&&Be(vt,U,D,Y),nt&&Ti(D,Y,U,"beforeUpdate"),U&&_i(U,!0),K?de(Y.dynamicChildren,K,tt,U,q,ir(D,Z),Q):rt||Rt(Y,D,tt,null,U,q,ir(D,Z),Q,!1),at>0){if(at&16)mt(tt,D,xt,gt,U,q,Z);else if(at&2&&xt.class!==gt.class&&y(tt,"class",null,gt.class,Z),at&4&&y(tt,"style",xt.style,gt.style,Z),at&8){const Lt=D.dynamicProps;for(let Ht=0;Ht<Lt.length;Ht++){const Ft=Lt[Ht],ee=xt[Ft],ye=gt[Ft];(ye!==ee||Ft==="value")&&y(tt,Ft,ee,ye,Z,Y.children,U,q,Qt)}}at&1&&Y.children!==D.children&&z(tt,D.children)}else!rt&&K==null&&mt(tt,D,xt,gt,U,q,Z);((vt=gt.onVnodeUpdated)||nt)&&Ae(()=>{vt&&Be(vt,U,D,Y),nt&&Ti(D,Y,U,"updated")},q)},de=(Y,D,U,q,Z,Q,rt)=>{for(let tt=0;tt<D.length;tt++){const at=Y[tt],K=D[tt],nt=at.el&&(at.type===Kt||!na(at,K)||at.shapeFlag&70)?H(at.el):U;lt(at,K,nt,null,q,Z,Q,rt,!0)}},mt=(Y,D,U,q,Z,Q,rt)=>{if(U!==q){if(U!==Vt)for(const tt in U)!ua(tt)&&!(tt in q)&&y(Y,tt,U[tt],null,rt,D.children,Z,Q,Qt);for(const tt in q){if(ua(tt))continue;const at=q[tt],K=U[tt];at!==K&&tt!=="value"&&y(Y,tt,K,at,rt,D.children,Z,Q,Qt)}"value"in q&&y(Y,"value",U.value,q.value,rt)}},Pt=(Y,D,U,q,Z,Q,rt,tt,at)=>{const K=D.el=Y?Y.el:L(""),nt=D.anchor=Y?Y.anchor:L("");let{patchFlag:xt,dynamicChildren:gt,slotScopeIds:vt}=D;vt&&(tt=tt?tt.concat(vt):vt),Y==null?(d(K,U,q),d(nt,U,q),Ut(D.children||[],U,nt,Z,Q,rt,tt,at)):xt>0&&xt&64&&gt&&Y.dynamicChildren?(de(Y.dynamicChildren,gt,U,Z,Q,rt,tt),(D.key!=null||Z&&D===Z.subTree)&&cc(Y,D,!0)):Rt(Y,D,U,nt,Z,Q,rt,tt,at)},ge=(Y,D,U,q,Z,Q,rt,tt,at)=>{D.slotScopeIds=tt,Y==null?D.shapeFlag&512?Z.ctx.activate(D,U,q,rt,at):Tt(D,U,q,Z,Q,rt,at):Pe(Y,D,at)},Tt=(Y,D,U,q,Z,Q,rt)=>{const tt=Y.component=wu(Y,q,Z);if(fc(Y)&&(tt.ctx.renderer=Re),Au(tt),tt.asyncDep){if(Z&&Z.registerDep(tt,Zt,rt),!Y.el){const at=tt.subTree=It(Ni);et(null,at,D,U)}}else Zt(tt,Y,D,U,Z,Q,rt)},Pe=(Y,D,U)=>{const q=D.component=Y.component;if(_d(Y,D,U))if(q.asyncDep&&!q.asyncResolved){Xt(q,D,U);return}else q.next=D,Sd(q.update),q.effect.dirty=!0,q.update();else D.el=Y.el,q.vnode=D},Zt=(Y,D,U,q,Z,Q,rt)=>{const tt=()=>{if(Y.isMounted){let{next:nt,bu:xt,u:gt,parent:vt,vnode:Lt}=Y;{const hi=hc(Y);if(hi){nt&&(nt.el=Lt.el,Xt(Y,nt,rt)),hi.asyncDep.then(()=>{Y.isUnmounted||tt()});return}}let Ht=nt,Ft;_i(Y,!1),nt?(nt.el=Lt.el,Xt(Y,nt,rt)):nt=Lt,xt&&Js(xt),(Ft=nt.props&&nt.props.onVnodeBeforeUpdate)&&Be(Ft,vt,nt,Lt),_i(Y,!0);const ee=tr(Y),ye=Y.subTree;Y.subTree=ee,lt(ye,ee,H(ye.el),Ci(ye),Y,Z,Q),nt.el=ee.el,Ht===null&&Id(Y,ee.el),gt&&Ae(gt,Z),(Ft=nt.props&&nt.props.onVnodeUpdated)&&Ae(()=>Be(Ft,vt,nt,Lt),Z)}else{let nt;const{el:xt,props:gt}=D,{bm:vt,m:Lt,parent:Ht}=Y,Ft=os(D);if(_i(Y,!1),vt&&Js(vt),!Ft&&(nt=gt&&gt.onVnodeBeforeMount)&&Be(nt,Ht,D),_i(Y,!0),xt&&Ze){const ee=()=>{Y.subTree=tr(Y),Ze(xt,Y.subTree,Y,Z,null)};Ft?D.type.__asyncLoader().then(()=>!Y.isUnmounted&&ee()):ee()}else{const ee=Y.subTree=tr(Y);lt(null,ee,U,q,Y,Z,Q),D.el=ee.el}if(Lt&&Ae(Lt,Z),!Ft&&(nt=gt&&gt.onVnodeMounted)){const ee=D;Ae(()=>Be(nt,Ht,ee),Z)}(D.shapeFlag&256||Ht&&os(Ht.vnode)&&Ht.vnode.shapeFlag&256)&&Y.a&&Ae(Y.a,Z),Y.isMounted=!0,D=U=q=null}},at=Y.effect=new tn(tt,Me,()=>cn(K),Y.scope),K=Y.update=()=>{at.dirty&&at.run()};K.id=Y.uid,_i(Y,!0),K()},Xt=(Y,D,U)=>{D.component=Y;const q=Y.vnode.props;Y.vnode=D,Y.next=null,Qd(Y,D.props,q,U),iu(Y,D.children,U),ki(),$n(Y),Ai()},Rt=(Y,D,U,q,Z,Q,rt,tt,at=!1)=>{const K=Y&&Y.children,nt=Y?Y.shapeFlag:0,xt=D.children,{patchFlag:gt,shapeFlag:vt}=D;if(gt>0){if(gt&128){Si(K,xt,U,q,Z,Q,rt,tt,at);return}else if(gt&256){Le(K,xt,U,q,Z,Q,rt,tt,at);return}}vt&8?(nt&16&&Qt(K,Z,Q),xt!==K&&z(U,xt)):nt&16?vt&16?Si(K,xt,U,q,Z,Q,rt,tt,at):Qt(K,Z,Q,!0):(nt&8&&z(U,""),vt&16&&Ut(xt,U,q,Z,Q,rt,tt,at))},Le=(Y,D,U,q,Z,Q,rt,tt,at)=>{Y=Y||qi,D=D||qi;const K=Y.length,nt=D.length,xt=Math.min(K,nt);let gt;for(gt=0;gt<xt;gt++){const vt=D[gt]=at?gi(D[gt]):We(D[gt]);lt(Y[gt],vt,U,null,Z,Q,rt,tt,at)}K>nt?Qt(Y,Z,Q,!0,!1,xt):Ut(D,U,q,Z,Q,rt,tt,at,xt)},Si=(Y,D,U,q,Z,Q,rt,tt,at)=>{let K=0;const nt=D.length;let xt=Y.length-1,gt=nt-1;for(;K<=xt&&K<=gt;){const vt=Y[K],Lt=D[K]=at?gi(D[K]):We(D[K]);if(na(vt,Lt))lt(vt,Lt,U,null,Z,Q,rt,tt,at);else break;K++}for(;K<=xt&&K<=gt;){const vt=Y[xt],Lt=D[gt]=at?gi(D[gt]):We(D[gt]);if(na(vt,Lt))lt(vt,Lt,U,null,Z,Q,rt,tt,at);else break;xt--,gt--}if(K>xt){if(K<=gt){const vt=gt+1,Lt=vt<nt?D[vt].el:q;for(;K<=gt;)lt(null,D[K]=at?gi(D[K]):We(D[K]),U,Lt,Z,Q,rt,tt,at),K++}}else if(K>gt)for(;K<=xt;)Jt(Y[K],Z,Q,!0),K++;else{const vt=K,Lt=K,Ht=new Map;for(K=Lt;K<=gt;K++){const me=D[K]=at?gi(D[K]):We(D[K]);me.key!=null&&Ht.set(me.key,K)}let Ft,ee=0;const ye=gt-Lt+1;let hi=!1,ra=0;const Li=new Array(ye);for(K=0;K<ye;K++)Li[K]=0;for(K=vt;K<=xt;K++){const me=Y[K];if(ee>=ye){Jt(me,Z,Q,!0);continue}let Ee;if(me.key!=null)Ee=Ht.get(me.key);else for(Ft=Lt;Ft<=gt;Ft++)if(Li[Ft-Lt]===0&&na(me,D[Ft])){Ee=Ft;break}Ee===void 0?Jt(me,Z,Q,!0):(Li[Ee-Lt]=K+1,Ee>=ra?ra=Ee:hi=!0,lt(me,D[Ee],U,null,Z,Q,rt,tt,at),ee++)}const Na=hi?nu(Li):qi;for(Ft=Na.length-1,K=ye-1;K>=0;K--){const me=Lt+K,Ee=D[me],Xa=me+1<nt?D[me+1].el:q;Li[K]===0?lt(null,Ee,U,Xa,Z,Q,rt,tt,at):hi&&(Ft<0||K!==Na[Ft]?qe(Ee,U,Xa,2):Ft--)}}},qe=(Y,D,U,q,Z=null)=>{const{el:Q,type:rt,transition:tt,children:at,shapeFlag:K}=Y;if(K&6){qe(Y.component.subTree,D,U,q);return}if(K&128){Y.suspense.move(D,U,q);return}if(K&64){rt.move(Y,D,U,Re);return}if(rt===Kt){d(Q,D,U);for(let xt=0;xt<at.length;xt++)qe(at[xt],D,U,q);d(Y.anchor,D,U);return}if(rt===cs){ct(Y,D,U);return}if(q!==2&&K&1&&tt)if(q===0)tt.beforeEnter(Q),d(Q,D,U),Ae(()=>tt.enter(Q),Z);else{const{leave:xt,delayLeave:gt,afterLeave:vt}=tt,Lt=()=>d(Q,D,U),Ht=()=>{xt(Q,()=>{Lt(),vt&&vt()})};gt?gt(Q,Lt,Ht):Ht()}else d(Q,D,U)},Jt=(Y,D,U,q=!1,Z=!1)=>{const{type:Q,props:rt,ref:tt,children:at,dynamicChildren:K,shapeFlag:nt,patchFlag:xt,dirs:gt,memoIndex:vt}=Y;if(tt!=null&&Cr(tt,null,U,Y,!0),vt!=null&&(D.renderCache[vt]=void 0),nt&256){D.ctx.deactivate(Y);return}const Lt=nt&1&&gt,Ht=!os(Y);let Ft;if(Ht&&(Ft=rt&&rt.onVnodeBeforeUnmount)&&Be(Ft,D,Y),nt&6)ci(Y.component,U,q);else{if(nt&128){Y.suspense.unmount(U,q);return}Lt&&Ti(Y,null,D,"beforeUnmount"),nt&64?Y.type.remove(Y,D,U,Z,Re,q):K&&(Q!==Kt||xt>0&&xt&64)?Qt(K,D,U,!1,!0):(Q===Kt&&xt&384||!Z&&nt&16)&&Qt(at,D,U),q&&li(Y)}(Ht&&(Ft=rt&&rt.onVnodeUnmounted)||Lt)&&Ae(()=>{Ft&&Be(Ft,D,Y),Lt&&Ti(Y,null,D,"unmounted")},U)},li=Y=>{const{type:D,el:U,anchor:q,transition:Z}=Y;if(D===Kt){Fa(U,q);return}if(D===cs){ut(Y);return}const Q=()=>{m(U),Z&&!Z.persisted&&Z.afterLeave&&Z.afterLeave()};if(Y.shapeFlag&1&&Z&&!Z.persisted){const{leave:rt,delayLeave:tt}=Z,at=()=>rt(U,Q);tt?tt(Y.el,Q,at):at()}else Q()},Fa=(Y,D)=>{let U;for(;Y!==D;)U=G(Y),m(Y),Y=U;m(D)},ci=(Y,D,U)=>{const{bum:q,scope:Z,update:Q,subTree:rt,um:tt,m:at,a:K}=Y;no(at),no(K),q&&Js(q),Z.stop(),Q&&(Q.active=!1,Jt(rt,Y,D,U)),tt&&Ae(tt,D),Ae(()=>{Y.isUnmounted=!0},D),D&&D.pendingBranch&&!D.isUnmounted&&Y.asyncDep&&!Y.asyncResolved&&Y.suspenseId===D.pendingId&&(D.deps--,D.deps===0&&D.resolve())},Qt=(Y,D,U,q=!1,Z=!1,Q=0)=>{for(let rt=Q;rt<Y.length;rt++)Jt(Y[rt],D,U,q,Z)},Ci=Y=>Y.shapeFlag&6?Ci(Y.component.subTree):Y.shapeFlag&128?Y.suspense.next():G(Y.anchor||Y.el);let Oe=!1;const Pi=(Y,D,U)=>{Y==null?D._vnode&&Jt(D._vnode,null,null,!0):lt(D._vnode||null,Y,D,null,null,null,U),Oe||(Oe=!0,$n(),Wl(),Oe=!1),D._vnode=Y},Re={p:lt,um:Jt,m:qe,r:li,mt:Tt,mc:Ut,pc:Rt,pbc:de,n:Ci,o:s};let sa,Ze;return{render:Pi,hydrate:sa,createApp:Zd(Pi,sa)}}function ir({type:s,props:n},c){return c==="svg"&&s==="foreignObject"||c==="mathml"&&s==="annotation-xml"&&n&&n.encoding&&n.encoding.includes("html")?void 0:c}function _i({effect:s,update:n},c){s.allowRecurse=n.allowRecurse=c}function ru(s,n){return(!s||s&&!s.pendingBranch)&&n&&!n.persisted}function cc(s,n,c=!1){const d=s.children,m=n.children;if(wt(d)&&wt(m))for(let y=0;y<d.length;y++){const S=d[y];let L=m[y];L.shapeFlag&1&&!L.dynamicChildren&&((L.patchFlag<=0||L.patchFlag===32)&&(L=m[y]=gi(m[y]),L.el=S.el),!c&&L.patchFlag!==-2&&cc(S,L)),L.type===Ns&&(L.el=S.el)}}function nu(s){const n=s.slice(),c=[0];let d,m,y,S,L;const I=s.length;for(d=0;d<I;d++){const F=s[d];if(F!==0){if(m=c[c.length-1],s[m]<F){n[d]=m,c.push(d);continue}for(y=0,S=c.length-1;y<S;)L=y+S>>1,s[c[L]]<F?y=L+1:S=L;F<s[c[y]]&&(y>0&&(n[d]=c[y-1]),c[y]=d)}}for(y=c.length,S=c[y-1];y-- >0;)c[y]=S,S=n[S];return c}function hc(s){const n=s.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:hc(n)}function no(s){if(s)for(let n=0;n<s.length;n++)s[n].active=!1}const ou=Symbol.for("v-scx"),lu=()=>ls(ou),Ga={};function Te(s,n,c){return dc(s,n,c)}function dc(s,n,{immediate:c,deep:d,flush:m,once:y,onTrack:S,onTrigger:L}=Vt){if(n&&y){const it=n;n=(...Mt)=>{it(...Mt),W()}}const I=fe,F=it=>d===!0?it:pi(it,d===!1?1:void 0);let z,H=!1,G=!1;if(ve(s)?(z=()=>s.value,H=bs(s)):fa(s)?(z=()=>F(s),H=!0):wt(s)?(G=!0,H=s.some(it=>fa(it)||bs(it)),z=()=>s.map(it=>{if(ve(it))return it.value;if(fa(it))return F(it);if(St(it))return mi(it,I,2)})):St(s)?n?z=()=>mi(s,I,2):z=()=>(J&&J(),De(s,I,3,[bt])):z=Me,n&&d){const it=z;z=()=>pi(it())}let J,bt=it=>{J=ct.onStop=()=>{mi(it,I,4),J=ct.onStop=void 0}},lt;if(Xs)if(bt=Me,n?c&&De(n,I,3,[z(),G?[]:void 0,bt]):z(),m==="sync"){const it=lu();lt=it.__watcherHandles||(it.__watcherHandles=[])}else return Me;let Ot=G?new Array(s.length).fill(Ga):Ga;const et=()=>{if(!(!ct.active||!ct.dirty))if(n){const it=ct.run();(d||H||(G?it.some((Mt,Ut)=>bi(Mt,Ot[Ut])):bi(it,Ot)))&&(J&&J(),De(n,I,3,[it,Ot===Ga?void 0:G&&Ot[0]===Ga?[]:Ot,bt]),Ot=it)}else ct.run()};et.allowRecurse=!!n;let R;m==="sync"?R=et:m==="post"?R=()=>Ae(et,I&&I.suspense):(et.pre=!0,I&&(et.id=I.uid),R=()=>cn(et));const ct=new tn(z,Me,R),ut=jh(),W=()=>{ct.stop(),ut&&Jr(ut.effects,ct)};return n?c?et():Ot=ct.run():m==="post"?Ae(ct.run.bind(ct),I&&I.suspense):ct.run(),lt&&lt.push(W),W}function cu(s,n,c){const d=this.proxy,m=le(s)?s.includes(".")?uc(d,s):()=>d[s]:s.bind(d,d);let y;St(n)?y=n:(y=n.handler,c=n);const S=Ia(this),L=dc(m,y.bind(d),c);return S(),L}function uc(s,n){const c=n.split(".");return()=>{let d=s;for(let m=0;m<c.length&&d;m++)d=d[c[m]];return d}}function pi(s,n=1/0,c){if(n<=0||!qt(s)||s.__v_skip||(c=c||new Set,c.has(s)))return s;if(c.add(s),n--,ve(s))pi(s.value,n,c);else if(wt(s))for(let d=0;d<s.length;d++)pi(s[d],n,c);else if(xl(s)||Zi(s))s.forEach(d=>{pi(d,n,c)});else if(vl(s)){for(const d in s)pi(s[d],n,c);for(const d of Object.getOwnPropertySymbols(s))Object.prototype.propertyIsEnumerable.call(s,d)&&pi(s[d],n,c)}return s}const fc=s=>s.type.__isKeepAlive;function hu(s,n){gc(s,"a",n)}function du(s,n){gc(s,"da",n)}function gc(s,n,c=fe){const d=s.__wdc||(s.__wdc=()=>{let m=c;for(;m;){if(m.isDeactivated)return;m=m.parent}return s()});if(Fs(n,d,c),c){let m=c.parent;for(;m&&m.parent;)fc(m.parent.vnode)&&uu(d,n,c,m),m=m.parent}}function uu(s,n,c,d){const m=Fs(n,s,d,!0);Kl(()=>{Jr(d[n],m)},c)}function pc(s,n){s.shapeFlag&6&&s.component?pc(s.component.subTree,n):s.shapeFlag&128?(s.ssContent.transition=n.clone(s.ssContent),s.ssFallback.transition=n.clone(s.ssFallback)):s.transition=n}const fu=s=>s.__isTeleport,Kt=Symbol.for("v-fgt"),Ns=Symbol.for("v-txt"),Ni=Symbol.for("v-cmt"),cs=Symbol.for("v-stc"),xa=[];let Xe=null;function yt(s=!1){xa.push(Xe=s?null:[])}function gu(){xa.pop(),Xe=xa[xa.length-1]||null}let Aa=1;function oo(s){Aa+=s}function xc(s){return s.dynamicChildren=Aa>0?Xe||qi:null,gu(),Aa>0&&Xe&&Xe.push(s),s}function At(s,n,c,d,m,y){return xc(j(s,n,c,d,m,y,!0))}function ji(s,n,c,d,m){return xc(It(s,n,c,d,m,!0))}function Pr(s){return s?s.__v_isVNode===!0:!1}function na(s,n){return s.type===n.type&&s.key===n.key}const mc=({key:s})=>s??null,hs=({ref:s,ref_key:n,ref_for:c})=>(typeof s=="number"&&(s=""+s),s!=null?le(s)||ve(s)||St(s)?{i:Se,r:s,k:n,f:!!c}:s:null);function j(s,n=null,c=null,d=0,m=null,y=s===Kt?0:1,S=!1,L=!1){const I={__v_isVNode:!0,__v_skip:!0,type:s,props:n,key:n&&mc(n),ref:n&&hs(n),scopeId:jl,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:Se};return L?(un(I,c),y&128&&s.normalize(I)):c&&(I.shapeFlag|=le(c)?8:16),Aa>0&&!S&&Xe&&(I.patchFlag>0||y&6)&&I.patchFlag!==32&&Xe.push(I),I}const It=pu;function pu(s,n=null,c=null,d=0,m=null,y=!1){if((!s||s===Od)&&(s=Ni),Pr(s)){const L=Qi(s,n,!0);return c&&un(L,c),Aa>0&&!y&&Xe&&(L.shapeFlag&6?Xe[Xe.indexOf(s)]=L:Xe.push(L)),L.patchFlag=-2,L}if(Eu(s)&&(s=s.__vccOpts),n){n=xu(n);let{class:L,style:I}=n;L&&!le(L)&&(n.class=ie(L)),qt(I)&&(Fl(I)&&!wt(I)&&(I=he({},I)),n.style=Ms(I))}const S=le(s)?1:zd(s)?128:fu(s)?64:qt(s)?4:St(s)?2:0;return j(s,n,c,d,m,S,y,!0)}function xu(s){return s?Fl(s)||ac(s)?he({},s):s:null}function Qi(s,n,c=!1,d=!1){const{props:m,ref:y,patchFlag:S,children:L,transition:I}=s,F=n?bu(m||{},n):m,z={__v_isVNode:!0,__v_skip:!0,type:s.type,props:F,key:F&&mc(F),ref:n&&n.ref?c&&y?wt(y)?y.concat(hs(n)):[y,hs(n)]:hs(n):y,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:L,target:s.target,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:n&&s.type!==Kt?S===-1?16:S|16:S,dynamicProps:s.dynamicProps,dynamicChildren:s.dynamicChildren,appContext:s.appContext,dirs:s.dirs,transition:I,component:s.component,suspense:s.suspense,ssContent:s.ssContent&&Qi(s.ssContent),ssFallback:s.ssFallback&&Qi(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce};return I&&d&&pc(z,I.clone(z)),z}function ne(s=" ",n=0){return It(Ns,null,s,n)}function mu(s,n){const c=It(cs,null,s);return c.staticCount=n,c}function Xi(s="",n=!1){return n?(yt(),ji(Ni,null,s)):It(Ni,null,s)}function We(s){return s==null||typeof s=="boolean"?It(Ni):wt(s)?It(Kt,null,s.slice()):typeof s=="object"?gi(s):It(Ns,null,String(s))}function gi(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:Qi(s)}function un(s,n){let c=0;const{shapeFlag:d}=s;if(n==null)n=null;else if(wt(n))c=16;else if(typeof n=="object")if(d&65){const m=n.default;m&&(m._c&&(m._d=!1),un(s,m()),m._c&&(m._d=!0));return}else{c=32;const m=n._;!m&&!ac(n)?n._ctx=Se:m===3&&Se&&(Se.slots._===1?n._=1:(n._=2,s.patchFlag|=1024))}else St(n)?(n={default:n,_ctx:Se},c=32):(n=String(n),d&64?(c=16,n=[ne(n)]):c=8);s.children=n,s.shapeFlag|=c}function bu(...s){const n={};for(let c=0;c<s.length;c++){const d=s[c];for(const m in d)if(m==="class")n.class!==d.class&&(n.class=ie([n.class,d.class]));else if(m==="style")n.style=Ms([n.style,d.style]);else if(Es(m)){const y=n[m],S=d[m];S&&y!==S&&!(wt(y)&&y.includes(S))&&(n[m]=y?[].concat(y,S):S)}else m!==""&&(n[m]=d[m])}return n}function Be(s,n,c,d=null){De(s,n,7,[c,d])}const vu=tc();let yu=0;function wu(s,n,c){const d=s.type,m=(n?n.appContext:s.appContext)||vu,y={uid:yu++,vnode:s,type:d,parent:n,appContext:m,root:null,next:null,subTree:null,effect:null,update:null,scope:new Vh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(m.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:rc(d,m),emitsOptions:Gl(d,m),emit:null,emitted:null,propsDefaults:Vt,inheritAttrs:d.inheritAttrs,ctx:Vt,data:Vt,props:Vt,attrs:Vt,slots:Vt,refs:Vt,setupState:Vt,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=n?n.root:y,y.emit=Ld.bind(null,y),s.ce&&s.ce(y),y}let fe=null;const ku=()=>fe||Se;let ws,Lr;{const s=wl(),n=(c,d)=>{let m;return(m=s[c])||(m=s[c]=[]),m.push(d),y=>{m.length>1?m.forEach(S=>S(y)):m[0](y)}};ws=n("__VUE_INSTANCE_SETTERS__",c=>fe=c),Lr=n("__VUE_SSR_SETTERS__",c=>Xs=c)}const Ia=s=>{const n=fe;return ws(s),s.scope.on(),()=>{s.scope.off(),ws(n)}},lo=()=>{fe&&fe.scope.off(),ws(null)};function bc(s){return s.vnode.shapeFlag&4}let Xs=!1;function Au(s,n=!1){n&&Lr(n);const{props:c,children:d}=s.vnode,m=bc(s);Jd(s,c,m,n),eu(s,d);const y=m?Su(s,n):void 0;return n&&Lr(!1),y}function Su(s,n){const c=s.type;s.accessCache=Object.create(null),s.proxy=new Proxy(s.ctx,Wd);const{setup:d}=c;if(d){const m=s.setupContext=d.length>1?Pu(s):null,y=Ia(s);ki();const S=mi(d,s,0,[s.props,m]);if(Ai(),y(),ml(S)){if(S.then(lo,lo),n)return S.then(L=>{co(s,L,n)}).catch(L=>{Rs(L,s,0)});s.asyncDep=S}else co(s,S,n)}else vc(s,n)}function co(s,n,c){St(n)?s.type.__ssrInlineRender?s.ssrRender=n:s.render=n:qt(n)&&(s.setupState=Yl(n)),vc(s,c)}let ho;function vc(s,n,c){const d=s.type;if(!s.render){if(!n&&ho&&!d.render){const m=d.template||hn(s).template;if(m){const{isCustomElement:y,compilerOptions:S}=s.appContext.config,{delimiters:L,compilerOptions:I}=d,F=he(he({isCustomElement:y,delimiters:L},S),I);d.render=ho(m,F)}}s.render=d.render||Me}{const m=Ia(s);ki();try{Vd(s)}finally{Ai(),m()}}}const Cu={get(s,n){return Ce(s,"get",""),s[n]}};function Pu(s){const n=c=>{s.exposed=c||{}};return{attrs:new Proxy(s.attrs,Cu),slots:s.slots,emit:s.emit,expose:n}}function Ys(s){return s.exposed?s.exposeProxy||(s.exposeProxy=new Proxy(Yl(gd(s.exposed)),{get(n,c){if(c in n)return n[c];if(c in ga)return ga[c](s)},has(n,c){return c in n||c in ga}})):s.proxy}function Lu(s,n=!0){return St(s)?s.displayName||s.name:s.name||n&&s.__name}function Eu(s){return St(s)&&"__vccOpts"in s}const Et=(s,n)=>pd(s,n,Xs);function yc(s,n,c){const d=arguments.length;return d===2?qt(n)&&!wt(n)?Pr(n)?It(s,null,[n]):It(s,n):It(s,null,n):(d>3?c=Array.prototype.slice.call(arguments,2):d===3&&Pr(c)&&(c=[c]),It(s,n,c))}const Tu="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",Iu="http://www.w3.org/1998/Math/MathML",Qe=typeof document<"u"?document:null,uo=Qe&&Qe.createElement("template"),Mu={insert:(s,n,c)=>{n.insertBefore(s,c||null)},remove:s=>{const n=s.parentNode;n&&n.removeChild(s)},createElement:(s,n,c,d)=>{const m=n==="svg"?Qe.createElementNS(_u,s):n==="mathml"?Qe.createElementNS(Iu,s):c?Qe.createElement(s,{is:c}):Qe.createElement(s);return s==="select"&&d&&d.multiple!=null&&m.setAttribute("multiple",d.multiple),m},createText:s=>Qe.createTextNode(s),createComment:s=>Qe.createComment(s),setText:(s,n)=>{s.nodeValue=n},setElementText:(s,n)=>{s.textContent=n},parentNode:s=>s.parentNode,nextSibling:s=>s.nextSibling,querySelector:s=>Qe.querySelector(s),setScopeId(s,n){s.setAttribute(n,"")},insertStaticContent(s,n,c,d,m,y){const S=c?c.previousSibling:n.lastChild;if(m&&(m===y||m.nextSibling))for(;n.insertBefore(m.cloneNode(!0),c),!(m===y||!(m=m.nextSibling)););else{uo.innerHTML=d==="svg"?`<svg>${s}</svg>`:d==="mathml"?`<math>${s}</math>`:s;const L=uo.content;if(d==="svg"||d==="mathml"){const I=L.firstChild;for(;I.firstChild;)L.appendChild(I.firstChild);L.removeChild(I)}n.insertBefore(L,c)}return[S?S.nextSibling:n.firstChild,c?c.previousSibling:n.lastChild]}},Ou=Symbol("_vtc");function Ru(s,n,c){const d=s[Ou];d&&(n=(n?[n,...d]:[...d]).join(" ")),n==null?s.removeAttribute("class"):c?s.setAttribute("class",n):s.className=n}const ks=Symbol("_vod"),wc=Symbol("_vsh"),fo={beforeMount(s,{value:n},{transition:c}){s[ks]=s.style.display==="none"?"":s.style.display,c&&n?c.beforeEnter(s):oa(s,n)},mounted(s,{value:n},{transition:c}){c&&n&&c.enter(s)},updated(s,{value:n,oldValue:c},{transition:d}){!n!=!c&&(d?n?(d.beforeEnter(s),oa(s,!0),d.enter(s)):d.leave(s,()=>{oa(s,!1)}):oa(s,n))},beforeUnmount(s,{value:n}){oa(s,n)}};function oa(s,n){s.style.display=n?s[ks]:"none",s[wc]=!n}const zu=Symbol(""),Fu=/(^|;)\s*display\s*:/;function Nu(s,n,c){const d=s.style,m=le(c);let y=!1;if(c&&!m){if(n)if(le(n))for(const S of n.split(";")){const L=S.slice(0,S.indexOf(":")).trim();c[L]==null&&ds(d,L,"")}else for(const S in n)c[S]==null&&ds(d,S,"");for(const S in c)S==="display"&&(y=!0),ds(d,S,c[S])}else if(m){if(n!==c){const S=d[zu];S&&(c+=";"+S),d.cssText=c,y=Fu.test(c)}}else n&&s.removeAttribute("style");ks in s&&(s[ks]=y?d.display:"",s[wc]&&(d.display="none"))}const go=/\s*!important$/;function ds(s,n,c){if(wt(c))c.forEach(d=>ds(s,n,d));else if(c==null&&(c=""),n.startsWith("--"))s.setProperty(n,c);else{const d=Xu(s,n);go.test(c)?s.setProperty(ea(d),c.replace(go,""),"important"):s[d]=c}}const po=["Webkit","Moz","ms"],ar={};function Xu(s,n){const c=ar[n];if(c)return c;let d=Ue(n);if(d!=="filter"&&d in s)return ar[n]=d;d=Is(d);for(let m=0;m<po.length;m++){const y=po[m]+d;if(y in s)return ar[n]=y}return n}const xo="http://www.w3.org/1999/xlink";function mo(s,n,c,d,m,y=Wh(n)){d&&n.startsWith("xlink:")?c==null?s.removeAttributeNS(xo,n.slice(6,n.length)):s.setAttributeNS(xo,n,c):c==null||y&&!kl(c)?s.removeAttribute(n):s.setAttribute(n,y?"":String(c))}function Yu(s,n,c,d,m,y,S){if(n==="innerHTML"||n==="textContent"){d&&S(d,m,y),s[n]=c??"";return}const L=s.tagName;if(n==="value"&&L!=="PROGRESS"&&!L.includes("-")){const F=L==="OPTION"?s.getAttribute("value")||"":s.value,z=c==null?"":String(c);(F!==z||!("_value"in s))&&(s.value=z),c==null&&s.removeAttribute(n),s._value=c;return}let I=!1;if(c===""||c==null){const F=typeof s[n];F==="boolean"?c=kl(c):c==null&&F==="string"?(c="",I=!0):F==="number"&&(c=0,I=!0)}try{s[n]=c}catch{}I&&s.removeAttribute(n)}function Du(s,n,c,d){s.addEventListener(n,c,d)}function Hu(s,n,c,d){s.removeEventListener(n,c,d)}const bo=Symbol("_vei");function Bu(s,n,c,d,m=null){const y=s[bo]||(s[bo]={}),S=y[n];if(d&&S)S.value=d;else{const[L,I]=Wu(n);if(d){const F=y[n]=ju(d,m);Du(s,L,F,I)}else S&&(Hu(s,L,S,I),y[n]=void 0)}}const vo=/(?:Once|Passive|Capture)$/;function Wu(s){let n;if(vo.test(s)){n={};let d;for(;d=s.match(vo);)s=s.slice(0,s.length-d[0].length),n[d[0].toLowerCase()]=!0}return[s[2]===":"?s.slice(3):ea(s.slice(2)),n]}let sr=0;const Vu=Promise.resolve(),Gu=()=>sr||(Vu.then(()=>sr=0),sr=Date.now());function ju(s,n){const c=d=>{if(!d._vts)d._vts=Date.now();else if(d._vts<=c.attached)return;De(Uu(d,c.value),n,5,[d])};return c.value=s,c.attached=Gu(),c}function Uu(s,n){if(wt(n)){const c=s.stopImmediatePropagation;return s.stopImmediatePropagation=()=>{c.call(s),s._stopped=!0},n.map(d=>m=>!m._stopped&&d&&d(m))}else return n}const yo=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&s.charCodeAt(2)>96&&s.charCodeAt(2)<123,$u=(s,n,c,d,m,y,S,L,I)=>{const F=m==="svg";n==="class"?Ru(s,d,F):n==="style"?Nu(s,c,d):Es(n)?Kr(n)||Bu(s,n,c,d,S):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):qu(s,n,d,F))?(Yu(s,n,d,y,S,L,I),(n==="value"||n==="checked"||n==="selected")&&mo(s,n,d,F,S,n!=="value")):(n==="true-value"?s._trueValue=d:n==="false-value"&&(s._falseValue=d),mo(s,n,d,F))};function qu(s,n,c,d){if(d)return!!(n==="innerHTML"||n==="textContent"||n in s&&yo(n)&&St(c));if(n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&s.tagName==="INPUT"||n==="type"&&s.tagName==="TEXTAREA")return!1;if(n==="width"||n==="height"){const m=s.tagName;if(m==="IMG"||m==="VIDEO"||m==="CANVAS"||m==="SOURCE")return!1}return yo(n)&&le(c)?!1:n in s}const Zu=he({patchProp:$u},Mu);let wo;function Ku(){return wo||(wo=au(Zu))}const Ju=(...s)=>{const n=Ku().createApp(...s),{mount:c}=n;return n.mount=d=>{const m=tf(d);if(!m)return;const y=n._component;!St(y)&&!y.render&&!y.template&&(y.template=m.innerHTML),m.innerHTML="";const S=c(m,!1,Qu(m));return m instanceof Element&&(m.removeAttribute("v-cloak"),m.setAttribute("data-v-app","")),S},n};function Qu(s){if(s instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&s instanceof MathMLElement)return"mathml"}function tf(s){return le(s)?document.querySelector(s):s}function ef(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Er={exports:{}};/*!
* ApexCharts v3.45.2
* (c) 2018-2024 ApexCharts
* Released under the MIT License.
*/(function(s,n){function c(E,t){var e=Object.keys(E);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(E);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(E,a).enumerable})),e.push.apply(e,i)}return e}function d(E){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(E,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach(function(i){Object.defineProperty(E,i,Object.getOwnPropertyDescriptor(e,i))})}return E}function m(E){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(E)}function y(E,t){if(!(E instanceof t))throw new TypeError("Cannot call a class as a function")}function S(E,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(E,i.key,i)}}function L(E,t,e){return t&&S(E.prototype,t),e&&S(E,e),E}function I(E,t,e){return t in E?Object.defineProperty(E,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):E[t]=e,E}function F(E,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(t&&t.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),t&&H(E,t)}function z(E){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},z(E)}function H(E,t){return H=Object.setPrototypeOf||function(e,i){return e.__proto__=i,e},H(E,t)}function G(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function J(E){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=z(E);if(t){var a=z(this).constructor;e=Reflect.construct(i,arguments,a)}else e=i.apply(this,arguments);return function(r,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 G(r)}(this,e)}}function bt(E,t){return function(e){if(Array.isArray(e))return e}(E)||function(e,i){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,o,l=[],h=!0,f=!1;try{for(a=a.call(e);!(h=(r=a.next()).done)&&(l.push(r.value),!i||l.length!==i);h=!0);}catch(g){f=!0,o=g}finally{try{h||a.return==null||a.return()}finally{if(f)throw o}}return l}}(E,t)||Ot(E,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 lt(E){return function(t){if(Array.isArray(t))return et(t)}(E)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(E)||Ot(E)||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 Ot(E,t){if(E){if(typeof E=="string")return et(E,t);var e=Object.prototype.toString.call(E).slice(8,-1);return e==="Object"&&E.constructor&&(e=E.constructor.name),e==="Map"||e==="Set"?Array.from(E):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?et(E,t):void 0}}function et(E,t){(t==null||t>E.length)&&(t=E.length);for(var e=0,i=new Array(t);e<t;e++)i[e]=E[e];return i}var R=function(){function E(){y(this,E)}return L(E,[{key:"shadeRGBColor",value:function(t,e){var i=e.split(","),a=t<0?0:255,r=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((a-o)*r)+o)+","+(Math.round((a-l)*r)+l)+","+(Math.round((a-h)*r)+h)+")"}},{key:"shadeHexColor",value:function(t,e){var i=parseInt(e.slice(1),16),a=t<0?0:255,r=t<0?-1*t:t,o=i>>16,l=i>>8&255,h=255&i;return"#"+(16777216+65536*(Math.round((a-o)*r)+o)+256*(Math.round((a-l)*r)+l)+(Math.round((a-h)*r)+h)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,e){return E.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(r){if(r==null)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(r),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 a=Object.assign({},t);return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach(function(r){i.isObject(e[r])&&r in t?a[r]=i.extend(t[r],e[r]):Object.assign(a,I({},r,e[r]))}),a}},{key:"extendArray",value:function(t,e){var i=[];return t.map(function(a){i.push(E.extend(e,a))}),t=i}},{key:"monthMod",value:function(t){return t%12}},{key:"clone",value:function(t){if(E.is("Array",t)){for(var e=[],i=0;i<t.length;i++)e[i]=this.clone(t[i]);return e}if(E.is("Null",t))return null;if(E.is("Date",t))return t;if(m(t)==="object"){var a={};for(var r in t)t.hasOwnProperty(r)&&(a[r]=this.clone(t[r]));return a}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="",a=t<0?"-":"",r=e[0].replace(".",""),o=Number(e[1])+1;if(o<0){for(i=a+"0.";o++;)i+="0";return i+r.replace(/^-/,"")}for(o-=r.length;o--;)i+="0";return r+i}},{key:"getDimensions",value:function(t){var e=getComputedStyle(t,null),i=t.clientHeight,a=t.clientWidth;return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),[a-=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(a,r){return a.length>r.length?a:r})),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 a=0;a<i.length;a++)i[a]=parseInt(i[a].length===1?i[a]+i[a]:i[a],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=[],a=2*Math.PI/e,r=0;r<e;r++){var o={};o.x=t*Math.sin(r*a),o.y=-t*Math.cos(r*a),i.push(o)}return i}},{key:"polarToCartesian",value:function(t,e,i,a){var r=(a-90)*Math.PI/180;return{x:t+i*Math.cos(r),y:e+i*Math.sin(r)}}},{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 a=i-t.length+1;a--;)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 a=t.indexOf("Edge/");return a>0&&parseInt(t.substring(a+5,t.indexOf(".",a)),10)}}]),E}(),ct=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w,this.setEasingFunctions()}return L(E,[{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,a){t.attr(e).animate(a).attr(i)}},{key:"animateMarker",value:function(t,e,i,a,r,o){e||(e=0),t.attr({r:e,width:e,height:e}).animate(a,r).attr({r:i,width:i.width,height:i.height}).afterAll(function(){o()})}},{key:"animateCircle",value:function(t,e,i,a,r){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(a,r).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(t,e,i,a,r){t.attr(e).animate(a).attr(i).afterAll(function(){return r()})}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.realIndex,a=t.j,r=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,a,g.config.chart.type!=="line"||g.globals.comboCharts?r:"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,a,r,o,l,h){var f=this,g=this.w;r||(r=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)};(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=p()),(!o||o.indexOf("undefined")>-1||o.indexOf("NaN")>-1)&&(o=p()),g.globals.shouldAnimate||(l=1),t.plot(r).animate(1,g.globals.easing,h).plot(r).animate(l,g.globals.easing,h).plot(o).afterAll(function(){R.isNumber(i)?i===g.globals.series[g.globals.maxValsInArrayIndex].length-2&&g.globals.shouldAnimate&&f.animationCompleted(t):a!=="none"&&g.globals.shouldAnimate&&(!g.globals.comboCharts&&e===g.globals.series.length-1||g.globals.comboCharts)&&f.animationCompleted(t),f.showDelayedElements()})}}]),E}(),ut=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{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 a=this,r=this.w,o=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter(function(l){var h=r.config.chart.dropShadow;(h.enabled?a.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 a=this,r=this.w,o=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter(function(l){var h=r.config.chart.dropShadow;(h.enabled?a.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 a=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:a});break;case"darken":this.addDarkenFilter(t,e,{intensity:a})}}},{key:"addShadow",value:function(t,e,i){var a=i.blur,r=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,r).gaussianBlur(a).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,a=e.top,r=e.left,o=e.blur,l=e.color,h=e.opacity,f=e.noUserSpaceOnUse,g=this.w;return t.unfilter(!0),R.isIE()&&g.config.chart.type==="radialBar"||(l=Array.isArray(l)?l[i]:l,t.filter(function(p){var x=null;x=R.isSafari()||R.isFirefox()||R.isIE()?p.flood(l,h).composite(p.sourceAlpha,"in").offset(r,a).gaussianBlur(o):p.flood(l,h).composite(p.sourceAlpha,"in").offset(r,a).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 a=this.w;if(a.globals.selectedDataPoints[e]!==void 0&&a.globals.selectedDataPoints[e].indexOf(i)>-1){t.node.setAttribute("selected",!0);var r=a.config.states.active.filter;r!=="none"&&this.applyFilter(t,e,r.type,r.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%"})}}]),E}(),W=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{key:"roundPathCorners",value:function(t,e){function i(O,N,X){var B=N.x-O.x,$=N.y-O.y,V=Math.sqrt(B*B+$*$);return a(O,N,Math.min(1,X/V))}function a(O,N,X){return{x:O.x+(N.x-O.x)*X,y:O.y+(N.y-O.y)*X}}function r(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,T=o(x),M=o(v),u=o(w);A=i(M,T,e),C=i(M,u,e),r(v,A),v.origPoint=M,h.push(v);var b=a(A,M,.5),k=a(M,C,.5),P=["C",b.x,b.y,k.x,k.y,C.x,C.y];P.origPoint=M,h.push(P)}else h.push(v)}if(g){var _=o(h[h.length-1]);h.push(["Z"]),r(h[0],_)}}else h=l;return h.reduce(function(O,N){return O+N.join(" ")+" "},"")}},{key:"drawLine",value:function(t,e,i,a){var r=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:a,stroke:r,"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,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=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:a>0?a:0,rx:r,ry:r,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,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(t).attr({fill:a,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,a=t.stroke,r=a===void 0?"#a8a8a8":a,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,T=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:r,"stroke-opacity":x,"stroke-linecap":A,"stroke-width":l,"stroke-dasharray":T,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,a=null;return i===null?a=[" L",t,e].join(" "):i==="H"?a=[" H",t].join(" "):i==="V"&&(a=[" V",e].join(" ")),a}},{key:"curve",value:function(t,e,i,a,r,o){var l=["C",t,e,i,a,r,o].join(" ");return l}},{key:"quadraticCurve",value:function(t,e,i,a){return["Q",t,e,i,a].join(" ")}},{key:"arc",value:function(t,e,i,a,r,o,l){var h="A";arguments.length>7&&arguments[7]!==void 0&&arguments[7]&&(h="a");var f=[h,t,e,i,a,r,o,l].join(" ");return f}},{key:"renderPaths",value:function(t){var e,i=t.j,a=t.realIndex,r=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,T=t.bindEventsOnPaths,M=T===void 0||T,u=t.drawShadow,b=u===void 0||u,k=this.w,P=new ut(this.ctx),_=new ct(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=r:(e=o,k.globals.animationEnded=!0);var B=k.config.stroke.dashArray,$=0;$=Array.isArray(B)?B[a]:k.config.stroke.dashArray;var V=this.drawPath({d:e,stroke:l,strokeWidth:h,fill:g,fillOpacity:1,classes:w,strokeLinecap:f,strokeDashArray:$});if(V.attr("index",a),C&&V.attr({"clip-path":"url(#gridRectMask".concat(k.globals.cuid,")")}),k.config.states.normal.filter.type!=="none")P.getDefaultFilter(V,a);else if(k.config.chart.dropShadow.enabled&&b&&(!k.config.chart.dropShadow.enabledOnSeries||k.config.chart.dropShadow.enabledOnSeries&&k.config.chart.dropShadow.enabledOnSeries.indexOf(a)!==-1)){var st=k.config.chart.dropShadow;P.dropShadow(V,st,a)}M&&(V.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,V)),V.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,V)),V.node.addEventListener("mousedown",this.pathMouseDown.bind(this,V))),V.attr({pathTo:o,pathFrom:r});var ht={el:V,j:i,realIndex:a,pathFrom:r,pathTo:o,fill:g,strokeWidth:h,delay:p};return!O||k.globals.resized||k.globals.dataChanged?!k.globals.resized&&k.globals.dataChanged||_.showDelayedElements():_.animatePathsGradually(d(d({},ht),{},{speed:x})),k.globals.dataChanged&&N&&X&&_.animatePathsGradually(d(d({},ht),{},{speed:v})),V}},{key:"drawPattern",value:function(t,e,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",r=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:a,width:r+1}):t==="verticalLines"?o.line(0,0,0,e).stroke({color:a,width:r+1}):t==="slantedLines"?o.line(0,0,e,i).stroke({color:a,width:r}):t==="squares"?o.rect(e,i).fill("none").stroke({color:a,width:r}):t==="circles"&&o.circle(e).fill("none").stroke({color:a,width:r})})}},{key:"drawGradient",value:function(t,e,i,a,r){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=R.hexToRgba(e,a)),i.length<9&&i.indexOf("#")===0&&(i=R.hexToRgba(i,r));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,a),u.at(v,i,r),u.at(w,i,r),A!==null&&u.at(A,e,a)}):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 T=p.globals.gridWidth/2,M=p.globals.gridHeight/2;p.config.chart.type!=="bubble"?o.attr({gradientUnits:"userSpaceOnUse",cx:T,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,a=t.fontSize,r=t.fontFamily,o=this.getTextRects(e,a,r),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,a=t.y,r=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,T=t.dominantBaseline,M=T===void 0?"auto":T,u=this.w;r===void 0&&(r="");var b=r;o||(o="start"),g&&g.length||(g=u.config.chart.foreColor),h=h||u.config.chart.fontFamily,f=f||"regular";var k,P={maxWidth:x,fontSize:l=l||"11px",fontFamily:h};return Array.isArray(r)?k=u.globals.dom.Paper.text(function(_){for(var O=0;O<r.length;O++)b=r[O],x&&(b=e.getTextBasedOnMaxWidth(d({text:r[O]},P))),O===0?_.tspan(b):_.tspan(b).newLine()}):(x&&(b=this.getTextBasedOnMaxWidth(d({text:r},P))),k=C?u.globals.dom.Paper.plain(r):u.globals.dom.Paper.text(function(_){return _.tspan(b)})),k.attr({x:i,y:a,"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 a=i.pSize||0,r=null;if(i.shape==="square"||i.shape==="rect"){var o=i.pRadius===void 0?a/2:i.pRadius;e!==null&&a||(a=0,o=0);var l=1.2*a+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}),r=h}else i.shape!=="circle"&&i.shape||(R.isNumber(e)||(a=0,e=0),r=this.drawCircle(a,{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 r}},{key:"pathMouseEnter",value:function(t,e){var i=this.w,a=new ut(this.ctx),r=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:r,dataPointIndex:o,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[e,this.ctx,{seriesIndex:r,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;a.applyFilter(t,r,l.type,l.value)}}},{key:"pathMouseLeave",value:function(t,e){var i=this.w,a=new ut(this.ctx),r=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:r,dataPointIndex:o,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:i}]),i.config.states.active.filter.type!=="none"&&t.node.getAttribute("selected")==="true"||i.config.states.hover.filter.type!=="none"&&a.getDefaultFilter(t,r)}},{key:"pathMouseDown",value:function(t,e){var i=this.w,a=new ut(this.ctx),r=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[r].indexOf(o)>-1){var h=i.globals.selectedDataPoints[r].indexOf(o);i.globals.selectedDataPoints[r].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"),a.getDefaultFilter(A,r)})};p(f),p(g)}t.node.setAttribute("selected","true"),l="true",i.globals.selectedDataPoints[r]===void 0&&(i.globals.selectedDataPoints[r]=[]),i.globals.selectedDataPoints[r].push(o)}if(l==="true"){var x=i.config.states.active.filter;if(x!=="none")a.applyFilter(t,r,x.type,x.value);else if(i.config.states.hover.filter!=="none"&&!i.globals.isTouchDevice){var v=i.config.states.hover.filter;a.applyFilter(t,r,v.type,v.value)}}else i.config.states.active.filter.type!=="none"&&(i.config.states.hover.filter.type==="none"||i.globals.isTouchDevice?a.getDefaultFilter(t,r):(v=i.config.states.hover.filter,a.applyFilter(t,r,v.type,v.value)));typeof i.config.chart.events.dataPointSelection=="function"&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:o,w:i}),e&&this.ctx.events.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:r,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,a){var r=!(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});a&&l.attr("transform",a),o.globals.dom.Paper.add(l);var h=l.bbox();return r||(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 a=e.length-3;a>0;a-=3)if(t.getSubStringLength(0,a)<=i/1.1)return void(t.textContent=e.substring(0,a)+"...");t.textContent="."}}}],[{key:"setAttrs",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}}]),E}(),it=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{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 a=0;a<e.globals.series[e.globals.maxValsInArrayIndex].length;a++){for(var r=0,o=0;o<e.globals.series.length;o++)e.globals.series[o][a]!==void 0&&t.indexOf(o)===-1&&(r+=e.globals.series[o][a]);i.push(r)}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(a){var r=[];e.config.series.forEach(function(l,h){a.indexOf(l.name)>-1&&r.push(h)});var o=e.globals.series.map(function(l,h){return r.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,a){return e===a[0]})}},{key:"getCategoryLabels",value:function(t){var e=this.w,i=t.slice();return e.config.xaxis.convertedCatToNumeric&&(i=t.map(function(a,r){return e.config.xaxis.labels.formatter(a-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 a=0;if(Array.isArray(e))for(var r=0;r<e.length;r++)a+=e[r];else a+=e;return a})}},{key:"getSeriesTotalsXRange",value:function(t,e){var i=this.w;return i.globals.series.map(function(a,r){for(var o=0,l=0;l<a.length;l++)i.globals.seriesX[r][l]>t&&i.globals.seriesX[r][l]<e&&(o+=a[l]);return o})}},{key:"getPercentSeries",value:function(){var t=this.w;t.globals.seriesPercent=t.globals.series.map(function(e,i){var a=[];if(Array.isArray(e))for(var r=0;r<e.length;r++){var o=t.globals.stackedSeriesTotals[r],l=0;o&&(l=100*e[r]/o),a.push(l)}else{var h=100*e/t.globals.seriesTotals.reduce(function(f,g){return f+g},0);a.push(h)}return a})}},{key:"getCalculatedRatios",value:function(){var t,e,i,a=this.w.globals,r=[],o=0,l=[],h=.1,f=0;if(a.yRange=[],a.isMultipleYAxis)for(var g=0;g<a.minYArr.length;g++)a.yRange.push(Math.abs(a.minYArr[g]-a.maxYArr[g])),l.push(0);else a.yRange.push(Math.abs(a.minY-a.maxY));a.xRange=Math.abs(a.maxX-a.minX),a.zRange=Math.abs(a.maxZ-a.minZ);for(var p=0;p<a.yRange.length;p++)r.push(a.yRange[p]/a.gridHeight);if(e=a.xRange/a.gridWidth,t=a.yRange/a.gridWidth,i=a.xRange/a.gridHeight,(o=a.zRange/a.gridHeight*16)||(o=1),a.minY!==Number.MIN_VALUE&&Math.abs(a.minY)!==0&&(a.hasNegs=!0),a.isMultipleYAxis){l=[];for(var x=0;x<r.length;x++)l.push(-a.minYArr[x]/r[x])}else l.push(-a.minY/r[0]),a.minY!==Number.MIN_VALUE&&Math.abs(a.minY)!==0&&(h=-a.minY/t,f=a.minX/e);return{yRatio:r,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(a,r){return i.config.yaxis[r]&&i.config.yaxis[r].logarithmic?a.map(function(o){return o===null?null:e.getLogVal(i.config.yaxis[r].logBase,o,r)}):a}),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 a=this.w,r=a.globals.minYArr[i]===0?-1:this.getBaseLog(t,a.globals.minYArr[i]),o=(a.globals.maxYArr[i]===0?0:this.getBaseLog(t,a.globals.maxYArr[i]))-r;return e<1?e/o:(this.getBaseLog(t,e)-r)/o}},{key:"getLogYRatios",value:function(t){var e=this,i=this.w,a=this.w.globals;return a.yLogRatio=t.slice(),a.logYRange=a.yRange.map(function(r,o){if(i.config.yaxis[o]&&e.w.config.yaxis[o].logarithmic){var l,h=-Number.MAX_VALUE,f=Number.MIN_VALUE;return a.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(a.yRange[o],Math.abs(f-h)/a.yRange[o]),a.yLogRatio[o]=l/a.gridHeight,l}}),a.invalidLogScale?t.slice():a.yLogRatio}}],[{key:"checkComboSeries",value:function(t){var e=!1,i=0,a=0;return t.length&&t[0].type!==void 0&&t.forEach(function(r){r.type!=="bar"&&r.type!=="column"&&r.type!=="candlestick"&&r.type!=="boxPlot"||i++,r.type!==void 0&&a++}),a>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}}]),E}(),Mt=function(){function E(t){y(this,E),this.w=t.w,this.annoCtx=t}return L(E,[{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 a=e!==null?e:0,r=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(a,"']"));if(r!==null){var o=r.getBoundingClientRect();r.setAttribute("x",parseFloat(r.getAttribute("x"))-o.height+4),t.label.position==="top"?r.setAttribute("y",parseFloat(r.getAttribute("y"))+o.width):r.setAttribute("y",parseFloat(r.getAttribute("y"))-o.width);var l=this.annoCtx.graphics.rotateAroundCenter(r),h=l.x,f=l.y;r.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 a=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),r=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=r.left-a.left-o,p=r.top-a.top-h,x=this.annoCtx.graphics.drawRect(g-i.globals.barPadForNumericAxis,p,r.width+o+l,r.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(a,r,o){var l=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(o,"-annotations .apexcharts-").concat(o,"-annotation-label[rel='").concat(r,"']"));if(l){var h=l.parentNode,f=t.addBackgroundToAnno(l,a);f&&(h.insertBefore(f.node,l),a.label.mouseEnter&&f.node.addEventListener("mouseenter",a.label.mouseEnter.bind(t,a)),a.label.mouseLeave&&f.node.addEventListener("mouseleave",a.label.mouseLeave.bind(t,a)),a.label.click&&f.node.addEventListener("click",a.label.click.bind(t,a)))}};e.config.annotations.xaxis.map(function(a,r){i(a,r,"xaxis")}),e.config.annotations.yaxis.map(function(a,r){i(a,r,"yaxis")}),e.config.annotations.points.map(function(a,r){i(a,r,"point")})}},{key:"getY1Y2",value:function(t,e){var i,a=t==="y1"?e.y:e.y2,r=this.w;if(this.annoCtx.invertAxis){var o=r.globals.labels.indexOf(a);r.config.xaxis.convertedCatToNumeric&&(o=r.globals.categoryLabels.indexOf(a));var l=r.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(o+1)+")");l&&(i=parseFloat(l.getAttribute("y"))),e.seriesIndex!==void 0&&r.globals.barHeight&&(i=i-r.globals.barHeight/2*(r.globals.series.length-1)+r.globals.barHeight*e.seriesIndex)}else{var h;r.config.yaxis[e.yAxisIndex].logarithmic?h=(a=new it(this.annoCtx.ctx).getLogVal(a,e.yAxisIndex))/r.globals.yLogRatio[e.yAxisIndex]:h=(a-r.globals.minYArr[e.yAxisIndex])/(r.globals.yRange[e.yAxisIndex]/r.globals.gridHeight),i=r.globals.gridHeight-h,!e.marker||e.y!==void 0&&e.y!==null||(i=0),r.config.yaxis[e.yAxisIndex]&&r.config.yaxis[e.yAxisIndex].reversed&&(i=h)}return typeof a=="string"&&a.indexOf("px")>-1&&(i=parseFloat(a)),i}},{key:"getX1X2",value:function(t,e){var i=this.w,a=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,r=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,o=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,l=(e.x-a)/(o/i.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(l=(r-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-a)/(o/i.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(h=(r-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 a=e.globals.labels.indexOf(t),r=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(a+1)+")");return r&&(i=parseFloat(r.getAttribute("x"))),i}}]),E}(),Ut=function(){function E(t){y(this,E),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new Mt(this.annoCtx)}return L(E,[{key:"addXaxisAnnotation",value:function(t,e,i){var a,r=this.w,o=this.helpers.getX1X2("x1",t),l=t.label.text,h=t.strokeDashArray;if(R.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,r.globals.gridHeight+t.offsetY,t.borderColor,h,t.borderWidth);e.appendChild(f.node),t.id&&f.node.classList.add(t.id)}else{if((a=this.helpers.getX1X2("x2",t))<o){var g=o;o=a,a=g}var p=this.annoCtx.graphics.drawRect(o+t.offsetX,0+t.offsetY,a-o,r.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(r.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"?r.globals.gridHeight/2+(t.label.orientation==="vertical"?x.width/2:0):r.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(a,r){t.addXaxisAnnotation(a,i.node,r)}),i}}]),E}(),re=function(){function E(t){y(this,E),this.w=t.w,this.annoCtx=t,this.helpers=new Mt(this.annoCtx)}return L(E,[{key:"addYaxisAnnotation",value:function(t,e,i){var a,r=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((a=this.helpers.getY1Y2("y2",t))>l){var g=l;l=a,a=g}var p=this.annoCtx.graphics.drawRect(0+t.offsetX,a+t.offsetY,this._getYAxisAnnotationWidth(t),l-a,0,t.fillColor,t.opacity,1,t.borderColor,o);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")")),e.appendChild(p.node),t.id&&p.node.classList.add(t.id)}var x=t.label.position==="right"?r.globals.gridWidth:t.label.position==="center"?r.globals.gridWidth/2:0,v=this.annoCtx.graphics.drawText({x:x+t.label.offsetX,y:(a??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(a,r){t.addYaxisAnnotation(a,i.node,r)}),i}}]),E}(),de=function(){function E(t){y(this,E),this.w=t.w,this.annoCtx=t,this.helpers=new Mt(this.annoCtx)}return L(E,[{key:"addPointAnnotation",value:function(t,e,i){this.w;var a=this.helpers.getX1X2("x1",t),r=this.helpers.getY1Y2("y1",t);if(R.isNumber(a)){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(a+t.marker.offsetX,r+t.marker.offsetY,o);e.appendChild(l.node);var h=t.label.text?t.label.text:"",f=this.annoCtx.graphics.drawText({x:a+t.label.offsetX,y:r+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(a+t.customSVG.offsetX,", ").concat(r+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:a+t.image.offsetX-p/2,y:r+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(a,r){t.addPointAnnotation(a,i.node,r)}),i}}]),E}(),mt={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"}}},Pt=function(){function E(){y(this,E),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 L(E,[{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:[mt],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}}}}}]),E}(),ge=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w,this.graphics=new W(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new Mt(this),this.xAxisAnnotations=new Ut(this),this.yAxisAnnotations=new re(this),this.pointsAnnotations=new de(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 L(E,[{key:"drawAxesAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts){for(var e=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),a=this.pointsAnnotations.drawPointAnnotations(),r=t.config.chart.animations.enabled,o=[e,i,a],l=[i.node,e.node,a.node],h=0;h<3;h++)t.globals.dom.elGraphical.add(o[h]),!r||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,a=t.y,r=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,T=t.appendTo,M=T===void 0?".apexcharts-svg":T,u=t.paddingLeft,b=u===void 0?4:u,k=t.paddingRight,P=k===void 0?4:k,_=t.paddingBottom,O=_===void 0?2:_,N=t.paddingTop,X=N===void 0?2:N,B=this.w,$=this.graphics.drawText({x:i,y:a,text:r,textAnchor:o||"start",fontSize:h||"12px",fontWeight:g||"regular",fontFamily:f||B.config.chart.fontFamily,foreColor:l||B.config.chart.foreColor,cssClass:p}),V=B.globals.dom.baseEl.querySelector(M);V&&V.appendChild($.node);var st=$.bbox();if(r){var ht=this.graphics.drawRect(st.x-b,st.y-X,st.width+b+P,st.height+O+X,A,x||"transparent",1,v,C,w);V.insertBefore(ht.node,$.node)}}},{key:"addImage",value:function(t,e){var i=this.w,a=t.path,r=t.x,o=r===void 0?0:r,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(a);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,a=t.context,r=t.type,o=t.contextMethod,l=a,h=l.w,f=h.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations")),g=f.childNodes.length+1,p=new Pt,x=Object.assign({},r==="xaxis"?p.xAxisAnnotation:r==="yaxis"?p.yAxisAnnotation:p.pointAnnotation),v=R.extend(x,e);switch(r){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(r,"-annotations .apexcharts-").concat(r,"-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:R.randomId(),method:o,label:"addAnnotation",params:e}),a}},{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(a,r){a.label!=="addText"&&a.label!=="addAnnotation"||e.globals.memory.methodsToExec.splice(r,1)}),i=R.listToArray(i),Array.prototype.forEach.call(i,function(a){for(;a.firstChild;)a.removeChild(a.firstChild)})}},{key:"removeAnnotation",value:function(t,e){var i=t.w,a=i.globals.dom.baseEl.querySelectorAll(".".concat(e));a&&(i.globals.memory.methodsToExec.map(function(r,o){r.id===e&&i.globals.memory.methodsToExec.splice(o,1)}),Array.prototype.forEach.call(a,function(r){r.parentElement.removeChild(r)}))}}]),E}(),Tt=function(){function E(t){y(this,E),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 L(E,[{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,a=this.w.config.xaxis.labels.datetimeUTC,r=["\0"].concat(lt(i.months)),o=[""].concat(lt(i.shortMonths)),l=[""].concat(lt(i.days)),h=[""].concat(lt(i.shortDays));function f(O,N){var X=O+"";for(N=N||2;X.length<N;)X="0"+X;return X}var g=a?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=(a?t.getUTCMonth():t.getMonth())+1;e=(e=(e=(e=e.replace(/(^|[^\\])MMMM+/g,"$1"+r[0])).replace(/(^|[^\\])MMM/g,"$1"+o[0])).replace(/(^|[^\\])MM/g,"$1"+f(p))).replace(/(^|[^\\])M/g,"$1"+p);var x=a?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=a?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=a?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+f(A))).replace(/(^|[^\\])m/g,"$1"+A);var C=a?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+f(C))).replace(/(^|[^\\])s/g,"$1"+C);var T=a?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+f(T,3)),T=Math.round(T/10),e=e.replace(/(^|[^\\])ff/g,"$1"+f(T)),T=Math.round(T/10);var M=v<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+T)).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=a||!b?"Z":b>0?"+":"-";if(!a){var P=(b=Math.abs(b))%60;k+=f(Math.floor(b/60))+":"+f(P)}e=e.replace(/(^|[^\\])K/g,"$1"+k);var _=(a?t.getUTCDay():t.getDay())+1;return e=(e=(e=(e=(e=e.replace(new RegExp(l[0],"g"),l[_])).replace(new RegExp(h[0],"g"),h[_])).replace(new RegExp(r[0],"g"),r[p])).replace(new RegExp(o[0],"g"),o[p])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e,i){var a=this.w;a.config.xaxis.min!==void 0&&(t=a.config.xaxis.min),a.config.xaxis.max!==void 0&&(e=a.config.xaxis.max);var r=this.getDate(t),o=this.getDate(e),l=this.formatDate(r,"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 a=this.daysCntOfYear[e]+i;return e>1&&this.isLeapYear()&&a++,a}},{key:"determineDaysOfMonths",value:function(t,e){var i=30;switch(t=R.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}(),Pe=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w,this.tooltipKeyFormat="dd MMM"}return L(E,[{key:"xLabelFormat",value:function(t,e,i,a){var r=this.w;if(r.config.xaxis.type==="datetime"&&r.config.xaxis.labels.formatter===void 0&&r.config.tooltip.x.formatter===void 0){var o=new Tt(this.ctx);return o.formatDate(o.getDate(e),r.config.tooltip.x.format)}return t(e,i,a)}},{key:"defaultGeneralFormatter",value:function(t){return Array.isArray(t)?t.map(function(e){return e}):t}},{key:"defaultYFormatter",value:function(t,e,i){var a=this.w;return R.isNumber(t)&&(t=a.globals.yValueDecimal!==0?t.toFixed(e.decimalsInFloat!==void 0?e.decimalsInFloat:a.globals.yValueDecimal):a.globals.maxYArr[i]-a.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(R.isNumber(i)){if(!e.config.xaxis.convertedCatToNumeric&&e.config.xaxis.type==="numeric"){if(R.isNumber(e.config.xaxis.decimalsInFloat))return i.toFixed(e.config.xaxis.decimalsInFloat);var a=e.globals.maxX-e.globals.minX;return a>0&&a<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,a){i.labels.formatter!==void 0?e.globals.yLabelFormatters[a]=i.labels.formatter:e.globals.yLabelFormatters[a]=function(r){return e.globals.xyCharts?Array.isArray(r)?r.map(function(o){return t.defaultYFormatter(o,i,a)}):t.defaultYFormatter(r,i,a):r}}),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,a){return i.length>a.length?i:a},0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}}]),E}(),Zt=function(E){var t,e=E.isTimeline,i=E.ctx,a=E.seriesIndex,r=E.dataPointIndex,o=E.y1,l=E.y2,h=E.w,f=h.globals.seriesRangeStart[a][r],g=h.globals.seriesRangeEnd[a][r],p=h.globals.labels[r],x=h.config.series[a].name?h.config.series[a].name:"",v=h.globals.ttKeyFormatter,w=h.config.tooltip.y.title.formatter,A={w:h,seriesIndex:a,dataPointIndex:r,start:f,end:g};typeof w=="function"&&(x=w(x,A)),(t=h.config.series[a].data[r])!==null&&t!==void 0&&t.x&&(p=h.config.series[a].data[r].x),e||h.config.xaxis.type==="datetime"&&(p=new Pe(i).xLabelFormat(h.globals.ttKeyFormatter,p,p,{i:void 0,dateFormatter:new Tt(i).formatDate,w:h})),typeof v=="function"&&(p=v(p,A)),Number.isFinite(o)&&Number.isFinite(l)&&(f=o,g=l);var C="",T="",M=h.globals.colors[a];if(h.config.tooltip.x.formatter===void 0)if(h.config.xaxis.type==="datetime"){var u=new Tt(i);C=u.formatDate(u.getDate(f),h.config.tooltip.x.format),T=u.formatDate(u.getDate(g),h.config.tooltip.x.format)}else C=f,T=g;else C=h.config.tooltip.x.formatter(f),T=h.config.tooltip.x.formatter(g);return{start:f,end:g,startVal:C,endVal:T,ylabel:p,color:M,seriesName:x}},Xt=function(E){var t=E.color,e=E.seriesName,i=E.ylabel,a=E.start,r=E.end,o=E.seriesIndex,l=E.dataPointIndex,h=E.ctx.tooltip.tooltipLabels.getFormatters(o);a=h.yLbFormatter(a),r=h.yLbFormatter(r);var f=h.yLbFormatter(E.w.globals.series[o][l]),g=`<span class="value start-value">
`.concat(a,`
</span> <span class="separator">-</span> <span class="value end-value">
`).concat(r,`
</span>`);return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(e||"")+'</span></div><div> <span class="category">'+i+": </span> "+(E.w.globals.comboCharts?E.w.config.series[o].type==="rangeArea"||E.w.config.series[o].type==="rangeBar"?g:"<span>".concat(f,"</span>"):g)+" </div></div>"},Rt=function(){function E(t){y(this,E),this.opts=t}return L(E,[{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(),R.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,a=e.dataPointIndex,r=e.w;return t._getBoxTooltip(r,i,a,["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,a=e.dataPointIndex,r=e.w;return t._getBoxTooltip(r,i,a,["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,a=e.dataPointIndex,r=e.w,o=function(){var l=r.globals.seriesRangeStart[i][a];return r.globals.seriesRangeEnd[i][a]-l};return r.globals.comboCharts?r.config.series[i].type==="rangeBar"||r.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=Zt(d(d({},e),{},{isTimeline:!0})),a=i.color,r=i.seriesName,o=i.ylabel,l=i.startVal,h=i.endVal;return Xt(d(d({},e),{},{color:a,seriesName:r,ylabel:o,start:l,end:h}))}(t):function(e){var i=Zt(e),a=i.color,r=i.seriesName,o=i.ylabel,l=i.start,h=i.end;return Xt(d(d({},e),{},{color:a,seriesName:r,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=Zt(e),a=i.color,r=i.seriesName,o=i.ylabel,l=i.start,h=i.end;return Xt(d(d({},e),{},{color:a,seriesName:r,ylabel:o,start:l,end:h}))}(t)}}}}},{key:"brush",value:function(t){return R.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,a){t.yaxis[a].min=0,t.yaxis[a].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 R.isNumber(o)?Math.floor(o):o};var a=t.xaxis.labels.formatter,r=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(r=i.map(function(o){return Array.isArray(o)?o:String(o)})),r&&r.length&&(t.xaxis.labels.formatter=function(o){return R.isNumber(o)?a(r[Math.floor(o)-1]):a(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,a,r){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!==r?`<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(a[0],': <span class="value">')+o+"</span></div>"+"<div>".concat(a[1],': <span class="value">')+l+"</span></div>"+(h?"<div>".concat(a[2],': <span class="value">')+h+"</span></div>":"")+"<div>".concat(a[3],': <span class="value">')+f+"</span></div>"+"<div>".concat(a[4],': <span class="value">')+g+"</span></div></div>"}}]),E}(),Le=function(){function E(t){y(this,E),this.opts=t}return L(E,[{key:"init",value:function(t){var e=t.responsiveOverride,i=this.opts,a=new Pt,r=new Rt(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var o=a.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?r[i.chart.type]():r.line(),(h=i.plotOptions)!==null&&h!==void 0&&(f=h.bar)!==null&&f!==void 0&&f.isFunnel&&(C=r.funnel()),i.chart.stacked&&i.chart.type==="bar"&&(C=r.stackedBars()),(g=i.chart.brush)!==null&&g!==void 0&&g.enabled&&(C=r.brush(C)),i.chart.stacked&&i.chart.stackType==="100%"&&(i=r.stacked100(i)),(p=i.plotOptions)!==null&&p!==void 0&&(x=p.bar)!==null&&x!==void 0&&x.isDumbbell&&(i=r.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=r.sparkline(C)),l=R.extend(o,C)}var T=R.extend(l,window.Apex);return o=R.extend(T,i),o=this.handleUserInputErrors(o)}},{key:"checkForCatToNumericXAxis",value:function(t,e,i){var a,r,o=new Rt(i),l=(t==="bar"||t==="boxPlot")&&((a=i.plotOptions)===null||a===void 0||(r=a.bar)===null||r===void 0?void 0:r.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 Pt;(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=R.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[R.extend(i.yAxis,t.yaxis)]:t.yaxis=R.extendArray(t.yaxis,i.yAxis);var a=!1;t.yaxis.forEach(function(o){o.logarithmic&&(a=!0)});var r=t.series;return e&&!r&&(r=e.config.series),a&&r.length!==t.yaxis.length&&r.length&&(t.yaxis=r.map(function(o,l){if(o.name||(r[l].name="series-".concat(l+1)),t.yaxis[l])return t.yaxis[l].seriesName=r[l].name,t.yaxis[l];var h=R.extend(i.yAxis,t.yaxis[0]);return h.show=!1,h})),a&&r.length>1&&r.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 Pt;return t.annotations.yaxis=R.extendArray(t.annotations.yaxis!==void 0?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new Pt;return t.annotations.xaxis=R.extendArray(t.annotations.xaxis!==void 0?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new Pt;return t.annotations.points=R.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}}]),E}(),Si=function(){function E(){y(this,E)}return L(E,[{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=R.extend({},t),e.initialSeries=R.clone(t.series),e.lastXAxis=R.clone(e.initialConfig.xaxis),e.lastYAxis=R.clone(e.initialConfig.yaxis),e}}]),E}(),qe=function(){function E(t){y(this,E),this.opts=t}return L(E,[{key:"init",value:function(){var t=new Le(this.opts).init({responsiveOverride:!1});return{config:t,globals:new Si().init(t)}}}]),E}(),Jt=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0}return L(E,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,a=parseInt(e.globals.gridWidth,10),r=parseInt(e.globals.gridHeight,10),o=a>r?a:r,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");W.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),W.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,a,r,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=R.hexToRgba(l,f)):l.indexOf("rgba")>-1&&(f=R.getOpacityFromRGBA(l)),t.opacity&&(f=t.opacity),h==="pattern"&&(a=this.handlePatternFill({fillConfig:t.fillConfig,patternFill:a,fillColor:l,fillOpacity:f,defaultColor:g})),h==="gradient"&&(r=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"?r:h==="pattern"?a: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,a=[];return t.globals.comboCharts?t.config.series[this.seriesIndex].type==="line"?Array.isArray(t.globals.stroke.colors)?a=t.globals.stroke.colors:a.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?a=t.globals.fill.colors:a.push(t.globals.fill.colors):e.chart.type==="line"?Array.isArray(t.globals.stroke.colors)?a=t.globals.stroke.colors:a.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?a=t.globals.fill.colors:a.push(t.globals.fill.colors),i.fillColors!==void 0&&(a=[],Array.isArray(i.fillColors)?a=i.fillColors.slice():a.push(i.fillColors)),a}},{key:"handlePatternFill",value:function(t){var e=t.fillConfig,i=t.patternFill,a=t.fillColor,r=t.fillOpacity,o=t.defaultColor,l=this.w.config.fill;e&&(l=e);var h=this.opts,f=new W(this.ctx),g=Array.isArray(l.pattern.strokeWidth)?l.pattern.strokeWidth[this.seriesIndex]:l.pattern.strokeWidth,p=a;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,r):o:i=f.drawPattern(l.pattern.style,l.pattern.width,l.pattern.height,p,g,r),i}},{key:"handleGradientFill",value:function(t){var e=t.fillColor,i=t.fillOpacity,a=t.fillConfig,r=t.i,o=this.w.config.fill;a&&(o=d(d({},o),a));var l,h=this.opts,f=new W(this.ctx),g=new R,p=o.gradient.type,x=e,v=o.gradient.opacityFrom===void 0?i:Array.isArray(o.gradient.opacityFrom)?o.gradient.opacityFrom[r]:o.gradient.opacityFrom;x.indexOf("rgba")>-1&&(v=R.getOpacityFromRGBA(x));var w=o.gradient.opacityTo===void 0?i:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[r]: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?R.rgb2hex(e):e):g.shadeColor(parseFloat(o.gradient.shadeIntensity),e.indexOf("rgb")>-1?R.rgb2hex(e):e);else if(o.gradient.gradientToColors[h.seriesNumber]){var A=o.gradient.gradientToColors[h.seriesNumber];l=A,A.indexOf("rgba")>-1&&(w=R.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=R.rgb2hex(x)),l.indexOf("rgb")>-1&&(l=R.rgb2hex(l)),f.drawGradient(p,x,l,v,w,h.size,o.gradient.stops,o.gradient.colorStops,r)}}]),E}(),li=function(){function E(t,e){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{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,a){var r,o=arguments.length>4&&arguments[4]!==void 0&&arguments[4],l=this.w,h=e,f=t,g=null,p=new W(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){R.isNumber(f.y[v])?A+=" w".concat(R.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)),a&&(C.pSize=a),(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),(r=p.drawMarker(f.x[v],f.y[v],C)).attr("rel",w),r.attr("j",w),r.attr("index",e),r.node.setAttribute("default-marker-size",C.pSize),new ut(this.ctx).setSelectionFilter(r,e,w),this.addEvents(r),g&&g.add(r)}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,a=t.dataPointIndex,r=a===void 0?null:a,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 r!==null&&p.discrete.length&&p.discrete.map(function(x){x.seriesIndex===i&&x.dataPointIndex===r&&(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 W(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,a=e.config.markers.strokeColor||e.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(a)?a[t]:a,pointFillColor:Array.isArray(i)?i[t]:i}}}]),E}(),Fa=function(){function E(t){y(this,E),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 L(E,[{key:"draw",value:function(t,e,i){var a=this.w,r=new W(this.ctx),o=i.realIndex,l=i.pointsPos,h=i.zRatio,f=i.elParent,g=r.group({class:"apexcharts-series-markers apexcharts-series-".concat(a.config.chart.type)});if(g.attr("clip-path","url(#gridRectMarkerMask".concat(a.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=a.globals.markers.size[o];if(h!==1/0){var C=a.config.plotOptions.bubble;A=a.globals.seriesZ[o][x],C.zScaling&&(A/=h),C.minBubbleRadius&&A<C.minBubbleRadius&&(A=C.minBubbleRadius),C.maxBubbleRadius&&A>C.maxBubbleRadius&&(A=C.maxBubbleRadius)}a.config.chart.animations.enabled||(w=A);var T=l.x[p],M=l.y[p];if(w=w||0,M!==null&&a.globals.series[o][x]!==void 0||(v=!1),v){var u=this.drawPoint(T,M,w,A,o,x,e);g.add(u)}f.add(g)}}},{key:"drawPoint",value:function(t,e,i,a,r,o,l){var h=this.w,f=r,g=new ct(this.ctx),p=new ut(this.ctx),x=new Jt(this.ctx),v=new li(this.ctx),w=new W(this.ctx),A=v.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:f,dataPointIndex:o,finishRadius:h.config.chart.type==="bubble"||h.globals.comboCharts&&h.config.series[r]&&h.config.series[r].type==="bubble"?a:null});a=A.pSize;var C,T=x.fillPath({seriesNumber:r,dataPointIndex:o,color:A.pointFillColor,patternUnits:"objectBoundingBox",value:h.globals.series[r][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&&(T=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:T,"fill-opacity":A.pointFillOpacity,stroke:A.pointStrokeColor,r:a,"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,r)}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"?a:{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,P,_,O=h.config.chart.animations.dynamicAnimation.speed;(_=h.globals.previousPaths[r]&&h.globals.previousPaths[r][l])!=null&&(b=_.x,k=_.y,P=_.r!==void 0?_.r:a);for(var N=0;N<h.globals.collapsedSeries.length;N++)h.globals.collapsedSeries[N].index===r&&(O=1,a=0);t===0&&e===0&&(a=0),g.animateCircle(C,{cx:b,cy:k,r:P},{cx:t,cy:e,r:a},O,h.globals.easing)}else C.attr({r:a});return C.attr({rel:o,j:o,index:r,"default-marker-size":a}),p.setSelectionFilter(C,r,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}}}]),E}(),ci=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{key:"dataLabelsCorrection",value:function(t,e,i,a,r,o,l){var h=this.w,f=!1,g=new W(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[a]===void 0&&(h.globals.dataLabelsRects[a]=[]),h.globals.dataLabelsRects[a].push({x:t,y:e,width:p,height:x});var v=h.globals.dataLabelsRects[a].length-2,w=h.globals.lastDrawnDataLabelsIndexes[a]!==void 0?h.globals.lastDrawnDataLabelsIndexes[a][h.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;if(h.globals.dataLabelsRects[a][v]!==void 0){var A=h.globals.dataLabelsRects[a][w];(t>A.x+A.width||e>A.y+A.height||e+x<A.y||t+p<A.x)&&(f=!0)}return(r===0||o)&&(f=!0),{x:t,y:e,textRects:g,drawnextLabel:f}}},{key:"drawDataLabel",value:function(t){var e=this,i=t.type,a=t.pos,r=t.i,o=t.j,l=t.isRangeStart,h=t.strokeWidth,f=h===void 0?2:h,g=this.w,p=new W(this.ctx),x=g.config.dataLabels,v=0,w=0,A=o,C=null;if(!x.enabled||!Array.isArray(a.x))return C;C=p.group({class:"apexcharts-data-labels"});for(var T=0;T<a.x.length;T++)if(v=a.x[T]+x.offsetX,w=a.y[T]+x.offsetY+f,!isNaN(v)){o===1&&T===0&&(A=0),o===1&&T===1&&(A=1);var M=g.globals.series[r][A];i==="rangeArea"&&(M=l?g.globals.seriesRangeStart[r][A]:g.globals.seriesRangeEnd[r][A]);var u="",b=function(k){return g.config.dataLabels.formatter(k,{ctx:e.ctx,seriesIndex:r,dataPointIndex:A,w:g})};g.config.chart.type==="bubble"?(u=b(M=g.globals.seriesZ[r][A]),w=a.y[T],w=new Fa(this.ctx).centerTextInBubble(w,r,A).y):M!==void 0&&(u=b(M)),this.plotDataLabelsText({x:v,y:w,text:u,i:r,j:A,parent:C,offsetCorrection:!0,dataLabelsConfig:g.config.dataLabels})}return C}},{key:"plotDataLabelsText",value:function(t){var e=this.w,i=new W(this.ctx),a=t.x,r=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:a,y:r,drawnextLabel:!0,textRects:null};A&&(C=this.dataLabelsCorrection(a,r,h,o,l,w,parseInt(x.style.fontSize,10))),e.globals.zoomed||(a=C.x,r=C.y),C.textRects&&(a<-20-C.textRects.width||a>e.globals.gridWidth+C.textRects.width+30)&&(h="");var T=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)&&(T=e.globals.dataLabels.style.colors[l]),typeof T=="function"&&(T=T({series:e.globals.series,seriesIndex:o,dataPointIndex:l,w:e})),v&&(T=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:a+M,y:r+u,foreColor:T,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:a,cy:r}),x.dropShadow.enabled){var k=x.dropShadow;new ut(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,a=i.config.dataLabels.background,r=a.padding,o=a.padding/2,l=e.width,h=e.height,f=new W(this.ctx).drawRect(e.x-r,e.y-o/2,l+2*r,h+o,a.borderRadius,i.config.chart.background==="transparent"?"#fff":i.config.chart.background,a.opacity,a.borderWidth,a.borderColor);return a.dropShadow.enabled&&new ut(this.ctx).dropShadow(f,a.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 a=e[i],r=a.getBBox(),o=null;if(r.width&&r.height&&(o=this.addBackgroundToDataLabel(a,r)),o){a.parentNode.insertBefore(o.node,a);var l=a.getAttribute("fill");t.config.chart.animations.enabled&&!t.globals.resized&&!t.globals.dataChanged?o.animate().attr({fill:l}):o.attr({fill:l}),a.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"),a=0;a<e.length;a++)i&&i.insertBefore(e[a],i.nextSibling)}}]),E}(),Qt=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w,this.legendInactiveClass="legend-mouseover-inactive"}return L(E,[{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(R.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 a(r){for(var o=0;o<r.length;o++)r[o].index===e&&t.node.classList.add("apexcharts-series-collapsed")}a(i.globals.collapsedSeries),a(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],a=this.w,r=R.clone(a.globals.initialSeries);a.globals.previousPaths=[],i?(a.globals.collapsedSeries=[],a.globals.ancillaryCollapsedSeries=[],a.globals.collapsedSeriesIndices=[],a.globals.ancillaryCollapsedSeriesIndices=[]):r=this.emptyCollapsedSeries(r),a.config.series=r,t&&(e&&(a.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(r,a.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 a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if(t.type==="mousemove"){var r=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(r,"']")),l=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(r,"']"))):o=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"']")):o=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"'] path"));for(var h=0;h<a.length;h++)a[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<a.length;f++)a[f].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(t,e){var i=this,a=this.w,r=a.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),o=function(h){for(var f=0;f<r.length;f++)r[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<r.length;f++){var g=parseInt(r[f].getAttribute("val"),10);g>=h.from&&g<=h.to&&r[f].classList.remove(i.legendInactiveClass)}}(a.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,a=0;if(i.config.series.length>1){for(var r=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:r.length-1;t==="asc"?o<r.length:o>=0;t==="asc"?o++:o--)if(r[o]!==-1){a=r[o];break}}return a}},{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 a=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)},r=0;r<i.length;r++)a(r);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 a=0;a<i.length;a++){for(var r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series[data\\:realIndex='").concat(a,"'] circle")),o=[],l=0;l<r.length;l++)o.push({x:r[l].getAttribute("cx"),y:r[l].getAttribute("cy"),r:r[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 W(this.ctx),a=t.globals.svgWidth/2,r=t.globals.svgHeight/2,o="middle";if(t.globals.noData=!0,t.globals.animationEnded=!0,e.align==="left"?(a=10,o="start"):e.align==="right"&&(a=t.globals.svgWidth-10,o="end"),e.verticalAlign==="top"?r=50:e.verticalAlign==="bottom"&&(r=t.globals.svgHeight-50),a+=e.offsetX,r=r+parseInt(e.style.fontSize,10)+2+e.offsetY,e.text!==void 0&&e.text!==""){var l=i.drawText({x:a,y:r,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 a=0;a<t[e.globals.maxValsInArrayIndex].length;a++)t[i].push(0);return t}},{key:"hasAllSeriesEqualX",value:function(){for(var t=!0,e=this.w,i=this.filteredSeriesX(),a=0;a<i.length-1;a++)if(i[a][0]!==i[a+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}}]),E}(),Ci=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new it(this.ctx)}return L(E,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new Qt(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 Qt(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,a=this.w.globals,r=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&&!r?this.twoDSeries.push(R.parseNumber(t[e].data[o][1][3])):t[e].data[o].length>=5?this.twoDSeries.push(R.parseNumber(t[e].data[o][4])):this.twoDSeries.push(R.parseNumber(t[e].data[o][1])),a.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]),a.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(t,e){var i=this.w.config,a=this.w.globals,r=new Tt(this.ctx),o=e;a.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(R.parseNumber(t[e].data[l].y[t[e].data[l].y.length-1])):this.twoDSeries.push(R.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&&!!r.isValidDate(t[o].data[h].x);if(f||p)if(f||i.xaxis.convertedCatToNumeric){var x=a.isBarHorizontal&&a.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"||(a.isXNumeric=!0)):this.twoDSeriesX.push(r.parseDate(t[o].data[h].x))}else i.xaxis.type==="datetime"?this.twoDSeriesX.push(r.parseDate(t[o].data[h].x.toString())):(a.dataFormatXNumeric=!0,a.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(t[o].data[h].x)));else g?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[o].data[h].x)):(a.isXNumeric=!0,a.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);a.isDataXYZ=!0}}},{key:"handleRangeData",value:function(t,e){var i=this.w.globals,a={};return this.isFormat2DArray()?a=this.handleRangeDataFormat("array",t,e):this.isFormatXY()&&(a=this.handleRangeDataFormat("xy",t,e)),i.seriesRangeStart.push(a.start),i.seriesRangeEnd.push(a.end),i.seriesRange.push(a.rangeUniques),i.seriesRange.forEach(function(r,o){r&&r.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))}})})}),a}},{key:"handleCandleStickBoxData",value:function(t,e){var i=this.w.globals,a={};return this.isFormat2DArray()?a=this.handleCandleStickBoxDataFormat("array",t,e):this.isFormatXY()&&(a=this.handleCandleStickBoxDataFormat("xy",t,e)),i.seriesCandleO[e]=a.o,i.seriesCandleH[e]=a.h,i.seriesCandleM[e]=a.m,i.seriesCandleL[e]=a.l,i.seriesCandleC[e]=a.c,a}},{key:"handleRangeDataFormat",value:function(t,e,i){var a=[],r=[],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])?(a.push(e[i].data[l][1][0]),r.push(e[i].data[l][1][1])):(a.push(e[i].data[l]),r.push(e[i].data[l]));else if(t==="xy")for(var h=function(g){var p=Array.isArray(e[i].data[g].y),x=R.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),a.push(w.y1),r.push(w.y2)},f=0;f<e[i].data.length;f++)h(f);return{start:a,end:r,rangeUniques:o}}},{key:"handleCandleStickBoxDataFormat",value:function(t,e,i){var a=this.w,r=a.config.chart.type==="boxPlot"||a.config.series[i].type==="boxPlot",o=[],l=[],h=[],f=[],g=[];if(t==="array")if(r&&e[i].data[0].length===6||!r&&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]),r?(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]),r?(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]),r?(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,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.ctx,r=this.w.config,o=this.w.globals,l=new Tt(a),h=r.labels.length>0?r.labels.slice():r.xaxis.categories.slice();if(o.isRangeBar=r.chart.type==="rangeBar"&&o.isBarHorizontal,o.hasXaxisGroups=r.xaxis.type==="category"&&r.xaxis.group.groups.length>0,o.hasXaxisGroups&&(o.groups=r.xaxis.group.groups),o.hasSeriesGroups=(e=t[0])===null||e===void 0?void 0:e.group,o.hasSeriesGroups){var f=[],g=lt(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(r.chart.type!=="rangeBar"&&r.chart.type!=="rangeArea"&&t[x].type!=="rangeBar"&&t[x].type!=="rangeArea"||(o.isRangeData=!0,r.chart.type!=="rangeBar"&&r.chart.type!=="rangeArea"||this.handleRangeData(t,x)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,x):this.isFormatXY()&&this.handleFormatXY(t,x),r.chart.type!=="candlestick"&&t[x].type!=="candlestick"&&r.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{r.xaxis.type==="datetime"?(o.isXNumeric=!0,p(),o.seriesX.push(this.twoDSeriesX)):r.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 R.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 a=0;a<e.series.length;a++)e.seriesNames[a]===void 0&&e.seriesNames.push("series-"+(a+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(a){a.forEach(function(r){i.labels.indexOf(r.x)<0&&r.x&&i.labels.push(r.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,a=[];if(e.axisCharts){if(e.series.length>0)if(this.isFormatXY())for(var r=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=r.reduce(function(p,x,v,w){return w[p].length>x.length?p:v},0),l=0;l<r[o].length;l++)a.push(l+1);else for(var h=0;h<e.series[e.maxValsInArrayIndex].length;h++)a.push(h+1);e.seriesX=[];for(var f=0;f<t.length;f++)e.seriesX.push(a);this.w.globals.isBarHorizontal||(e.isXNumeric=!0)}if(a.length===0){a=e.axisCharts?[]:e.series.map(function(p,x){return x+1});for(var g=0;g<t.length;g++)e.seriesX.push(a)}e.labels=a,i.xaxis.convertedCatToNumeric&&(e.categoryLabels=a.map(function(p){return i.xaxis.labels.formatter(p)})),e.noLabelsProvided=!0}},{key:"parseData",value:function(t){var e=this.w,i=e.config,a=e.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),a.axisCharts?(this.parseDataAxisCharts(t),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(t),i.chart.stacked){var r=new Qt(this.ctx);a.series=r.setNullSeriesToZeroValues(a.series)}this.coreUtils.getSeriesTotals(),a.axisCharts&&(a.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),a.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),a.dataFormatXNumeric||a.isXNumeric&&(i.xaxis.type!=="numeric"||i.labels.length!==0||i.xaxis.categories.length!==0)||this.handleExternalLabelsData(t);for(var o=this.coreUtils.getCategoryLabels(a.labels),l=0;l<o.length;l++)if(Array.isArray(o[l])){a.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var t=this,e=this.w;e.globals.ignoreYAxisIndexes=e.globals.collapsedSeries.map(function(i,a){if(t.w.globals.isMultipleYAxis&&!e.config.chart.stacked)return i.index})}}]),E}(),Oe=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{key:"getLabel",value:function(t,e,i,a){var r=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[a]===void 0?"":t[a],g=f,p=h.globals.xLabelFormatter,x=h.config.xaxis.labels.formatter,v=!1,w=new Pe(this.ctx),A=f;l&&(g=w.xLabelFormat(p,f,A,{i:a,dateFormatter:new Tt(this.ctx).formatDate,w:h}),x!==void 0&&(g=x(f,t[a],{i:a,dateFormatter:new Tt(this.ctx).formatDate,w:h})));var C,T;e.length>0?(C=e[a].unit,T=null,e.forEach(function(k){k.unit==="month"?T="year":k.unit==="day"?T="month":k.unit==="hour"?T="day":k.unit==="minute"&&(T="hour")}),v=T===C,i=e[a].position,g=e[a].value):h.config.xaxis.type==="datetime"&&x===void 0&&(g=""),g===void 0&&(g=""),g=Array.isArray(g)?g:g.toString();var M=new W(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||r.indexOf(g)>=0&&b)&&(g=""),{x:i,text:g,textRect:u,isBold:v}}},{key:"checkLabelBasedOnTickamount",value:function(t,e,i){var a=this.w,r=a.config.xaxis.tickAmount;return r==="dataPoints"&&(r=Math.round(a.globals.gridWidth/120)),r>i||t%Math.round(i/(r+1))==0||(e.text=""),e}},{key:"checkForOverflowingLabels",value:function(t,e,i,a,r){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&&a.length>0){var l=r[r.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 it(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,a,r,o,l){var h=this.w,f=new W(this.ctx),g=h.globals.translateY;if(a.show&&e>0){h.config.yaxis[r].opposite===!0&&(t+=a.width);for(var p=e;p>=0;p--){var x=g+e/10+h.config.yaxis[r].labels.offsetY-1;h.globals.isBarHorizontal&&(x=o*p),h.config.chart.type==="heatmap"&&(x+=o/2);var v=f.drawLine(t+i.offsetX-a.width+a.offsetX,x+a.offsetY,t+i.offsetX+a.offsetX,x+a.offsetY,a.color);l.add(v),g+=o}}}}]),E}(),Pi=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{key:"scaleSvgNode",value:function(t,e){var i=parseFloat(t.getAttributeNS(null,"width")),a=parseFloat(t.getAttributeNS(null,"height"));t.setAttributeNS(null,"width",i*e),t.setAttributeNS(null,"height",a*e),t.setAttributeNS(null,"viewBox","0 0 "+i+" "+a)}},{key:"fixSvgStringForIe11",value:function(t){if(!R.isIE11())return t.replace(/&nbsp;/g,"&#160;");var e=0,i=t.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(a){return++e===2?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':a});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"),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(a,function(r){r.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 a=e.w,r=t?t.scale||t.width/a.globals.svgWidth:1;e.cleanup();var o=document.createElement("canvas");o.width=a.globals.svgWidth*r,o.height=parseInt(a.globals.dom.elWrap.style.height,10)*r;var l=a.config.chart.background==="transparent"?"#fff":a.config.chart.background,h=o.getContext("2d");h.fillStyle=l,h.fillRect(0,0,o.width*r,o.height*r);var f=e.getSvgString(r);if(window.canvg&&R.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,a=e.blob;a?navigator.msSaveOrOpenBlob(a,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,a=t.fileName,r=t.columnDelimiter,o=r===void 0?",":r,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(P,_){return f.globals.collapsedSeriesIndices.indexOf(_)===-1?P:[]}),C=function(P){return f.config.xaxis.type==="datetime"&&String(P).length>=10},T=Math.max.apply(Math,lt(i.map(function(P){return P.data?P.data.length:0}))),M=new Ci(this.ctx),u=new Oe(this.ctx),b=function(P){var _="";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 Qt(e.ctx).getActiveConfigSeriesIndex();_=O(f.globals.labels[P],{seriesIndex:N,dataPointIndex:P,w:f})}else _=u.getLabel(f.globals.labels,f.globals.timescaleLabels,0,P).text;f.config.xaxis.type==="datetime"&&(f.config.xaxis.categories.length?_=f.config.xaxis.categories[P]:f.config.labels.length&&(_=f.config.labels[P]))}else _=f.config.labels[P];return Array.isArray(_)&&(_=_.join(" ")),R.isNumber(_)?_:_.split(o).join("")},k=function(P,_){if(x.length&&_===0&&v.push(x.join(o)),P.data){P.data=P.data.length&&P.data||lt(Array(T)).map(function(){return""});for(var O=0;O<P.data.length;O++){x=[];var N=b(O);if(N||(M.isFormatXY()?N=i[_].data[O].x:M.isFormat2DArray()&&(N=i[_].data[O]?i[_].data[O][0]:"")),_===0){x.push(C(N)?f.config.chart.toolbar.export.csv.dateFormatter(N):R.isNumber(N)?N:N.split(o).join(""));for(var X=0;X<f.globals.series.length;X++){var B;M.isFormatXY()?x.push((B=i[X].data[O])===null||B===void 0?void 0:B.y):x.push(A[X][O])}}(f.config.chart.type==="candlestick"||P.type&&P.type==="candlestick")&&(x.pop(),x.push(f.globals.seriesCandleO[_][O]),x.push(f.globals.seriesCandleH[_][O]),x.push(f.globals.seriesCandleL[_][O]),x.push(f.globals.seriesCandleC[_][O])),(f.config.chart.type==="boxPlot"||P.type&&P.type==="boxPlot")&&(x.pop(),x.push(f.globals.seriesCandleO[_][O]),x.push(f.globals.seriesCandleH[_][O]),x.push(f.globals.seriesCandleM[_][O]),x.push(f.globals.seriesCandleL[_][O]),x.push(f.globals.seriesCandleC[_][O])),f.config.chart.type==="rangeBar"&&(x.pop(),x.push(f.globals.seriesRangeStart[_][O]),x.push(f.globals.seriesRangeEnd[_][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(P,_){var O=(P.name?P.name:"series-".concat(_))+"";f.globals.axisCharts&&x.push(O.split(o).join("")?O.split(o).join(""):"series-".concat(_))}),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(P,_){f.globals.axisCharts?k(P,_):((x=[]).push(f.globals.labels[_].split(o).join("")),x.push(A[_]),v.push(x.join(o)))}):(g=new Set,p={},i.forEach(function(P,_){P==null||P.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][_]=X,g.add(N)})}),x.length&&v.push(x.join(o)),Array.from(g).sort().forEach(function(P){v.push([C(P)&&f.config.xaxis.type==="datetime"?f.config.chart.toolbar.export.csv.dateFormatter(P):R.isNumber(P)?P:P.split(o).join(""),p[P].join(o)])})),w+=v.join(h),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+w),a||f.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(t,e,i){var a=document.createElement("a");a.href=t,a.download=(e||this.w.globals.chartID)+i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}}]),E}(),Re=function(){function E(t,e){y(this,E),this.ctx=t,this.elgrid=e,this.w=t.w;var i=this.w;this.axesUtils=new Oe(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 L(E,[{key:"drawXaxis",value:function(){var t=this.w,e=new W(this.ctx),i=e.group({class:"apexcharts-xaxis",transform:"translate(".concat(t.config.xaxis.offsetX,", ").concat(t.config.xaxis.offsetY,")")}),a=e.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(a);for(var r=[],o=0;o<this.xaxisLabels.length;o++)r.push(this.xaxisLabels[o]);if(this.drawXAxisLabelAndGroup(!0,e,a,r,t.globals.isXNumeric,function(w,A){return A}),t.globals.hasXaxisGroups){var l=t.globals.groups;r=[];for(var h=0;h<l.length;h++)r.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,a,r,!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,a,r,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,T=f.cssClass||x.config.xaxis.labels.style.cssClass,M=x.globals.padHorizontal,u=a.length,b=x.config.xaxis.type==="category"?x.globals.dataPoints:u;if(b===0&&u>b&&(b=u),r){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 P=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(a,x.globals.timescaleLabels,N,O,g,v,t),B=28;if(x.globals.rotateXLabels&&t&&(B=22),x.config.xaxis.title.text&&x.config.xaxis.position==="top"&&(B+=parseFloat(x.config.xaxis.title.style.fontSize)+2),t||(B=B+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 $=e.drawText({x:X.x,y:h.offY+x.config.xaxis.labels.offsetY+B-(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 ")+T});if(i.add($),$.on("click",function(st){if(typeof x.config.chart.events.xAxisLabelClick=="function"){var ht=Object.assign({},x,{labelIndex:O});x.config.chart.events.xAxisLabelClick(st,h.ctx,ht)}}),t){var V=document.createElementNS(x.globals.SVGNS,"title");V.textContent=Array.isArray(X.text)?X.text.join(" "):X.text,$.node.appendChild(V),X.text!==""&&(g.push(X.text),p.push(X))}}O<u-1&&(M+=o(O+1,l))},_=0;_<=u-1;_++)P(_)}},{key:"drawXaxisInversed",value:function(t){var e,i,a=this,r=this.w,o=new W(this.ctx),l=r.config.yaxis[0].opposite?r.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(r.config.yaxis[t].show)for(var p=0;p<this.xaxisLabels.length;p++)g.push(this.xaxisLabels[p]);e=r.globals.gridHeight/g.length,i=-e/2.2;var x=r.globals.yLabelFormatters[0],v=r.config.yaxis[0].labels;if(v.show)for(var w=function(k){var P=g[k]===void 0?"":g[k];P=x(P,{seriesIndex:t,dataPointIndex:k,w:r});var _=a.axesUtils.getYAxisForeColor(v.style.colors,t),O=0;Array.isArray(P)&&(O=P.length/2*parseInt(v.style.fontSize,10));var N=v.offsetX-15,X="end";a.yaxis.opposite&&(X="start"),r.config.yaxis[0].labels.align==="left"?(N=v.offsetX,X="start"):r.config.yaxis[0].labels.align==="center"?(N=v.offsetX,X="middle"):r.config.yaxis[0].labels.align==="right"&&(X="end");var B=o.drawText({x:N,y:i+e+v.offsetY-O,text:P,textAnchor:X,foreColor:Array.isArray(_)?_[k]:_,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(B),B.on("click",function(st){if(typeof r.config.chart.events.xAxisLabelClick=="function"){var ht=Object.assign({},r,{labelIndex:k});r.config.chart.events.xAxisLabelClick(st,a.ctx,ht)}});var $=document.createElementNS(r.globals.SVGNS,"title");if($.textContent=Array.isArray(P)?P.join(" "):P,B.node.appendChild($),r.config.yaxis[t].labels.rotate!==0){var V=o.rotateAroundCenter(B.node);B.node.setAttribute("transform","rotate(".concat(r.config.yaxis[t].labels.rotate," 0 ").concat(V.y,")"))}i+=e},A=0;A<=g.length-1;A++)w(A);if(r.config.yaxis[0].title.text!==void 0){var C=o.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+l+", 0)"}),T=o.drawText({x:r.config.yaxis[0].title.offsetX,y:r.globals.gridHeight/2+r.config.yaxis[0].title.offsetY,text:r.config.yaxis[0].title.text,textAnchor:"middle",foreColor:r.config.yaxis[0].title.style.color,fontSize:r.config.yaxis[0].title.style.fontSize,fontWeight:r.config.yaxis[0].title.style.fontWeight,fontFamily:r.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+r.config.yaxis[0].title.style.cssClass});C.add(T),h.add(C)}var M=0;this.isCategoryBarHorizontal&&r.config.yaxis[0].opposite&&(M=r.globals.gridWidth);var u=r.config.xaxis.axisBorder;if(u.show){var b=o.drawLine(r.globals.padHorizontal+u.offsetX+M,1+u.offsetY,r.globals.padHorizontal+u.offsetX+M,r.globals.gridHeight+u.offsetY,u.color,0);this.elgrid&&this.elgrid.elGridBorders&&r.config.grid.show?this.elgrid.elGridBorders.add(b):h.add(b)}return r.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(M,g.length,r.config.yaxis[0].axisBorder,r.config.yaxis[0].axisTicks,0,e,h),h}},{key:"drawXaxisTicks",value:function(t,e,i){var a=this.w,r=t;if(!(t<0||t-2>a.globals.gridWidth)){var o=this.offY+a.config.xaxis.axisTicks.offsetY;if(e=e+o+a.config.xaxis.axisTicks.height,a.config.xaxis.position==="top"&&(e=o-a.config.xaxis.axisTicks.height),a.config.xaxis.axisTicks.show){var l=new W(this.ctx).drawLine(t+a.config.xaxis.axisTicks.offsetX,o+a.config.xaxis.offsetY,r+a.config.xaxis.axisTicks.offsetX,e+a.config.xaxis.offsetY,a.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,a=t.globals.padHorizontal;if(t.globals.timescaleLabels.length>0)for(var r=0;r<i;r++)a=this.xaxisLabels[r].position,e.push(a);else for(var o=i,l=0;l<o;l++){var h=o;t.globals.isXNumeric&&t.config.chart.type!=="bar"&&(h-=1),a+=t.globals.gridWidth/h,e.push(a)}return e}},{key:"xAxisLabelCorrections",value:function(){var t=this.w,e=new W(this.ctx),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),r=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<a.length;l++){var h=e.rotateAroundCenter(a[l]);h.y=h.y-1,h.x=h.x+1,a[l].setAttribute("transform","rotate(".concat(t.config.xaxis.labels.rotate," ").concat(h.x," ").concat(h.y,")")),a[l].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var f=a[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<a.length;w++){var A=a[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(r.length>0){var g=r[r.length-1].getBBox(),p=r[0].getBBox();g.x<-20&&r[r.length-1].parentNode.removeChild(r[r.length-1]),p.x+p.width>t.globals.gridWidth&&!t.globals.isBarHorizontal&&r[0].parentNode.removeChild(r[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)}}}]),E}(),sa=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w;var e=this.w;this.xaxisLabels=e.globals.labels.slice(),this.axesUtils=new Oe(t),this.isRangeBar=e.globals.seriesRange.length&&e.globals.isBarHorizontal,e.globals.timescaleLabels.length>0&&(this.xaxisLabels=e.globals.timescaleLabels.slice())}return L(E,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=this.w,i=new W(this.ctx);t===null&&(t=i.group({class:"apexcharts-grid"}));var a=i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,"transparent"),r=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(r),t.add(a),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 W(this.ctx),a=Array.isArray(t.config.stroke.width)?0:t.config.stroke.width;if(Array.isArray(t.config.stroke.width)){var r=0;t.config.stroke.width.forEach(function(p){r=Math.max(r,p)}),a=r}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(-a-l-2,2*-a-2,e.gridWidth+a+h+l+4,e.gridHeight+4*a+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,a=t.y1,r=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:a,x2:r,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 Re(this.ctx).drawXaxisTicks(i,g,f.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(t){var e=t.i,i=t.x1,a=t.y1,r=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;(a===0&&o===0||i===0&&r===0)&&(g=!0),a===f.globals.gridHeight&&o===f.globals.gridHeight&&(g=!0),!f.globals.isBarHorizontal||e!==0&&e!==l-1||(g=!0);var w=new W(this).drawLine(i-(p?v:0),a,r+(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,a=t.y1,r=t.x2,o=t.y2,l=t.type,h=this.w,f=new W(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),a,r+(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,a=t.tickAmount,r=this.w;if(r.config.grid.xaxis.lines.show||r.config.xaxis.axisTicks.show){var o,l=r.globals.padHorizontal,h=r.globals.gridHeight;r.globals.timescaleLabels.length?function(w){for(var A=w.xC,C=w.x1,T=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:T,x2:M,y2:u,xCount:i,parent:e.elgridLinesV})}({xC:i,x1:l,y1:0,x2:o,y2:h}):(r.globals.isXNumeric&&(i=r.globals.xAxisScale.result.length),function(w){for(var A=w.xC,C=w.x1,T=w.y1,M=w.x2,u=w.y2,b=0;b<A+(r.globals.isXNumeric?0:1);b++)b===0&&A===1&&r.globals.dataPoints===1&&(M=C=r.globals.gridWidth/2),e._drawGridLines({i:b,x1:C,y1:T,x2:M,y2:u,xCount:i,parent:e.elgridLinesV}),M=C+=r.globals.gridWidth/(r.globals.isXNumeric?A-1:A)}({xC:i,x1:l,y1:0,x2:o,y2:h}))}if(r.config.grid.yaxis.lines.show){var f=0,g=0,p=r.globals.gridWidth,x=a+1;this.isRangeBar&&(x=r.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+=r.globals.gridHeight/(this.isRangeBar?x:a)}}},{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 a,r=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:r,y1:0,x2:a,y2:o,parent:this.elgridLinesV}),new Re(this.ctx).drawXaxisTicks(r,0,i.globals.dom.elGraphical),a=r=r+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 W(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,a=t.globals.yAxisScale.length?t.globals.yAxisScale[0].result.length-1:5,r=0;r<t.globals.series.length&&(t.globals.yAxisScale[r]!==void 0&&(a=t.globals.yAxisScale[r].result.length-1),!(a>2));r++);if(!t.globals.isBarHorizontal||this.isRangeBar){var o,l,h;i=this.xaxisLabels.length,this.isRangeBar&&(i--,a=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:a})}else i=a,a=t.globals.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:a});return this.drawGridBands(i,a),{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 a=0,r=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:a,x2:o,y2:r,type:"row"}),a+=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}}]),E}(),Ze=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{key:"niceScale",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=arguments.length>4?arguments[4]:void 0,o=this.w,l=Math.abs(e-t);if((i=this._adjustTicksForSmallRange(i,a,l))==="dataPoints"&&(i=o.globals.dataPoints-1),t===Number.MIN_VALUE&&e===0||!R.isNumber(t)&&!R.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)return t=0,e=i,this.linearScale(t,e,i,a,o.config.yaxis[a].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&&r&&(o.config.chart.type==="candlestick"||o.config.series[a].type==="candlestick"||o.config.chart.type==="boxPlot"||o.config.series[a].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(R.log10(g)),x=Math.pow(10,p),v=Math.round(g/x);v<1&&(v=1);var w=v*x;o.config.yaxis[a].stepSize&&(w=o.config.yaxis[a].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),T=A;if(r&&l>2){for(;h.push(R.stripNumber(T,7)),!((T+=w)>C););return{result:h,niceMin:h[0],niceMax:h[h.length-1]}}var M=t;(h=[]).push(R.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,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,o=Math.abs(e-t);(i=this._adjustTicksForSmallRange(i,a,o))==="dataPoints"&&(i=this.w.globals.dataPoints-1),r||(r=o/i),i===Number.MAX_VALUE&&(i=5,r=1);for(var l=[],h=t;i>=0;)l.push(h),h+=r,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 a=[],r=Math.ceil(Math.log(e)/Math.log(i)+1),o=Math.floor(Math.log(t)/Math.log(i));o<r;o++)a.push(Math.pow(i,o));return{result:a,niceMin:a[0],niceMax:a[a.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 a=[],r=Math.log(e)/Math.log(i),o=Math.log(t)/Math.log(i),l=r-o,h=Math.round(l),f=l/h,g=0,p=o;g<h;g++,p+=f)a.push(Math.pow(i,p));return a.push(Math.pow(i,r)),{result:a,niceMin:t,niceMax:e}}},{key:"_adjustTicksForSmallRange",value:function(t,e,i){var a=t;if(e!==void 0&&this.w.config.yaxis[e].labels.formatter&&this.w.config.yaxis[e].tickAmount===void 0){var r=Number(this.w.config.yaxis[e].labels.formatter(1));R.isNumber(r)&&this.w.globals.yValueDecimal===0&&(a=Math.ceil(i))}return a<t?a:t}},{key:"setYScaleForIndex",value:function(t,e,i){var a=this.w.globals,r=this.w.config,o=a.isBarHorizontal?r.xaxis:r.yaxis[t];a.yAxisScale[t]===void 0&&(a.yAxisScale[t]=[]);var l=Math.abs(i-e);if(o.logarithmic&&l<=5&&(a.invalidLogScale=!0),o.logarithmic&&l>5)a.allSeriesCollapsed=!1,a.yAxisScale[t]=this.logarithmicScale(e,i,o.logBase),a.yAxisScale[t]=o.forceNiceScale?this.logarithmicScaleNice(e,i,o.logBase):this.logarithmicScale(e,i,o.logBase);else if(i!==-Number.MAX_VALUE&&R.isNumber(i))if(a.allSeriesCollapsed=!1,o.min===void 0&&o.max===void 0||o.forceNiceScale){var h=r.yaxis[t].max===void 0&&r.yaxis[t].min===void 0||r.yaxis[t].forceNiceScale;a.yAxisScale[t]=this.niceScale(e,i,o.tickAmount?o.tickAmount:l<5&&l>1?l+1:5,t,h)}else a.yAxisScale[t]=this.linearScale(e,i,o.tickAmount,t,r.yaxis[t].stepSize);else a.yAxisScale[t]=this.linearScale(0,5,5,t,r.yaxis[t].stepSize)}},{key:"setXScale",value:function(t,e){var i=this.w,a=i.globals,r=Math.abs(e-t);return e!==-Number.MAX_VALUE&&R.isNumber(e)?a.xAxisScale=this.linearScale(t,e,i.config.xaxis.tickAmount?i.config.xaxis.tickAmount:r<5&&r>1?r+1:5,0,i.config.xaxis.stepSize):a.xAxisScale=this.linearScale(0,5,5),a.xAxisScale}},{key:"setMultipleYScales",value:function(){var t=this,e=this.w.globals,i=this.w.config,a=e.minYArr.concat([]),r=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=a[f],p=r[f];t.setYScaleForIndex(h,g,p)}),this.sameScaleInMultipleAxes(a,r,o)}},{key:"sameScaleInMultipleAxes",value:function(t,e,i){var a=this,r=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(T,M){var u,b;C!==M&&(u=A,b=T,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,T){return A.indexOf(C)===T})}).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(T,M){T.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(T,M){v[C]=Math.min(T.value,v[C])})}),x.forEach(function(A,C){A.forEach(function(T,M){w[C]=Math.max(T.value,w[C])})}),t.forEach(function(A,C){x.forEach(function(T,M){var u=v[M],b=w[M];r.chart.stacked&&(b=0,T.forEach(function(k,P){k.value!==-Number.MAX_VALUE&&(b+=k.value),u!==Number.MIN_VALUE&&(u+=p[M][P].value)})),T.forEach(function(k,P){T[P].key===C&&(r.yaxis[C].min!==void 0&&(u=typeof r.yaxis[C].min=="function"?r.yaxis[C].min(o.minY):r.yaxis[C].min),r.yaxis[C].max!==void 0&&(b=typeof r.yaxis[C].max=="function"?r.yaxis[C].max(o.maxY):r.yaxis[C].max),a.setYScaleForIndex(C,u,b))})})})}},{key:"autoScaleY",value:function(t,e,i){t||(t=this);var a=t.w;if(a.globals.isMultipleYAxis||a.globals.collapsedSeries.length)return console.warn("autoScaleYaxis not supported in a multi-yaxis chart."),e;var r=a.globals.seriesX[0],o=a.config.chart.stacked;return e.forEach(function(l,h){for(var f=0,g=0;g<r.length;g++)if(r[g]>=i.xaxis.min){f=g;break}var p,x,v=a.globals.minYArr[h],w=a.globals.maxYArr[h],A=a.globals.stackedSeriesTotals;a.globals.series.forEach(function(C,T){var M=C[f];o?(M=A[f],p=x=M,A.forEach(function(u,b){r[b]<=i.xaxis.max&&r[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(r[b]<=i.xaxis.max&&r[b]>=i.xaxis.min){var k=u,P=u;a.globals.series.forEach(function(_,O){u!==null&&(k=Math.min(_[b],k),P=Math.max(_[b],P))}),P>x&&P!==null&&(x=P),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[T].min=l.min===void 0?p:l.min,e[T].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}}]),E}(),Y=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w,this.scales=new Ze(t)}return L(E,[{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,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,r=this.w.config,o=this.w.globals,l=-Number.MAX_VALUE,h=Number.MIN_VALUE;a===null&&(a=t+1);var f=o.series,g=f,p=f;r.chart.type==="candlestick"?(g=o.seriesCandleL,p=o.seriesCandleH):r.chart.type==="boxPlot"?(g=o.seriesCandleO,p=o.seriesCandleC):o.isRangeData&&(g=o.seriesRangeStart,p=o.seriesRangeEnd);for(var x=t;x<a;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&&r.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&&R.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]))),!r.series[x].type||r.series[x].type==="candlestick"&&r.series[x].type==="boxPlot"&&r.series[x].type==="rangeArea"&&r.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}),R.isFloat(w)&&(w=R.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 r.chart.type==="rangeBar"&&o.seriesRangeStart.length&&o.isBarHorizontal&&(h=e),r.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 a=0;a<t.series.length;a++){var r=this.getMinYMaxY(a,i,null,a+1);t.minYArr.push(r.minY),t.maxYArr.push(r.maxY),i=r.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&&R.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 a;if(e.xaxis.tickAmount===void 0?(a=Math.round(t.svgWidth/150),e.xaxis.type==="numeric"&&t.dataPoints<30&&(a=t.dataPoints-1),a>t.dataPoints&&t.dataPoints!==0&&(a=t.dataPoints-1)):e.xaxis.tickAmount==="dataPoints"?(t.series.length>1&&(a=t.series[t.maxValsInArrayIndex].length-1),t.isXNumeric&&(a=t.maxX-t.minX-1)):a=e.xaxis.tickAmount,t.xTickAmount=a,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 r=[],o=t.minX-1;o<t.maxX;o++)r.push(o+1);t.xAxisScale={result:r,niceMin:r[0],niceMax:r[r.length-1]}}else t.xAxisScale=this.scales.setXScale(t.minX,t.maxX);else t.xAxisScale=this.scales.linearScale(0,a,a,0,e.xaxis.stepSize),t.noLabelsProvided&&t.labels.length>0&&(t.xAxisScale=this.scales.linearScale(1,t.labels.length,a-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&&R.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 Tt(this.ctx);if(e.xaxis.type==="datetime"){var a=i.getDate(t.minX);e.xaxis.labels.datetimeUTC?a.setUTCDate(a.getUTCDate()-2):a.setDate(a.getDate()-2),t.minX=new Date(a).getTime();var r=i.getDate(t.maxX);e.xaxis.labels.datetimeUTC?r.setUTCDate(r.getUTCDate()+2):r.setDate(r.getDate()+2),t.maxX=new Date(r).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 a=e.slice();a.sort(function(r,o){return r-o}),a.forEach(function(r,o){if(o>0){var l=r-a[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 a={},r={};i.forEach(function(o){a[o]=[],r[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;a[o][h]===void 0&&(a[o][h]=0,r[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&&R.isNumber(e.series[l][h])&&(e.series[l][h]>0?a[o][h]+=parseFloat(e.series[l][h])+1e-4:r[o][h]+=parseFloat(e.series[l][h]))}})}),Object.entries(a).forEach(function(o){var l=bt(o,1)[0];a[l].forEach(function(h,f){e.maxY=Math.max(e.maxY,a[l][f]),e.minY=Math.min(e.minY,r[l][f])})})}}}]),E}(),D=function(){function E(t,e){y(this,E),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 Oe(t)}return L(E,[{key:"drawYaxis",value:function(t){var e=this,i=this.w,a=new W(this.ctx),r=i.config.yaxis[t].labels.style,o=r.fontSize,l=r.fontFamily,h=r.fontWeight,f=a.group({class:"apexcharts-yaxis",rel:t,transform:"translate("+i.globals.translateYAxisX[t]+", 0)"});if(this.axesUtils.isYAxisHidden(t))return f;var g=a.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 T=function(N){var X=A[N];X=w(X,N,i);var B=i.config.yaxis[t].labels.padding;i.config.yaxis[t].opposite&&i.config.yaxis.length!==0&&(B*=-1);var $="end";i.config.yaxis[t].opposite&&($="start"),i.config.yaxis[t].labels.align==="left"?$="start":i.config.yaxis[t].labels.align==="center"?$="middle":i.config.yaxis[t].labels.align==="right"&&($="end");var V=e.axesUtils.getYAxisForeColor(r.colors,t),st=i.config.yaxis[t].labels.offsetY;i.config.chart.type==="heatmap"&&(st-=(i.globals.gridHeight/i.globals.series.length-1)/2);var ht=a.drawText({x:B,y:v+p/10+st+1,text:X,textAnchor:$,fontSize:o,fontFamily:l,fontWeight:h,maxWidth:i.config.yaxis[t].labels.maxWidth,foreColor:Array.isArray(V)?V[N]:V,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+r.cssClass});N===p&&(C=ht),g.add(ht);var pt=document.createElementNS(i.globals.SVGNS,"title");if(pt.textContent=Array.isArray(X)?X.join(" "):X,ht.node.appendChild(pt),i.config.yaxis[t].labels.rotate!==0){var kt=a.rotateAroundCenter(C.node),_t=a.rotateAroundCenter(ht.node);ht.node.setAttribute("transform","rotate(".concat(i.config.yaxis[t].labels.rotate," ").concat(kt.x," ").concat(_t.y,")"))}v+=x},M=p;M>=0;M--)T(M);if(i.config.yaxis[t].title.text!==void 0){var u=a.group({class:"apexcharts-yaxis-title"}),b=0;i.config.yaxis[t].opposite&&(b=i.globals.translateYAxisX[t]);var k=a.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 P=i.config.yaxis[t].axisBorder,_=31+P.offsetX;if(i.config.yaxis[t].opposite&&(_=-31-P.offsetX),P.show){var O=a.drawLine(_,i.globals.translateY+P.offsetY-2,_,i.globals.gridHeight+i.globals.translateY+P.offsetY+2,P.color,0,P.width);f.add(O)}return i.config.yaxis[t].axisTicks.show&&this.axesUtils.drawYAxisTicks(_,p,P,i.config.yaxis[t].axisTicks,t,x,f),f}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new W(this.ctx),a=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),r=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});a.add(r);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 T=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});r.add(T),T.tspan(w);var M=document.createElementNS(e.globals.SVGNS,"title");M.textContent=w,T.node.appendChild(M),h+=l}return this.inversedYAxisTitleText(a),this.inversedYAxisBorder(a),a}},{key:"inversedYAxisBorder",value:function(t){var e=this.w,i=new W(this.ctx),a=e.config.xaxis.axisBorder;if(a.show){var r=0;e.config.chart.type==="bar"&&e.globals.isXNumeric&&(r-=15);var o=i.drawLine(e.globals.padHorizontal+r+a.offsetX,this.xAxisoffX,e.globals.gridWidth,this.xAxisoffX,a.color,0,a.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 W(this.ctx);if(e.config.xaxis.title.text!==void 0){var a=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),r=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});a.add(r),t.add(a)}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,a=new W(this.ctx),r={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&&(r=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,r,o,e);h.setAttribute("x",f.xPos-(e?10:0))}if(h!==null){var g=a.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,a){var r=this.w,o=0,l=0,h=10;return r.config.yaxis[t].title.text===void 0||t<0?{xPos:l,padd:0}:(a?(l=e.width+r.config.yaxis[t].title.offsetX+i.width/2+h/2,(o+=1)===0&&(l-=h/2)):(l=-1*e.width+r.config.yaxis[t].title.offsetX+h/2+i.width/2,r.globals.isBarHorizontal&&(h=25,l=-1*e.width-r.config.yaxis[t].title.offsetX-h)),{xPos:l,padd:h})}},{key:"setYAxisXPosition",value:function(t,e){var i=this.w,a=0,r=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?(r=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[f]=r-h.labels.offsetX):(r=i.globals.gridWidth+i.globals.translateX+l,g||(l=l+p+20),i.globals.translateYAxisX[f]=r-h.labels.offsetX+20):(a=i.globals.translateX-o,g||(o=o+p+20),i.globals.translateYAxisX[f]=a+h.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(e=R.listToArray(e)).forEach(function(i,a){var r=t.config.yaxis[a];if(r&&!r.floating&&r.labels.align!==void 0){var o=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(a,"'] .apexcharts-yaxis-texts-g")),l=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(a,"'] .apexcharts-yaxis-label"));l=R.listToArray(l);var h=o.getBoundingClientRect();r.labels.align==="left"?(l.forEach(function(f,g){f.setAttribute("text-anchor","start")}),r.opposite||o.setAttribute("transform","translate(-".concat(h.width,", 0)"))):r.labels.align==="center"?(l.forEach(function(f,g){f.setAttribute("text-anchor","middle")}),o.setAttribute("transform","translate(".concat(h.width/2*(r.opposite?1:-1),", 0)"))):r.labels.align==="right"&&(l.forEach(function(f,g){f.setAttribute("text-anchor","end")}),r.opposite&&o.setAttribute("transform","translate(".concat(h.width,", 0)")))}})}}]),E}(),U=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w,this.documentEvent=R.bind(this.documentEvent,this)}return L(E,[{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 a=i.globals.events[t].indexOf(e);a!==-1&&i.globals.events[t].splice(a,1)}}},{key:"fireEvent",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){e&&e.length||(e=[]);for(var a=i.globals.events[t],r=a.length,o=0;o<r;o++)a[o].apply(null,e)}}},{key:"setupEventHandlers",value:function(){var t=this,e=this.w,i=this.ctx,a=e.globals.dom.baseEl.querySelector(e.globals.chartClass);this.ctx.eventList.forEach(function(r){a.addEventListener(r,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(r){e.globals.dom.baseEl.addEventListener(r,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 a=e.globals.dom.baseEl.querySelector(".apexcharts-menu");a&&a.classList.contains("apexcharts-menu-open")&&i!=="apexcharts-menu-icon"&&a.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}}]),E}(),q=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{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(r){return r.name===t})[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var a=R.extend(mt,i);this.w.globals.locale=a.options}}]),E}(),Z=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{key:"drawAxis",value:function(t,e){var i,a,r=this,o=this.w.globals,l=this.w.config,h=new Re(this.ctx,e),f=new D(this.ctx,e);o.axisCharts&&t!=="radar"&&(o.isBarHorizontal?(a=f.drawYaxisInversed(0),i=h.drawXaxisInversed(0),o.dom.elGraphical.add(i),o.dom.elGraphical.add(a)):(i=h.drawXaxis(),o.dom.elGraphical.add(i),l.yaxis.map(function(g,p){if(o.ignoreYAxisIndexes.indexOf(p)===-1&&(a=f.drawYaxis(p),o.dom.Paper.add(a),r.w.config.grid.position==="back")){var x=o.dom.Paper.children()[1];x.remove(),o.dom.Paper.add(x)}})))}}]),E}(),Q=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new W(this.ctx),i=new ut(this.ctx),a=t.config.xaxis.crosshairs.fill.gradient,r=t.config.xaxis.crosshairs.dropShadow,o=t.config.xaxis.crosshairs.fill.type,l=a.colorFrom,h=a.colorTo,f=a.opacityFrom,g=a.opacityTo,p=a.stops,x=r.enabled,v=r.left,w=r.top,A=r.blur,C=r.color,T=r.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;(!R.isNumber(b)||b<0)&&(b=0);var k=t.config.xaxis.crosshairs.width;(!R.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:T})),t.globals.dom.elGraphical.add(u)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new W(this.ctx),i=t.config.yaxis[0].crosshairs,a=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){var r=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);r.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(r)}var o=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,0,0);o.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(o)}}]),E}(),rt=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{key:"checkResponsiveConfig",value:function(t){var e=this,i=this.w,a=i.config;if(a.responsive.length!==0){var r=a.responsive.slice();r.sort(function(f,g){return f.breakpoint>g.breakpoint?1:g.breakpoint>f.breakpoint?-1:0}).reverse();var o=new Le({}),l=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=r[0].breakpoint,p=window.innerWidth>0?window.innerWidth:screen.width;if(p>g){var x=it.extendArrayProps(o,i.globals.initialConfig,i);f=R.extend(x,f),f=R.extend(i.config,f),e.overrideResponsiveOptions(f)}else for(var v=0;v<r.length;v++)p<r[v].breakpoint&&(f=it.extendArrayProps(o,r[v].options,i),f=R.extend(i.config,f),e.overrideResponsiveOptions(f))};if(t){var h=it.extendArrayProps(o,t,i);h=R.extend(i.config,h),l(h=R.extend(h,t))}else l({})}}},{key:"overrideResponsiveOptions",value:function(t){var e=new Le(t).init({responsiveOverride:!0});this.w.config=e}}]),E}(),tt=function(){function E(t){y(this,E),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 L(E,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var t,e=this,i=this.w,a=new R;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 r=[],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=a.shadeColor(-1*g,l),g+=h):(x=a.shadeColor(g,l),g+=h),r.push(x)}i.globals.colors=r.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,a=this.w,r=e||a.globals.series.length;if(i===null&&(i=this.isBarDistributed||this.isHeatmapDistributed||a.config.chart.type==="heatmap"&&a.config.plotOptions.heatmap.colorScale.inverse),i&&a.globals.series.length&&(r=a.globals.series[a.globals.maxValsInArrayIndex].length*a.globals.series.length),t.length<r)for(var o=r-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",a=t.chart.foreColor?t.chart.foreColor:e==="dark"?"#f6f7f8":"#373d3f";return t.tooltip.theme=e,t.chart.foreColor=a,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}}]),E}(),at=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{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,a=e.globals.svgWidth/2,r=i.offsetY,o="middle";if(i.align==="left"?(a=10,o="start"):i.align==="right"&&(a=e.globals.svgWidth-10,o="end"),a+=i.offsetX,r=r+parseInt(i.style.fontSize,10)+i.margin/2,i.text!==void 0){var l=new W(this.ctx).drawText({x:a,y:r,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)}}}]),E}(),K=function(){function E(t){y(this,E),this.w=t.w,this.dCtx=t}return L(E,[{key:"getTitleSubtitleCoords",value:function(t){var e=this.w,i=0,a=0,r=t==="title"?e.config.title.floating:e.config.subtitle.floating,o=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(t,"-text"));if(o!==null&&!r){var l=o.getBoundingClientRect();i=l.width,a=e.globals.axisCharts?l.height+5:l.height}return{width:i,height:a}}},{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({},R.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 a=e.map(function(o,l){return Array.isArray(o)?o.length:1}),r=Math.max.apply(Math,lt(a));i=e[a.indexOf(r)]}return i}}]),E}(),nt=function(){function E(t){y(this,E),this.w=t.w,this.dCtx=t}return L(E,[{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 a=this.getxAxisTimeScaleLabelsCoords();t={width:a.width,height:a.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 r=e.globals.xLabelFormatter,o=R.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 Pe(this.dCtx.ctx),f=o;o=h.xLabelFormat(r,o,f,{i:void 0,dateFormatter:new Tt(this.dCtx.ctx).formatDate,w:e}),l=h.xLabelFormat(r,l,f,{i:void 0,dateFormatter:new Tt(this.dCtx.ctx).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&o===void 0||String(o).trim()==="")&&(l=o="1");var g=new W(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,a=((t=e.config.xaxis.group.style)===null||t===void 0?void 0:t.fontSize)||e.config.xaxis.labels.style.fontSize,r=e.globals.groups.map(function(p){return p.title}),o=R.getLargestStringFromArr(r),l=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,r),h=new W(this.dCtx.ctx),f=h.getTextRects(o,a),g=f;return o!==l&&(g=h.getTextRects(l,a)),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 a=new W(this.dCtx.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=a.width,i=a.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(r){return r.value}),a=i.reduce(function(r,o){return r===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):r.length>o.length?r:o},0);return 1.05*(t=new W(this.dCtx.ctx).getTextRects(a,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,a=i.globals,r=i.config,o=r.xaxis.type,l=t.width;a.skipLastTimelinelabel=!1,a.skipFirstTimelinelabel=!1;var h=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,f=function(g,p){r.yaxis.length>1&&function(x){return a.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>a.svgWidth-a.translateX-C&&(a.skipLastTimelinelabel=!0),A<-(x.show&&!x.floating||r.chart.type!=="bar"&&r.chart.type!=="candlestick"&&r.chart.type!=="rangeBar"&&r.chart.type!=="boxPlot"?10:l/1.75)&&(a.skipFirstTimelinelabel=!0)}else o==="datetime"?e.dCtx.gridPad.right<l&&!a.rotateXLabels&&(a.skipLastTimelinelabel=!0):o!=="datetime"&&e.dCtx.gridPad.right<l/2-e.dCtx.yAxisWidthRight&&!a.rotateXLabels&&!i.config.xaxis.labels.trim&&(i.config.xaxis.tickPlacement!=="between"||i.globals.isBarHorizontal)&&(e.dCtx.xPadRight=l/2+1)}(g)};r.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)})}}]),E}(),xt=function(){function E(t){y(this,E),this.w=t.w,this.dCtx=t}return L(E,[{key:"getyAxisLabelsCoords",value:function(){var t=this,e=this.w,i=[],a=10,r=new Oe(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(!r.isYAxisHidden(l)&&o.labels.show&&o.labels.minWidth!==void 0&&(g=o.labels.minWidth),!r.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 P,_;return((P=String(p(b,h)))===null||P===void 0?void 0:P.length)>((_=String(p(k,h)))===null||_===void 0?void 0:_.length)?b:k},x),w=v=p(v,h);if(v!==void 0&&v.length!==0||(v=f.niceMax),e.globals.isBarHorizontal){a=0;var A=e.globals.labels.slice();v=R.getLargestStringFromArr(A),v=p(v,{seriesIndex:l,dataPointIndex:-1,w:e}),w=t.dCtx.dimHelpers.getLargestStringFromMultiArr(v,A)}var C=new W(t.dCtx.ctx),T="rotate(".concat(o.labels.rotate," 0 0)"),M=C.getTextRects(v,o.labels.style.fontSize,o.labels.style.fontFamily,T,!1),u=M;v!==w&&(u=C.getTextRects(w,o.labels.style.fontSize,o.labels.style.fontFamily,T,!1)),i.push({width:(g>u.width||g>M.width?g:u.width>M.width?u.width:M.width)+a,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(a,r){if(a.show&&a.title.text!==void 0){var o=new W(t.dCtx.ctx),l="rotate(".concat(a.title.rotate," 0 0)"),h=o.getTextRects(a.title.text,a.title.style.fontSize,a.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,a=0,r=t.globals.yAxisScale.length>1?10:0,o=new Oe(this.dCtx.ctx),l=function(h,f){var g=t.config.yaxis[f].floating,p=0;h.width>0&&!g?(p=h.width+r,function(x){return t.globals.ignoreYAxisIndexes.indexOf(x)>-1}(f)&&(p=p-h.width-r)):p=g||o.isYAxisHidden(f)?0:5,t.config.yaxis[f].opposite?a+=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=a,e}}]),E}(),gt=function(){function E(t){y(this,E),this.w=t.w,this.dCtx=t}return L(E,[{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"},a=e.config.chart.type,r=0,o=i(a)?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(a)||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),(r=h/o*parseInt(e.config.plotOptions.bar.columnWidth,10)/100)<1&&(r=1),r=r/(o>1?1:1.5)+5,e.globals.barPadForNumericAxis=r}return r}},{key:"gridPadFortitleSubtitle",value:function(){var t=this,e=this.w,i=e.globals,a=this.dCtx.isSparkline||!e.globals.axisCharts?0:10;["title","subtitle"].forEach(function(l){e.config[l].text!==void 0?a+=e.config[l].margin:a+=t.dCtx.isSparkline||!e.globals.axisCharts?0:5}),!e.config.legend.show||e.config.legend.position!=="bottom"||e.config.legend.floating||e.globals.axisCharts||(a+=10);var r=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),o=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-r.height-o.height-a,i.translateY=i.translateY+r.height+o.height+a}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w,a=new Oe(this.dCtx.ctx);i.config.yaxis.map(function(r,o){i.globals.ignoreYAxisIndexes.indexOf(o)!==-1||r.floating||a.isYAxisHidden(o)||(r.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))})}}]),E}(),vt=function(){function E(t){y(this,E),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 K(this),this.dimYAxis=new xt(this),this.dimXAxis=new nt(this),this.dimGrid=new gt(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return L(E,[{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(r){var o=bt(r,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 a=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*a,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(a>0?a+4:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var t=this,e=this.w,i=e.globals,a=this.dimYAxis.getyAxisLabelsCoords(),r=this.dimYAxis.getyAxisTitleCoords();e.globals.yLabelsCoords=[],e.globals.yTitleCoords=[],e.config.yaxis.map(function(v,w){e.globals.yLabelsCoords.push({width:a[w].width,index:w}),e.globals.yTitleCoords.push({width:r[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(r,a),new D(this.ctx).setYAxisXPosition(a,r)}},{key:"setDimensionsForNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=t.config,a=0;t.config.legend.show&&!t.config.legend.floating&&(a=20);var r=i.chart.type==="pie"||i.chart.type==="polarArea"||i.chart.type==="donut"?"pie":"radialBar",o=i.plotOptions[r].offsetY,l=i.plotOptions[r].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-a,e.gridHeight=i.chart.height!=="auto"?e.svgHeight:e.gridWidth,e.translateY=o,e.translateX=l+this.lgRect.width+a;break;case"right":e.gridWidth=e.svgWidth-this.lgRect.width-a-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 a=this.w,r=a.globals.hasXaxisGroups?2:1,o=i.height+t.height+e.height,l=a.globals.isMultiLineX?1.2:a.globals.LINE_HEIGHT_RATIO,h=a.globals.rotateXLabels?22:10,f=a.globals.rotateXLabels&&a.config.legend.position==="bottom"?10:0;this.xAxisHeight=o*l+r*h+f,this.xAxisWidth=t.width,this.xAxisHeight-e.height>a.config.xaxis.labels.maxHeight&&(this.xAxisHeight=a.config.xaxis.labels.maxHeight),a.config.xaxis.labels.minHeight&&this.xAxisHeight<a.config.xaxis.labels.minHeight&&(this.xAxisHeight=a.config.xaxis.labels.minHeight),a.config.xaxis.floating&&(this.xAxisHeight=0);var g=0,p=0;a.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)}}]),E}(),Lt=function(){function E(t){y(this,E),this.w=t.w,this.lgCtx=t}return L(E,[{key:"getLegendStyles",value:function(){var t,e,i,a=document.createElement("style");a.setAttribute("type","text/css");var r=((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;r&&a.setAttribute("nonce",r);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 a.appendChild(o),a}},{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,a=this.w;if(a.globals.axisCharts||a.config.chart.type==="radialBar"){a.globals.resized=!0;var r=null,o=null;a.globals.risingSeries=[],a.globals.axisCharts?(r=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),o=parseInt(r.getAttribute("data:realIndex"),10)):(r=a.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),o=parseInt(r.getAttribute("rel"),10)-1),e?[{cs:a.globals.collapsedSeries,csi:a.globals.collapsedSeriesIndices},{cs:a.globals.ancillaryCollapsedSeries,csi:a.globals.ancillaryCollapsedSeriesIndices}].forEach(function(g){i.riseCollapsedSeries(g.cs,g.csi,o)}):this.hideSeries({seriesEl:r,realIndex:o})}else{var l=a.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(t+1,"'] path")),h=a.config.chart.type;if(h==="pie"||h==="polarArea"||h==="donut"){var f=a.config.plotOptions.pie.donut.labels;new W(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,a=this.w,r=R.clone(a.config.series);if(a.globals.axisCharts){var o=!1;if(a.config.yaxis[i]&&a.config.yaxis[i].show&&a.config.yaxis[i].showAlways&&(o=!0,a.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(a.globals.ancillaryCollapsedSeries.push({index:i,data:r[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),a.globals.ancillaryCollapsedSeriesIndices.push(i))),!o){a.globals.collapsedSeries.push({index:i,data:r[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),a.globals.collapsedSeriesIndices.push(i);var l=a.globals.risingSeries.indexOf(i);a.globals.risingSeries.splice(l,1)}}else a.globals.collapsedSeries.push({index:i,data:r[i]}),a.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"));a.globals.allSeriesCollapsed=a.globals.collapsedSeries.length===a.config.series.length,r=this._getSeriesBasedOnCollapsedState(r),this.lgCtx.ctx.updateHelpers._updateSeries(r,a.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(t,e,i){var a=this.w,r=R.clone(a.config.series);if(t.length>0){for(var o=0;o<t.length;o++)t[o].index===i&&(a.globals.axisCharts?(r[i].data=t[o].data.slice(),t.splice(o,1),e.splice(o,1),a.globals.risingSeries.push(i)):(r[i]=t[o].data,t.splice(o,1),e.splice(o,1),a.globals.risingSeries.push(i)));r=this._getSeriesBasedOnCollapsedState(r),this.lgCtx.ctx.updateHelpers._updateSeries(r,a.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(t){var e=this.w;return e.globals.axisCharts?t.forEach(function(i,a){e.globals.collapsedSeriesIndices.indexOf(a)>-1&&(t[a].data=[])}):t.forEach(function(i,a){e.globals.collapsedSeriesIndices.indexOf(a)>-1&&(t[a]=0)}),t}}]),E}(),Ht=function(){function E(t){y(this,E),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 Lt(this)}return L(E,[{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(),R.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,a=e.globals.seriesNames,r=e.globals.colors.slice();if(e.config.chart.type==="heatmap"){var o=e.config.plotOptions.heatmap.colorScale.ranges;a=o.map(function(V){return V.name?V.name:V.from+" - "+V.to}),r=o.map(function(V){return V.color})}else this.isBarsDistributed&&(a=e.globals.labels.slice());e.config.legend.customLegendItems.length&&(a=e.config.legend.customLegendItems);for(var l=e.globals.legendFormatter,h=e.config.legend.inverseOrder,f=h?a.length-1:0;h?f>=0:f<=a.length-1;h?f--:f++){var g,p=l(a[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 T=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,P=e.config.legend.markers.strokeColor,_=e.config.legend.markers.radius,O=C.style;O.background=r[f],O.color=r[f],O.setProperty("background",r[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(T)?parseFloat(T[f]):parseFloat(T))+"px",O.top=(Array.isArray(M)?parseFloat(M[f]):parseFloat(M))+"px",O.borderWidth=Array.isArray(k)?k[f]:k,O.borderColor=Array.isArray(P)?P[f]:P,O.borderRadius=Array.isArray(_)?parseFloat(_[f])+"px":parseFloat(_)+"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()),W.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 B=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;B||(B=e.config.chart.foreColor),X.style.color=B,X.style.fontSize=parseFloat(e.config.legend.fontSize)+"px",X.style.fontWeight=e.config.legend.fontWeight,X.style.fontFamily=i||e.config.chart.fontFamily,W.setAttrs(X,{rel:f+1,i:f,"data:default-text":encodeURIComponent(p),"data:collapsed":x||v}),N.appendChild(C),N.appendChild(X);var $=new it(this.ctx);e.config.legend.showForZeroSeries||$.getSeriesTotalByIndex(f)===0&&$.seriesHaveSameValues(f)&&!$.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||$.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":"",W.setAttrs(N,{rel:f+1,seriesName:R.escapeString(a[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,a=i.globals.dom.elLegendWrap,r=a.getBoundingClientRect(),o=0,l=0;if(i.config.legend.position==="bottom")l+=i.globals.svgHeight-r.height/2;else if(i.config.legend.position==="top"){var h=new vt(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)}a.style.position="absolute",o=o+t+i.config.legend.offsetX,l=l+e+i.config.legend.offsetY,a.style.left=o+"px",a.style.top=l+"px",i.config.legend.position==="bottom"?(a.style.top="auto",a.style.bottom=5-i.config.legend.offsetY+"px"):i.config.legend.position==="right"&&(a.style.left="auto",a.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach(function(p){a.style[p]&&(a.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 vt(this.ctx),a=i.dimHelpers.getTitleSubtitleCoords("title"),r=i.dimHelpers.getTitleSubtitleCoords("subtitle"),o=0;t.config.legend.position==="bottom"?o=-e.clwh/1.8:t.config.legend.position==="top"&&(o=a.height+r.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 a=parseInt(t.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,a,this.w]),new Qt(this.ctx).highlightRangeInSeries(t,t.target)}}else!t.target.classList.contains("apexcharts-inactive-legend")&&i&&new Qt(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,a=t.target.getAttribute("data:collapsed")==="true",r=this.w.config.chart.events.legendClick;typeof r=="function"&&r(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,a)}}}]),E}(),Ft=function(){function E(t){y(this,E),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 L(E,[{key:"createToolbar",value:function(){var t=this,e=this.w,i=function(){return document.createElement("div")},a=i();if(a.setAttribute("class","apexcharts-toolbar"),a.style.top=e.config.chart.toolbar.offsetY+"px",a.style.right=3-e.config.chart.toolbar.offsetX+"px",e.globals.dom.elWrap.appendChild(a),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 r=0;r<this.t.customIcons.length;r++)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&&R.moveIndexInArray(o,x,p.index)});for(var g=0;g<o.length;g++)W.setAttrs(o[g].el,{class:o[g].class,title:o[g].title}),o[g].el.innerHTML=o[g].icon,a.appendChild(o[g].el);this._createHamburgerMenu(a),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),W.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,W.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,a=t==="selection"?"selectionEnabled":"zoomEnabled";e.w.globals[a]=!e.w.globals[a],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,a=(this.maxX+e)/2,r=this._getNewMinXMaxX(i,a);t.globals.disableZoomIn||this.zoomUpdateOptions(r.minX,r.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),a=this.maxX-(e-this.maxX),r=this._getNewMinXMaxX(i,a);t.globals.disableZoomOut||this.zoomUpdateOptions(r.minX,r.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 a={min:t,max:e},r=this.getBeforeZoomRange(a);r&&(a=r.xaxis);var o={xaxis:a},l=R.clone(i.globals.initialConfig.yaxis);i.config.chart.zoom.autoScaleYaxis&&(l=new Ze(this.ctx).autoScaleY(this.ctx,l,{xaxis:a})),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(a,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 Pi(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 a=i.config.chart.events.beforeResetZoom(e,i);a&&e.updateHelpers.revertDefaultAxisMinMax(a)}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 r=e.ctx.series.emptyCollapsedSeries(R.clone(i.globals.initialSeries));e.updateHelpers._updateSeries(r,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}}]),E}(),ee=function(E){F(e,Ft);var t=J(e);function e(i){var a;return y(this,e),(a=t.call(this,i)).ctx=i,a.w=i.w,a.dragged=!1,a.graphics=new W(a.ctx),a.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],a.clientX=0,a.clientY=0,a.startX=0,a.endX=0,a.dragX=0,a.startY=0,a.endY=0,a.dragY=0,a.moveDirection="none",a}return L(e,[{key:"init",value:function(i){var a=this,r=i.xyRatios,o=this.w,l=this;this.xyRatios=r,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){a.hoverArea.addEventListener(h,l.svgMouseEvents.bind(l,r),{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,a){var r=this.w,o=this,l=this.ctx.toolbar,h=r.globals.zoomEnabled?r.config.chart.zoom.type:r.config.chart.selection.type,f=r.config.chart.toolbar.autoSelected;if(a.shiftKey?(this.shiftWasPressed=!0,l.enableZoomPanFromToolbar(f==="pan"?"zoom":"pan")):this.shiftWasPressed&&(l.enableZoomPanFromToolbar(f),this.shiftWasPressed=!1),a.target){var g,p=a.target.classList;if(a.target.parentNode&&a.target.parentNode!==null&&(g=a.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=a.type==="touchmove"||a.type==="touchstart"?a.touches[0].clientX:a.type==="touchend"?a.changedTouches[0].clientX:a.clientX,o.clientY=a.type==="touchmove"||a.type==="touchstart"?a.touches[0].clientY:a.type==="touchend"?a.changedTouches[0].clientY:a.clientY,a.type==="mousedown"&&a.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((a.type==="mousemove"&&a.which===1||a.type==="touchmove")&&(o.dragged=!0,r.globals.panEnabled?(r.globals.selection=null,o.w.globals.mousedown&&o.panDragging({context:o,zoomtype:h,xyRatios:i})):(o.w.globals.mousedown&&r.globals.zoomEnabled||o.w.globals.mousedown&&r.globals.selectionEnabled)&&(o.selection=o.selectionDrawing({context:o,zoomtype:h}))),a.type==="mouseup"||a.type==="touchend"||a.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),(r.globals.zoomEnabled||r.globals.selectionEnabled)&&o.selectionDrawn({context:o,zoomtype:h}),r.globals.panEnabled&&r.config.xaxis.convertedCatToNumeric&&o.delayedPanScrolled()),r.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 a=this.selectionRect.node.getBoundingClientRect();a.width>0&&a.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,a=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 r=(i.config.chart.selection.xaxis.min-i.globals.minX)/a.xRatio,o=i.globals.gridWidth-(i.globals.maxX-i.config.chart.selection.xaxis.max)/a.xRatio-r;i.globals.isRangeBar&&(r=(i.config.chart.selection.xaxis.min-i.globals.yAxisScale[0].niceMin)/a.invertedYRatio,o=(i.config.chart.selection.xaxis.max-i.config.chart.selection.xaxis.min)/a.invertedYRatio);var l={x:r,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 a=i.x,r=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:a,y:r,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}),W.setAttrs(v.node,A)),x.globals.selectionEnabled&&(w.attr({x:a,y:r,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}),W.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 a=i.context,r=i.zoomtype,o=this.w,l=a,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=r==="x"?{x:p?f-v:f,y:0,width:v,height:o.globals.gridHeight}:r==="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,a){var r=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=r.gridRect.getBoundingClientRect(),T=h.node.getBoundingClientRect();o.globals.isRangeBar?(x=o.globals.yAxisScale[0].niceMin+(T.left-C.left)*l.invertedYRatio,v=o.globals.yAxisScale[0].niceMin+(T.right-C.left)*l.invertedYRatio,w=0,A=1):(x=o.globals.xAxisScale.niceMin+(T.left-C.left)*l.xRatio,v=o.globals.xAxisScale.niceMin+(T.right-C.left)*l.xRatio,w=o.globals.yAxisScale[0].niceMin+(C.bottom-T.bottom)*l.yRatio[0],A=o.globals.yAxisScale[0].niceMax-(T.top-C.top)*l.yRatio[0]);var M={xaxis:{min:x,max:v},yaxis:{min:w,max:A}};o.config.chart.events.selection(r.ctx,M),o.config.chart.brush.enabled&&o.config.chart.events.brushScrolled!==void 0&&o.config.chart.events.brushScrolled(r.ctx,M)},f))}},{key:"selectionDrawn",value:function(i){var a=i.context,r=i.zoomtype,o=this.w,l=a,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(_,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=R.clone(o.globals.initialConfig.yaxis),T=R.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)),r!=="xy"&&r!=="x"||(T={min:x,max:v}),r!=="xy"&&r!=="y"||C.forEach(function(_,O){C[O].min=A[O],C[O].max=w[O]}),o.config.chart.zoom.autoScaleYaxis){var M=new Ze(l.ctx);C=M.autoScaleY(l.ctx,C,{xaxis:T})}if(f){var u=f.getBeforeZoomRange(T,C);u&&(T=u.xaxis?u.xaxis:T,C=u.yaxis?u.yaxis:C)}var b={xaxis:T};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(T,C)}else if(o.globals.selectionEnabled){var k,P=null;k={min:x,max:v},r!=="xy"&&r!=="y"||(P=R.clone(o.config.yaxis)).forEach(function(_,O){P[O].min=A[O],P[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:P})}}}},{key:"panDragging",value:function(i){var a=i.context,r=this.w,o=a;if(r.globals.lastClientPosition.x!==void 0){var l=r.globals.lastClientPosition.x-o.clientX,h=r.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")}r.globals.lastClientPosition={x:o.clientX,y:o.clientY};var f=r.globals.isRangeBar?r.globals.minY:r.globals.minX,g=r.globals.isRangeBar?r.globals.maxY:r.globals.maxX;r.config.xaxis.convertedCatToNumeric||o.panScrolled(f,g)}},{key:"delayedPanScrolled",value:function(){var i=this.w,a=i.globals.minX,r=i.globals.maxX,o=(i.globals.maxX-i.globals.minX)/2;this.moveDirection==="left"?(a=i.globals.minX+o,r=i.globals.maxX+o):this.moveDirection==="right"&&(a=i.globals.minX-o,r=i.globals.maxX-o),a=Math.floor(a),r=Math.floor(r),this.updateScrolledChart({xaxis:{min:a,max:r}},a,r)}},{key:"panScrolled",value:function(i,a){var r=this.w,o=this.xyRatios,l=R.clone(r.globals.initialConfig.yaxis),h=o.xRatio,f=r.globals.minX,g=r.globals.maxX;r.globals.isRangeBar&&(h=o.invertedYRatio,f=r.globals.minY,g=r.globals.maxY),this.moveDirection==="left"?(i=f+r.globals.gridWidth/15*h,a=g+r.globals.gridWidth/15*h):this.moveDirection==="right"&&(i=f-r.globals.gridWidth/15*h,a=g-r.globals.gridWidth/15*h),r.globals.isRangeBar||(i<r.globals.initialMinX||a>r.globals.initialMaxX)&&(i=f,a=g);var p={min:i,max:a};r.config.chart.zoom.autoScaleYaxis&&(l=new Ze(this.ctx).autoScaleY(this.ctx,l,{xaxis:p}));var x={xaxis:{min:i,max:a}};r.config.chart.group||(x.yaxis=l),this.updateScrolledChart(x,i,a)}},{key:"updateScrolledChart",value:function(i,a,r){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:a,max:r}})}}]),e}(),ye=function(){function E(t){y(this,E),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}return L(E,[{key:"getNearestValues",value:function(t){var e=t.hoverArea,i=t.elGrid,a=t.clientX,r=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=a-l.left-o.globals.barPadForNumericAxis,w=r-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 T=null,M=null,u=o.globals.seriesXvalues.map(function(O){return O.filter(function(N){return R.isNumber(N)})}),b=o.globals.seriesYvalues.map(function(O){return O.filter(function(N){return R.isNumber(N)})});if(o.globals.isXNumeric){var k=this.ttCtx.getElGrid().getBoundingClientRect(),P=v*(k.width/h),_=w*(k.height/f);T=(M=this.closestInMultiArray(P,_,u,b)).index,A=M.j,T!==null&&(u=o.globals.seriesXvalues[T],A=(M=this.closestInArray(P,u)).index)}return o.globals.capturedSeriesIndex=T===null?-1:T,(!A||A<1)&&(A=0),o.globals.isBarHorizontal?o.globals.capturedDataPointIndex=C:o.globals.capturedDataPointIndex=A,{capturedSeries:T,j:o.globals.isBarHorizontal?C:A,hoverX:v,hoverY:w}}},{key:"closestInMultiArray",value:function(t,e,i,a){var r=this.w,o=0,l=null,h=-1;r.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=a[o][h],x=Math.abs(e-p);l=o,a.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,a=t.map(function(o,l){return o.length>0?l:-1}),r=0;r<a.length;r++)if(a[r]!==-1&&e.globals.collapsedSeriesIndices.indexOf(r)===-1&&e.globals.ancillaryCollapsedSeriesIndices.indexOf(r)===-1){i=a[r];break}return i}},{key:"closestInArray",value:function(t,e){for(var i=e[0],a=null,r=Math.abs(t-i),o=0;o<e.length;o++){var l=Math.abs(t-e[o]);l<r&&(r=l,a=o)}return{index:a}}},{key:"isXoverlap",value:function(t){var e=[],i=this.w.globals.seriesX.filter(function(r){return r[0]!==void 0});if(i.length>0)for(var a=0;a<i.length-1;a++)i[a][t]!==void 0&&i[a+1][t]!==void 0&&i[a][t]!==i[a+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 lt(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=lt(t)).sort(function(i,a){var r=Number(i.getAttribute("data:realIndex")),o=Number(a.getAttribute("data:realIndex"));return o<r?1:o>r?-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 a=i.allTooltipSeriesGroups,r=0;r<a.length;r++)t==="enable"?(a[r].classList.add("apexcharts-active"),a[r].style.display=e.config.tooltip.items.display):(a[r].classList.remove("apexcharts-active"),a[r].style.display="none")}}]),E}(),hi=function(){function E(t){y(this,E),this.w=t.w,this.ctx=t.ctx,this.ttCtx=t,this.tooltipUtil=new ye(t)}return L(E,[{key:"drawSeriesTexts",value:function(t){var e=t.shared,i=e===void 0||e,a=t.ttItems,r=t.i,o=r===void 0?0:r,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:a,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,a=t.i,r=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][r]&&Array.isArray(g.globals.seriesGoals[k][r])},v=o.xVal,w=o.zVal,A=o.xAxisTTVal,C="",T=g.globals.colors[a];r!==null&&g.config.plotOptions.bar.distributed&&(T=g.globals.colors[r]);for(var M=function(k,P){var _=i.getFormatters(a);C=i.getSeriesName({fn:_.yLbTitleFormatter,index:a,seriesIndex:a,j:r}),g.config.chart.type==="treemap"&&(C=_.yLbTitleFormatter(String(g.config.series[a].data[r].x),{series:g.globals.series,seriesIndex:a,dataPointIndex:r,w:g}));var O=g.config.tooltip.inverseOrder?P:k;if(g.globals.axisCharts){var N=function($){var V,st,ht,pt;return g.globals.isRangeData?_.yLbFormatter((V=g.globals.seriesRangeStart)===null||V===void 0||(st=V[$])===null||st===void 0?void 0:st[r],{series:g.globals.seriesRangeStart,seriesIndex:$,dataPointIndex:r,w:g})+" - "+_.yLbFormatter((ht=g.globals.seriesRangeEnd)===null||ht===void 0||(pt=ht[$])===null||pt===void 0?void 0:pt[r],{series:g.globals.seriesRangeEnd,seriesIndex:$,dataPointIndex:r,w:g}):_.yLbFormatter(g.globals.series[$][r],{series:g.globals.series,seriesIndex:$,dataPointIndex:r,w:g})};if(h)_=i.getFormatters(O),C=i.getSeriesName({fn:_.yLbTitleFormatter,index:O,seriesIndex:a,j:r}),T=g.globals.colors[O],e=N(O),x(O)&&(p=g.globals.seriesGoals[O][r].map(function($){return{attrs:$,val:_.yLbFormatter($.value,{seriesIndex:O,dataPointIndex:r,w:g})}}));else{var X,B=f==null||(X=f.target)===null||X===void 0?void 0:X.getAttribute("fill");B&&(T=B.indexOf("url")!==-1?document.querySelector(B.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):B),e=N(a),x(a)&&Array.isArray(g.globals.seriesGoals[a][r])&&(p=g.globals.seriesGoals[a][r].map(function($){return{attrs:$,val:_.yLbFormatter($.value,{seriesIndex:a,dataPointIndex:r,w:g})}}))}}r===null&&(e=_.yLbFormatter(g.globals.series[a],d(d({},g),{},{seriesIndex:a,dataPointIndex:a}))),i.DOMHandling({i:a,t:O,j:r,ttItems:l,values:{val:e,goalVals:p,xVal:v,xAxisTTVal:A,zVal:w},seriesName:C,shared:h,pColor:T})},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,a=i.globals.yLabelFormatters[t];return i.globals.ttVal!==void 0?Array.isArray(i.globals.ttVal)?(a=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):(a=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 a!="function"&&(a=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(r){return r}),typeof e!="function"&&(e=function(r){return r}),{yLbFormatter:a,yLbTitleFormatter:e}}},{key:"getSeriesName",value:function(t){var e=t.fn,i=t.index,a=t.seriesIndex,r=t.j,o=this.w;return e(String(o.globals.seriesNames[i]),{series:o.globals.series,seriesIndex:a,dataPointIndex:r,w:o})}},{key:"DOMHandling",value:function(t){t.i;var e=t.t,i=t.j,a=t.ttItems,r=t.values,o=t.seriesName,l=t.shared,h=t.pColor,f=this.w,g=this.ttCtx,p=r.val,x=r.goalVals,v=r.xVal,w=r.xAxisTTVal,A=r.zVal,C=null;C=a[e].children,f.config.tooltip.fillSeriesColor&&(a[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 T=a[e].querySelector(".apexcharts-tooltip-text-y-label");T&&(T.innerHTML=o||"");var M=a[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=a[e].querySelector(".apexcharts-tooltip-text-goals-label"),b=a[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,B){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&&(a[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=f.config.tooltip.z.title,a[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=A!==void 0?A:""),l&&C[0]){if(f.config.tooltip.hideEmptySeries){var P=a[e].querySelector(".apexcharts-tooltip-marker"),_=a[e].querySelector(".apexcharts-tooltip-text");parseFloat(p)==0?(P.style.display="none",_.style.display="none"):(P.style.display="block",_.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,a=this.w,r=this.ctx.series.filteredSeriesX(),o="",l="",h=null,f=null,g={series:a.globals.series,seriesIndex:e,dataPointIndex:i,w:a},p=a.globals.ttZFormatter;i===null?f=a.globals.series[e]:a.globals.isXNumeric&&a.config.chart.type!=="treemap"?(o=r[e][i],r[e].length===0&&(o=r[this.tooltipUtil.getFirstActiveXArray(r)][i])):o=a.globals.labels[i]!==void 0?a.globals.labels[i]:"";var x=o;return a.globals.isXNumeric&&a.config.xaxis.type==="datetime"?o=new Pe(this.ctx).xLabelFormat(a.globals.ttKeyFormatter,x,x,{i:void 0,dateFormatter:new Tt(this.ctx).formatDate,w:this.w}):o=a.globals.isBarHorizontal?a.globals.yLabelFormatters[0](x,g):a.globals.xLabelFormatter(x,g),a.config.tooltip.x.formatter!==void 0&&(o=a.globals.ttKeyFormatter(x,g)),a.globals.seriesZ.length>0&&a.globals.seriesZ[e].length>0&&(h=p(a.globals.seriesZ[e][i],a)),l=typeof a.config.xaxis.tooltip.formatter=="function"?a.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,a=t.y1,r=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:a,y2:r,w:o})}}]),E}(),ra=function(){function E(t){y(this,E),this.ttCtx=t,this.ctx=t.ctx,this.w=t.w}return L(E,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.ttCtx,a=this.w,r=i.getElXCrosshairs(),o=t-i.xcrosshairsWidth/2,l=a.globals.labels.slice().length;if(e!==null&&(o=a.globals.gridWidth/l*e),r===null||a.globals.isBarHorizontal||(r.setAttribute("x",o),r.setAttribute("x1",o),r.setAttribute("x2",o),r.setAttribute("y2",a.globals.gridHeight),r.classList.add("apexcharts-active")),o<0&&(o=0),o>a.globals.gridWidth&&(o=a.globals.gridWidth),i.isXAxisTooltipEnabled){var h=o;a.config.xaxis.crosshairs.width!=="tickWidth"&&a.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&&W.setAttrs(e.ycrosshairs,{y1:t,y2:t}),e.ycrosshairsHidden!==null&&W.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 a=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 r;r=new W(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=r.width+"px",i.xaxisTooltip.style.left=t+"px",i.xaxisTooltip.style.top=a+"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 a=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),r=e.globals.translateY+a,o=i.yaxisTTEls[t].getBoundingClientRect().height,l=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(l-=26),r-=o/2,e.globals.ignoreYAxisIndexes.indexOf(t)===-1?(i.yaxisTTEls[t].classList.add("apexcharts-active"),i.yaxisTTEls[t].style.top=r+"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,a=this.w,r=this.ttCtx,o=r.getElTooltip(),l=r.tooltipRect,h=i!==null?parseFloat(i):1,f=parseFloat(t)+h+5,g=parseFloat(e)+h/2;if(f>a.globals.gridWidth/2&&(f=f-l.ttWidth-h-10),f>a.globals.gridWidth-l.ttWidth-10&&(f=a.globals.gridWidth-l.ttWidth),f<-20&&(f=-20),a.config.tooltip.followCursor){var p=r.getElGrid().getBoundingClientRect();(f=r.e.clientX-p.left)>a.globals.gridWidth/2&&(f-=r.tooltipRect.ttWidth),(g=r.e.clientY+a.globals.translateY-p.top)>a.globals.gridHeight/2&&(g-=r.tooltipRect.ttHeight)}else a.globals.isBarHorizontal||l.ttHeight/2+g>a.globals.gridHeight&&(g=a.globals.gridHeight-l.ttHeight+a.globals.translateY);isNaN(f)||(f+=a.globals.translateX,o.style.left=f+"px",o.style.top=g+"px")}},{key:"moveMarkers",value:function(t,e){var i=this.w,a=this.ttCtx;if(i.globals.markers.size[t]>0)for(var r=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),o=0;o<r.length;o++)parseInt(r[o].getAttribute("rel"),10)===e&&(a.marker.resetPointsSize(),a.marker.enlargeCurrentPoint(e,r[o]));else a.marker.resetPointsSize(),this.moveDynamicPointOnHover(e,t)}},{key:"moveDynamicPointOnHover",value:function(t,e){var i,a,r=this.w,o=this.ttCtx,l=r.globals.pointsArray,h=o.tooltipUtil.getHoverMarkerSize(e),f=r.config.series[e].type;if(!f||f!=="column"&&f!=="candlestick"&&f!=="boxPlot"){i=l[e][t][0],a=l[e][t][1]?l[e][t][1]:0;var g=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers circle"));g&&a<r.globals.gridHeight&&a>0&&(g.setAttribute("r",h),g.setAttribute("cx",i),g.setAttribute("cy",a)),this.moveXCrosshairs(i),o.fixedTooltip||this.moveTooltip(i,a,h)}}},{key:"moveDynamicPointsOnHover",value:function(t){var e,i=this.ttCtx,a=i.w,r=0,o=0,l=a.globals.pointsArray;e=new Qt(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var h=i.tooltipUtil.getHoverMarkerSize(e);l[e]&&(r=l[e][t][0],o=l[e][t][1]);var f=i.tooltipUtil.getAllMarkers();if(f!==null)for(var g=0;g<a.globals.series.length;g++){var p=l[g];if(a.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",r),a.config.chart.type==="rangeArea"&&!a.globals.comboCharts){var w=t+a.globals.series[g].length;v=l[g][w][1],x-=Math.abs(x-v)/2}x!==null&&!isNaN(x)&&x<a.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(r),i.fixedTooltip||this.moveTooltip(r,o||a.globals.gridHeight,h)}},{key:"moveStickyTooltipOverBars",value:function(t,e){var i=this.w,a=this.ttCtx,r=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length,o=r>=2&&r%2==0?Math.floor(r/2):Math.floor(r/2)+1;i.globals.isBarHorizontal&&(o=new Qt(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=a.getElGrid().getBoundingClientRect(),x=l&&(l.classList.contains("apexcharts-candlestick-area")||l.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(l&&!x&&(h-=r%2!=0?g/2:0),l&&x&&i.globals.comboCharts&&(h-=g/2)):i.globals.isBarHorizontal||(h=a.xAxisTicksPositions[t-1]+a.dataPointsDividedWidth/2,isNaN(h)&&(h=a.xAxisTicksPositions[t]-a.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?f-=a.tooltipRect.ttHeight:i.config.tooltip.followCursor?f=a.e.clientY-p.top-a.tooltipRect.ttHeight/2:f+a.tooltipRect.ttHeight+15>i.globals.gridHeight&&(f=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(h),a.fixedTooltip||this.moveTooltip(h,f||i.globals.gridHeight)}}]),E}(),Li=function(){function E(t){y(this,E),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new ra(t)}return L(E,[{key:"drawDynamicPoints",value:function(){var t=this.w,e=new W(this.ctx),i=new li(this.ctx),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");a=lt(a),t.config.chart.stacked&&a.sort(function(p,x){return parseFloat(p.getAttribute("data:realIndex"))-parseFloat(x.getAttribute("data:realIndex"))});for(var r=0;r<a.length;r++){var o=a[r].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,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,r=this.w;r.config.chart.type!=="bubble"&&this.newPointSize(t,e);var o=e.getAttribute("cx"),l=e.getAttribute("cy");if(i!==null&&a!==null&&(o=i,l=a),this.tooltipPosition.moveXCrosshairs(o),!this.fixedTooltip){if(r.config.chart.type==="radar"){var h=this.ttCtx.getElGrid().getBoundingClientRect();o=this.ttCtx.e.clientX-h.left}this.tooltipPosition.moveTooltip(o,l,r.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this,a=this.ttCtx,r=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),r===parseInt(f,10)){i.newPointSize(r,o[h]);var p=o[h].getAttribute("cx"),x=o[h].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(p),a.fixedTooltip||i.tooltipPosition.moveTooltip(p,x,l)}else i.oldPointSize(o[h])}}},{key:"newPointSize",value:function(t,e){var i=this.w,a=i.config.markers.hover.size,r=t===0?e.parentNode.firstChild:e.parentNode.lastChild;if(r.getAttribute("default-marker-size")!=="0"){var o=parseInt(r.getAttribute("index"),10);a===void 0&&(a=i.globals.markers.size[o]+i.config.markers.hover.sizeOffset),a<0&&(a=0),r.setAttribute("r",a)}}},{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"));R.isNumber(i)&&i>=0?t[e].setAttribute("r",i):t[e].setAttribute("r",0)}}}]),E}(),Na=function(){function E(t){y(this,E),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 L(E,[{key:"getAttr",value:function(t,e){return parseFloat(t.target.getAttribute(e))}},{key:"handleHeatTreeTooltip",value:function(t){var e=t.e,i=t.opt,a=t.x,r=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,a=p+l.tooltipRect.ttWidth/2+v,r=x+l.tooltipRect.ttHeight/2-w/2,l.tooltipPosition.moveXCrosshairs(p+v/2),a>h.globals.gridWidth/2&&(a=p-l.tooltipRect.ttWidth/2+v),l.w.config.tooltip.followCursor){var A=h.globals.dom.elWrap.getBoundingClientRect();a=h.globals.clientX-A.left-(a>h.globals.gridWidth/2?l.tooltipRect.ttWidth:0),r=h.globals.clientY-A.top-(r>h.globals.gridHeight/2?l.tooltipRect.ttHeight:0)}}return{x:a,y:r}}},{key:"handleMarkerTooltip",value:function(t){var e,i,a=t.e,r=t.opt,o=t.x,l=t.y,h=this.w,f=this.ttCtx;if(a.target.classList.contains("apexcharts-marker")){var g=parseInt(r.paths.getAttribute("cx"),10),p=parseInt(r.paths.getAttribute("cy"),10),x=parseFloat(r.paths.getAttribute("val"));if(i=parseInt(r.paths.getAttribute("rel"),10),e=parseInt(r.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,f.intersect){var v=R.findAncestor(r.paths,"apexcharts-series");v&&(e=parseInt(v.getAttribute("data:realIndex"),10))}if(f.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:e,j:i,shared:!f.showOnIntersect&&h.config.tooltip.shared,e:a}),a.type==="mouseup"&&f.markerClick(a,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,r.paths,o,l)}return{x:o,y:l}}},{key:"handleBarTooltip",value:function(t){var e,i,a=t.e,r=t.opt,o=this.w,l=this.ttCtx,h=l.getElTooltip(),f=0,g=0,p=0,x=this.getBarTooltipXY({e:a,opt:r});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(r.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 T=l.getElGrid().getBoundingClientRect();p=l.e.clientY-T.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,a=t.opt,r=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=a.elGrid.getBoundingClientRect(),T=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 P=w.getAttribute("data-range-y1"),_=w.getAttribute("data-range-y2");r.globals.comboCharts&&(h=parseInt(w.parentNode.getAttribute("data:realIndex"),10));var O=function(X){return r.globals.isXNumeric?u-M/2:e.isVerticalGroupedRangeBar?u+M/2:u-l.dataPointsDividedWidth+M/2},N=function(){return b-l.dataPointsDividedHeight+T/2-l.tooltipRect.ttHeight/2};l.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:h,j:o,y1:P?parseInt(P,10):null,y2:_?parseInt(_,10):null,shared:!l.showOnIntersect&&r.config.tooltip.shared,e:i}),r.config.tooltip.followCursor?r.globals.isBarHorizontal?(f=k-C.left+15,g=N()):(f=O(),g=i.clientY-C.top-l.tooltipRect.ttHeight/2-15):r.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}}}]),E}(),me=function(){function E(t){y(this,E),this.w=t.w,this.ttCtx=t}return L(E,[{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 a=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",r=t.globals.dom.elWrap;e.isXAxisTooltipEnabled&&t.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")===null&&(e.xaxisTooltip=document.createElement("div"),e.xaxisTooltip.setAttribute("class",a+" apexcharts-theme-"+t.config.tooltip.theme),r.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(r){var o=t.config.yaxis[r].opposite||t.config.yaxis[r].crosshairs.opposite;e.yaxisOffX=o?t.globals.gridWidth+1:1;var l="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(r,o?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");t.globals.yAxisSameScaleIndices.map(function(f,g){f.map(function(p,x){x===r&&(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(r))===null&&(e.yaxisTooltip=document.createElement("div"),e.yaxisTooltip.setAttribute("class",l+" apexcharts-theme-"+t.config.tooltip.theme),h.appendChild(e.yaxisTooltip),r===0&&(e.yaxisTooltipText=[]),e.yaxisTooltipText[r]=document.createElement("div"),e.yaxisTooltipText[r].classList.add("apexcharts-yaxistooltip-text"),e.yaxisTooltip.appendChild(e.yaxisTooltipText[r]))},a=0;a<t.config.yaxis.length;a++)i(a)}},{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 a=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(a!==null&&t.config.xaxis.crosshairs.width==="barWidth"){var r=parseFloat(a.getAttribute("barWidth"));e.xcrosshairsWidth=r}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 a=this.ttCtx,r=this.w,o=r.globals.yLabelFormatters[t];if(a.yaxisTooltips[t]){var l=a.getElGrid().getBoundingClientRect(),h=(e-l.top)*i.yRatio[t],f=r.globals.maxYArr[t]-r.globals.minYArr[t],g=r.globals.minYArr[t]+(f-h);a.tooltipPosition.moveYCrosshairs(e-l.top),a.yaxisTooltipText[t].innerHTML=o(g),a.tooltipPosition.moveYAxisTooltip(t)}}}]),E}(),Ee=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w;var e=this.w;this.tConfig=e.config.tooltip,this.tooltipUtil=new ye(this),this.tooltipLabels=new hi(this),this.tooltipPosition=new ra(this),this.marker=new Li(this),this.intersect=new Na(this),this.axesTooltip=new me(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 L(E,[{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 a=new Re(this.ctx);this.xAxisTicksPositions=a.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 r=e.globals.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(r=this.showOnIntersect?1:e.globals.series.length),this.legendLabels=e.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(r),this.addSVGEvents()}}},{key:"createTTElements",value:function(t){for(var e=this,i=this.w,a=[],r=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),r.appendChild(f),a.push(f)},l=0;l<t;l++)o(l);return a}},{key:"addSVGEvents",value:function(){var t=this.w,e=t.config.chart.type,i=this.getElTooltip(),a=!(e!=="bar"&&e!=="candlestick"&&e!=="boxPlot"&&e!=="rangeBar"),r=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&&(r?h=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):a?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||a&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([o],p);else if(a&&!t.globals.comboCharts||r&&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(),a=i.width+10,r=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-a+10),h.indexOf("bottom")>-1&&(l=l+t.globals.svgHeight-r-10),e.style.left=o+"px",e.style.top=l+"px",{x:o,y:l,ttWidth:a,ttHeight:r}}},{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,a=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})})},r=0;r<t.length;r++)a(r)}},{key:"onSeriesHover",value:function(t,e){var i=this,a=Date.now()-this.lastHoverTime;a>=100?this.seriesHover(t,e):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){i.seriesHover(t,e)},100-a))}},{key:"seriesHover",value:function(t,e){var i=this;this.lastHoverTime=Date.now();var a=[],r=this.w;r.config.chart.group&&(a=this.ctx.getGroupedCharts()),r.globals.axisCharts&&(r.globals.minX===-1/0&&r.globals.maxX===1/0||r.globals.dataPoints===0)||(a.length?a.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,a=t.opt,r=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=r,i.tooltipUtil.hasBars()&&!o.globals.comboCharts&&!i.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new Qt(e).toggleSeriesOnHover(r,r.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),o.globals.axisCharts?i.axisChartsTooltips({e:r,opt:a,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:r,opt:a,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(t){var e,i,a=t.e,r=t.opt,o=this.w,l=r.elGrid.getBoundingClientRect(),h=a.type==="touchmove"?a.touches[0].clientX:a.clientX,f=a.type==="touchmove"?a.touches[0].clientY:a.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(r);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!o.config.tooltip.shared){var g=parseInt(r.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(g)<0)return void this.handleMouseOut(r)}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(a.type==="mousemove"||a.type==="touchmove"||a.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(T){return T===!0});if(this.ycrosshairs!==null&&w.length&&this.ycrosshairs.classList.add("apexcharts-active"),v&&!this.showOnIntersect)this.handleStickyTooltip(a,h,f,r);else if(o.config.chart.type==="heatmap"||o.config.chart.type==="treemap"){var A=this.intersect.handleHeatTreeTooltip({e:a,opt:r,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:a,opt:r}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:a,opt:r,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);r.tooltipEl.classList.add("apexcharts-active")}else a.type!=="mouseout"&&a.type!=="touchend"||this.handleMouseOut(r)}}},{key:"nonAxisChartsTooltips",value:function(t){var e=t.e,i=t.opt,a=t.tooltipRect,r=this.w,o=i.paths.getAttribute("rel"),l=this.getElTooltip(),h=r.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=r.globals.clientX-h.left-a.ttWidth/2,g=r.globals.clientY-h.top-a.ttHeight-10;if(l.style.left=f+"px",l.style.top=g+"px",r.config.legend.tooltipHoverFormatter){var p=o-1,x=(0,r.config.legend.tooltipHoverFormatter)(this.legendLabels[p].getAttribute("data:default-text"),{seriesIndex:p,dataPointIndex:p,w:r});this.legendLabels[p].innerHTML=x}}else e.type!=="mouseout"&&e.type!=="touchend"||(l.classList.remove("apexcharts-active"),r.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,a){var r=this.w,o=this.tooltipUtil.getNearestValues({context:this,hoverArea:a.hoverArea,elGrid:a.elGrid,clientX:e,clientY:i}),l=o.j,h=o.capturedSeries;r.globals.collapsedSeriesIndices.includes(h)&&(h=null);var f=a.elGrid.getBoundingClientRect();if(o.hoverX<0||o.hoverX>f.width)this.handleMouseOut(a);else if(h!==null)this.handleStickyCapturedSeries(t,h,a,l);else if(this.tooltipUtil.isXoverlap(l)||r.globals.isBarHorizontal){var g=r.globals.series.findIndex(function(p,x){return!r.globals.collapsedSeriesIndices.includes(x)});this.create(t,this,g,l,a.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(t,e,i,a){var r=this.w;if(!this.tConfig.shared&&r.globals.series[e][a]===null)return void this.handleMouseOut(i);if(r.globals.series[e][a]!==void 0)this.tConfig.shared&&this.tooltipUtil.isXoverlap(a)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,a,i.ttItems):this.create(t,this,e,a,i.ttItems,!1);else if(this.tooltipUtil.isXoverlap(a)){var o=r.globals.series.findIndex(function(l,h){return!r.globals.collapsedSeriesIndices.includes(h)});this.create(t,this,o,a,i.ttItems)}}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new W(this.ctx),i=t.globals.dom.Paper.select(".apexcharts-bar-area"),a=0;a<i.length;a++)e.pathMouseLeave(i[a])}},{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 a=0;a<this.yaxisTTEls.length;a++)this.yaxisTTEls[a].classList.remove("apexcharts-active")}e.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(r){var o=r.getAttribute("data:default-text");r.innerHTML=decodeURIComponent(o)})}},{key:"markerClick",value:function(t,e,i){var a=this.w;typeof a.config.chart.events.markerClick=="function"&&a.config.chart.events.markerClick(t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:a}),this.ctx.events.fireEvent("markerClick",[t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:a}])}},{key:"create",value:function(t,e,i,a,r){var o,l,h,f,g,p,x,v,w,A,C,T,M,u,b,k,P=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,_=this.w,O=e;t.type==="mouseup"&&this.markerClick(t,i,a),P===null&&(P=this.tConfig.shared);var N=this.tooltipUtil.hasMarkers(i),X=this.tooltipUtil.getElBars();if(_.config.legend.tooltipHoverFormatter){var B=_.config.legend.tooltipHoverFormatter,$=Array.from(this.legendLabels);$.forEach(function(ze){var we=ze.getAttribute("data:default-text");ze.innerHTML=decodeURIComponent(we)});for(var V=0;V<$.length;V++){var st=$[V],ht=parseInt(st.getAttribute("i"),10),pt=decodeURIComponent(st.getAttribute("data:default-text")),kt=B(pt,{seriesIndex:P?ht:i,dataPointIndex:a,w:_});if(P)st.innerHTML=_.globals.collapsedSeriesIndices.indexOf(ht)<0?kt:pt;else if(st.innerHTML=ht===i?kt:pt,i===ht)break}}var _t=d(d({ttItems:r,i,j:a},((o=_.globals.seriesRange)===null||o===void 0||(l=o[i])===null||l===void 0||(h=l[a])===null||h===void 0||(f=h.y[0])===null||f===void 0?void 0:f.y1)!==void 0&&{y1:(g=_.globals.seriesRange)===null||g===void 0||(p=g[i])===null||p===void 0||(x=p[a])===null||x===void 0||(v=x.y[0])===null||v===void 0?void 0:v.y1}),((w=_.globals.seriesRange)===null||w===void 0||(A=w[i])===null||A===void 0||(C=A[a])===null||C===void 0||(T=C.y[0])===null||T===void 0?void 0:T.y2)!==void 0&&{y2:(M=_.globals.seriesRange)===null||M===void 0||(u=M[i])===null||u===void 0||(b=u[a])===null||b===void 0||(k=b.y[0])===null||k===void 0?void 0:k.y2});if(P){if(O.tooltipLabels.drawSeriesTexts(d(d({},_t),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),N)_.globals.markers.largestSize>0?O.marker.enlargePoints(a):O.tooltipPosition.moveDynamicPointsOnHover(a);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(X),this.barSeriesHeight>0)){var Ct=new W(this.ctx),Bt=_.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(a,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(a,i);for(var $t=0;$t<Bt.length;$t++)Ct.pathMouseEnter(Bt[$t])}}else O.tooltipLabels.drawSeriesTexts(d({shared:!1},_t)),this.tooltipUtil.hasBars()&&O.tooltipPosition.moveStickyTooltipOverBars(a,i),N&&O.tooltipPosition.moveMarkers(i,a)}}]),E}(),Xa=function(){function E(t){y(this,E),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 L(E,[{key:"handleBarDataLabels",value:function(t){var e=t.x,i=t.y,a=t.y1,r=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,T=this.w,M=new W(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);T.globals.isXNumeric&&!T.globals.isBarHorizontal&&(b=e+parseFloat(x*(A+1)),k=i+parseFloat(p*(A+1))-u);var P,_=null,O=e,N=i,X={},B=T.config.dataLabels,$=this.barCtx.barOptions.dataLabels,V=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 st=B.offsetX,ht=B.offsetY,pt={width:0,height:0};if(T.config.dataLabels.enabled){var kt=this.barCtx.series[o][l];pt=M.getTextRects(T.globals.yLabelFormatters[0](kt),parseFloat(B.style.fontSize))}var _t={x:e,y:i,i:o,j:l,realIndex:h,groupIndex:f||-1,renderedPath:C,bcx:b,bcy:k,barHeight:p,barWidth:x,textRects:pt,strokeWidth:u,dataLabelsX:O,dataLabelsY:N,dataLabelsConfig:B,barDataLabelsConfig:$,barTotalDataLabelsConfig:V,offX:st,offY:ht};return X=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(_t):this.calculateColumnsDataLabelsPosition(_t),C.attr({cy:X.bcy,cx:X.bcx,j:l,val:g[o][l],barHeight:p,barWidth:x}),P=this.drawCalculatedDataLabels({x:X.dataLabelsX,y:X.dataLabelsY,val:this.barCtx.isRangeBar?[a,r]:g[o][l],i:h,j:l,barWidth:x,barHeight:p,textRects:pt,dataLabelsConfig:B}),T.config.chart.stacked&&V.enabled&&(_=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:B,barTotalDataLabelsConfig:V})),{dataLabels:P,totalDataLabels:_}}},{key:"getStackedTotalDataLabel",value:function(t){var e=t.realIndex,i=t.j,a=this.w,r=this.barCtx.stackedSeriesTotals[i];return this.totalFormatter&&(r=this.totalFormatter(r,d(d({},a),{},{seriesIndex:e,dataPointIndex:i,w:a}))),r}},{key:"calculateColumnsDataLabelsPosition",value:function(t){var e,i,a=this.w,r=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,T=t.barDataLabelsConfig,M=t.barTotalDataLabelsConfig,u=t.strokeWidth,b=t.offX,k=t.offY;x=Math.abs(x);var P=a.config.plotOptions.bar.dataLabels.orientation==="vertical",_=this.barCtx.barHelpers.getZeroValueEncounters({i:r,j:o}).zeroEncounters;g=g-u/2+(h!==-1?h*p:0);var O=a.globals.gridWidth/a.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?w+=p/2:(w=a.globals.isXNumeric?g-p/2+b:g-O+p/2+b,_>0&&a.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(w-=p*_)),P&&(w=w+v.height/2-u/2-2);var N=this.barCtx.series[r][o]<0,X=f;switch(this.barCtx.isReversed&&(X=f-x+(N?2*x:0),f-=x),T.position){case"center":A=P?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=P?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=P?N?X+k:X-k:N?X-v.height/2-k:X+v.height+k}if(this.barCtx.lastActiveBarSerieIndex===l&&M.enabled){var B=new W(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:l,j:o}),C.fontSize);e=N?X-B.height/2-k-M.offsetY+18:X+B.height+k+M.offsetY-18,i=w+M.offsetX}return a.config.chart.stacked||(A<0?A=0+u:A+v.height/3>a.globals.gridHeight&&(A=a.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,a=t.i,r=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,T=t.offX,M=t.offY,u=e.globals.gridHeight/e.globals.dataPoints;g=Math.abs(g);var b,k,P=(h+=l!==-1?l*f:0)-(this.barCtx.isRangeBar?0:u)+f/2+p.height/2+M-3,_="start",O=this.barCtx.series[a][r]<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-T:Math.max(p.width/2,N-g/2)+T;break;case"bottom":x=O?N+g-v-Math.round(p.width/2)-T:N-g+v+Math.round(p.width/2)+T;break;case"top":x=O?N-v+Math.round(p.width/2)-T:N-v-Math.round(p.width/2)+T}if(this.barCtx.lastActiveBarSerieIndex===o&&C.enabled){var X=new W(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:r}),w.fontSize);O?(b=N-v+Math.round(X.width/2)-T-C.offsetX-15,_="end"):b=N-v-Math.round(X.width/2)+T+C.offsetX+15,k=P+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:P,totalDataLabelsX:b,totalDataLabelsY:k,totalDataLabelsAnchor:_}}},{key:"drawCalculatedDataLabels",value:function(t){var e=t.x,i=t.y,a=t.val,r=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 ci(this.barCtx.ctx),w=new W(this.barCtx.ctx),A=g.formatter,C=null,T=p.globals.collapsedSeriesIndices.indexOf(r)>-1;if(g.enabled&&!T){C=w.group({class:"apexcharts-data-labels",transform:x});var M="";a!==void 0&&(M=A(a,d(d({},p),{},{seriesIndex:r,dataPointIndex:o,w:p}))),!a&&p.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(M="");var u=p.globals.series[r][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&&a<0&&(g.textAnchor==="start"?k.textAnchor="end":g.textAnchor==="end"&&(k.textAnchor="start")),v.plotDataLabelsText({x:e,y:i,text:M,i:r,j:o,parent:C,dataLabelsConfig:k,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return C}},{key:"drawTotalDataLabels",value:function(t){var e,i=t.x,a=t.y,r=t.val,o=t.barWidth,l=t.barHeight,h=t.realIndex,f=t.textAnchor,g=t.barTotalDataLabelsConfig,p=this.w,x=new W(this.barCtx.ctx);return g.enabled&&i!==void 0&&a!==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:a-(p.globals.isBarHorizontal&&p.globals.seriesGroups.length?l/p.globals.seriesGroups.length:0),foreColor:g.style.color,text:r,textAnchor:f,fontFamily:g.style.fontFamily,fontSize:g.style.fontSize,fontWeight:g.style.fontWeight})),e}}]),E}(),vh=function(){function E(t){y(this,E),this.w=t.w,this.barCtx=t}return L(E,[{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 a=0;a<t[i].length;a++)e.globals.seriesX[i][a]>e.globals.minX&&e.globals.seriesX[i][a]<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,a,r,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)r=(i=f.globals.gridHeight/g)/p,f.globals.isXNumeric&&(r=(i=f.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),r=r*parseInt(this.barCtx.barOptions.barHeight,10)/100,String(this.barCtx.barOptions.barHeight).indexOf("%")===-1&&(r=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-r*this.barCtx.seriesLen)/2;else{if(a=f.globals.gridWidth/this.barCtx.visibleItems,f.config.xaxis.convertedCatToNumeric&&(a=f.globals.gridWidth/f.globals.dataPoints),o=a/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&&(a=f.globals.minXDiff/x),(o=a/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+(a-o*this.barCtx.seriesLen)/2}return f.globals.barHeight=r,f.globals.barWidth=o,{x:t,y:e,yDivision:i,xDivision:a,barHeight:r,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,a){var r,o,l,h,f=this.w,g=new Jt(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:a,dataPointIndex:i,color:p,value:t[e][i],fillConfig:(r=f.config.series[e].data[i])===null||r===void 0?void 0:r.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 a=0,r=this.w;return this.barCtx.series[t][e]===void 0||this.barCtx.series[t][e]===null?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,r.config.stroke.show&&(this.barCtx.isNullValue||(a=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),a}},{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,a=t.x1,r=t.x2,o=t.y1,l=t.y2,h=t.elSeries,f=this.w,g=new W(this.barCtx.ctx),p=new Qt(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(a!==void 0?a:0,o!==void 0?o:0,r!==void 0?r: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,a=t.barXPosition,r=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 W(this.barCtx.ctx);(l=Array.isArray(l)?l[f]:l)||(l=0);var w=i,A=a;(e=x.config.series[f].data[p])!==null&&e!==void 0&&e.columnWidthOffset&&(A=a-x.config.series[f].data[p].columnWidthOffset/2,w=i+x.config.series[f].data[p].columnWidthOffset);var C=A,T=A+w;r+=.001,o+=.001;var M=v.move(C,r),u=v.move(C,r),b=v.line(T-l,r);if(x.globals.previousPaths.length>0&&(u=this.barCtx.getPreviousPath(f,p,!1)),M=M+v.line(C,o)+v.line(T-l,o)+v.line(T-l,r)+(x.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),u=u+v.line(C,r)+b+b+b+b+b+v.line(C,r)+(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(r-o)),k.yArrjVal.push(this.barCtx.series[g][p])}return{pathTo:M,pathFrom:u}}},{key:"getBarpaths",value:function(t){var e,i=t.barYPosition,a=t.barHeight,r=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 W(this.barCtx.ctx);(l=Array.isArray(l)?l[f]:l)||(l=0);var w=i,A=a;(e=x.config.series[f].data[p])!==null&&e!==void 0&&e.barHeightOffset&&(w=i-x.config.series[f].data[p].barHeightOffset/2,A=a+x.config.series[f].data[p].barHeightOffset);var C=w,T=w+A;r+=.001,o+=.001;var M=v.move(r,C),u=v.move(r,C);x.globals.previousPaths.length>0&&(u=this.barCtx.getPreviousPath(f,p,!1));var b=v.line(r,T-l);if(M=M+v.line(o,C)+v.line(o,T-l)+b+(x.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),u=u+v.line(r,C)+b+b+b+b+b+v.line(r,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(r-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,a=0;a<e.length;a++){for(var r=0,o=0;o<e[i.globals.maxValsInArrayIndex].length;o++)r+=e[a][o];r===0&&this.barCtx.zeroSerieses.push(a)}}},{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,a,r){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[a]&&l.globals.seriesGoals[a][r]&&Array.isArray(l.globals.seriesGoals[a][r])&&l.globals.seriesGoals[a][r].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[a],strokeWidth:t==="x"?l.globals.markers.size[a]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(g[a])?g[a][0]:g[a]};f(l.globals.seriesRangeStart[a][r],p),f(l.globals.seriesRangeEnd[a][r],d(d({},p),{},{strokeColor:Array.isArray(g[a])?g[a][1]:g[a]}))}return h}},{key:"drawGoalLine",value:function(t){var e=t.barXPosition,i=t.barYPosition,a=t.goalX,r=t.goalY,o=t.barWidth,l=t.barHeight,h=new W(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(a)&&a.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(r)&&r.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,a=t.color,r=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 W(this.barCtx.ctx),w=new R,A=v.move(l,x)+v.line(o,x)+v.line(f,p)+v.line(g,p)+v.line(l,x)+(r.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z");return v.drawPath({d:A,fill:w.shadeColor(.5,R.rgb2hex(a)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(t){var e=t.i,i=t.j,a=this.w,r=0,o=0;return a.globals.seriesPercent.forEach(function(l,h){l[i]&&r++,h<e&&l[i]===0&&o++}),{nonZeroColumns:r,zeroEncounters:o}}}]),E}(),Bi=function(){function E(t,e){y(this,E),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 a=new Qt(this.ctx);this.lastActiveBarSerieIndex=a.getActiveConfigSeriesIndex("desc",["bar","column"]);var r=a.getBarSeriesIndices(),o=new it(this.ctx);this.stackedSeriesTotals=o.getStackedSeriesTotals(this.w.config.series.map(function(l,h){return r.indexOf(h)===-1?h:-1}).filter(function(l){return l!==-1})),this.barHelpers=new vh(this)}return L(E,[{key:"draw",value:function(t,e){var i=this.w,a=new W(this.ctx),r=new it(this.ctx,i);t=r.getLogSeries(t),this.series=t,this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);var o=a.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=[],T=i.globals.comboCharts?e[l]:l,M=a.group({class:"apexcharts-series",rel:l+1,seriesName:R.escapeString(i.globals.seriesNames[T]),"data:realIndex":T});this.ctx.series.addCollapsedClassToSeries(M,T),t[l].length>0&&(this.visibleI=this.visibleI+1);var u=0,b=0;this.yRatio.length>1&&(this.yaxisIndex=T),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 P=a.group({class:"apexcharts-datalabels","data:realIndex":T});i.globals.delayedElements.push({el:P.node}),P.node.classList.add("apexcharts-element-hidden");var _=a.group({class:"apexcharts-bar-goals-markers"}),O=a.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,T),B=null,$={indexes:{i:l,j:N,realIndex:T,bc:h},x:v,y:w,strokeWidth:X,elSeries:M};this.isHorizontal?(B=this.drawBarPaths(d(d({},$),{},{barHeight:u,zeroW:x,yDivision:g})),b=this.series[l][N]/this.invertedYRatio):(B=this.drawColumnPaths(d(d({},$),{},{xDivision:f,barWidth:b,zeroH:p})),u=this.series[l][N]/this.yRatio[this.yaxisIndex]);var V=this.barHelpers.getPathFillColor(t,l,N,T);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&N>0){var st=this.barHelpers.drawBarShadow({color:typeof V=="string"&&(V==null?void 0:V.indexOf("url"))===-1?V:R.hexToRgba(i.globals.colors[l]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:B});st&&O.add(st)}this.pathArr.push(B);var ht=this.barHelpers.drawGoalLine({barXPosition:B.barXPosition,barYPosition:B.barYPosition,goalX:B.goalX,goalY:B.goalY,barHeight:u,barWidth:b});ht&&_.add(ht),w=B.y,v=B.x,N>0&&C.push(v+b/2),A.push(w),this.renderSeries({realIndex:T,pathFill:V,j:N,i:l,pathFrom:B.pathFrom,pathTo:B.pathTo,strokeWidth:X,elSeries:M,x:v,y:w,series:t,barHeight:B.barHeight?B.barHeight:u,barWidth:B.barWidth?B.barWidth:b,elDataLabelsWrap:P,elGoalsMarkers:_,elBarShadows:O,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[T]=C,i.globals.seriesYvalues[T]=A,o.add(M)}return o}},{key:"renderSeries",value:function(t){var e=t.realIndex,i=t.pathFill,a=t.lineFill,r=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,T=t.barHeight,M=t.barWidth,u=t.barXPosition,b=t.barYPosition,k=t.elDataLabelsWrap,P=t.elGoalsMarkers,_=t.elBarShadows,O=t.visibleSeries,N=t.type,X=this.w,B=new W(this.ctx);a||(a=this.barOptions.distributed?X.globals.stroke.colors[r]:X.globals.stroke.colors[e]),X.config.series[o].data[r]&&X.config.series[o].data[r].strokeColor&&(a=X.config.series[o].data[r].strokeColor),this.isNullValue&&(i="none");var $=r/X.config.chart.animations.animateGradually.delay*(X.config.chart.animations.speed/X.globals.dataPoints)/2.4,V=B.renderPaths({i:o,j:r,realIndex:e,pathFrom:h,pathTo:f,stroke:a,strokeWidth:g,strokeLineCap:X.config.stroke.lineCap,fill:i,animationDelay:$,initialSpeed:X.config.chart.animations.speed,dataChangeSpeed:X.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(N,"-area")});V.attr("clip-path","url(#gridRectMask".concat(X.globals.cuid,")"));var st=X.config.forecastDataPoints;st.count>0&&r>=X.globals.dataPoints-st.count&&(V.node.setAttribute("stroke-dasharray",st.dashArray),V.node.setAttribute("stroke-width",st.strokeWidth),V.node.setAttribute("fill-opacity",st.fillOpacity)),w!==void 0&&A!==void 0&&(V.attr("data-range-y1",w),V.attr("data-range-y2",A)),new ut(this.ctx).setSelectionFilter(V,e,r),p.add(V);var ht=new Xa(this).handleBarDataLabels({x,y:v,y1:w,y2:A,i:o,j:r,series:C,realIndex:e,groupIndex:l,barHeight:T,barWidth:M,barXPosition:u,barYPosition:b,renderedPath:V,visibleSeries:O});return ht.dataLabels!==null&&k.add(ht.dataLabels),ht.totalDataLabels&&k.add(ht.totalDataLabels),p.add(k),P&&p.add(P),_&&p.add(_),p}},{key:"drawBarPaths",value:function(t){var e,i=t.indexes,a=t.barHeight,r=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-a)+a*this.visibleI;else if(p.config.plotOptions.bar.hideZeroBarsWhenGrouped){var w=0,A=0;p.globals.seriesPercent.forEach(function(T,M){T[v]&&w++,M<x&&T[v]===0&&A++}),w>0&&(a=this.seriesLen*a/w),e=h+a*this.visibleI,e-=a*A}else e=h+a*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:a,x1:o,x2:l,strokeWidth:r,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-a*this.visibleI,y2:a*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:a}}},{key:"drawColumnPaths",value:function(t){var e,i=t.indexes,a=t.x,r=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:a,j:w,realIndex:x,barWidth:l});a=C.x,e=C.barXPosition}else if(p.config.plotOptions.bar.hideZeroBarsWhenGrouped){var T=this.barHelpers.getZeroValueEncounters({i:v,j:w}),M=T.nonZeroColumns,u=T.zeroEncounters;M>0&&(l=this.seriesLen*l/M),e=a+l*this.visibleI,e-=l*u}else e=a+l*this.visibleI;r=this.barHelpers.getYForValue(this.series[v][w],h);var b=this.barHelpers.getColumnPaths({barXPosition:e,barWidth:l,y1:h,y2:r,strokeWidth:f,series:this.series,realIndex:i.realIndex,i:v,j:w,w:p});return p.globals.isXNumeric||(a+=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:a,y:r,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,a=t.realIndex,r=t.j,o=this.w,l=a;return o.globals.seriesX[a].length||(l=o.globals.maxValsInArrayIndex),o.globals.seriesX[l][r]&&(e=(o.globals.seriesX[l][r]-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,a=this.w,r=0;r<a.globals.previousPaths.length;r++){var o=a.globals.previousPaths[r];o.paths&&o.paths.length>0&&parseInt(o.realIndex,10)===parseInt(t,10)&&a.globals.previousPaths[r].paths[e]!==void 0&&(i=a.globals.previousPaths[r].paths[e].d)}return i}}]),E}(),Mn=function(E){F(e,Bi);var t=J(e);function e(){return y(this,e),t.apply(this,arguments)}return L(e,[{key:"draw",value:function(i,a){var r=this,o=this.w;this.graphics=new W(this.ctx),this.bar=new Bi(this.ctx,this.xyRatios);var l=new it(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,T=void 0,M=void 0,u=void 0,b=-1;r.groupCtx=r,o.globals.seriesGroups.forEach(function(Bt,$t){Bt.indexOf(o.config.series[w].name)>-1&&(b=$t)}),b!==-1&&(r.groupCtx=r[o.globals.seriesGroups[b]]);var k=[],P=[],_=o.globals.comboCharts?a[w]:w;r.yRatio.length>1&&(r.yaxisIndex=_),r.isReversed=o.config.yaxis[r.yaxisIndex]&&o.config.yaxis[r.yaxisIndex].reversed;var O=r.graphics.group({class:"apexcharts-series",seriesName:R.escapeString(o.globals.seriesNames[_]),rel:w+1,"data:realIndex":_});r.ctx.series.addCollapsedClassToSeries(O,_);var N=r.graphics.group({class:"apexcharts-datalabels","data:realIndex":_}),X=r.graphics.group({class:"apexcharts-bar-goals-markers"}),B=0,$=0,V=r.initialPositions(f,g,C,T,M,u);g=V.y,B=V.barHeight,T=V.yDivision,u=V.zeroW,f=V.x,$=V.barWidth,C=V.xDivision,M=V.zeroH,o.globals.barHeight=B,o.globals.barWidth=$,r.barHelpers.initializeStackedXYVars(r),r.groupCtx.prevY.length===1&&r.groupCtx.prevY[0].every(function(Bt){return isNaN(Bt)})&&(r.groupCtx.prevY[0]=r.groupCtx.prevY[0].map(function(Bt){return M}),r.groupCtx.prevYF[0]=r.groupCtx.prevYF[0].map(function(Bt){return 0}));for(var st=0;st<o.globals.dataPoints;st++){var ht=r.barHelpers.getStrokeWidth(w,st,_),pt={indexes:{i:w,j:st,realIndex:_,bc:A},strokeWidth:ht,x:f,y:g,elSeries:O,groupIndex:b,seriesGroup:o.globals.seriesGroups[b]},kt=null;r.isHorizontal?(kt=r.drawStackedBarPaths(d(d({},pt),{},{zeroW:u,barHeight:B,yDivision:T})),$=r.series[w][st]/r.invertedYRatio):(kt=r.drawStackedColumnPaths(d(d({},pt),{},{xDivision:C,barWidth:$,zeroH:M})),B=r.series[w][st]/r.yRatio[r.yaxisIndex]);var _t=r.barHelpers.drawGoalLine({barXPosition:kt.barXPosition,barYPosition:kt.barYPosition,goalX:kt.goalX,goalY:kt.goalY,barHeight:B,barWidth:$});_t&&X.add(_t),g=kt.y,f=kt.x,k.push(f),P.push(g);var Ct=r.barHelpers.getPathFillColor(i,w,st,_);O=r.renderSeries({realIndex:_,pathFill:Ct,j:st,i:w,groupIndex:b,pathFrom:kt.pathFrom,pathTo:kt.pathTo,strokeWidth:ht,elSeries:O,x:f,y:g,series:i,barHeight:B,barWidth:$,elDataLabelsWrap:N,elGoalsMarkers:X,type:"bar",visibleSeries:0})}o.globals.seriesXvalues[_]=k,o.globals.seriesYvalues[_]=P,r.groupCtx.prevY.push(r.groupCtx.yArrj),r.groupCtx.prevYF.push(r.groupCtx.yArrjF),r.groupCtx.prevYVal.push(r.groupCtx.yArrjVal),r.groupCtx.prevX.push(r.groupCtx.xArrj),r.groupCtx.prevXF.push(r.groupCtx.xArrjF),r.groupCtx.prevXVal.push(r.groupCtx.xArrjVal),h.add(O)},x=0,v=0;x<i.length;x++,v++)p(x,v);return h}},{key:"initialPositions",value:function(i,a,r,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),a=(o-p)/2):(x=r=v.globals.gridWidth/v.globals.dataPoints,x=v.globals.isXNumeric&&v.globals.dataPoints>1?(r=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+(r-x)/2),{x:i,y:a,yDivision:o,xDivision:r,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 a,r=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),T=r.i,M=r.j,u=0,b=0;b<this.groupCtx.prevXF.length;b++)u+=this.groupCtx.prevXF[b][M];var k=T;if(x&&(k=x.indexOf(A.config.series[T].name)),k>0){var P=h;this.groupCtx.prevXVal[k-1][M]<0?P=this.series[T][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&&(P=this.series[T][M]>=0?this.groupCtx.prevX[k-1][M]:this.groupCtx.prevX[k-1][M]-u+2*(this.isReversed?u:0)),a=P}else a=h;f=this.series[T][M]===null?a:a+this.series[T][M]/this.invertedYRatio-2*(this.isReversed?this.series[T][M]/this.invertedYRatio:0);var _=this.barHelpers.getBarpaths({barYPosition:C,barHeight:o,x1:a,x2:f,strokeWidth:l,series:this.series,realIndex:r.realIndex,seriesGroup:x,i:T,j:M,w:A});return this.barHelpers.barBackground({j:M,i:T,y1:C,y2:o,elSeries:w}),g+=v,{pathTo:_.pathTo,pathFrom:_.pathFrom,goalX:this.barHelpers.getGoalValues("x",h,null,T,M),barYPosition:C,x:f,y:g}}},{key:"drawStackedColumnPaths",value:function(i){var a=i.indexes,r=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=a.i,A=a.j,C=a.bc;if(v.globals.isXNumeric){var T=v.globals.seriesX[w][A];T||(T=0),r=(T-v.globals.minX)/this.xRatio-h/2,v.globals.seriesGroups.length&&(r=(T-v.globals.minX)/this.xRatio-h/2*v.globals.seriesGroups.length)}for(var M,u=r+(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 P=w;if(p&&(P=p.indexOf(v.config.series[w].name)),P>0&&!v.globals.isXNumeric||P>0&&v.globals.isXNumeric&&v.globals.seriesX[w-1][A]===v.globals.seriesX[w][A]){var _,O,N,X=Math.min(this.yRatio.length+1,w+1);if(this.groupCtx.prevY[P-1]!==void 0&&this.groupCtx.prevY[P-1].length)for(var B=1;B<X;B++){var $;if(!isNaN(($=this.groupCtx.prevY[P-B])===null||$===void 0?void 0:$[A])){N=this.groupCtx.prevY[P-B][A];break}}for(var V=1;V<X;V++){var st,ht;if(((st=this.groupCtx.prevYVal[P-V])===null||st===void 0?void 0:st[A])<0){O=this.series[w][A]>=0?N-b+2*(this.isReversed?b:0):N;break}if(((ht=this.groupCtx.prevYVal[P-V])===null||ht===void 0?void 0:ht[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=(_=this.groupCtx.prevYF[0])!==null&&_!==void 0&&_.every(function(kt){return kt===0})&&this.groupCtx.prevYF.slice(1,P).every(function(kt){return kt.every(function(_t){return isNaN(_t)})})?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 pt=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:a.realIndex,i:w,j:A,w:v});return this.barHelpers.barBackground({bc:C,j:A,i:w,x1:u,x2:h,elSeries:x}),r+=l,{pathTo:pt.pathTo,pathFrom:pt.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,f,w,A),barXPosition:u,x:v.globals.isXNumeric?r-l:r,y:o}}}]),e}(),js=function(E){F(e,Bi);var t=J(e);function e(){return y(this,e),t.apply(this,arguments)}return L(e,[{key:"draw",value:function(i,a,r){var o=this,l=this.w,h=new W(this.ctx),f=l.globals.comboCharts?a:l.config.chart.type,g=new Jt(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 it(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,T,M,u,b=void 0,k=void 0,P=[],_=[],O=l.globals.comboCharts?r[A]:A,N=h.group({class:"apexcharts-series",seriesName:R.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,B;o.yRatio.length>1&&(o.yaxisIndex=O);var $=o.barHelpers.initialPositions();k=$.y,X=$.barHeight,T=$.yDivision,u=$.zeroW,b=$.x,B=$.barWidth,C=$.xDivision,M=$.zeroH,_.push(b+B/2);for(var V=h.group({class:"apexcharts-datalabels","data:realIndex":O}),st=function(pt){var kt=o.barHelpers.getStrokeWidth(A,pt,O),_t=null,Ct={indexes:{i:A,j:pt,realIndex:O},x:b,y:k,strokeWidth:kt,elSeries:N};_t=o.isHorizontal?o.drawHorizontalBoxPaths(d(d({},Ct),{},{yDivision:T,barHeight:X,zeroW:u})):o.drawVerticalBoxPaths(d(d({},Ct),{},{xDivision:C,barWidth:B,zeroH:M})),k=_t.y,b=_t.x,pt>0&&_.push(b+B/2),P.push(k),_t.pathTo.forEach(function(Bt,$t){var ze=!o.isBoxPlot&&o.candlestickOptions.wick.useFillColor?_t.color[$t]:l.globals.stroke.colors[A],we=g.fillPath({seriesNumber:O,dataPointIndex:pt,color:_t.color[$t],value:i[A][pt]});o.renderSeries({realIndex:O,pathFill:we,lineFill:ze,j:pt,i:A,pathFrom:_t.pathFrom,pathTo:Bt,strokeWidth:kt,elSeries:N,x:b,y:k,series:i,barHeight:X,barWidth:B,elDataLabelsWrap:V,visibleSeries:o.visibleI,type:l.config.chart.type})})},ht=0;ht<l.globals.dataPoints;ht++)st(ht);l.globals.seriesXvalues[O]=_,l.globals.seriesYvalues[O]=P,x.add(N)},w=0;w<i.length;w++)v(w);return x}},{key:"drawVerticalBoxPaths",value:function(i){var a=i.indexes,r=i.x;i.y;var o=i.xDivision,l=i.barWidth,h=i.zeroH,f=i.strokeWidth,g=this.w,p=new W(this.ctx),x=a.i,v=a.j,w=!0,A=g.config.plotOptions.candlestick.colors.upward,C=g.config.plotOptions.candlestick.colors.downward,T="";this.isBoxPlot&&(T=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var M=this.yRatio[this.yaxisIndex],u=a.realIndex,b=this.getOHLCValue(u,v),k=h,P=h;b.o>b.c&&(w=!1);var _=Math.min(b.o,b.c),O=Math.max(b.o,b.c),N=b.m;g.globals.isXNumeric&&(r=(g.globals.seriesX[u][v]-g.globals.minX)/this.xRatio-l/2);var X=r+l*this.visibleI;this.series[x][v]===void 0||this.series[x][v]===null?(_=h,O=h):(_=h-_/M,O=h-O/M,k=h-b.h/M,P=h-b.l/M,N=h-b.m/M);var B=p.move(X,h),$=p.move(X+l/2,_);return g.globals.previousPaths.length>0&&($=this.getPreviousPath(u,v,!0)),B=this.isBoxPlot?[p.move(X,_)+p.line(X+l/2,_)+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,_)+p.line(X+l,_)+p.line(X+l,N)+p.line(X,N)+p.line(X,_+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,P)+p.line(X+l-l/4,P)+p.line(X+l/4,P)+p.line(X+l/2,P)+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,_)+p.line(X+l/2,_)+p.line(X+l/2,P)+p.line(X+l/2,_)+p.line(X,_)+p.line(X,O-f/2)],$+=p.move(X,_),g.globals.isXNumeric||(r+=o),{pathTo:B,pathFrom:$,x:r,y:O,barXPosition:X,color:this.isBoxPlot?T:w?[A]:[C]}}},{key:"drawHorizontalBoxPaths",value:function(i){var a=i.indexes;i.x;var r=i.y,o=i.yDivision,l=i.barHeight,h=i.zeroW,f=i.strokeWidth,g=this.w,p=new W(this.ctx),x=a.i,v=a.j,w=this.boxOptions.colors.lower;this.isBoxPlot&&(w=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var A=this.invertedYRatio,C=a.realIndex,T=this.getOHLCValue(C,v),M=h,u=h,b=Math.min(T.o,T.c),k=Math.max(T.o,T.c),P=T.m;g.globals.isXNumeric&&(r=(g.globals.seriesX[C][v]-g.globals.minX)/this.invertedXRatio-l/2);var _=r+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+T.h/A,u=h+T.l/A,P=h+T.m/A);var O=p.move(h,_),N=p.move(b,_+l/2);return g.globals.previousPaths.length>0&&(N=this.getPreviousPath(C,v,!0)),O=[p.move(b,_)+p.line(b,_+l/2)+p.line(M,_+l/2)+p.line(M,_+l/2-l/4)+p.line(M,_+l/2+l/4)+p.line(M,_+l/2)+p.line(b,_+l/2)+p.line(b,_+l)+p.line(P,_+l)+p.line(P,_)+p.line(b+f/2,_),p.move(P,_)+p.line(P,_+l)+p.line(k,_+l)+p.line(k,_+l/2)+p.line(u,_+l/2)+p.line(u,_+l-l/4)+p.line(u,_+l/4)+p.line(u,_+l/2)+p.line(k,_+l/2)+p.line(k,_)+p.line(P,_)+"z"],N+=p.move(b,_),g.globals.isXNumeric||(r+=o),{pathTo:O,pathFrom:N,x:k,y:r,barYPosition:_,color:w}}},{key:"getOHLCValue",value:function(i,a){var r=this.w;return{o:this.isBoxPlot?r.globals.seriesCandleH[i][a]:r.globals.seriesCandleO[i][a],h:this.isBoxPlot?r.globals.seriesCandleO[i][a]:r.globals.seriesCandleH[i][a],m:r.globals.seriesCandleM[i][a],l:this.isBoxPlot?r.globals.seriesCandleC[i][a]:r.globals.seriesCandleL[i][a],c:this.isBoxPlot?r.globals.seriesCandleL[i][a]:r.globals.seriesCandleC[i][a]}}}]),e}(),On=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{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(a,r){a.from<=0&&(e=!0)}),e}},{key:"getShadeColor",value:function(t,e,i,a){var r=this.w,o=1,l=r.config.plotOptions[t].shadeIntensity,h=this.determineColor(t,e,i);r.globals.hasNegs||a?o=r.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 R;return r.config.plotOptions[t].enableShades&&(f=this.w.config.theme.mode==="dark"?R.hexToRgba(g.shadeColor(-1*o,h.color),r.config.fill.opacity):R.hexToRgba(g.shadeColor(o,h.color),r.config.fill.opacity)),{color:f,colorProps:h}}},{key:"determineColor",value:function(t,e,i){var a=this.w,r=a.globals.series[e][i],o=a.config.plotOptions[t],l=o.colorScale.inverse?i:e;o.distributed&&a.config.chart.type==="treemap"&&(l=i);var h=a.globals.colors[l],f=null,g=Math.min.apply(Math,lt(a.globals.series[e])),p=Math.max.apply(Math,lt(a.globals.series[e]));o.distributed||t!=="heatmap"||(g=a.globals.minY,p=a.globals.maxY),o.colorScale.min!==void 0&&(g=o.colorScale.min<a.globals.minY?o.colorScale.min:a.globals.minY,p=o.colorScale.max>a.globals.maxY?o.colorScale.max:a.globals.maxY);var x=Math.abs(p)+Math.abs(g),v=100*r/(x===0?x-1e-6:x);return o.colorScale.ranges.length>0&&o.colorScale.ranges.map(function(w,A){if(r>=w.from&&r<=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*r/(C===0?C-1e-6:C)}}),{color:h,foreColor:f,percent:v}}},{key:"calculateDataLabels",value:function(t){var e=t.text,i=t.x,a=t.y,r=t.i,o=t.j,l=t.colorProps,h=t.fontSize,f=this.w.config.dataLabels,g=new W(this.ctx),p=new ci(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=a+parseFloat(f.style.fontSize)/3+w;p.plotDataLabelsText({x:A,y:C,text:e,i:r,j:o,color:l.foreColor,parent:x,fontSize:h,dataLabelsConfig:f})}return x}},{key:"addListeners",value:function(t){var e=new W(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))}}]),E}(),yh=function(){function E(t,e){y(this,E),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 On(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return L(E,[{key:"draw",value:function(t){var e=this.w,i=new W(this.ctx),a=i.group({class:"apexcharts-heatmap"});a.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")"));var r=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:R.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 ut(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),T=C.color,M=C.colorProps;e.config.fill.type==="image"&&(T=new Jt(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:R.randomId(),width:e.config.fill.image.width?e.config.fill.image.width:r,height:e.config.fill.image.height?e.config.fill.image.height:o}));var u=this.rectRadius,b=i.drawRect(v,l,r,o,u);if(b.attr({cx:v,cy:l}),b.node.classList.add("apexcharts-heatmap-rect"),p.add(b),b.attr({fill:T,i:g,index:g,j:A,val:t[g][A],"stroke-width":this.strokeWidth,stroke:e.config.plotOptions.heatmap.useFillColorAsStroke?T:e.globals.stroke.colors[0],color:T}),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,r,o,k)}if(e.globals.dataChanged){var P=1;if(this.dynamicAnim.enabled&&e.globals.shouldAnimate){P=this.dynamicAnim.speed;var _=e.globals.previousPaths[g]&&e.globals.previousPaths[g][A]&&e.globals.previousPaths[g][A].color;_||(_="rgba(255, 255, 255, 0)"),this.animateHeatColor(b,R.isColorHex(_)?_:R.rgb2hex(_),R.isColorHex(T)?T:R.rgb2hex(T),P)}}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+r/2,y:l+o/2,i:g,j:A,colorProps:M,series:f});N!==null&&p.add(N),v+=r}l+=o,a.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,a}},{key:"animateHeatMap",value:function(t,e,i,a,r,o){var l=new ct(this.ctx);l.animateRect(t,{x:e+a/2,y:i+r/2,width:0,height:0},{x:e,y:i,width:a,height:r},o,function(){l.animationCompleted(t)})}},{key:"animateHeatColor",value:function(t,e,i,a){t.attr({fill:e}).animate(a).attr({fill:i})}}]),E}(),Rn=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{key:"drawYAxisTexts",value:function(t,e,i,a){var r=this.w,o=r.config.yaxis[0],l=r.globals.yLabelFormatters[0];return new W(this.ctx).drawText({x:t+o.labels.offsetX,y:e+o.labels.offsetY,text:l(a,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})}}]),E}(),zn=function(){function E(t){y(this,E),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 L(E,[{key:"draw",value:function(t){var e=this,i=this.w,a=new W(this.ctx);if(this.ret=a.group({class:"apexcharts-pie"}),i.globals.noData)return this.ret;for(var r=0,o=0;o<t.length;o++)r+=R.negToZero(t[o]);var l=[],h=a.group();r===0&&(r=1e-5),t.forEach(function(_){e.maxY=Math.max(e.maxY,_)}),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*R.negToZero(t[f])/r;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+=R.negToZero(i.globals.previousPaths[v]);for(var w=0;w<i.globals.previousPaths.length;w++)p=this.fullAngle*R.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,T=i.globals.gridHeight/2,M=C-i.globals.gridWidth/2*A,u=T-i.globals.gridHeight/2*A;if(this.chartType==="donut"){var b=a.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(_){k.add(_)}),h.attr({transform:"translate(".concat(M,", ").concat(u,") scale(").concat(A,")")}),h.add(k),this.ret.add(h),this.donutDataLabels.show){var P=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:M,translateY:u});this.ret.add(P)}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,a=new ut(this.ctx),r=new W(this.ctx),o=new Jt(this.ctx),l=r.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=r.group({class:"apexcharts-series apexcharts-pie-series",seriesName:R.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),T=r.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(T.attr({index:0,j:x}),a.setSelectionFilter(T,0,x),i.config.chart.dropShadow.enabled){var M=i.config.chart.dropShadow;a.dropShadow(T,M,x)}this.addListeners(T,this.donutDataLabels),W.setAttrs(T.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=R.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=R.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(h+w/2)%this.fullAngle)),v.add(T);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(T,{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(T,{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"&&T.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,P=u.y,_=100*w/this.fullAngle+"%";if(w!==0&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<t[x]){var O=i.config.dataLabels.formatter;O!==void 0&&(_=O(i.globals.seriesPercent[x][0],{seriesIndex:x,w:i}));var N=i.globals.dataLabels.style.colors[x],X=r.group({class:"apexcharts-datalabels"}),B=r.drawText({x:k,y:P,text:_,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(B),i.config.dataLabels.dropShadow.enabled){var $=i.config.dataLabels.dropShadow;a.dropShadow(B,$)}B.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&i.globals.resized===!1&&(B.node.classList.add("apexcharts-pie-label-delay"),B.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 W(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,a=e.endAngle<e.startAngle?this.fullAngle+e.endAngle-e.startAngle:e.endAngle-e.startAngle,r=a,o=e.startAngle,l=e.startAngle;e.prevStartAngle!==void 0&&e.prevEndAngle!==void 0&&(o=e.prevEndAngle,r=e.prevEndAngle<e.prevStartAngle?this.fullAngle+e.prevEndAngle-e.prevStartAngle:e.prevEndAngle-e.prevStartAngle),e.i===i.config.series.length-1&&(a+l>this.fullAngle?e.endAngle=e.endAngle-(a+l):a+l<this.fullAngle&&(e.endAngle=e.endAngle+(this.fullAngle-(a+l)))),a===this.fullAngle&&(a=this.fullAngle-.01),this.animateArc(t,o,l,a,r,e)}},{key:"animateArc",value:function(t,e,i,a,r,o){var l,h=this,f=this.w,g=new ct(this.ctx),p=o.size;(isNaN(e)||isNaN(r))&&(e=i,r=a,o.dur=0);var x=a,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+(a-w)*A,o.animateStartingPos&&(x=r+(a-r)*A,v=e-r+(i-(e-r))*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:a,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,a=this,r=a.sliceSizes[t]+(i.config.plotOptions.pie.expandOnClick?4:0),o=i.globals.dom.Paper.select(".apexcharts-".concat(a.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=a.getPiePath({me:a,startAngle:h,angle:f,size:r}),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,a=t.startAngle,r=t.angle,o=t.size,l=new W(this.ctx),h=a,f=Math.PI*(h-90)/180,g=r+a;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=R.polarToCartesian(i.centerX,i.centerY,i.donutSize,g),T=R.polarToCartesian(i.centerX,i.centerY,i.donutSize,h),M=r>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,T.x,T.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 Ze(this.ctx),a=new W(this.ctx),r=new Rn(this.ctx),o=a.group(),l=a.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=a.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=r.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,a=new W(this.ctx),r=a.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;r.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 T=a.drawText({x:f,y:g+parseFloat(t.name.offsetY),text:C,textAnchor:"middle",foreColor:l,fontSize:p,fontWeight:v,fontFamily:x});T.node.classList.add("apexcharts-datalabel-label"),r.add(T)}if(t.value.show){var M=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,u=a.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"),r.add(u)}return r}},{key:"printInnerLabels",value:function(t,e,i,a){var r,o=this.w;a?r=t.name.color===void 0?o.globals.colors[parseInt(a.parentNode.getAttribute("rel"),10)-1]:t.name.color:o.globals.series.length>1&&t.total.show&&(r=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),a||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=r)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,a=t.getAttribute("data:value"),r=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(e,r,a,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,a=new W(this.ctx),r=i.config.plotOptions.polarArea.spokes;if(r.strokeWidth!==0){for(var o=[],l=360/i.globals.series.length,h=0;h<i.globals.series.length;h++)o.push(R.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+l*h));o.forEach(function(f,g){var p=a.drawLine(f.x,f.y,e.centerX,e.centerY,Array.isArray(r.connectorColors)?r.connectorColors[g]:r.connectorColors);t.add(p)})}}},{key:"revertDataLabelsInner",value:function(t,e,i){var a=this,r=this.w,o=r.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),l=!1,h=r.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&&a.printDataLabelsInner(A,e))})};if(f({makeSliceOut:!0,printLabel:!1}),e.total.show&&r.globals.series.length>1)l&&!e.total.showAlways?f({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(e,e.total.label,e.total.formatter(r));else if(f({makeSliceOut:!1,printLabel:!0}),!l)if(r.globals.selectedDataPoints.length&&r.globals.series.length>1)if(r.globals.selectedDataPoints[0].length>0){var g=r.globals.selectedDataPoints[0],p=r.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(g));this.printDataLabelsInner(p,e)}else o&&r.globals.selectedDataPoints.length&&r.globals.selectedDataPoints[0].length===0&&(o.style.opacity=0);else o&&r.globals.series.length>1&&(o.style.opacity=0)}}]),E}(),wh=function(){function E(t){y(this,E),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 W(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 it(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 L(E,[{key:"draw",value:function(t){var e=this,i=this.w,a=new Jt(this.ctx),r=[],o=new ci(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,T){var M=C.length===i.globals.dataPoints,u=e.graphics.group().attr({class:"apexcharts-series","data:longestSeries":M,seriesName:R.escapeString(i.globals.seriesNames[T]),rel:T+1,"data:realIndex":T});e.dataRadiusOfPercent[T]=[],e.dataRadius[T]=[],e.angleArr[T]=[],C.forEach(function(V,st){var ht=Math.abs(e.maxValue-e.minValue);V+=Math.abs(e.minValue),e.isLog&&(V=e.coreUtils.getLogVal(V,0)),e.dataRadiusOfPercent[T][st]=V/ht,e.dataRadius[T][st]=e.dataRadiusOfPercent[T][st]*e.size,e.angleArr[T][st]=st*e.disAngle}),x=e.getDataPointsPos(e.dataRadius[T],e.angleArr[T]);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":T}),i.globals.delayedElements.push({el:v.node,index:T});var k={i:T,realIndex:T,animationDelay:T,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[T],strokeLineCap:i.config.stroke.lineCap},P=null;i.globals.previousPaths.length>0&&(P=e.getPreviousPath(T));for(var _=0;_<b.linePathsTo.length;_++){var O=e.graphics.renderPaths(d(d({},k),{},{pathFrom:P===null?b.linePathsFrom[_]:P,pathTo:b.linePathsTo[_],strokeWidth:Array.isArray(e.strokeWidth)?e.strokeWidth[T]:e.strokeWidth,fill:"none",drawShadow:!1}));u.add(O);var N=a.fillPath({seriesNumber:T}),X=e.graphics.renderPaths(d(d({},k),{},{pathFrom:P===null?b.areaPathsFrom[_]:P,pathTo:b.areaPathsTo[_],strokeWidth:0,fill:N,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var B=new ut(e.ctx),$=i.config.chart.dropShadow;B.dropShadow(X,Object.assign({},$,{noUserSpaceOnUse:!0}),T)}u.add(X)}C.forEach(function(V,st){var ht=new li(e.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:T,dataPointIndex:st}),pt=e.graphics.drawMarker(x[st].x,x[st].y,ht);pt.attr("rel",st),pt.attr("j",st),pt.attr("index",T),pt.node.setAttribute("default-marker-size",ht.pSize);var kt=e.graphics.group({class:"apexcharts-series-markers"});kt&&kt.add(pt),v.add(kt),u.add(v);var _t=i.config.dataLabels;if(_t.enabled){var Ct=_t.formatter(i.globals.series[T][st],{seriesIndex:T,dataPointIndex:st,w:i});o.plotDataLabelsText({x:x[st].x,y:x[st].y,text:Ct,textAnchor:"middle",i:T,j:T,parent:w,offsetCorrection:!1,dataLabelsConfig:d({},_t)})}u.add(w)}),r.push(u)}),this.drawPolygons({parent:p}),i.config.xaxis.labels.show){var A=this.drawXAxisTexts();p.add(A)}return r.forEach(function(C){p.add(C)}),p.add(this.yaxisLabels),p}},{key:"drawPolygons",value:function(t){for(var e=this,i=this.w,a=t.parent,r=new Rn(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=R.getPolygonPos(v,e.dataPointsLen),C="";A.forEach(function(T,M){if(w===0){var u=e.graphics.drawLine(T.x,T.y,0,0,Array.isArray(e.polygons.connectorColors)?e.polygons.connectorColors[M]:e.polygons.connectorColors);x.push(u)}M===0&&e.yaxisLabelsTextsPos.push({x:T.x,y:T.y}),C+=T.x+","+T.y+" "}),p.push(C)}),p.forEach(function(v,w){var A=e.polygons.strokeColors,C=e.polygons.strokeWidth,T=e.graphics.drawPolygon(v,Array.isArray(A)?A[w]:A,Array.isArray(C)?C[w]:C,i.globals.radarPolygons.fill.colors[w]);a.add(T)}),x.forEach(function(v){a.add(v)}),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(v,w){var A=r.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,a=this.graphics.group({class:"apexcharts-xaxis"}),r=R.getPolygonPos(this.size,this.dataPointsLen);return e.globals.labels.forEach(function(o,l){var h=e.config.xaxis.labels.formatter,f=new ci(t.ctx);if(r[l]){var g=t.getTextPos(r[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:a,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})}}),a}},{key:"createPaths",value:function(t,e){var i=this,a=[],r=[],o=[],l=[];if(t.length){r=[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")}),a.push(h),o.push(f)}return{linePathsFrom:r,linePathsTo:a,areaPathsFrom:l,areaPathsTo:o}}},{key:"getTextPos",value:function(t,e){var i="middle",a=t.x,r=t.y;return Math.abs(t.x)>=10?t.x>0?(i="start",a+=10):t.x<0&&(i="end",a-=10):i="middle",Math.abs(t.y)>=e-10&&(t.y<0?r-=10:t.y>0&&(r+=10)),{textAnchor:i,newX:a,newY:r}}},{key:"getPreviousPath",value:function(t){for(var e=this.w,i=null,a=0;a<e.globals.previousPaths.length;a++){var r=e.globals.previousPaths[a];r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(t,10)&&e.globals.previousPaths[a].paths[0]!==void 0&&(i=e.globals.previousPaths[a].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 a=[],r=0;r<i;r++){var o={};o.x=t[r]*Math.sin(e[r]),o.y=-t[r]*Math.cos(e[r]),a.push(o)}return a}}]),E}(),kh=function(E){F(e,zn);var t=J(e);function e(i){var a;y(this,e),(a=t.call(this,i)).ctx=i,a.w=i.w,a.animBeginArr=[0],a.animDur=0;var r=a.w;return a.startAngle=r.config.plotOptions.radialBar.startAngle,a.endAngle=r.config.plotOptions.radialBar.endAngle,a.totalAngle=Math.abs(r.config.plotOptions.radialBar.endAngle-r.config.plotOptions.radialBar.startAngle),a.trackStartAngle=r.config.plotOptions.radialBar.track.startAngle,a.trackEndAngle=r.config.plotOptions.radialBar.track.endAngle,a.barLabels=a.w.config.plotOptions.radialBar.barLabels,a.donutDataLabels=a.w.config.plotOptions.radialBar.dataLabels,a.radialDataLabels=a.donutDataLabels,a.trackStartAngle||(a.trackStartAngle=a.startAngle),a.trackEndAngle||(a.trackEndAngle=a.endAngle),a.endAngle===360&&(a.endAngle=359.99),a.margin=parseInt(r.config.plotOptions.radialBar.track.margin,10),a.onBarLabelClick=a.onBarLabelClick.bind(G(a)),a}return L(e,[{key:"draw",value:function(i){var a=this.w,r=new W(this.ctx),o=r.group({class:"apexcharts-radialbar"});if(a.globals.noData)return o;var l=r.group(),h=this.defaultSize/2,f=a.globals.gridWidth/2,g=this.defaultSize/2.05;a.config.chart.sparkline.enabled||(g=g-a.config.stroke.width-a.config.chart.dropShadow.blur);var p=a.globals.fill.colors;if(a.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;a.config.plotOptions.radialBar.startAngle<0&&(w=this.totalAngle);var A=(360-w)/360;if(a.globals.radialSize=g-g*A,this.radialDataLabels.value.show){var C=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);a.globals.radialSize+=C*A}return l.add(v.g),a.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 a=this.w,r=new W(this.ctx),o=r.group({class:"apexcharts-tracks"}),l=new ut(this.ctx),h=new Jt(this.ctx),f=this.getStrokeWidth(i);i.size=i.size-f/2;for(var g=0;g<i.series.length;g++){var p=r.group({class:"apexcharts-radialbar-track apexcharts-track"});o.add(p),p.attr({rel:g+1}),i.size=i.size-f-this.margin;var x=a.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=r.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 T=x.dropShadow;l.dropShadow(C,T)}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:a.globals.easing})}return o}},{key:"drawArcs",value:function(i){var a=this.w,r=new W(this.ctx),o=new Jt(this.ctx),l=new ut(this.ctx),h=r.group(),f=this.getStrokeWidth(i);i.size=i.size-f/2;var g=a.config.plotOptions.radialBar.hollow.background,p=i.size-f*i.series.length-this.margin*i.series.length-f*parseInt(a.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,x=p-a.config.plotOptions.radialBar.hollow.margin;a.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(a.config.plotOptions.radialBar.hollow.dropShadow.enabled){var w=a.config.plotOptions.radialBar.hollow.dropShadow;l.dropShadow(v,w)}var A=1;!this.radialDataLabels.total.show&&a.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})),a.config.plotOptions.radialBar.hollow.position==="back"&&(h.add(v),C&&h.add(C));var T=!1;a.config.plotOptions.radialBar.inverseOrder&&(T=!0);for(var M=T?i.series.length-1:0;T?M>=0:M<i.series.length;T?M--:M++){var u=r.group({class:"apexcharts-series apexcharts-radial-series",seriesName:R.escapeString(a.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,P=void 0,_=R.negToZero(i.series[M]>100?100:i.series[M])/100,O=Math.round(this.totalAngle*_)+this.startAngle,N=void 0;a.globals.dataChanged&&(P=this.startAngle,N=Math.round(this.totalAngle*R.negToZero(a.globals.previousPaths[M])/100)+P),Math.abs(O)+Math.abs(k)>=360&&(O-=.01),Math.abs(N)+Math.abs(P)>=360&&(N-=.01);var X=O-k,B=Array.isArray(a.config.stroke.dashArray)?a.config.stroke.dashArray[M]:a.config.stroke.dashArray,$=r.drawPath({d:"",stroke:b,strokeWidth:f,fill:"none",fillOpacity:a.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+M,strokeDashArray:B});if(W.setAttrs($.node,{"data:angle":X,"data:value":i.series[M]}),a.config.chart.dropShadow.enabled){var V=a.config.chart.dropShadow;l.dropShadow($,V,M)}if(l.setSelectionFilter($,0,M),this.addListeners($,this.radialDataLabels),u.add($),$.attr({index:0,j:M}),this.barLabels.enabled){var st=R.polarToCartesian(i.centerX,i.centerY,i.size,k),ht=this.barLabels.formatter(a.globals.seriesNames[M],{seriesIndex:M,w:a}),pt=["apexcharts-radialbar-label"];this.barLabels.onClick||pt.push("apexcharts-no-click");var kt=this.barLabels.useSeriesColors?a.globals.colors[M]:a.config.chart.foreColor;kt||(kt=a.config.chart.foreColor);var _t=st.x-this.barLabels.margin,Ct=st.y,Bt=r.drawText({x:_t,y:Ct,text:ht,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:kt,cssClass:pt.join(" ")});Bt.on("click",this.onBarLabelClick),Bt.attr({rel:M+1}),k!==0&&Bt.attr({"transform-origin":"".concat(_t," ").concat(Ct),transform:"rotate(".concat(k," 0 0)")}),u.add(Bt)}var $t=0;!this.initialAnim||a.globals.resized||a.globals.dataChanged||($t=a.config.chart.animations.speed),a.globals.dataChanged&&($t=a.config.chart.animations.dynamicAnimation.speed),this.animDur=$t/(1.2*i.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths($,{centerX:i.centerX,centerY:i.centerY,endAngle:O,startAngle:k,prevEndAngle:N,prevStartAngle:P,size:i.size,i:M,totalItems:2,animBeginArr:this.animBeginArr,dur:$t,shouldSetPrevPaths:!0,easing:a.globals.easing})}return{g:h,elHollow:v,dataLabels:C}}},{key:"drawHollow",value:function(i){var a=new W(this.ctx).drawCircle(2*i.size);return a.attr({class:"apexcharts-radialbar-hollow",cx:i.centerX,cy:i.centerY,r:i.size,fill:i.fill}),a}},{key:"drawHollowImage",value:function(i,a,r,o){var l=this.w,h=new Jt(this.ctx),f=R.randomId(),g=l.config.plotOptions.radialBar.hollow.image;if(l.config.plotOptions.radialBar.hollow.imageClipped)h.clippedImgArea({width:r,height:r,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)});a.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)});a.add(w)}}return o}},{key:"getStrokeWidth",value:function(i){var a=this.w;return i.size*(100-parseInt(a.config.plotOptions.radialBar.hollow.size,10))/100/(i.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(i){var a=parseInt(i.target.getAttribute("rel"),10)-1,r=this.barLabels.onClick,o=this.w;r&&r(o.globals.seriesNames[a],{w:o,seriesIndex:a})}}]),e}(),Ah=function(E){F(e,Bi);var t=J(e);function e(){return y(this,e),t.apply(this,arguments)}return L(e,[{key:"draw",value:function(i,a){var r=this.w,o=new W(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=i,this.seriesRangeStart=r.globals.seriesRangeStart,this.seriesRangeEnd=r.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=r.globals.comboCharts?a[h]:h,C=o.group({class:"apexcharts-series",seriesName:R.escapeString(r.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 T=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,T=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"}),P=0;P<r.globals.dataPoints;P++){var _,O=this.barHelpers.getStrokeWidth(h,P,A),N=this.seriesRangeStart[h][P],X=this.seriesRangeEnd[h][P],B=null,$=null,V=null,st={x:v,y:w,strokeWidth:O,elSeries:C},ht=this.seriesLen;if(r.config.plotOptions.bar.rangeBarGroupRows&&(ht=1),r.config.series[h].data[P]===void 0)break;if(this.isHorizontal){V=w+T*this.visibleI;var pt=(g-T*ht)/2;if(r.config.series[h].data[P].x){var kt=this.detectOverlappingBars({i:h,j:P,barYPosition:V,srty:pt,barHeight:T,yDivision:g,initPositions:u});T=kt.barHeight,V=kt.barYPosition}M=(B=this.drawRangeBarPaths(d({indexes:{i:h,j:P,realIndex:A},barHeight:T,barYPosition:V,zeroW:x,yDivision:g,y1:N,y2:X},st))).barWidth}else{r.globals.isXNumeric&&(v=(r.globals.seriesX[h][P]-r.globals.minX)/this.xRatio-M/2),$=v+M*this.visibleI;var _t=(f-M*ht)/2;if(r.config.series[h].data[P].x){var Ct=this.detectOverlappingBars({i:h,j:P,barXPosition:$,srtx:_t,barWidth:M,xDivision:f,initPositions:u});M=Ct.barWidth,$=Ct.barXPosition}T=(B=this.drawRangeColumnPaths(d({indexes:{i:h,j:P,realIndex:A},barWidth:M,barXPosition:$,zeroH:p,xDivision:f},st))).barHeight}var Bt=this.barHelpers.drawGoalLine({barXPosition:B.barXPosition,barYPosition:V,goalX:B.goalX,goalY:B.goalY,barHeight:T,barWidth:M});Bt&&k.add(Bt),w=B.y,v=B.x;var $t=this.barHelpers.getPathFillColor(i,h,P,A),ze=r.globals.stroke.colors[A];this.renderSeries((I(_={realIndex:A,pathFill:$t,lineFill:ze,j:P,i:h,x:v,y:w,y1:N,y2:X,pathFrom:B.pathFrom,pathTo:B.pathTo,strokeWidth:O,elSeries:C,series:i,barHeight:T,barWidth:M,barXPosition:$,barYPosition:V},"barWidth",M),I(_,"elDataLabelsWrap",b),I(_,"elGoalsMarkers",k),I(_,"visibleSeries",this.visibleI),I(_,"type","rangebar"),_))}l.add(C)}return l}},{key:"detectOverlappingBars",value:function(i){var a=i.i,r=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=[],T=A.config.series[a].data[r].rangeName,M=A.config.series[a].data[r].x,u=Array.isArray(M)?M.join(" "):M,b=A.globals.labels.map(function(P){return Array.isArray(P)?P.join(" "):P}).indexOf(u),k=A.globals.seriesRange[a].findIndex(function(P){return P.x===u&&P.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[a][k].overlaps).indexOf(T)>-1&&(o=(g=w.barHeight/C.length)*this.visibleI+x*(100-parseInt(this.barOptions.barHeight,10))/100/2+g*(this.visibleI+C.indexOf(T))+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[a][k].overlaps).indexOf(T)>-1&&(l=(p=w.barWidth/C.length)*this.visibleI+v*(100-parseInt(this.barOptions.barWidth,10))/100/2+p*(this.visibleI+C.indexOf(T))+v*b)),{barYPosition:o,barXPosition:l,barHeight:g,barWidth:p}}},{key:"drawRangeColumnPaths",value:function(i){var a=i.indexes,r=i.x,o=i.xDivision,l=i.barWidth,h=i.barXPosition,f=i.zeroH,g=this.w,p=a.i,x=a.j,v=this.yRatio[this.yaxisIndex],w=a.realIndex,A=this.getRangeValue(w,x),C=Math.min(A.start,A.end),T=Math.max(A.start,A.end);this.series[p][x]===void 0||this.series[p][x]===null?C=f:(C=f-C/v,T=f-T/v);var M=Math.abs(T-C),u=this.barHelpers.getColumnPaths({barXPosition:h,barWidth:l,y1:C,y2:T,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:a.realIndex,i:w,j:x,w:g});if(g.globals.isXNumeric){var b=this.getBarXForNumericXAxis({x:r,j:x,realIndex:w,barWidth:l});r=b.x,h=b.barXPosition}else r+=o;return{pathTo:u.pathTo,pathFrom:u.pathFrom,barHeight:M,x:r,y:T,goalY:this.barHelpers.getGoalValues("y",null,f,p,x),barXPosition:h}}},{key:"drawRangeBarPaths",value:function(i){var a=i.indexes,r=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:a.realIndex,realIndex:a.realIndex,j:a.j,w:x});return x.globals.isXNumeric||(r+=h),{pathTo:C.pathTo,pathFrom:C.pathFrom,barWidth:A,x:w,goalX:this.barHelpers.getGoalValues("x",p,null,a.realIndex,a.j),y:r}}},{key:"getRangeValue",value:function(i,a){var r=this.w;return{start:r.globals.seriesRangeStart[i][a],end:r.globals.seriesRangeEnd[i][a]}}}]),e}(),Sh=function(){function E(t){y(this,E),this.w=t.w,this.lineCtx=t}return L(E,[{key:"sameValueSeriesFix",value:function(t,e){var i=this.w;if((i.config.fill.type==="gradient"||i.config.fill.type[t]==="gradient")&&new it(this.lineCtx.ctx,i).seriesHaveSameValues(t)){var a=e[t].slice();a[a.length-1]=a[a.length-1]+1e-6,e[t]=a}return e}},{key:"calculatePoints",value:function(t){var e=t.series,i=t.realIndex,a=t.x,r=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(R.isNumber(e[o][0])?h+f.config.markers.offsetY:null),g.push(a+f.config.markers.offsetX),p.push(R.isNumber(e[o][l+1])?r+f.config.markers.offsetY:null)}else g.push(a+f.config.markers.offsetX),p.push(R.isNumber(e[o][l+1])?r+f.config.markers.offsetY:null);return{x:g,y:p}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,a=t.realIndex,r=this.w,o=0;o<r.globals.previousPaths.length;o++){var l=r.globals.previousPaths[o];(l.type==="line"||l.type==="area")&&l.paths.length>0&&parseInt(l.realIndex,10)===parseInt(a,10)&&(l.type==="line"?(this.lineCtx.appendPathFrom=!1,e=r.globals.previousPaths[o].paths[0].d):l.type==="area"&&(this.lineCtx.appendPathFrom=!1,i=r.globals.previousPaths[o].paths[0].d,r.config.stroke.show&&r.globals.previousPaths[o].paths[1]&&(e=r.globals.previousPaths[o].paths[1].d)))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e,i,a=t.i,r=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[a])===null||e===void 0?void 0:e.type)==="bar");if(((i=r[a])===null||i===void 0?void 0:i[0])!==void 0)o=(l=f&&a>0?this.lineCtx.prevSeriesY[a-1][0]:this.lineCtx.zeroY)-r[a][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?r[a][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(f&&a>0&&r[a][0]===void 0){for(var g=a-1;g>=0;g--)if(r[g][0]!==null&&r[g][0]!==void 0){o=l=this.lineCtx.prevSeriesY[g][0];break}}return{prevY:o,lineYPosition:l}}}]),E}(),Ch=function(E){for(var t,e,i,a,r=function(g){for(var p=[],x=g[0],v=g[1],w=p[0]=$s(x,v),A=1,C=g.length-1;A<C;A++)x=v,v=g[A+1],p[A]=.5*(w+(w=$s(x,v)));return p[A]=w,p}(E),o=E.length-1,l=[],h=0;h<o;h++)i=$s(E[h],E[h+1]),Math.abs(i)<1e-6?r[h]=r[h+1]=0:(a=(t=r[h]/i)*t+(e=r[h+1]/i)*e)>9&&(a=3*i/Math.sqrt(a),r[h]=a*t,r[h+1]=a*e);for(var f=0;f<=o;f++)a=(E[Math.min(o,f+1)][0]-E[Math.max(0,f-1)][0])/(6*(1+r[f]*r[f])),l.push([a||0,r[f]*a||0]);return l},Us=function(E){for(var t="",e=0;e<E.length;e++){var i=E[e],a=i.length;a>4?(t+="C".concat(i[0],", ").concat(i[1]),t+=", ".concat(i[2],", ").concat(i[3]),t+=", ".concat(i[4],", ").concat(i[5])):a>2&&(t+="S".concat(i[0],", ").concat(i[1]),t+=", ".concat(i[2],", ").concat(i[3]))}return t},Fn=function(E){var t=Ch(E),e=E[1],i=E[0],a=[],r=t[1],o=t[0];a.push(i,[i[0]+o[0],i[1]+o[1],e[0]-r[0],e[1]-r[1],e[0],e[1]]);for(var l=2,h=t.length;l<h;l++){var f=E[l],g=t[l];a.push([f[0]-g[0],f[1]-g[1],f[0],f[1]])}return a};function $s(E,t){return(t[1]-E[1])/(t[0]-E[0])}var qs=function(){function E(t,e,i){y(this,E),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 Fa(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Sh(this),this.markers=new li(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return L(E,[{key:"draw",value:function(t,e,i,a){var r,o=this.w,l=new W(this.ctx),h=o.globals.comboCharts?e:o.config.chart.type,f=l.group({class:"apexcharts-".concat(h,"-series apexcharts-plot-series")}),g=new it(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=[],T=o.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,v),o.globals.isXNumeric&&o.globals.seriesX.length>0&&(T=(o.globals.seriesX[v][0]-o.globals.minX)/this.xRatio),C.push(T);var M,u=T,b=void 0,k=u,P=this.zeroY,_=this.zeroY;P=this.lineHelpers.determineFirstPrevY({i:x,series:t,prevY:P,lineYPosition:0}).prevY,o.config.stroke.curve==="monotonCubic"&&t[x][0]===null?w.push(null):w.push(P),M=P,h==="rangeArea"&&(b=_=this.lineHelpers.determineFirstPrevY({i:x,series:a,prevY:_,lineYPosition:0}).prevY,A.push(_));var O={type:h,series:t,realIndex:v,i:x,x:T,y:1,pX:u,pY:M,pathsFrom:this._calculatePathsFrom({type:h,series:t,i:x,realIndex:v,prevX:k,prevY:P,prevY2:_}),linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:C,yArrj:w,y2Arrj:A,seriesRangeEnd:a},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:a,i:x,realIndex:v,prevX:k,prevY:_}),B=this._iterateOverDataPoints(d(d({},O),{},{series:a,pY:b,pathsFrom:X,iterations:a[x].length-1,isRangeStart:!1}));N.linePaths[0]=B.linePath+N.linePath,N.pathFromLine=B.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(((r=o.config.series[0])===null||r===void 0?void 0:r.zIndex)!==void 0&&p.sort(function(st,ht){return Number(st.node.getAttribute("zIndex"))-Number(ht.node.getAttribute("zIndex"))}),o.config.chart.stacked)for(var $=p.length;$>0;$--)f.add(p[$-1]);else for(var V=0;V<p.length;V++)f.add(p[V]);return f}},{key:"_initSerieVariables",value:function(t,e,i){var a=this.w,r=new W(this.ctx);this.xDivision=a.globals.gridWidth/(a.globals.dataPoints-(a.config.xaxis.tickPlacement==="on"?1:0)),this.strokeWidth=Array.isArray(a.config.stroke.width)?a.config.stroke.width[i]:a.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=i),this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed,this.zeroY=a.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?a.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>a.globals.gridHeight||a.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=a.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=r.group({class:"apexcharts-series",zIndex:a.config.series[i].zIndex!==void 0?a.config.series[i].zIndex:i,seriesName:R.escapeString(a.globals.seriesNames[i])}),this.elPointsMain=r.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=r.group({class:"apexcharts-datalabels","data:realIndex":i});var o=t[e].length===a.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,a,r,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 W(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(a=w.move(-1,this.zeroY)+w.line(-1,this.zeroY),r=w.move(-1,this.zeroY)+w.line(-1,this.zeroY),v.globals.previousPaths.length>0){var C=this.lineHelpers.checkPreviousPaths({pathFromLine:a,pathFromArea:r,realIndex:f});a=C.pathFromLine,r=C.pathFromArea}return{prevX:g,prevY:p,linePath:e,areaPath:i,pathFromLine:a,pathFromArea:r}}},{key:"_handlePaths",value:function(t){var e=t.type,i=t.realIndex,a=t.i,r=t.paths,o=this.w,l=new W(this.ctx),h=new Jt(this.ctx);this.prevSeriesY.push(r.yArrj),o.globals.seriesXvalues[i]=r.xArrj,o.globals.seriesYvalues[i]=r.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:a,realIndex:i,animationDelay:a,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<r.areaPaths.length;A++){var C=l.renderPaths(d(d({},v),{},{pathFrom:r.pathFromArea,pathTo:r.areaPaths[A],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:w}));this.elSeries.add(C)}if(o.config.stroke.show&&!this.pointsChart){var T=null;if(e==="line")T=h.fillPath({seriesNumber:i,i:a});else if(o.config.stroke.fill.type==="solid")T=o.globals.stroke.colors[i];else{var M=o.config.fill;o.config.fill=o.config.stroke.fill,T=h.fillPath({seriesNumber:i,i:a}),o.config.fill=M}for(var u=0;u<r.linePaths.length;u++){var b=T;e==="rangeArea"&&(b=h.fillPath({seriesNumber:i}));var k=d(d({},v),{},{pathFrom:r.pathFromLine,pathTo:r.linePaths[u],stroke:T,strokeWidth:this.strokeWidth,strokeLineCap:o.config.stroke.lineCap,fill:e==="rangeArea"?b:"none"}),P=l.renderPaths(k);if(this.elSeries.add(P),P.attr("fill-rule","evenodd"),f.count>0&&e!=="rangeArea"){var _=l.renderPaths(k);_.node.setAttribute("stroke-dasharray",f.dashArray),f.strokeWidth&&_.node.setAttribute("stroke-width",f.strokeWidth),this.elSeries.add(_),_.attr("clip-path","url(#forecastMask".concat(o.globals.cuid,")")),P.attr("clip-path","url(#nonForecastMask".concat(o.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(t){var e,i=this,a=t.type,r=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,T=t.lineYPosition,M=t.xArrj,u=t.yArrj,b=t.y2Arrj,k=t.isRangeStart,P=t.seriesRangeEnd,_=this.w,O=new W(this.ctx),N=this.yRatio,X=v.prevY,B=v.linePath,$=v.areaPath,V=v.pathFromLine,st=v.pathFromArea,ht=R.isNumber(_.globals.minYArr[l])?_.globals.minYArr[l]:_.globals.minY;o||(o=_.globals.dataPoints>1?_.globals.dataPoints-1:_.globals.dataPoints);for(var pt=function(Ke,Je){return Je-Ke/N[i.yaxisIndex]+2*(i.isReversed?Ke/N[i.yaxisIndex]:0)},kt=g,_t=_.config.chart.stacked&&!_.globals.comboCharts||_.config.chart.stacked&&_.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((e=this.w.config.series[l])===null||e===void 0?void 0:e.type)==="bar"),Ct=0;Ct<o;Ct++){var Bt=r[h][Ct+1]===void 0||r[h][Ct+1]===null;if(_.globals.isXNumeric){var $t=_.globals.seriesX[l][Ct+1];_.globals.seriesX[l][Ct+1]===void 0&&($t=_.globals.seriesX[l][o-1]),f=($t-_.globals.minX)/this.xRatio}else f+=this.xDivision;_t?h>0&&_.globals.collapsedSeries.length<_.config.series.length-1?T=this.prevSeriesY[function(Ke){for(var Je=Ke,ue=0;ue<_.globals.series.length;ue++)if(_.globals.collapsedSeriesIndices.indexOf(Ke)>-1){Je--;break}return Je>=0?Je:0}(h-1)][Ct+1]:T=this.zeroY:T=this.zeroY,Bt?g=pt(ht,T):(g=pt(r[h][Ct+1],T),a==="rangeArea"&&(kt=pt(P[h][Ct+1],T))),M.push(f),Bt&&_.config.stroke.curve==="smooth"?u.push(null):u.push(g),b.push(kt);var ze=this.lineHelpers.calculatePoints({series:r,x:f,y:g,realIndex:l,i:h,j:Ct,prevY:X}),we=this._createPaths({type:a,series:r,i:h,realIndex:l,j:Ct,x:f,y:g,y2:kt,xArrj:M,yArrj:u,y2Arrj:b,pX:p,pY:x,linePath:B,areaPath:$,linePaths:w,areaPaths:A,seriesIndex:C,isRangeStart:k});A=we.areaPaths,w=we.linePaths,p=we.pX,x=we.pY,$=we.areaPath,B=we.linePath,!this.appendPathFrom||_.config.stroke.curve==="monotoneCubic"&&a==="rangeArea"||(V+=O.line(f,this.zeroY),st+=O.line(f,this.zeroY)),this.handleNullDataPoints(r,ze,h,Ct,l),this._handleMarkersAndLabels({type:a,pointsPos:ze,i:h,j:Ct,realIndex:l,isRangeStart:k})}return{yArrj:u,xArrj:M,pathFromArea:st,areaPaths:A,pathFromLine:V,linePaths:w,linePath:B,areaPath:$}}},{key:"_handleMarkersAndLabels",value:function(t){var e=t.type,i=t.pointsPos,a=t.isRangeStart,r=t.i,o=t.j,l=t.realIndex,h=this.w,f=new ci(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[r].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:a,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,a=t.i,r=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,T=t.linePaths,M=t.areaPaths,u=t.seriesIndex,b=t.isRangeStart,k=this.w,P=new W(this.ctx),_=k.config.stroke.curve,O=this.areaBottomY;if(Array.isArray(k.config.stroke.curve)&&(_=Array.isArray(u)?k.config.stroke.curve[u[a]]:k.config.stroke.curve[a]),e==="rangeArea"&&(k.globals.hasNullValues||k.config.forecastDataPoints.count>0)&&_==="monotoneCubic"&&(_="straight"),_==="monotoneCubic"){var N=e==="rangeArea"?f.length===k.globals.dataPoints:o===i[a].length-2,X=f.map(function(_t,Ct){return[f[Ct],g[Ct]]}).filter(function(_t){return _t[1]!==null});if(N&&X.length>1){var B=Fn(X);if(A+=Us(B),i[a][0]===null?C=A:C+=Us(B),e==="rangeArea"&&b){A+=P.line(f[f.length-1],x[x.length-1]);var $=f.slice().reverse(),V=x.slice().reverse(),st=$.map(function(_t,Ct){return[$[Ct],V[Ct]]}),ht=Fn(st);C=A+=Us(ht)}else C+=P.line(X[X.length-1][0],O)+P.line(X[0][0],O)+P.move(X[0][0],X[0][1])+"z";T.push(A),M.push(C)}}else if(_==="smooth"){var pt=.35*(l-v);k.globals.hasNullValues?(i[a][o]!==null&&(i[a][o+1]!==null?(A=P.move(v,w)+P.curve(v+pt,w,l-pt,h,l+1,h),C=P.move(v+1,w)+P.curve(v+pt,w,l-pt,h,l+1,h)+P.line(l,O)+P.line(v,O)+"z"):(A=P.move(v,w),C=P.move(v,w)+"z")),T.push(A),M.push(C)):(A+=P.curve(v+pt,w,l-pt,h,l,h),C+=P.curve(v+pt,w,l-pt,h,l,h)),v=l,w=h,o===i[a].length-2&&(C=C+P.curve(v,w,l,h,l,O)+P.move(l,h)+"z",e==="rangeArea"&&b?A=A+P.curve(v,w,l,h,l,p)+P.move(l,p)+"z":k.globals.hasNullValues||(T.push(A),M.push(C)))}else{if(i[a][o+1]===null){A+=P.move(l,h);var kt=k.globals.isXNumeric?(k.globals.seriesX[r][o]-k.globals.minX)/this.xRatio:l-this.xDivision;C=C+P.line(kt,O)+P.move(l,h)+"z"}i[a][o]===null&&(A+=P.move(l,h),C+=P.move(l,O)),_==="stepline"?(A=A+P.line(l,null,"H")+P.line(null,h,"V"),C=C+P.line(l,null,"H")+P.line(null,h,"V")):_==="straight"&&(A+=P.line(l,h),C+=P.line(l,h)),o===i[a].length-2&&(C=C+P.line(l,O)+P.move(l,h)+"z",e==="rangeArea"&&b?A=A+P.line(l,p)+P.move(l,p)+"z":(T.push(A),M.push(C)))}return{linePaths:T,areaPaths:M,pX:v,pY:w,linePath:A,areaPath:C}}},{key:"handleNullDataPoints",value:function(t,e,i,a,r){var o=this.w;if(t[i][a]===null&&o.config.markers.showNullDataPoints||t[i].length===1){var l=this.markers.plotChartMarkers(e,r,a+1,this.strokeWidth-o.config.markers.strokeWidth/2,!0);l!==null&&this.elPointsMain.add(l)}}}]),E}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function E(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=r(p)/this.height,T=r(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]/T,A+T]),w+=p[x]/T;return v},this.cutArea=function(p){var x;if(this.width>=this.height){var v=p/this.height,w=this.width-v;x=new E(this.xoffset+v,this.yoffset,w,this.height)}else{var A=p/this.width,C=this.height-A;x=new E(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=[],T=w/r(v);for(A=0;A<v.length;A++)C[A]=v[A]*T;return C}(l,h*f),[],new E(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 T;if(w.length===0)return!0;(T=w.slice()).push(A);var M=i(w,C),u=i(T,C);return M>=u}(h,x=l[0],p)?(h.push(x),e(l.slice(1),h,f,g)):(v=f.cutArea(r(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=r(l);return Math.max(Math.pow(h,2)*g/Math.pow(p,2),Math.pow(p,2)/(Math.pow(h,2)*f))}function a(l){return l&&l.constructor===Array}function r(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(a(l[0]))for(h=0;h<l.length;h++)f+=o(l[h]);else f=r(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(a(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 Ei,Ya,Ph=function(){function E(t,e){y(this,E),this.ctx=t,this.w=t.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new On(t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return L(E,[{key:"draw",value:function(t){var e=this,i=this.w,a=new W(this.ctx),r=new Jt(this.ctx),o=a.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=a.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:R.escapeString(i.globals.seriesNames[f]),rel:f+1,"data:realIndex":f});if(i.config.chart.dropShadow.enabled){var p=i.config.chart.dropShadow;new ut(e.ctx).dropShadow(o,p,f)}var x=a.group({class:"apexcharts-data-labels"});h.forEach(function(v,w){var A=v[0],C=v[1],T=v[2],M=v[3],u=a.drawRect(A,C,T-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:T-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 P=r.fillPath({color:k,seriesNumber:f,dataPointIndex:w});u.node.classList.add("apexcharts-treemap-rect"),u.attr({fill:P}),e.helpers.addListeners(u);var _={x:A+(T-A)/2,y:C+(M-C)/2,width:0,height:0},O={x:A,y:C,width:T-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,_,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&&(_=i.globals.previousPaths[f][w].rect),e.animateTreemap(u,_,O,X))}var B=e.getFontSize(v),$=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"&&(B=parseInt(i.config.dataLabels.style.fontSize,10),$=e.truncateLabels($,B,A,C,T,M));var V=e.helpers.calculateDataLabels({text:$,x:(A+T)/2,y:(C+M)/2+e.strokeWidth/2+B/3,i:f,j:w,colorProps:b,fontSize:B,series:t});i.config.dataLabels.enabled&&V&&e.rotateToFitLabel(V,B,$,A,C,T,M),g.add(u),V!==null&&g.add(V)}),g.add(x),o.add(g)}),o}},{key:"getFontSize",value:function(t){var e=this.w,i,a,r,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],a=t[3]-t[1],r=i*a,o=Math.pow(r,.5),Math.min(o/l,parseInt(e.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(t,e,i,a,r,o,l){var h=new W(this.ctx),f=h.getTextRects(i,e);if(f.width+this.w.config.stroke.width+5>o-a&&f.width<=l-r){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,a,r,o){var l=new W(this.ctx),h=l.getTextRects(t,e).width+this.w.config.stroke.width+5>r-i&&o-a>r-i?o-a:r-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,a){var r=new ct(this.ctx);r.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},a,function(){r.animationCompleted(t)})}}]),E}(),Lh=86400,Eh=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return L(E,[{key:"calculateTimeScaleTicks",value:function(t,e){var i=this,a=this.w;if(a.globals.allSeriesCollapsed)return a.globals.labels=[],a.globals.timescaleLabels=[],[];var r=new Tt(this.ctx),o=(e-t)/864e5;this.determineInterval(o),a.globals.disableZoomIn=!1,a.globals.disableZoomOut=!1,o<.00011574074074074075?a.globals.disableZoomIn=!0:o>5e4&&(a.globals.disableZoomOut=!0);var l=r.getTimeUnitsfromTimestamp(t,e,this.utc),h=a.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*Lh),A=Math.floor(o),C=Math.floor(o/30),T=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:T};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 P={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({},P),{},{day:1,value:k.value+1}):k.unit==="day"||k.unit==="hour"?d(d({},P),{},{value:k.value}):k.unit==="minute"?d(d({},P),{},{value:k.value,minute:k.value}):k.unit==="second"?d(d({},P),{},{value:k.value,minute:k.minute,second:k.second}):k});return b.filter(function(k){var P=1,_=Math.ceil(a.globals.gridWidth/120),O=k.value;a.config.xaxis.tickAmount!==void 0&&(_=a.config.xaxis.tickAmount),b.length>_&&(P=Math.floor(b.length/_));var N=!1,X=!1;switch(i.tickInterval){case"years":k.unit==="year"&&(N=!0);break;case"half_year":P=7,k.unit==="year"&&(N=!0);break;case"months":P=1,k.unit==="year"&&(N=!0);break;case"months_fortnight":P=15,k.unit!=="year"&&k.unit!=="month"||(N=!0),O===30&&(X=!0);break;case"months_days":P=10,k.unit==="month"&&(N=!0),O===30&&(X=!0);break;case"week_days":P=8,k.unit==="month"&&(N=!0);break;case"days":P=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%P==0||N)&&!X)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(t,e){var i=this.w,a=this.formatDates(t),r=this.removeOverlappingTS(a);i.globals.timescaleLabels=r.slice(),new vt(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,a=t.currentYear,r=t.daysWidthOnXAxis,o=t.numberOfYears,l=e.minYear,h=0,f=new Tt(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)*r,l=e.minYear+1,this.timeScaleArray.push({position:h,value:l,unit:g,year:l,month:R.monthMod(i+1)})}else e.minDate===1&&e.minMonth===0&&this.timeScaleArray.push({position:h,value:l,unit:g,year:a,month:R.monthMod(i+1)});for(var x=l,v=h,w=0;w<o;w++)x++,v=f.determineDaysOfYear(x-1)*r+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,a=t.currentMonth,r=t.currentYear,o=t.daysWidthOnXAxis,l=t.numberOfMonths,h=a,f=0,g=new Tt(this.ctx),p="month",x=0;if(e.minDate>1){f=(g.determineDaysOfMonths(a+1,e.minYear)-i+1)*o,h=R.monthMod(a+1);var v=r+x,w=R.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:r,month:R.monthMod(a)});for(var C=h+1,T=f,M=0,u=1;M<l;M++,u++){(C=R.monthMod(C))===0?(p="year",x+=1):p="month";var b=this._getYear(r,C,x);T=g.determineDaysOfMonths(C,b)*o+T;var k=C===0?b:C;this.timeScaleArray.push({position:T,value:k,unit:p,year:b,month:C===0?1:C}),C++}}},{key:"generateDayScale",value:function(t){var e=t.firstVal,i=t.currentMonth,a=t.currentYear,r=t.hoursWidthOnXAxis,o=t.numberOfDays,l=new Tt(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)*r,v=f,w=p(g,i,a);e.minHour===0&&e.minDate===1?(x=0,v=R.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,a)),this.timeScaleArray.push({position:x,value:v,unit:h,year:this._getYear(a,w,0),month:R.monthMod(w),day:g});for(var A=x,C=0;C<o;C++){h="day",w=p(g+=1,w,this._getYear(a,w,0));var T=this._getYear(a,w,0);A=24*r+A;var M=g===1?R.monthMod(w):g;this.timeScaleArray.push({position:A,value:M,unit:h,year:T,month:R.monthMod(w),day:M})}}},{key:"generateHourScale",value:function(t){var e=t.firstVal,i=t.currentDate,a=t.currentMonth,r=t.currentYear,o=t.minutesWidthOnXAxis,l=t.numberOfHours,h=new Tt(this.ctx),f="hour",g=function(P,_){return P>h.determineDaysOfMonths(_+1,r)&&(C=1,_+=1),{month:_,date:C}},p=function(P,_){return P>h.determineDaysOfMonths(_+1,r)?_+=1:_},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 T=g(C,a).month;T=p(C,T),this.timeScaleArray.push({position:v,value:w,unit:f,day:C,hour:A,year:r,month:R.monthMod(T)}),A++;for(var M=v,u=0;u<l;u++){f="hour",A>=24&&(A=0,f="day",T=g(C+=1,T).month,T=p(C,T));var b=this._getYear(r,T,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:R.monthMod(T)}),A++}}},{key:"generateMinuteScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,r=t.currentHour,o=t.currentDate,l=t.currentMonth,h=t.currentYear,f=t.minutesWidthOnXAxis,g=t.secondsWidthOnXAxis,p=t.numberOfMinutes,x=a+1,v=o,w=l,A=h,C=r,T=(60-i-e/1e3)*g,M=0;M<p;M++)x>=60&&(x=0,(C+=1)===24&&(C=0)),this.timeScaleArray.push({position:T,value:x,unit:"minute",hour:C,minute:x,day:v,year:this._getYear(A,w,0),month:R.monthMod(w)}),T+=f,x++}},{key:"generateSecondScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,r=t.currentHour,o=t.currentDate,l=t.currentMonth,h=t.currentYear,f=t.secondsWidthOnXAxis,g=t.numberOfSeconds,p=i+1,x=a,v=o,w=l,A=h,C=r,T=(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:T,value:p,unit:"second",hour:C,minute:x,second:p,day:v,year:this._getYear(A,w,0),month:R.monthMod(w)}),T+=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(a){var r=a.value.toString(),o=new Tt(e.ctx),l=e.createRawDateString(a,r),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;a.unit==="year"&&(f=g.year),a.unit==="month"&&(f=g.month),a.unit==="day"&&(f=g.day),a.unit==="hour"&&(f=g.hour),a.unit==="minute"&&(f=g.minute),a.unit==="second"&&(f=g.second),r=o.formatDate(h,f)}else r=o.formatDate(h,i.config.xaxis.labels.format);return{dateString:l,position:a.position,value:r,unit:a.unit,year:a.year,month:a.month}})}},{key:"removeOverlappingTS",value:function(t){var e,i=this,a=new W(this.ctx),r=!1;t.length>0&&t[0].value&&t.every(function(h){return h.value.length===t[0].value.length})&&(r=!0,e=a.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=r?e:a.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}}]),E}(),Th=function(){function E(t,e){y(this,E),this.ctx=e,this.w=e.w,this.el=t}return L(E,[{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"),W.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"),W.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,a=i.config,r=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:[]};r.series.map(function(_,O){var N=0;t[O].type!==void 0?(t[O].type==="column"||t[O].type==="bar"?(r.series.length>1&&a.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),g.series.push(_),g.i.push(O),N++,i.globals.columnSeries=g.series):t[O].type==="area"?(l.series.push(_),l.i.push(O),N++):t[O].type==="line"?(o.series.push(_),o.i.push(O),N++):t[O].type==="scatter"?(h.series.push(_),h.i.push(O)):t[O].type==="bubble"?(f.series.push(_),f.i.push(O),N++):t[O].type==="candlestick"?(p.series.push(_),p.i.push(O),N++):t[O].type==="boxPlot"?(x.series.push(_),x.i.push(O),N++):t[O].type==="rangeBar"?(v.series.push(_),v.i.push(O),N++):t[O].type==="rangeArea"?(w.series.push(r.seriesRangeStart[O]),w.seriesRangeEnd.push(r.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&&(r.comboCharts=!0)):(o.series.push(_),o.i.push(O))});var A=new qs(this.ctx,e),C=new js(this.ctx,e);this.ctx.pie=new zn(this.ctx);var T=new kh(this.ctx);this.ctx.rangeBar=new Ah(this.ctx,e);var M=new wh(this.ctx),u=[];if(r.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 Mn(this.ctx,e);u.push(b.draw(g.series,g.i))}else this.ctx.bar=new Bi(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 qs(this.ctx,e,!0);u.push(k.draw(h.series,"scatter",h.i))}if(f.series.length>0){var P=new qs(this.ctx,e,!0);u.push(P.draw(f.series,"bubble",f.i))}}else switch(a.chart.type){case"line":u=A.draw(r.series,"line");break;case"area":u=A.draw(r.series,"area");break;case"bar":a.chart.stacked?u=new Mn(this.ctx,e).draw(r.series):(this.ctx.bar=new Bi(this.ctx,e),u=this.ctx.bar.draw(r.series));break;case"candlestick":u=new js(this.ctx,e).draw(r.series,"candlestick");break;case"boxPlot":u=new js(this.ctx,e).draw(r.series,a.chart.type);break;case"rangeBar":u=this.ctx.rangeBar.draw(r.series);break;case"rangeArea":u=A.draw(r.seriesRangeStart,"rangeArea",void 0,r.seriesRangeEnd);break;case"heatmap":u=new yh(this.ctx,e).draw(r.series);break;case"treemap":u=new Ph(this.ctx,e).draw(r.series);break;case"pie":case"donut":case"polarArea":u=this.ctx.pie.draw(r.series);break;case"radialBar":u=T.draw(r.series);break;case"radar":u=M.draw(r.series);break;default:u=A.draw(r.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=R.getDimensions(this.el),a=e.chart.width.toString().split(/[0-9]+/g).pop();a==="%"?R.isNumber(i[0])&&(i[0].width===0&&(i=R.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(e.chart.width,10)/100):a!=="px"&&a!==""||(t.svgWidth=parseInt(e.chart.width,10));var r=e.chart.height.toString().split(/[0-9]+/g).pop();if(t.svgHeight!=="auto"&&t.svgHeight!=="")if(r==="%"){var o=R.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),W.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),r!=="%"){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+")"};W.setAttrs(t.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=0,a=t.config.chart.sparkline.enabled?1:15;a+=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 Ht(this.ctx).legendHelpers.getLegendBBox().clwh+10);var r=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),o=2.05*t.globals.radialSize;if(r&&!t.config.chart.sparkline.enabled&&t.config.plotOptions.radialBar.startAngle!==0){var l=R.getBoundingClientRect(r);o=l.bottom;var h=l.bottom-l.top;o=Math.max(2.05*t.globals.radialSize,h)}var f=o+e.translateY+i+a;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",W.setAttrs(e.dom.Paper.node,{height:f}),e.dom.Paper.node.parentNode.parentNode.style.minHeight=f+"px")}},{key:"coreCalculations",value:function(){new Y(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this,e=function(){return t.w.config.series.map(function(r){return[]})},i=new Si,a=this.w.globals;i.initGlobalVars(a),a.seriesXvalues=e(),a.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 Q(this.ctx).drawXCrosshairs(),e.config.yaxis[0].crosshairs.position==="back"&&new Q(this.ctx).drawYCrosshairs(),e.config.xaxis.type==="datetime"&&e.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new Eh(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 it(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(a){var r=ApexCharts.getChartByID(a);r.w.globals.brushSource=t.ctx,typeof r.w.config.chart.events.zoomed!="function"&&(r.w.config.chart.events.zoomed=function(){t.updateSourceChart(r)}),typeof r.w.config.chart.events.scrolled!="function"&&(r.w.config.chart.events.scrolled=function(){t.updateSourceChart(r)})}),e.config.chart.events.selection=function(a,r){i.forEach(function(o){var l=ApexCharts.getChartByID(o),h=R.clone(e.config.yaxis);if(e.config.chart.brush.autoScaleYaxis&&l.w.globals.series.length===1){var f=new Ze(l);h=f.autoScaleY(l,h,r)}var g=l.w.config.yaxis.reduce(function(p,x,v){return[].concat(lt(p),[d(d({},l.w.config.yaxis[v]),{},{min:h[0].min,max:h[0].max})])},[]);l.ctx.updateHelpers._updateOptions({xaxis:{min:r.xaxis.min,max:r.xaxis.max},yaxis:g},!1,!1,!1,!1)})}}}}]),E}(),_h=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{key:"_updateOptions",value:function(t){var e=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],r=!(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];r&&(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=a,i||(p.globals.resized=!0,p.globals.dataChanged=!0,a&&f.series.getPreviousPaths()),t&&m(t)==="object"&&(f.config=new Le(t),t=it.extendArrayProps(f.config,t,p),f.w.globals.chartID!==e.ctx.w.globals.chartID&&delete t.series,p.config=R.extend(p.config,t),o&&(p.globals.lastXAxis=t.xaxis?R.clone(t.xaxis):[],p.globals.lastYAxis=t.yaxis?R.clone(t.yaxis):[],p.globals.initialConfig=R.extend({},p.config),p.globals.initialSeries=R.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,a=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(r){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(),a&&(l.globals.initialConfig.series=R.clone(l.config.series),l.globals.initialSeries=R.clone(l.config.series)),i.ctx.update().then(function(){r(i.ctx)})})}},{key:"_extendSeries",value:function(t,e){var i=this.w,a=i.config.series[e];return d(d({},i.config.series[e]),{},{name:t.name?t.name:a==null?void 0:a.name,color:t.color?t.color:a==null?void 0:a.color,type:t.type?t.type:a==null?void 0:a.type,group:t.group?t.group:a==null?void 0:a.group,data:t.data?t.data:a==null?void 0:a.data,zIndex:t.zIndex!==void 0?t.zIndex:e})}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,a=null,r=".apexcharts-series[data\\:realIndex='".concat(t,"']");return i.globals.axisCharts?a=i.globals.dom.Paper.select("".concat(r," path[j='").concat(e,"'], ").concat(r," circle[j='").concat(e,"'], ").concat(r," rect[j='").concat(e,"']")).members[0]:e===void 0&&(a=i.globals.dom.Paper.select("".concat(r," 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)),a?(new W(this.ctx).pathMouseDown(a,null),a.node?a.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(t){var e=this.w;if(["min","max"].forEach(function(a){t.xaxis[a]!==void 0&&(e.config.xaxis[a]=t.xaxis[a],e.globals.lastXAxis[a]=t.xaxis[a])}),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,a=i.globals.lastXAxis,r=i.globals.lastYAxis;t&&t.xaxis&&(a=t.xaxis),t&&t.yaxis&&(r=t.yaxis),i.config.xaxis.min=a.min,i.config.xaxis.max=a.max;var o=function(l){r[l]!==void 0&&(i.config.yaxis[l].min=r[l].min,i.config.yaxis[l].max=r[l].max)};i.config.yaxis.map(function(l,h){i.globals.zoomed||r[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)})}}]),E}();Ei=typeof window<"u"?window:void 0,Ya=function(E,t){var e=(this!==void 0?this:E).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 P in b)u[k].prototype[P]=b[P];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 E.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,P=[],_=0;_<k;_++)P.push(b(u[_]));return P},filter:function(u,b){for(var k=u.length,P=[],_=0;_<k;_++)b(u[_])&&P.push(u[_]);return P},filterSVGElements:function(u){return this.filter(u,function(b){return b instanceof E.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"]}},a="mlhvqtcsaz".split(""),r=0,o=a.length;r<o;++r)i[a[r]]=function(u){return function(b,k,P){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 _=0,O=b.length;_<O;++_)b[_]=b[_]+(_%2?k.y:k.x);if(i&&typeof i[u]=="function")return i[u](b,k,P)}}(a[r].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,P="";b<k;b++)P+=u[b][0],u[b][1]!=null&&(P+=u[b][1],u[b][2]!=null&&(P+=" ",P+=u[b][2],u[b][3]!=null&&(P+=" ",P+=u[b][3],P+=" ",P+=u[b][4],u[b][5]!=null&&(P+=" ",P+=u[b][5],P+=" ",P+=u[b][6],u[b][7]!=null&&(P+=" ",P+=u[b][7])))));return P+" "}(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,P=[],_=new e.PathArray,O=0,N=b.length;O<N;O++){P[O]=[b[O][0]];for(var X=1,B=b[O].length;X<B;X++)P[O][X]=b[O][X]+(k[O][X]-b[O][X])*u;P[O][0]==="A"&&(P[O][4]=+(P[O][4]!=0),P[O][5]=+(P[O][5]!=0))}return _.value=P,_},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(B,$){return[].concat.call(B,$)},[]);var P=[],_=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"),P.push(i[b].call(null,u.slice(N,N+=k[b.toUpperCase()]).map(parseFloat),_,O));while(X>N);return P},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 E.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,P=b.firstChild.childNodes.length;k<P;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 P=new e.Situation({duration:u||1e3,delay:k||0,ease:e.easing[b||"-"]||b});return this.queue(P),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=E.requestAnimationFrame((function(){this.step()}).bind(this))},stopAnimFrame:function(){E.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 P=u.length;P--;)b.animations[k][P]instanceof e.Number&&(u[P]=new e.Number(u[P])),b.animations[k][P]=u[P].morph(b.animations[k][P])}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(P){P.detail.situation==b&&(u.call(this,b),this.off("finished.fx",k))}),this._callStart()},during:function(u){var b=this.last(),k=function(P){P.detail.situation==b&&u.call(this,P.detail.pos,e.morph(P.detail.pos),P.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(P){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,P;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,P=this.situation.loop,this.situation.loop=k):(this.absPos=this.situation.loops,this.pos=1,P=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=!!((this.situation.loop-P)%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 _=this.situation.ease(this.pos);for(var O in this.situation.once)O>this.lastPos&&O<=_&&(this.situation.once[O].call(this.target(),this.pos,_),delete this.situation.once[O]);return this.active&&this.target().fire("during",{pos:this.pos,eased:_,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=_,this):this},eachAt:function(){var u,b=this,k=this.target(),P=this.situation;for(var _ in P.animations)u=[].concat(P.animations[_]).map(function(X){return typeof X!="string"&&X.at?X.at(P.ease(b.pos),b.pos):X}),k[_].apply(k,u);for(var _ in P.attrs)u=[_].concat(P.attrs[_]).map(function(B){return typeof B!="string"&&B.at?B.at(P.ease(b.pos),b.pos):B}),k.attr.apply(k,u);for(var _ in P.styles)u=[_].concat(P.styles[_]).map(function(B){return typeof B!="string"&&B.at?B.at(P.ease(b.pos),b.pos):B}),k.style.apply(k,u);if(P.transforms.length){u=P.initialTransformation,_=0;for(var O=P.transforms.length;_<O;_++){var N=P.transforms[_];N instanceof e.Matrix?u=N.relative?u.multiply(new e.Matrix().morph(N).at(P.ease(this.pos))):u.morph(N).at(P.ease(this.pos)):(N.relative||N.undo(u.extract()),u=u.multiply(N.at(P.ease(this.pos))))}k.matrix(u)}return this},once:function(u,b,k){var P=this.last();return k||(u=P.ease(u)),P.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 P in u)this.attr(P,u[P]);else this.add(u,b,"attrs");return this},plot:function(u,b,k,P){return arguments.length==4?this.plot([u,b,k,P]):this.add("plot",new(this.target()).morphArray(u))}}),e.Box=e.invent({create:function(u,b,k,P){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 _;arguments.length==4&&(this.x=u,this.y=b,this.width=k,this.height=P),(_=this).x==null&&(_.x=0,_.y=0,_.width=0,_.height=0),_.w=_.width,_.h=_.height,_.x2=_.x+_.width,_.y2=_.y+_.height,_.cx=_.x+_.width/2,_.cy=_.y+_.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 P=u.clone(e.parser.draw.instance).show();P&&P.node&&typeof P.node.getBBox=="function"&&(b=P.node.getBBox()),P&&typeof P.remove=="function"&&P.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=T.length-1;k>=0;--k)this[T[k]]=u[T[k]]!=null?u[T[k]]:b[T[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=T.length-1;b>=0;b--)u[T[b]]=this[T[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 P in u)this.attr(P,u[P]);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,P=this.arguments.length;k<P;++k)this[this.arguments[k]]=u[k];else if(u&&m(u)==="object")for(k=0,P=this.arguments.length;k<P;++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(P){return!!P}).map(function(P){return P.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(),P=0,_=k.length;P<_;P++)k[P]instanceof e.Element&&u.apply(k[P],[P,k]),b&&k[P]instanceof e.Container&&k[P].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,P,_){var O=k.bind(P||u.instance||u),N=(e.handlerMap.indexOf(u)+1||e.handlerMap.push(u))-1,X=b.split(".")[0],B=b.split(".")[1]||"*";e.listeners[N]=e.listeners[N]||{},e.listeners[N][X]=e.listeners[N][X]||{},e.listeners[N][X][B]=e.listeners[N][X][B]||{},k._svgjsListenerId||(k._svgjsListenerId=++e.listenerId),e.listeners[N][X][B][k._svgjsListenerId]=O,u.addEventListener(X,O,_||{passive:!0})},e.off=function(u,b,k){var P=e.handlerMap.indexOf(u),_=b&&b.split(".")[0],O=b&&b.split(".")[1],N="";if(P!=-1)if(k){if(typeof k=="function"&&(k=k._svgjsListenerId),!k)return;e.listeners[P][_]&&e.listeners[P][_][O||"*"]&&(u.removeEventListener(_,e.listeners[P][_][O||"*"][k],!1),delete e.listeners[P][_][O||"*"][k])}else if(O&&_){if(e.listeners[P][_]&&e.listeners[P][_][O]){for(var X in e.listeners[P][_][O])e.off(u,[_,O].join("."),X);delete e.listeners[P][_][O]}}else if(O)for(var B in e.listeners[P])for(var N in e.listeners[P][B])O===N&&e.off(u,[B,O].join("."));else if(_){if(e.listeners[P][_]){for(var N in e.listeners[P][_])e.off(u,[_,N].join("."));delete e.listeners[P][_]}}else{for(var B in e.listeners[P])e.off(u,B);delete e.listeners[P],delete e.handlerMap[P]}},e.extend(e.Element,{on:function(u,b,k,P){return e.on(this.node,u,b,k,P),this},off:function(u,b){return e.off(this.node,u,b),this},fire:function(u,b){return u instanceof E.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,P){return u==null?this.array():(u=b!==void 0?{x1:u,y1:b,x2:k,y2:P}: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,P){return e.Line.prototype.plot.apply(this.put(new e.Line),u!=null?[u,b,k,P]:[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 E.Image;return e.on(k,"load",function(){e.off(k);var P=b.parent(e.Pattern);P!==null&&(b.width()==0&&b.height()==0&&b.size(k.width,k.height),P&&P.width()==0&&P.height()==0&&P.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(P){e.off(k),typeof b._error=="function"&&b._error.call(b,P)}),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,P=b.length;k<P;++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 _=(u=u.split(`
`)).length;k<_;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,P=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+=P:(this.attr("dy",P+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,P){return k+P.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 P=u.bbox();b==null?b=P.width/P.height*k:k==null&&(k=P.height/P.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 E.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 P=l[u].length-1;P>=0;P--)k[l[u][P]]!=null&&this.attr(l.prefix(u,l[u][P]),k[l[u][P]]);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(P){e.Set.prototype[P]=function(){for(var _=0,O=this.members.length;_<O;_++)this.members[_]&&typeof this.members[_][P]=="function"&&this.members[_][P].apply(this.members[_],arguments);return P=="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 P=0,_=this.set.members.length;P<_;P++)this.set.members[P].fx[k].apply(this.set.members[P].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 P=(k||"").toString().match(e.regex.reference);if(P)return P[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 T="abcdef".split("");if(typeof E.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=E.Event.prototype,e.CustomEvent=M}else e.CustomEvent=E.CustomEvent;return e},m(n)==="object"?s.exports=Ei.document?Ya(Ei,Ei.document):function(E){return Ya(E,E.document)}:Ei.SVG=Ya(Ei,Ei.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 E={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,E),SVG.extend(SVG.ParentEffect,E),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=a(l)),this.attr({type:o,values:l===void 0?null:l})},convolveMatrix:function(o){o=a(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 a(o){return Array.isArray(o)&&(o=new SVG.Array(o)),o.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function r(){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])}}}),r(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:{}})}),r(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:{}})}),r(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 E(r,o,l,h,f,g,p){for(var x=r.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(r){switch(r[0]){case"z":case"Z":r[0]="L",r[1]=this.start[0],r[2]=this.start[1];break;case"H":r[0]="L",r[2]=this.pos[1];break;case"V":r[0]="L",r[2]=r[1],r[1]=this.pos[0];break;case"T":r[0]="Q",r[3]=r[1],r[4]=r[2],r[1]=this.reflection[1],r[2]=this.reflection[0];break;case"S":r[0]="C",r[6]=r[4],r[5]=r[3],r[4]=r[2],r[3]=r[1],r[2]=this.reflection[1],r[1]=this.reflection[0]}return r}function e(r){var o=r.length;return this.pos=[r[o-2],r[o-1]],"SCQT".indexOf(r[0])!=-1&&(this.reflection=[2*this.pos[0]-r[o-4],2*this.pos[1]-r[o-3]]),r}function i(r){var o=[r];switch(r[0]){case"M":return this.pos=this.start=[r[1],r[2]],o;case"L":r[5]=r[3]=r[1],r[6]=r[4]=r[2],r[1]=this.pos[0],r[2]=this.pos[1];break;case"Q":r[6]=r[4],r[5]=r[3],r[4]=1*r[4]/3+2*r[2]/3,r[3]=1*r[3]/3+2*r[1]/3,r[2]=1*this.pos[1]/3+2*r[2]/3,r[1]=1*this.pos[0]/3+2*r[1]/3;break;case"A":o=function(l,h){var f,g,p,x,v,w,A,C,T,M,u,b,k,P,_,O,N,X,B,$,V,st,ht,pt,kt,_t,Ct=Math.abs(h[1]),Bt=Math.abs(h[2]),$t=h[3]%360,ze=h[4],we=h[5],Ke=h[6],Je=h[7],ue=new SVG.Point(l),pe=new SVG.Point(Ke,Je),Yn=[];if(Ct===0||Bt===0||ue.x===pe.x&&ue.y===pe.y)return[["C",ue.x,ue.y,pe.x,pe.y,pe.x,pe.y]];for(f=new SVG.Point((ue.x-pe.x)/2,(ue.y-pe.y)/2).transform(new SVG.Matrix().rotate($t)),(g=f.x*f.x/(Ct*Ct)+f.y*f.y/(Bt*Bt))>1&&(Ct*=g=Math.sqrt(g),Bt*=g),p=new SVG.Matrix().rotate($t).scale(1/Ct,1/Bt).rotate(-$t),ue=ue.transform(p),pe=pe.transform(p),x=[pe.x-ue.x,pe.y-ue.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,ze===we&&(A*=-1),C=new SVG.Point((pe.x+ue.x)/2+A*-x[1],(pe.y+ue.y)/2+A*x[0]),T=new SVG.Point(ue.x-C.x,ue.y-C.y),M=new SVG.Point(pe.x-C.x,pe.y-C.y),u=Math.acos(T.x/Math.sqrt(T.x*T.x+T.y*T.y)),T.y<0&&(u*=-1),b=Math.acos(M.x/Math.sqrt(M.x*M.x+M.y*M.y)),M.y<0&&(b*=-1),we&&u>b&&(b+=2*Math.PI),!we&&u<b&&(b-=2*Math.PI),P=Math.ceil(2*Math.abs(u-b)/Math.PI),O=[],N=u,k=(b-u)/P,_=4*Math.tan(k/4)/3,V=0;V<=P;V++)B=Math.cos(N),X=Math.sin(N),$=new SVG.Point(C.x+B,C.y+X),O[V]=[new SVG.Point($.x+_*X,$.y-_*B),$,new SVG.Point($.x-_*X,$.y+_*B)],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($t).scale(Ct,Bt).rotate(-$t),V=0,st=O.length;V<st;V++)O[V][0]=O[V][0].transform(p),O[V][1]=O[V][1].transform(p),O[V][2]=O[V][2].transform(p);for(V=1,st=O.length;V<st;V++)ht=($=O[V-1][2]).x,pt=$.y,kt=($=O[V][0]).x,_t=$.y,Ke=($=O[V][1]).x,Je=$.y,Yn.push(["C",ht,pt,kt,_t,Ke,Je]);return Yn}(this.pos,r),r=o[0]}return r[0]="C",this.pos=[r[5],r[6]],this.reflection=[2*r[5]-r[3],2*r[6]-r[4]],o}function a(r,o){if(o===!1)return!1;for(var l=o,h=r.length;l<h;++l)if(r[l][0]=="M")return l;return!1}SVG.extend(SVG.PathArray,{morph:function(r){for(var o=this.value,l=this.parse(r),h=0,f=0,g=!1,p=!1;h!==!1||f!==!1;){var x;g=a(o,h!==!1&&h+1),p=a(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=E(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 E(t){t.remember("_draggable",this),this.el=t}E.prototype.init=function(t,e){var i=this;this.constraint=t,this.value=e,this.el.on("mousedown.drag",function(a){i.start(a)}),this.el.on("touchstart.drag",function(a){i.start(a)})},E.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)},E.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},E.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,a=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:a,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(r){e.drag(r)}),SVG.on(window,"touchmove.drag",function(r){e.drag(r)}),SVG.on(window,"mouseup.drag",function(r){e.end(r)}),SVG.on(window,"touchend.drag",function(r){e.end(r)}),this.el.fire("dragstart",{event:t,p:this.startPoints.point,m:this.m,handler:this})}}},E.prototype.drag=function(t){var e=this.getBBox(),i=this.transformPoint(t),a=this.startPoints.box.x+i.x-this.startPoints.point.x,r=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,a,r,this.m);typeof f=="boolean"&&(f={x:f,y:f}),f.x===!0?this.el.x(a):f.x!==!1&&this.el.x(f.x),f.y===!0?this.el.y(r):f.y!==!1&&this.el.y(f.y)}else typeof o=="object"&&(o.minX!=null&&a<o.minX?l=(a=o.minX)-this.startPoints.box.x:o.maxX!=null&&a>o.maxX-e.width&&(l=(a=o.maxX-e.width)-this.startPoints.box.x),o.minY!=null&&r<o.minY?h=(r=o.minY)-this.startPoints.box.y:o.maxY!=null&&r>o.maxY-e.height&&(h=(r=o.maxY-e.height)-this.startPoints.box.y),o.snapToGrid!=null&&(a-=a%o.snapToGrid,r-=r%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(a,r));return i},E.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 E(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 E(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,a){var r=typeof e!="string"?e:i[e];return a?r/2:r},this.pointCoords=function(e,i){var a=this.pointsList[e];return{x:this.pointCoord(a[0],i,e==="t"||e==="b"),y:this.pointCoord(a[1],i,e==="r"||e==="l")}}}E.prototype.init=function(t,e){var i=this.el.bbox();this.options={};var a=this.el.selectize.defaults.points;for(var r in this.el.selectize.defaults)this.options[r]=this.el.selectize.defaults[r],e[r]!==void 0&&(this.options[r]=e[r]);var o=["points","pointsExclude"];for(var r in o){var l=this.options[o[r]];typeof l=="string"?l=l.length>0?l.split(/\s*,\s*/i):[]:typeof l=="boolean"&&o[r]==="points"&&(l=l?a:[]),this.options[o[r]]=l}this.options.points=[a,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()},E.prototype.selectPoints=function(t){return this.pointSelection.isSelected=t,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},E.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]})},E.prototype.drawPoints=function(){for(var t=this,e=this.getPointArray(),i=0,a=e.length;i<a;++i){var r=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",r).on("mousedown",r);this.pointSelection.set.add(o)}},E.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!")}},E.prototype.drawCircle=function(t,e){return this.nested.circle(this.options.pointSize).center(t,e)},E.prototype.drawRect=function(t,e){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(t,e)},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])})},E.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(a,r){var o=t.pointCoords(a,e);t.rectSelection.set.get(r+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)}},E.prototype.selectRect=function(t){var e=this,i=this.el.bbox();function a(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",a(l)).on("touchstart",a(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 r=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",r).on("mousedown",r);this.rectSelection.set.add(o)}},E.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()},E.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()})},E.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 E(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 E(t){t.remember("_resizeHandler",this),this.el=t,this.parameters={},this.lastUpdateCall=null,this.p=t.doc().node.createSVGPoint()}E.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)},E.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}},E.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(a){e.resize(a||window.event)}),this.el.on("rt.resize",function(a){e.resize(a||window.event)}),this.el.on("rb.resize",function(a){e.resize(a||window.event)}),this.el.on("lb.resize",function(a){e.resize(a||window.event)}),this.el.on("t.resize",function(a){e.resize(a||window.event)}),this.el.on("r.resize",function(a){e.resize(a||window.event)}),this.el.on("b.resize",function(a){e.resize(a||window.event)}),this.el.on("l.resize",function(a){e.resize(a||window.event)}),this.el.on("rot.resize",function(a){e.resize(a||window.event)}),this.el.on("point.resize",function(a){e.resize(a||window.event)}),this.update()}},E.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},E.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 a=this.el.array().valueOf();this.parameters.i=t.detail.i,this.parameters.pointCoords=[a[t.detail.i][0],a[t.detail.i][1]]}switch(t.type){case"lt":this.calc=function(r,o){var l=this.snapToGrid(r,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(r,o){var l=this.snapToGrid(r,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(r,o){var l=this.snapToGrid(r,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(r,o){var l=this.snapToGrid(r,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(r,o){var l=this.snapToGrid(r,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(r,o){var l=this.snapToGrid(r,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(r,o){var l=this.snapToGrid(r,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(r,o){var l=this.snapToGrid(r,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(r,o){var l=r+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(r,o){var l=this.snapToGrid(r,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(r){e.update(r||window.event)}),SVG.on(window,"touchend.resize",function(){e.done()}),SVG.on(window,"mousemove.resize",function(r){e.update(r||window.event)}),SVG.on(window,"mouseup.resize",function(){e.done()})},E.prototype.update=function(t){if(t){var e=this._extractPosition(t),i=this.transformPoint(e.x,e.y),a=i.x-this.parameters.p.x,r=i.y-this.parameters.p.y;this.lastUpdateCall=[a,r],this.calc(a,r),this.el.fire("resizing",{dx:a,dy:r,event:t})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},E.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")},E.prototype.snapToGrid=function(t,e,i,a){var r;return a!==void 0?r=[(i+t)%this.options.snapToGrid,(a+e)%this.options.snapToGrid]:(i=i??3,r=[(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&&(r[0]-=this.options.snapToGrid),e<0&&(r[1]-=this.options.snapToGrid),t-=Math.abs(r[0])<this.options.snapToGrid/2?r[0]:r[0]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),e-=Math.abs(r[1])<this.options.snapToGrid/2?r[1]:r[1]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(t,e,i,a)},E.prototype.constraintToBox=function(t,e,i,a){var r,o,l=this.options.constraint||{};return a!==void 0?(r=i,o=a):(r=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&&r+t<l.minX&&(t=l.minX-r),l.maxX!==void 0&&r+t>l.maxX&&(t=l.maxX-r),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]},E.prototype.checkAspectRatio=function(t,e){if(!this.options.saveAspectRatio)return t;var i=t.slice(),a=this.parameters.box.width/this.parameters.box.height,r=this.parameters.box.width+t[0],o=this.parameters.box.height-t[1],l=r/o;return l<a?(i[1]=r/a-this.parameters.box.height,e&&(i[1]=-i[1])):l>a&&(i[0]=this.parameters.box.width-o*a,e&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(t){return(this.remember("_resizeHandler")||new E(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 Nn=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{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 ct(this.ctx),this.ctx.axes=new Z(this.ctx),this.ctx.core=new Th(this.ctx.el,this.ctx),this.ctx.config=new Le({}),this.ctx.data=new Ci(this.ctx),this.ctx.grid=new sa(this.ctx),this.ctx.graphics=new W(this.ctx),this.ctx.coreUtils=new it(this.ctx),this.ctx.crosshairs=new Q(this.ctx),this.ctx.events=new U(this.ctx),this.ctx.exports=new Pi(this.ctx),this.ctx.localization=new q(this.ctx),this.ctx.options=new Pt,this.ctx.responsive=new rt(this.ctx),this.ctx.series=new Qt(this.ctx),this.ctx.theme=new tt(this.ctx),this.ctx.formatters=new Pe(this.ctx),this.ctx.titleSubtitle=new at(this.ctx),this.ctx.legend=new Ht(this.ctx),this.ctx.toolbar=new Ft(this.ctx),this.ctx.tooltip=new Ee(this.ctx),this.ctx.dimensions=new vt(this.ctx),this.ctx.updateHelpers=new _h(this.ctx),this.ctx.zoomPanSelection=new ee(this.ctx),this.ctx.w.globals.tooltip=new Ee(this.ctx)}}]),E}(),Xn=function(){function E(t){y(this,E),this.ctx=t,this.w=t.w}return L(E,[{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,a=this.w.globals.dom.Paper.node;a.parentNode&&a.parentNode.parentNode&&!i&&(a.parentNode.parentNode.style.minHeight="unset");var r=this.w.globals.dom.baseEl;r&&this.ctx.eventList.forEach(function(l){r.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}}]),E}(),Zs=new WeakMap,Ih=function(){function E(t,e){y(this,E),this.opts=e,this.ctx=this,this.w=new qe(e).init(),this.el=t,this.w.globals.cuid=R.randomId(),this.w.globals.chartID=this.w.config.chart.id?R.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Nn(this).initModules(),this.create=R.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return L(E,[{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 a=t.w.config.chart.events.beforeMount;if(typeof a=="function"&&a(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(T){w&&v.call(x,T),w=!0});x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(x.children).forEach(function(T){return C.observe(T)}):C.observe(x),Zs.set(v,C)}(t.el.parentNode,t.parentResizeHandler),!t.css){var r=t.el.getRootNode&&t.el.getRootNode(),o=R.is("ShadowRoot",r),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?r.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 Nn(this).initModules();var a=this.w.globals;if(a.noData=!1,a.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),a.svgWidth===0))return a.animationEnded=!0,null;var r=it.checkComboSeries(t);a.comboCharts=r.comboCharts,a.comboBarCount=r.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 li(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),a.noData&&a.collapsedSeries.length!==a.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),a.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 it(this).getLargestMarkerSize(),this.dimensions.plotCoords();var l=this.core.xySettings();this.grid.createGridMask();var h=this.core.plotChartType(t,l),f=new ci(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,a=i.w;return new Promise(function(r,o){if(i.el===null)return o(new Error("Not enough data to display or target element not found"));(e===null||a.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new sa(i);var l,h,f=i.grid.drawGrid();if(i.annotations=new ge(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),a.config.grid.position==="back"&&(f&&a.globals.dom.elGraphical.add(f.el),f!=null&&(l=f.elGridBorders)!==null&&l!==void 0&&l.node&&a.globals.dom.elGraphical.add(f.elGridBorders)),Array.isArray(e.elGraph))for(var g=0;g<e.elGraph.length;g++)a.globals.dom.elGraphical.add(e.elGraph[g]);else a.globals.dom.elGraphical.add(e.elGraph);a.config.grid.position==="front"&&(f&&a.globals.dom.elGraphical.add(f.el),f!=null&&(h=f.elGridBorders)!==null&&h!==void 0&&h.node&&a.globals.dom.elGraphical.add(f.elGridBorders)),a.config.xaxis.crosshairs.position==="front"&&i.crosshairs.drawXCrosshairs(),a.config.yaxis[0].crosshairs.position==="front"&&i.crosshairs.drawYCrosshairs(),a.config.chart.type!=="treemap"&&i.axes.drawAxis(a.config.chart.type,f);var p=new Re(t.ctx,f),x=new D(t.ctx,f);if(f!==null&&(p.xAxisLabelCorrections(f.xAxisTickWidth),x.setYAxisTextAlignments(),a.config.yaxis.map(function(w,A){a.globals.ignoreYAxisIndexes.indexOf(A)===-1&&x.yAxisTitleRotate(A,w.opposite)})),i.annotations.drawAxesAnnotations(),!a.globals.noData){if(a.config.tooltip.enabled&&!a.globals.noData&&i.w.globals.tooltip.drawTooltip(e.xyRatios),a.globals.axisCharts&&(a.globals.isXNumeric||a.config.xaxis.convertedCatToNumeric||a.globals.isRangeBar))(a.config.chart.zoom.enabled||a.config.chart.selection&&a.config.chart.selection.enabled||a.config.chart.pan&&a.config.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:e.xyRatios});else{var v=a.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(w){v[w]=!1})}a.config.chart.toolbar.show&&!a.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}a.globals.memory.methodsToExec.length>0&&a.globals.memory.methodsToExec.forEach(function(w){w.method(w.params,!1,w.context)}),a.globals.axisCharts||a.globals.noData||i.core.resizeNonAxisCharts(),r(i)})}},{key:"destroy",value:function(){var t,e;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,t=this.parentResizeHandler,(e=Zs.get(t))&&(e.disconnect(),Zs.delete(t));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach(function(a,r){a.id===R.escapeString(i)&&Apex._chartInstances.splice(r,1)}),new Xn(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(t){var e=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],r=!(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,a,r,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],a=this.w.config.series.slice();return a.push(t),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(a,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 a=i.w.config.series.slice(),r=0;r<a.length;r++)if(t[r]!==null&&t[r]!==void 0)for(var o=0;o<t[r].data.length;o++)a[r].data.push(t[r].data[o]);return i.w.config.series=a,e&&(i.w.globals.initialSeries=R.clone(i.w.config.series)),this.update()}},{key:"update",value:function(t){var e=this;return new Promise(function(i,a){new Xn(e.ctx).clear({isUpdating:!0});var r=e.create(e.w.config.series,t);if(!r)return i(e);e.mount(r).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){a(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,a=this;i&&(a=i),a.annotations.addXaxisAnnotationExternal(t,e,a)}},{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,a=this;i&&(a=i),a.annotations.addYaxisAnnotationExternal(t,e,a)}},{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,a=this;i&&(a=i),a.annotations.addPointAnnotationExternal(t,e,a)}},{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 Y(this.ctx).getMinYMaxY(t).highestY}},{key:"getLowestValueInSeries",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new Y(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 Pi(this.ctx).dataURI(t)}},{key:"exportToCSV",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new Pi(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=R.escapeString(t);if(Apex._chartInstances){var i=Apex._chartInstances.filter(function(a){return a.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 E(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 a=null;if(i.publicMethods.indexOf(e)!==-1){for(var r=arguments.length,o=new Array(r>2?r-2:0),l=2;l<r;l++)o[l-2]=arguments[l];a=i[e].apply(i,o)}return a}}},{key:"merge",value:function(t,e){return R.extend(t,e)}}]),E}();s.exports=Ih})(Er,Er.exports);var af=Er.exports;const ko=ef(af),Ao=["animationEnd","beforeMount","mounted","updated","click","mouseMove","mouseLeave","legendClick","markerClick","selection","dataPointSelection","dataPointMouseEnter","dataPointMouseLeave","beforeZoom","beforeResetZoom","zoomed","scrolled","brushScrolled"],As=Jl({name:"apexchart",props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0},width:{default:"100%"},height:{default:"auto"}},emits:Ao,setup(s,{emit:n}){const c=He(null),d=He(null),m=mt=>mt&&typeof mt=="object"&&!Array.isArray(mt)&&mt!=null,y=(mt,Pt)=>{typeof Object.assign!="function"&&function(){Object.assign=function(Tt){if(Tt==null)throw new TypeError("Cannot convert undefined or null to object");let Pe=Object(Tt);for(let Zt=1;Zt<arguments.length;Zt++){let Xt=arguments[Zt];if(Xt!=null)for(let Rt in Xt)Xt.hasOwnProperty(Rt)&&(Pe[Rt]=Xt[Rt])}return Pe}}();let ge=Object.assign({},mt);return m(mt)&&m(Pt)&&Object.keys(Pt).forEach(Tt=>{m(Pt[Tt])?Tt in mt?ge[Tt]=y(mt[Tt],Pt[Tt]):Object.assign(ge,{[Tt]:Pt[Tt]}):Object.assign(ge,{[Tt]:Pt[Tt]})}),ge},S=async()=>{if(await Hl(),d.value)return;const mt={chart:{type:s.type||s.options.chart.type||"line",height:s.height,width:s.width,events:{}},series:s.series};Ao.forEach(ge=>{let Tt=(...Pe)=>n(ge,...Pe);mt.chart.events[ge]=Tt});const Pt=y(s.options,mt);return d.value=new ko(c.value,Pt),d.value.render()},L=()=>(I(),S()),I=()=>{d.value.destroy()},F=(mt,Pt)=>d.value.updateSeries(mt,Pt),z=(mt,Pt,ge,Tt)=>d.value.updateOptions(mt,Pt,ge,Tt),H=mt=>d.value.toggleSeries(mt),G=mt=>{d.value.showSeries(mt)},J=mt=>{d.value.hideSeries(mt)},bt=(mt,Pt)=>d.value.appendSeries(mt,Pt),lt=()=>{d.value.resetSeries()},Ot=(mt,Pt)=>{d.value.toggleDataPointSelection(mt,Pt)},et=mt=>d.value.appendData(mt),R=(mt,Pt)=>d.value.zoomX(mt,Pt),ct=mt=>d.value.dataURI(mt),ut=mt=>d.value.setLocale(mt),W=(mt,Pt)=>{d.value.addXaxisAnnotation(mt,Pt)},it=(mt,Pt)=>{d.value.addYaxisAnnotation(mt,Pt)},Mt=(mt,Pt)=>{d.value.addPointAnnotation(mt,Pt)},Ut=(mt,Pt)=>{d.value.removeAnnotation(mt,Pt)},re=()=>{d.value.clearAnnotations()};ql(()=>{window.ApexCharts=ko}),_a(()=>{c.value=ku().proxy.$el,S()}),Zl(()=>{d.value&&I()});const de=vd(s);return Te(de.options,()=>{!d.value&&s.options?S():d.value.updateOptions(s.options)}),Te(de.series,()=>{!d.value&&s.series?S():d.value.updateSeries(s.series)},{deep:!0}),Te(de.type,()=>{L()}),Te(de.width,()=>{L()}),Te(de.height,()=>{L()}),{chart:d,init:S,refresh:L,destroy:I,updateOptions:z,updateSeries:F,toggleSeries:H,showSeries:G,hideSeries:J,resetSeries:lt,zoomX:R,toggleDataPointSelection:Ot,appendData:et,appendSeries:bt,addXaxisAnnotation:W,addYaxisAnnotation:it,addPointAnnotation:Mt,removeAnnotation:Ut,clearAnnotations:re,setLocale:ut,dataURI:ct}},render(){return yc("div",{class:"vue-apexcharts"})}}),sf=s=>{s.component(As.name,As)};As.install=sf;function So(s,n){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);n&&(d=d.filter(function(m){return Object.getOwnPropertyDescriptor(s,m).enumerable})),c.push.apply(c,d)}return c}function ot(s){for(var n=1;n<arguments.length;n++){var c=arguments[n]!=null?arguments[n]:{};n%2?So(Object(c),!0).forEach(function(d){ce(s,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):So(Object(c)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(c,d))})}return s}function Ss(s){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ss(s)}function rf(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function nf(s,n){for(var c=0;c<n.length;c++){var d=n[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(s,d.key,d)}}function of(s,n,c){return n&&nf(s.prototype,n),Object.defineProperty(s,"prototype",{writable:!1}),s}function ce(s,n,c){return n in s?Object.defineProperty(s,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[n]=c,s}function fn(s,n){return cf(s)||df(s,n)||kc(s,n)||ff()}function Ma(s){return lf(s)||hf(s)||kc(s)||uf()}function lf(s){if(Array.isArray(s))return Tr(s)}function cf(s){if(Array.isArray(s))return s}function hf(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}function df(s,n){var c=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(c!=null){var d=[],m=!0,y=!1,S,L;try{for(c=c.call(s);!(m=(S=c.next()).done)&&(d.push(S.value),!(n&&d.length===n));m=!0);}catch(I){y=!0,L=I}finally{try{!m&&c.return!=null&&c.return()}finally{if(y)throw L}}return d}}function kc(s,n){if(s){if(typeof s=="string")return Tr(s,n);var c=Object.prototype.toString.call(s).slice(8,-1);if(c==="Object"&&s.constructor&&(c=s.constructor.name),c==="Map"||c==="Set")return Array.from(s);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Tr(s,n)}}function Tr(s,n){(n==null||n>s.length)&&(n=s.length);for(var c=0,d=new Array(n);c<n;c++)d[c]=s[c];return d}function uf(){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 ff(){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 Co=function(){},gn={},Ac={},Sc=null,Cc={mark:Co,measure:Co};try{typeof window<"u"&&(gn=window),typeof document<"u"&&(Ac=document),typeof MutationObserver<"u"&&(Sc=MutationObserver),typeof performance<"u"&&(Cc=performance)}catch{}var gf=gn.navigator||{},Po=gf.userAgent,Lo=Po===void 0?"":Po,vi=gn,jt=Ac,Eo=Sc,ja=Cc;vi.document;var oi=!!jt.documentElement&&!!jt.head&&typeof jt.addEventListener=="function"&&typeof jt.createElement=="function",Pc=~Lo.indexOf("MSIE")||~Lo.indexOf("Trident/"),Ua,$a,qa,Za,Ka,ai="___FONT_AWESOME___",_r=16,Lc="fa",Ec="svg-inline--fa",Yi="data-fa-i2svg",Ir="data-fa-pseudo-element",pf="data-fa-pseudo-element-pending",pn="data-prefix",xn="data-icon",To="fontawesome-i2svg",xf="async",mf=["HTML","HEAD","STYLE","SCRIPT"],Tc=function(){try{return!0}catch{return!1}}(),Gt="classic",te="sharp",mn=[Gt,te];function Oa(s){return new Proxy(s,{get:function(c,d){return d in c?c[d]:c[Gt]}})}var Sa=Oa((Ua={},ce(Ua,Gt,{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"}),ce(Ua,te,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Ua)),Ca=Oa(($a={},ce($a,Gt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),ce($a,te,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),$a)),Pa=Oa((qa={},ce(qa,Gt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),ce(qa,te,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),qa)),bf=Oa((Za={},ce(Za,Gt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),ce(Za,te,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),Za)),vf=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,_c="fa-layers-text",yf=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,wf=Oa((Ka={},ce(Ka,Gt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),ce(Ka,te,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),Ka)),Ic=[1,2,3,4,5,6,7,8,9,10],kf=Ic.concat([11,12,13,14,15,16,17,18,19,20]),Af=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Oi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},La=new Set;Object.keys(Ca[Gt]).map(La.add.bind(La));Object.keys(Ca[te]).map(La.add.bind(La));var Sf=[].concat(mn,Ma(La),["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",Oi.GROUP,Oi.SWAP_OPACITY,Oi.PRIMARY,Oi.SECONDARY]).concat(Ic.map(function(s){return"".concat(s,"x")})).concat(kf.map(function(s){return"w-".concat(s)})),ma=vi.FontAwesomeConfig||{};function Cf(s){var n=jt.querySelector("script["+s+"]");if(n)return n.getAttribute(s)}function Pf(s){return s===""?!0:s==="false"?!1:s==="true"?!0:s}if(jt&&typeof jt.querySelector=="function"){var Lf=[["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"]];Lf.forEach(function(s){var n=fn(s,2),c=n[0],d=n[1],m=Pf(Cf(c));m!=null&&(ma[d]=m)})}var Mc={styleDefault:"solid",familyDefault:"classic",cssPrefix:Lc,replacementClass:Ec,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ma.familyPrefix&&(ma.cssPrefix=ma.familyPrefix);var ta=ot(ot({},Mc),ma);ta.autoReplaceSvg||(ta.observeMutations=!1);var ft={};Object.keys(Mc).forEach(function(s){Object.defineProperty(ft,s,{enumerable:!0,set:function(c){ta[s]=c,ba.forEach(function(d){return d(ft)})},get:function(){return ta[s]}})});Object.defineProperty(ft,"familyPrefix",{enumerable:!0,set:function(n){ta.cssPrefix=n,ba.forEach(function(c){return c(ft)})},get:function(){return ta.cssPrefix}});vi.FontAwesomeConfig=ft;var ba=[];function Ef(s){return ba.push(s),function(){ba.splice(ba.indexOf(s),1)}}var ui=_r,Ge={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Tf(s){if(!(!s||!oi)){var n=jt.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=s;for(var c=jt.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 jt.head.insertBefore(n,d),s}}var _f="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ea(){for(var s=12,n="";s-- >0;)n+=_f[Math.random()*62|0];return n}function ia(s){for(var n=[],c=(s||[]).length>>>0;c--;)n[c]=s[c];return n}function bn(s){return s.classList?ia(s.classList):(s.getAttribute("class")||"").split(" ").filter(function(n){return n})}function Oc(s){return"".concat(s).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function If(s){return Object.keys(s||{}).reduce(function(n,c){return n+"".concat(c,'="').concat(Oc(s[c]),'" ')},"").trim()}function Ds(s){return Object.keys(s||{}).reduce(function(n,c){return n+"".concat(c,": ").concat(s[c].trim(),";")},"")}function vn(s){return s.size!==Ge.size||s.x!==Ge.x||s.y!==Ge.y||s.rotate!==Ge.rotate||s.flipX||s.flipY}function Mf(s){var n=s.transform,c=s.containerWidth,d=s.iconWidth,m={transform:"translate(".concat(c/2," 256)")},y="translate(".concat(n.x*32,", ").concat(n.y*32,") "),S="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),L="rotate(".concat(n.rotate," 0 0)"),I={transform:"".concat(y," ").concat(S," ").concat(L)},F={transform:"translate(".concat(d/2*-1," -256)")};return{outer:m,inner:I,path:F}}function Of(s){var n=s.transform,c=s.width,d=c===void 0?_r:c,m=s.height,y=m===void 0?_r:m,S=s.startCentered,L=S===void 0?!1:S,I="";return L&&Pc?I+="translate(".concat(n.x/ui-d/2,"em, ").concat(n.y/ui-y/2,"em) "):L?I+="translate(calc(-50% + ".concat(n.x/ui,"em), calc(-50% + ").concat(n.y/ui,"em)) "):I+="translate(".concat(n.x/ui,"em, ").concat(n.y/ui,"em) "),I+="scale(".concat(n.size/ui*(n.flipX?-1:1),", ").concat(n.size/ui*(n.flipY?-1:1),") "),I+="rotate(".concat(n.rotate,"deg) "),I}var Rf=`: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 Rc(){var s=Lc,n=Ec,c=ft.cssPrefix,d=ft.replacementClass,m=Rf;if(c!==s||d!==n){var y=new RegExp("\\.".concat(s,"\\-"),"g"),S=new RegExp("\\--".concat(s,"\\-"),"g"),L=new RegExp("\\.".concat(n),"g");m=m.replace(y,".".concat(c,"-")).replace(S,"--".concat(c,"-")).replace(L,".".concat(d))}return m}var _o=!1;function rr(){ft.autoAddCss&&!_o&&(Tf(Rc()),_o=!0)}var zf={mixout:function(){return{dom:{css:Rc,insertCss:rr}}},hooks:function(){return{beforeDOMElementCreation:function(){rr()},beforeI2svg:function(){rr()}}}},si=vi||{};si[ai]||(si[ai]={});si[ai].styles||(si[ai].styles={});si[ai].hooks||(si[ai].hooks={});si[ai].shims||(si[ai].shims=[]);var Ye=si[ai],zc=[],Ff=function s(){jt.removeEventListener("DOMContentLoaded",s),Cs=1,zc.map(function(n){return n()})},Cs=!1;oi&&(Cs=(jt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(jt.readyState),Cs||jt.addEventListener("DOMContentLoaded",Ff));function Nf(s){oi&&(Cs?setTimeout(s,0):zc.push(s))}function Ra(s){var n=s.tag,c=s.attributes,d=c===void 0?{}:c,m=s.children,y=m===void 0?[]:m;return typeof s=="string"?Oc(s):"<".concat(n," ").concat(If(d),">").concat(y.map(Ra).join(""),"</").concat(n,">")}function Io(s,n,c){if(s&&s[n]&&s[n][c])return{prefix:n,iconName:c,icon:s[n][c]}}var nr=function(n,c,d,m){var y=Object.keys(n),S=y.length,L=c,I,F,z;for(d===void 0?(I=1,z=n[y[0]]):(I=0,z=d);I<S;I++)F=y[I],z=L(z,n[F],F,n);return z};function Xf(s){for(var n=[],c=0,d=s.length;c<d;){var m=s.charCodeAt(c++);if(m>=55296&&m<=56319&&c<d){var y=s.charCodeAt(c++);(y&64512)==56320?n.push(((m&1023)<<10)+(y&1023)+65536):(n.push(m),c--)}else n.push(m)}return n}function Mr(s){var n=Xf(s);return n.length===1?n[0].toString(16):null}function Yf(s,n){var c=s.length,d=s.charCodeAt(n),m;return d>=55296&&d<=56319&&c>n+1&&(m=s.charCodeAt(n+1),m>=56320&&m<=57343)?(d-55296)*1024+m-56320+65536:d}function Mo(s){return Object.keys(s).reduce(function(n,c){var d=s[c],m=!!d.icon;return m?n[d.iconName]=d.icon:n[c]=d,n},{})}function Or(s,n){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=c.skipHooks,m=d===void 0?!1:d,y=Mo(n);typeof Ye.hooks.addPack=="function"&&!m?Ye.hooks.addPack(s,Mo(n)):Ye.styles[s]=ot(ot({},Ye.styles[s]||{}),y),s==="fas"&&Or("fa",n)}var Ja,Qa,ts,Ui=Ye.styles,Df=Ye.shims,Hf=(Ja={},ce(Ja,Gt,Object.values(Pa[Gt])),ce(Ja,te,Object.values(Pa[te])),Ja),yn=null,Fc={},Nc={},Xc={},Yc={},Dc={},Bf=(Qa={},ce(Qa,Gt,Object.keys(Sa[Gt])),ce(Qa,te,Object.keys(Sa[te])),Qa);function Wf(s){return~Sf.indexOf(s)}function Vf(s,n){var c=n.split("-"),d=c[0],m=c.slice(1).join("-");return d===s&&m!==""&&!Wf(m)?m:null}var Hc=function(){var n=function(y){return nr(Ui,function(S,L,I){return S[I]=nr(L,y,{}),S},{})};Fc=n(function(m,y,S){if(y[3]&&(m[y[3]]=S),y[2]){var L=y[2].filter(function(I){return typeof I=="number"});L.forEach(function(I){m[I.toString(16)]=S})}return m}),Nc=n(function(m,y,S){if(m[S]=S,y[2]){var L=y[2].filter(function(I){return typeof I=="string"});L.forEach(function(I){m[I]=S})}return m}),Dc=n(function(m,y,S){var L=y[2];return m[S]=S,L.forEach(function(I){m[I]=S}),m});var c="far"in Ui||ft.autoFetchSvg,d=nr(Df,function(m,y){var S=y[0],L=y[1],I=y[2];return L==="far"&&!c&&(L="fas"),typeof S=="string"&&(m.names[S]={prefix:L,iconName:I}),typeof S=="number"&&(m.unicodes[S.toString(16)]={prefix:L,iconName:I}),m},{names:{},unicodes:{}});Xc=d.names,Yc=d.unicodes,yn=Hs(ft.styleDefault,{family:ft.familyDefault})};Ef(function(s){yn=Hs(s.styleDefault,{family:ft.familyDefault})});Hc();function wn(s,n){return(Fc[s]||{})[n]}function Gf(s,n){return(Nc[s]||{})[n]}function Ri(s,n){return(Dc[s]||{})[n]}function Bc(s){return Xc[s]||{prefix:null,iconName:null}}function jf(s){var n=Yc[s],c=wn("fas",s);return n||(c?{prefix:"fas",iconName:c}:null)||{prefix:null,iconName:null}}function yi(){return yn}var kn=function(){return{prefix:null,iconName:null,rest:[]}};function Hs(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=n.family,d=c===void 0?Gt:c,m=Sa[d][s],y=Ca[d][s]||Ca[d][m],S=s in Ye.styles?s:null;return y||S||null}var Oo=(ts={},ce(ts,Gt,Object.keys(Pa[Gt])),ce(ts,te,Object.keys(Pa[te])),ts);function Bs(s){var n,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=c.skipLookups,m=d===void 0?!1:d,y=(n={},ce(n,Gt,"".concat(ft.cssPrefix,"-").concat(Gt)),ce(n,te,"".concat(ft.cssPrefix,"-").concat(te)),n),S=null,L=Gt;(s.includes(y[Gt])||s.some(function(F){return Oo[Gt].includes(F)}))&&(L=Gt),(s.includes(y[te])||s.some(function(F){return Oo[te].includes(F)}))&&(L=te);var I=s.reduce(function(F,z){var H=Vf(ft.cssPrefix,z);if(Ui[z]?(z=Hf[L].includes(z)?bf[L][z]:z,S=z,F.prefix=z):Bf[L].indexOf(z)>-1?(S=z,F.prefix=Hs(z,{family:L})):H?F.iconName=H:z!==ft.replacementClass&&z!==y[Gt]&&z!==y[te]&&F.rest.push(z),!m&&F.prefix&&F.iconName){var G=S==="fa"?Bc(F.iconName):{},J=Ri(F.prefix,F.iconName);G.prefix&&(S=null),F.iconName=G.iconName||J||F.iconName,F.prefix=G.prefix||F.prefix,F.prefix==="far"&&!Ui.far&&Ui.fas&&!ft.autoFetchSvg&&(F.prefix="fas")}return F},kn());return(s.includes("fa-brands")||s.includes("fab"))&&(I.prefix="fab"),(s.includes("fa-duotone")||s.includes("fad"))&&(I.prefix="fad"),!I.prefix&&L===te&&(Ui.fass||ft.autoFetchSvg)&&(I.prefix="fass",I.iconName=Ri(I.prefix,I.iconName)||I.iconName),(I.prefix==="fa"||S==="fa")&&(I.prefix=yi()||"fas"),I}var Uf=function(){function s(){rf(this,s),this.definitions={}}return of(s,[{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(L){c.definitions[L]=ot(ot({},c.definitions[L]||{}),S[L]),Or(L,S[L]);var I=Pa[Gt][L];I&&Or(I,S[L]),Hc()})}},{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],L=S.prefix,I=S.iconName,F=S.icon,z=F[2];c[L]||(c[L]={}),z.length>0&&z.forEach(function(H){typeof H=="string"&&(c[L][H]=F)}),c[L][I]=F}),c}}]),s}(),Ro=[],$i={},Ji={},$f=Object.keys(Ji);function qf(s,n){var c=n.mixoutsTo;return Ro=s,$i={},Object.keys(Ji).forEach(function(d){$f.indexOf(d)===-1&&delete Ji[d]}),Ro.forEach(function(d){var m=d.mixout?d.mixout():{};if(Object.keys(m).forEach(function(S){typeof m[S]=="function"&&(c[S]=m[S]),Ss(m[S])==="object"&&Object.keys(m[S]).forEach(function(L){c[S]||(c[S]={}),c[S][L]=m[S][L]})}),d.hooks){var y=d.hooks();Object.keys(y).forEach(function(S){$i[S]||($i[S]=[]),$i[S].push(y[S])})}d.provides&&d.provides(Ji)}),c}function Rr(s,n){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=$i[s]||[];return y.forEach(function(S){n=S.apply(null,[n].concat(d))}),n}function Di(s){for(var n=arguments.length,c=new Array(n>1?n-1:0),d=1;d<n;d++)c[d-1]=arguments[d];var m=$i[s]||[];m.forEach(function(y){y.apply(null,c)})}function ri(){var s=arguments[0],n=Array.prototype.slice.call(arguments,1);return Ji[s]?Ji[s].apply(null,n):void 0}function zr(s){s.prefix==="fa"&&(s.prefix="fas");var n=s.iconName,c=s.prefix||yi();if(n)return n=Ri(c,n)||n,Io(Wc.definitions,c,n)||Io(Ye.styles,c,n)}var Wc=new Uf,Zf=function(){ft.autoReplaceSvg=!1,ft.observeMutations=!1,Di("noAuto")},Kf={i2svg:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return oi?(Di("beforeI2svg",n),ri("pseudoElements2svg",n),ri("i2svg",n)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=n.autoReplaceSvgRoot;ft.autoReplaceSvg===!1&&(ft.autoReplaceSvg=!0),ft.observeMutations=!0,Nf(function(){Qf({autoReplaceSvgRoot:c}),Di("watch",n)})}},Jf={icon:function(n){if(n===null)return null;if(Ss(n)==="object"&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:Ri(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&n.length===2){var c=n[1].indexOf("fa-")===0?n[1].slice(3):n[1],d=Hs(n[0]);return{prefix:d,iconName:Ri(d,c)||c}}if(typeof n=="string"&&(n.indexOf("".concat(ft.cssPrefix,"-"))>-1||n.match(vf))){var m=Bs(n.split(" "),{skipLookups:!0});return{prefix:m.prefix||yi(),iconName:Ri(m.prefix,m.iconName)||m.iconName}}if(typeof n=="string"){var y=yi();return{prefix:y,iconName:Ri(y,n)||n}}}},_e={noAuto:Zf,config:ft,dom:Kf,parse:Jf,library:Wc,findIconDefinition:zr,toHtml:Ra},Qf=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=n.autoReplaceSvgRoot,d=c===void 0?jt:c;(Object.keys(Ye.styles).length>0||ft.autoFetchSvg)&&oi&&ft.autoReplaceSvg&&_e.dom.i2svg({node:d})};function Ws(s,n){return Object.defineProperty(s,"abstract",{get:n}),Object.defineProperty(s,"html",{get:function(){return s.abstract.map(function(d){return Ra(d)})}}),Object.defineProperty(s,"node",{get:function(){if(oi){var d=jt.createElement("div");return d.innerHTML=s.html,d.children}}}),s}function tg(s){var n=s.children,c=s.main,d=s.mask,m=s.attributes,y=s.styles,S=s.transform;if(vn(S)&&c.found&&!d.found){var L=c.width,I=c.height,F={x:L/I/2,y:.5};m.style=Ds(ot(ot({},y),{},{"transform-origin":"".concat(F.x+S.x/16,"em ").concat(F.y+S.y/16,"em")}))}return[{tag:"svg",attributes:m,children:n}]}function eg(s){var n=s.prefix,c=s.iconName,d=s.children,m=s.attributes,y=s.symbol,S=y===!0?"".concat(n,"-").concat(ft.cssPrefix,"-").concat(c):y;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ot(ot({},m),{},{id:S}),children:d}]}]}function An(s){var n=s.icons,c=n.main,d=n.mask,m=s.prefix,y=s.iconName,S=s.transform,L=s.symbol,I=s.title,F=s.maskId,z=s.titleId,H=s.extra,G=s.watchable,J=G===void 0?!1:G,bt=d.found?d:c,lt=bt.width,Ot=bt.height,et=m==="fak",R=[ft.replacementClass,y?"".concat(ft.cssPrefix,"-").concat(y):""].filter(function(re){return H.classes.indexOf(re)===-1}).filter(function(re){return re!==""||!!re}).concat(H.classes).join(" "),ct={children:[],attributes:ot(ot({},H.attributes),{},{"data-prefix":m,"data-icon":y,class:R,role:H.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(lt," ").concat(Ot)})},ut=et&&!~H.classes.indexOf("fa-fw")?{width:"".concat(lt/Ot*16*.0625,"em")}:{};J&&(ct.attributes[Yi]=""),I&&(ct.children.push({tag:"title",attributes:{id:ct.attributes["aria-labelledby"]||"title-".concat(z||Ea())},children:[I]}),delete ct.attributes.title);var W=ot(ot({},ct),{},{prefix:m,iconName:y,main:c,mask:d,maskId:F,transform:S,symbol:L,styles:ot(ot({},ut),H.styles)}),it=d.found&&c.found?ri("generateAbstractMask",W)||{children:[],attributes:{}}:ri("generateAbstractIcon",W)||{children:[],attributes:{}},Mt=it.children,Ut=it.attributes;return W.children=Mt,W.attributes=Ut,L?eg(W):tg(W)}function zo(s){var n=s.content,c=s.width,d=s.height,m=s.transform,y=s.title,S=s.extra,L=s.watchable,I=L===void 0?!1:L,F=ot(ot(ot({},S.attributes),y?{title:y}:{}),{},{class:S.classes.join(" ")});I&&(F[Yi]="");var z=ot({},S.styles);vn(m)&&(z.transform=Of({transform:m,startCentered:!0,width:c,height:d}),z["-webkit-transform"]=z.transform);var H=Ds(z);H.length>0&&(F.style=H);var G=[];return G.push({tag:"span",attributes:F,children:[n]}),y&&G.push({tag:"span",attributes:{class:"sr-only"},children:[y]}),G}function ig(s){var n=s.content,c=s.title,d=s.extra,m=ot(ot(ot({},d.attributes),c?{title:c}:{}),{},{class:d.classes.join(" ")}),y=Ds(d.styles);y.length>0&&(m.style=y);var S=[];return S.push({tag:"span",attributes:m,children:[n]}),c&&S.push({tag:"span",attributes:{class:"sr-only"},children:[c]}),S}var or=Ye.styles;function Fr(s){var n=s[0],c=s[1],d=s.slice(4),m=fn(d,1),y=m[0],S=null;return Array.isArray(y)?S={tag:"g",attributes:{class:"".concat(ft.cssPrefix,"-").concat(Oi.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ft.cssPrefix,"-").concat(Oi.SECONDARY),fill:"currentColor",d:y[0]}},{tag:"path",attributes:{class:"".concat(ft.cssPrefix,"-").concat(Oi.PRIMARY),fill:"currentColor",d:y[1]}}]}:S={tag:"path",attributes:{fill:"currentColor",d:y}},{found:!0,width:n,height:c,icon:S}}var ag={found:!1,width:512,height:512};function sg(s,n){!Tc&&!ft.showMissingIcons&&s&&console.error('Icon with name "'.concat(s,'" and prefix "').concat(n,'" is missing.'))}function Nr(s,n){var c=n;return n==="fa"&&ft.styleDefault!==null&&(n=yi()),new Promise(function(d,m){if(ri("missingIconAbstract"),c==="fa"){var y=Bc(s)||{};s=y.iconName||s,n=y.prefix||n}if(s&&n&&or[n]&&or[n][s]){var S=or[n][s];return d(Fr(S))}sg(s,n),d(ot(ot({},ag),{},{icon:ft.showMissingIcons&&s?ri("missingIconAbstract")||{}:{}}))})}var Fo=function(){},Xr=ft.measurePerformance&&ja&&ja.mark&&ja.measure?ja:{mark:Fo,measure:Fo},ha='FA "6.5.2"',rg=function(n){return Xr.mark("".concat(ha," ").concat(n," begins")),function(){return Vc(n)}},Vc=function(n){Xr.mark("".concat(ha," ").concat(n," ends")),Xr.measure("".concat(ha," ").concat(n),"".concat(ha," ").concat(n," begins"),"".concat(ha," ").concat(n," ends"))},Sn={begin:rg,end:Vc},us=function(){};function No(s){var n=s.getAttribute?s.getAttribute(Yi):null;return typeof n=="string"}function ng(s){var n=s.getAttribute?s.getAttribute(pn):null,c=s.getAttribute?s.getAttribute(xn):null;return n&&c}function og(s){return s&&s.classList&&s.classList.contains&&s.classList.contains(ft.replacementClass)}function lg(){if(ft.autoReplaceSvg===!0)return fs.replace;var s=fs[ft.autoReplaceSvg];return s||fs.replace}function cg(s){return jt.createElementNS("http://www.w3.org/2000/svg",s)}function hg(s){return jt.createElement(s)}function Gc(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=n.ceFn,d=c===void 0?s.tag==="svg"?cg:hg:c;if(typeof s=="string")return jt.createTextNode(s);var m=d(s.tag);Object.keys(s.attributes||[]).forEach(function(S){m.setAttribute(S,s.attributes[S])});var y=s.children||[];return y.forEach(function(S){m.appendChild(Gc(S,{ceFn:d}))}),m}function dg(s){var n=" ".concat(s.outerHTML," ");return n="".concat(n,"Font Awesome fontawesome.com "),n}var fs={replace:function(n){var c=n[0];if(c.parentNode)if(n[1].forEach(function(m){c.parentNode.insertBefore(Gc(m),c)}),c.getAttribute(Yi)===null&&ft.keepOriginalSource){var d=jt.createComment(dg(c));c.parentNode.replaceChild(d,c)}else c.remove()},nest:function(n){var c=n[0],d=n[1];if(~bn(c).indexOf(ft.replacementClass))return fs.replace(n);var m=new RegExp("".concat(ft.cssPrefix,"-.*"));if(delete d[0].attributes.id,d[0].attributes.class){var y=d[0].attributes.class.split(" ").reduce(function(L,I){return I===ft.replacementClass||I.match(m)?L.toSvg.push(I):L.toNode.push(I),L},{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(L){return Ra(L)}).join(`
`);c.setAttribute(Yi,""),c.innerHTML=S}};function Xo(s){s()}function jc(s,n){var c=typeof n=="function"?n:us;if(s.length===0)c();else{var d=Xo;ft.mutateApproach===xf&&(d=vi.requestAnimationFrame||Xo),d(function(){var m=lg(),y=Sn.begin("mutate");s.map(m),y(),c()})}}var Cn=!1;function Uc(){Cn=!0}function Yr(){Cn=!1}var Ps=null;function Yo(s){if(Eo&&ft.observeMutations){var n=s.treeCallback,c=n===void 0?us:n,d=s.nodeCallback,m=d===void 0?us:d,y=s.pseudoElementsCallback,S=y===void 0?us:y,L=s.observeMutationsRoot,I=L===void 0?jt:L;Ps=new Eo(function(F){if(!Cn){var z=yi();ia(F).forEach(function(H){if(H.type==="childList"&&H.addedNodes.length>0&&!No(H.addedNodes[0])&&(ft.searchPseudoElements&&S(H.target),c(H.target)),H.type==="attributes"&&H.target.parentNode&&ft.searchPseudoElements&&S(H.target.parentNode),H.type==="attributes"&&No(H.target)&&~Af.indexOf(H.attributeName))if(H.attributeName==="class"&&ng(H.target)){var G=Bs(bn(H.target)),J=G.prefix,bt=G.iconName;H.target.setAttribute(pn,J||z),bt&&H.target.setAttribute(xn,bt)}else og(H.target)&&m(H.target)})}}),oi&&Ps.observe(I,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ug(){Ps&&Ps.disconnect()}function fg(s){var n=s.getAttribute("style"),c=[];return n&&(c=n.split(";").reduce(function(d,m){var y=m.split(":"),S=y[0],L=y.slice(1);return S&&L.length>0&&(d[S]=L.join(":").trim()),d},{})),c}function gg(s){var n=s.getAttribute("data-prefix"),c=s.getAttribute("data-icon"),d=s.innerText!==void 0?s.innerText.trim():"",m=Bs(bn(s));return m.prefix||(m.prefix=yi()),n&&c&&(m.prefix=n,m.iconName=c),m.iconName&&m.prefix||(m.prefix&&d.length>0&&(m.iconName=Gf(m.prefix,s.innerText)||wn(m.prefix,Mr(s.innerText))),!m.iconName&&ft.autoFetchSvg&&s.firstChild&&s.firstChild.nodeType===Node.TEXT_NODE&&(m.iconName=s.firstChild.data)),m}function pg(s){var n=ia(s.attributes).reduce(function(m,y){return m.name!=="class"&&m.name!=="style"&&(m[y.name]=y.value),m},{}),c=s.getAttribute("title"),d=s.getAttribute("data-fa-title-id");return ft.autoA11y&&(c?n["aria-labelledby"]="".concat(ft.replacementClass,"-title-").concat(d||Ea()):(n["aria-hidden"]="true",n.focusable="false")),n}function xg(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Ge,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Do(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},c=gg(s),d=c.iconName,m=c.prefix,y=c.rest,S=pg(s),L=Rr("parseNodeAttributes",{},s),I=n.styleParser?fg(s):[];return ot({iconName:d,title:s.getAttribute("title"),titleId:s.getAttribute("data-fa-title-id"),prefix:m,transform:Ge,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:y,styles:I,attributes:S}},L)}var mg=Ye.styles;function $c(s){var n=ft.autoReplaceSvg==="nest"?Do(s,{styleParser:!1}):Do(s);return~n.extra.classes.indexOf(_c)?ri("generateLayersText",s,n):ri("generateSvgReplacementMutation",s,n)}var wi=new Set;mn.map(function(s){wi.add("fa-".concat(s))});Object.keys(Sa[Gt]).map(wi.add.bind(wi));Object.keys(Sa[te]).map(wi.add.bind(wi));wi=Ma(wi);function Ho(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!oi)return Promise.resolve();var c=jt.documentElement.classList,d=function(H){return c.add("".concat(To,"-").concat(H))},m=function(H){return c.remove("".concat(To,"-").concat(H))},y=ft.autoFetchSvg?wi:mn.map(function(z){return"fa-".concat(z)}).concat(Object.keys(mg));y.includes("fa")||y.push("fa");var S=[".".concat(_c,":not([").concat(Yi,"])")].concat(y.map(function(z){return".".concat(z,":not([").concat(Yi,"])")})).join(", ");if(S.length===0)return Promise.resolve();var L=[];try{L=ia(s.querySelectorAll(S))}catch{}if(L.length>0)d("pending"),m("complete");else return Promise.resolve();var I=Sn.begin("onTree"),F=L.reduce(function(z,H){try{var G=$c(H);G&&z.push(G)}catch(J){Tc||J.name==="MissingIcon"&&console.error(J)}return z},[]);return new Promise(function(z,H){Promise.all(F).then(function(G){jc(G,function(){d("active"),d("complete"),m("pending"),typeof n=="function"&&n(),I(),z()})}).catch(function(G){I(),H(G)})})}function bg(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;$c(s).then(function(c){c&&jc([c],n)})}function vg(s){return function(n){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=(n||{}).icon?n:zr(n||{}),m=c.mask;return m&&(m=(m||{}).icon?m:zr(m||{})),s(d,ot(ot({},c),{},{mask:m}))}}var yg=function(n){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=c.transform,m=d===void 0?Ge:d,y=c.symbol,S=y===void 0?!1:y,L=c.mask,I=L===void 0?null:L,F=c.maskId,z=F===void 0?null:F,H=c.title,G=H===void 0?null:H,J=c.titleId,bt=J===void 0?null:J,lt=c.classes,Ot=lt===void 0?[]:lt,et=c.attributes,R=et===void 0?{}:et,ct=c.styles,ut=ct===void 0?{}:ct;if(n){var W=n.prefix,it=n.iconName,Mt=n.icon;return Ws(ot({type:"icon"},n),function(){return Di("beforeDOMElementCreation",{iconDefinition:n,params:c}),ft.autoA11y&&(G?R["aria-labelledby"]="".concat(ft.replacementClass,"-title-").concat(bt||Ea()):(R["aria-hidden"]="true",R.focusable="false")),An({icons:{main:Fr(Mt),mask:I?Fr(I.icon):{found:!1,width:null,height:null,icon:{}}},prefix:W,iconName:it,transform:ot(ot({},Ge),m),symbol:S,title:G,maskId:z,titleId:bt,extra:{attributes:R,styles:ut,classes:Ot}})})}},wg={mixout:function(){return{icon:vg(yg)}},hooks:function(){return{mutationObserverCallbacks:function(c){return c.treeCallback=Ho,c.nodeCallback=bg,c}}},provides:function(n){n.i2svg=function(c){var d=c.node,m=d===void 0?jt:d,y=c.callback,S=y===void 0?function(){}:y;return Ho(m,S)},n.generateSvgReplacementMutation=function(c,d){var m=d.iconName,y=d.title,S=d.titleId,L=d.prefix,I=d.transform,F=d.symbol,z=d.mask,H=d.maskId,G=d.extra;return new Promise(function(J,bt){Promise.all([Nr(m,L),z.iconName?Nr(z.iconName,z.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(lt){var Ot=fn(lt,2),et=Ot[0],R=Ot[1];J([c,An({icons:{main:et,mask:R},prefix:L,iconName:m,transform:I,symbol:F,maskId:H,title:y,titleId:S,extra:G,watchable:!0})])}).catch(bt)})},n.generateAbstractIcon=function(c){var d=c.children,m=c.attributes,y=c.main,S=c.transform,L=c.styles,I=Ds(L);I.length>0&&(m.style=I);var F;return vn(S)&&(F=ri("generateAbstractTransformGrouping",{main:y,transform:S,containerWidth:y.width,iconWidth:y.width})),d.push(F||y.icon),{children:d,attributes:m}}}},kg={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 Ws({type:"layer"},function(){Di("beforeDOMElementCreation",{assembler:c,params:d});var S=[];return c(function(L){Array.isArray(L)?L.map(function(I){S=S.concat(I.abstract)}):S=S.concat(L.abstract)}),[{tag:"span",attributes:{class:["".concat(ft.cssPrefix,"-layers")].concat(Ma(y)).join(" ")},children:S}]})}}}},Ag={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,L=S===void 0?[]:S,I=d.attributes,F=I===void 0?{}:I,z=d.styles,H=z===void 0?{}:z;return Ws({type:"counter",content:c},function(){return Di("beforeDOMElementCreation",{content:c,params:d}),ig({content:c.toString(),title:y,extra:{attributes:F,styles:H,classes:["".concat(ft.cssPrefix,"-layers-counter")].concat(Ma(L))}})})}}}},Sg={mixout:function(){return{text:function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=d.transform,y=m===void 0?Ge:m,S=d.title,L=S===void 0?null:S,I=d.classes,F=I===void 0?[]:I,z=d.attributes,H=z===void 0?{}:z,G=d.styles,J=G===void 0?{}:G;return Ws({type:"text",content:c},function(){return Di("beforeDOMElementCreation",{content:c,params:d}),zo({content:c,transform:ot(ot({},Ge),y),title:L,extra:{attributes:H,styles:J,classes:["".concat(ft.cssPrefix,"-layers-text")].concat(Ma(F))}})})}}},provides:function(n){n.generateLayersText=function(c,d){var m=d.title,y=d.transform,S=d.extra,L=null,I=null;if(Pc){var F=parseInt(getComputedStyle(c).fontSize,10),z=c.getBoundingClientRect();L=z.width/F,I=z.height/F}return ft.autoA11y&&!m&&(S.attributes["aria-hidden"]="true"),Promise.resolve([c,zo({content:c.innerHTML,width:L,height:I,transform:y,title:m,extra:S,watchable:!0})])}}},Cg=new RegExp('"',"ug"),Bo=[1105920,1112319];function Pg(s){var n=s.replace(Cg,""),c=Yf(n,0),d=c>=Bo[0]&&c<=Bo[1],m=n.length===2?n[0]===n[1]:!1;return{value:Mr(m?n[0]:n),isSecondary:d||m}}function Wo(s,n){var c="".concat(pf).concat(n.replace(":","-"));return new Promise(function(d,m){if(s.getAttribute(c)!==null)return d();var y=ia(s.children),S=y.filter(function(Mt){return Mt.getAttribute(Ir)===n})[0],L=vi.getComputedStyle(s,n),I=L.getPropertyValue("font-family").match(yf),F=L.getPropertyValue("font-weight"),z=L.getPropertyValue("content");if(S&&!I)return s.removeChild(S),d();if(I&&z!=="none"&&z!==""){var H=L.getPropertyValue("content"),G=~["Sharp"].indexOf(I[2])?te:Gt,J=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(I[2])?Ca[G][I[2].toLowerCase()]:wf[G][F],bt=Pg(H),lt=bt.value,Ot=bt.isSecondary,et=I[0].startsWith("FontAwesome"),R=wn(J,lt),ct=R;if(et){var ut=jf(lt);ut.iconName&&ut.prefix&&(R=ut.iconName,J=ut.prefix)}if(R&&!Ot&&(!S||S.getAttribute(pn)!==J||S.getAttribute(xn)!==ct)){s.setAttribute(c,ct),S&&s.removeChild(S);var W=xg(),it=W.extra;it.attributes[Ir]=n,Nr(R,J).then(function(Mt){var Ut=An(ot(ot({},W),{},{icons:{main:Mt,mask:kn()},prefix:J,iconName:ct,extra:it,watchable:!0})),re=jt.createElementNS("http://www.w3.org/2000/svg","svg");n==="::before"?s.insertBefore(re,s.firstChild):s.appendChild(re),re.outerHTML=Ut.map(function(de){return Ra(de)}).join(`
`),s.removeAttribute(c),d()}).catch(m)}else d()}else d()})}function Lg(s){return Promise.all([Wo(s,"::before"),Wo(s,"::after")])}function Eg(s){return s.parentNode!==document.head&&!~mf.indexOf(s.tagName.toUpperCase())&&!s.getAttribute(Ir)&&(!s.parentNode||s.parentNode.tagName!=="svg")}function Vo(s){if(oi)return new Promise(function(n,c){var d=ia(s.querySelectorAll("*")).filter(Eg).map(Lg),m=Sn.begin("searchPseudoElements");Uc(),Promise.all(d).then(function(){m(),Yr(),n()}).catch(function(){m(),Yr(),c()})})}var Tg={hooks:function(){return{mutationObserverCallbacks:function(c){return c.pseudoElementsCallback=Vo,c}}},provides:function(n){n.pseudoElements2svg=function(c){var d=c.node,m=d===void 0?jt:d;ft.searchPseudoElements&&Vo(m)}}},Go=!1,_g={mixout:function(){return{dom:{unwatch:function(){Uc(),Go=!0}}}},hooks:function(){return{bootstrap:function(){Yo(Rr("mutationObserverCallbacks",{}))},noAuto:function(){ug()},watch:function(c){var d=c.observeMutationsRoot;Go?Yr():Yo(Rr("mutationObserverCallbacks",{observeMutationsRoot:d}))}}}},jo=function(n){var c={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return n.toLowerCase().split(" ").reduce(function(d,m){var y=m.toLowerCase().split("-"),S=y[0],L=y.slice(1).join("-");if(S&&L==="h")return d.flipX=!0,d;if(S&&L==="v")return d.flipY=!0,d;if(L=parseFloat(L),isNaN(L))return d;switch(S){case"grow":d.size=d.size+L;break;case"shrink":d.size=d.size-L;break;case"left":d.x=d.x-L;break;case"right":d.x=d.x+L;break;case"up":d.y=d.y-L;break;case"down":d.y=d.y+L;break;case"rotate":d.rotate=d.rotate+L;break}return d},c)},Ig={mixout:function(){return{parse:{transform:function(c){return jo(c)}}}},hooks:function(){return{parseNodeAttributes:function(c,d){var m=d.getAttribute("data-fa-transform");return m&&(c.transform=jo(m)),c}}},provides:function(n){n.generateAbstractTransformGrouping=function(c){var d=c.main,m=c.transform,y=c.containerWidth,S=c.iconWidth,L={transform:"translate(".concat(y/2," 256)")},I="translate(".concat(m.x*32,", ").concat(m.y*32,") "),F="scale(".concat(m.size/16*(m.flipX?-1:1),", ").concat(m.size/16*(m.flipY?-1:1),") "),z="rotate(".concat(m.rotate," 0 0)"),H={transform:"".concat(I," ").concat(F," ").concat(z)},G={transform:"translate(".concat(S/2*-1," -256)")},J={outer:L,inner:H,path:G};return{tag:"g",attributes:ot({},J.outer),children:[{tag:"g",attributes:ot({},J.inner),children:[{tag:d.icon.tag,children:d.icon.children,attributes:ot(ot({},d.icon.attributes),J.path)}]}]}}}},lr={x:0,y:0,width:"100%",height:"100%"};function Uo(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return s.attributes&&(s.attributes.fill||n)&&(s.attributes.fill="black"),s}function Mg(s){return s.tag==="g"?s.children:[s]}var Og={hooks:function(){return{parseNodeAttributes:function(c,d){var m=d.getAttribute("data-fa-mask"),y=m?Bs(m.split(" ").map(function(S){return S.trim()})):kn();return y.prefix||(y.prefix=yi()),c.mask=y,c.maskId=d.getAttribute("data-fa-mask-id"),c}}},provides:function(n){n.generateAbstractMask=function(c){var d=c.children,m=c.attributes,y=c.main,S=c.mask,L=c.maskId,I=c.transform,F=y.width,z=y.icon,H=S.width,G=S.icon,J=Mf({transform:I,containerWidth:H,iconWidth:F}),bt={tag:"rect",attributes:ot(ot({},lr),{},{fill:"white"})},lt=z.children?{children:z.children.map(Uo)}:{},Ot={tag:"g",attributes:ot({},J.inner),children:[Uo(ot({tag:z.tag,attributes:ot(ot({},z.attributes),J.path)},lt))]},et={tag:"g",attributes:ot({},J.outer),children:[Ot]},R="mask-".concat(L||Ea()),ct="clip-".concat(L||Ea()),ut={tag:"mask",attributes:ot(ot({},lr),{},{id:R,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[bt,et]},W={tag:"defs",children:[{tag:"clipPath",attributes:{id:ct},children:Mg(G)},ut]};return d.push(W,{tag:"rect",attributes:ot({fill:"currentColor","clip-path":"url(#".concat(ct,")"),mask:"url(#".concat(R,")")},lr)}),{children:d,attributes:m}}}},Rg={provides:function(n){var c=!1;vi.matchMedia&&(c=vi.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){var d=[],m={fill:"currentColor"},y={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};d.push({tag:"path",attributes:ot(ot({},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=ot(ot({},y),{},{attributeName:"opacity"}),L={tag:"circle",attributes:ot(ot({},m),{},{cx:"256",cy:"364",r:"28"}),children:[]};return c||L.children.push({tag:"animate",attributes:ot(ot({},y),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ot(ot({},S),{},{values:"1;0;1;1;0;1;"})}),d.push(L),d.push({tag:"path",attributes:ot(ot({},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:ot(ot({},S),{},{values:"1;0;0;0;0;1;"})}]}),c||d.push({tag:"path",attributes:ot(ot({},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:ot(ot({},S),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:d}}}},zg={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}}}},Fg=[zf,wg,kg,Ag,Sg,Tg,_g,Ig,Og,Rg,zg];qf(Fg,{mixoutsTo:_e});_e.noAuto;_e.config;_e.library;_e.dom;var Dr=_e.parse;_e.findIconDefinition;_e.toHtml;var Ng=_e.icon;_e.layer;_e.text;_e.counter;function $o(s,n){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);n&&(d=d.filter(function(m){return Object.getOwnPropertyDescriptor(s,m).enumerable})),c.push.apply(c,d)}return c}function ei(s){for(var n=1;n<arguments.length;n++){var c=arguments[n]!=null?arguments[n]:{};n%2?$o(Object(c),!0).forEach(function(d){ke(s,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):$o(Object(c)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(c,d))})}return s}function Xg(s,n){if(typeof s!="object"||!s)return s;var c=s[Symbol.toPrimitive];if(c!==void 0){var d=c.call(s,n||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(s)}function Yg(s){var n=Xg(s,"string");return typeof n=="symbol"?n:n+""}function Ls(s){"@babel/helpers - typeof";return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ls(s)}function ke(s,n,c){return n=Yg(n),n in s?Object.defineProperty(s,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[n]=c,s}function Dg(s,n){if(s==null)return{};var c={};for(var d in s)if(Object.prototype.hasOwnProperty.call(s,d)){if(n.indexOf(d)>=0)continue;c[d]=s[d]}return c}function Hg(s,n){if(s==null)return{};var c=Dg(s,n),d,m;if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(s);for(m=0;m<y.length;m++)d=y[m],!(n.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(s,d)&&(c[d]=s[d])}return c}var Bg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},qc={exports:{}};(function(s){(function(n){var c=function(et,R,ct){if(!F(R)||H(R)||G(R)||J(R)||I(R))return R;var ut,W=0,it=0;if(z(R))for(ut=[],it=R.length;W<it;W++)ut.push(c(et,R[W],ct));else{ut={};for(var Mt in R)Object.prototype.hasOwnProperty.call(R,Mt)&&(ut[et(Mt,ct)]=c(et,R[Mt],ct))}return ut},d=function(et,R){R=R||{};var ct=R.separator||"_",ut=R.split||/(?=[A-Z])/;return et.split(ut).join(ct)},m=function(et){return bt(et)?et:(et=et.replace(/[\-_\s]+(.)?/g,function(R,ct){return ct?ct.toUpperCase():""}),et.substr(0,1).toLowerCase()+et.substr(1))},y=function(et){var R=m(et);return R.substr(0,1).toUpperCase()+R.substr(1)},S=function(et,R){return d(et,R).toLowerCase()},L=Object.prototype.toString,I=function(et){return typeof et=="function"},F=function(et){return et===Object(et)},z=function(et){return L.call(et)=="[object Array]"},H=function(et){return L.call(et)=="[object Date]"},G=function(et){return L.call(et)=="[object RegExp]"},J=function(et){return L.call(et)=="[object Boolean]"},bt=function(et){return et=et-0,et===et},lt=function(et,R){var ct=R&&"process"in R?R.process:R;return typeof ct!="function"?et:function(ut,W){return ct(ut,et,W)}},Ot={camelize:m,decamelize:S,pascalize:y,depascalize:S,camelizeKeys:function(et,R){return c(lt(m,R),et)},decamelizeKeys:function(et,R){return c(lt(S,R),et,R)},pascalizeKeys:function(et,R){return c(lt(y,R),et)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};s.exports?s.exports=Ot:n.humps=Ot})(Bg)})(qc);var Wg=qc.exports,Vg=["class","style"];function Gg(s){return s.split(";").map(function(n){return n.trim()}).filter(function(n){return n}).reduce(function(n,c){var d=c.indexOf(":"),m=Wg.camelize(c.slice(0,d)),y=c.slice(d+1).trim();return n[m]=y,n},{})}function jg(s){return s.split(/\s+/).reduce(function(n,c){return n[c]=!0,n},{})}function Zc(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof s=="string")return s;var d=(s.children||[]).map(function(I){return Zc(I)}),m=Object.keys(s.attributes||{}).reduce(function(I,F){var z=s.attributes[F];switch(F){case"class":I.class=jg(z);break;case"style":I.style=Gg(z);break;default:I.attrs[F]=z}return I},{attrs:{},class:{},style:{}});c.class;var y=c.style,S=y===void 0?{}:y,L=Hg(c,Vg);return yc(s.tag,ei(ei(ei({},n),{},{class:m.class,style:ei(ei({},m.style),S)},m.attrs),L),d)}var Kc=!1;try{Kc=!0}catch{}function Ug(){if(!Kc&&console&&typeof console.error=="function"){var s;(s=console).error.apply(s,arguments)}}function cr(s,n){return Array.isArray(n)&&n.length>0||!Array.isArray(n)&&n?ke({},s,n):{}}function $g(s){var n,c=(n={"fa-spin":s.spin,"fa-pulse":s.pulse,"fa-fw":s.fixedWidth,"fa-border":s.border,"fa-li":s.listItem,"fa-inverse":s.inverse,"fa-flip":s.flip===!0,"fa-flip-horizontal":s.flip==="horizontal"||s.flip==="both","fa-flip-vertical":s.flip==="vertical"||s.flip==="both"},ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(n,"fa-".concat(s.size),s.size!==null),"fa-rotate-".concat(s.rotation),s.rotation!==null),"fa-pull-".concat(s.pull),s.pull!==null),"fa-swap-opacity",s.swapOpacity),"fa-bounce",s.bounce),"fa-shake",s.shake),"fa-beat",s.beat),"fa-fade",s.fade),"fa-beat-fade",s.beatFade),"fa-flash",s.flash),ke(ke(n,"fa-spin-pulse",s.spinPulse),"fa-spin-reverse",s.spinReverse));return Object.keys(c).map(function(d){return c[d]?d:null}).filter(function(d){return d})}function qo(s){if(s&&Ls(s)==="object"&&s.prefix&&s.iconName&&s.icon)return s;if(Dr.icon)return Dr.icon(s);if(s===null)return null;if(Ls(s)==="object"&&s.prefix&&s.iconName)return s;if(Array.isArray(s)&&s.length===2)return{prefix:s[0],iconName:s[1]};if(typeof s=="string")return{prefix:"fas",iconName:s}}var oe=Jl({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(n){return[!0,!1,"horizontal","vertical","both"].indexOf(n)>-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(n){return["right","left"].indexOf(n)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(n){return[90,180,270].indexOf(Number.parseInt(n,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(n){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(n)>-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(n,c){var d=c.attrs,m=Et(function(){return qo(n.icon)}),y=Et(function(){return cr("classes",$g(n))}),S=Et(function(){return cr("transform",typeof n.transform=="string"?Dr.transform(n.transform):n.transform)}),L=Et(function(){return cr("mask",qo(n.mask))}),I=Et(function(){return Ng(m.value,ei(ei(ei(ei({},y.value),S.value),L.value),{},{symbol:n.symbol,title:n.title,titleId:n.titleId,maskId:n.maskId}))});Te(I,function(z){if(!z)return Ug("Could not find one or more icon(s)",m.value,L.value)},{immediate:!0});var F=Et(function(){return I.value?Zc(I.value.abstract[0],{},d):null});return function(){return F.value}}}),hr={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"]},qg={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"]},Zg={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"]},Kg={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"]},Zo={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"]},Jg={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"]},Ko={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"]},Qg={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"]},tp={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"]},ep={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"]},dr=ep,ip={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"]},ap={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"]},sp=ap,rp={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"]},np={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"]},Jc={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 Hr=He(!0),ti=Et(()=>Hr.value),op={class:"flex"},lp={class:"grid cursor-pointer place-items-center"},cp=["checked"],hp=mu('<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),dp={__name:"TheThemeButton",setup(s){const n=He(Hr.value);return Te(n,c=>{Hr.value=c,c?document.getElementsByTagName("body")[0].classList.add("dark"):document.getElementsByTagName("body")[0].classList.remove("dark")}),(c,d)=>(yt(),At("div",op,[j("label",lp,[j("input",{type:"checkbox",onClick:d[0]||(d[0]=m=>n.value=!n.value),checked:n.value,class:"toggle theme-controller bg-slate-400 col-span-2 col-start-1 row-start-1 [--tglbg:#e2e8f0]"},null,8,cp),hp])]))}},$e=Object.create(null);$e.open="0";$e.close="1";$e.ping="2";$e.pong="3";$e.message="4";$e.upgrade="5";$e.noop="6";const gs=Object.create(null);Object.keys($e).forEach(s=>{gs[$e[s]]=s});const Br={type:"error",data:"parser error"},Qc=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",th=typeof ArrayBuffer=="function",eh=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,Pn=({type:s,data:n},c,d)=>Qc&&n instanceof Blob?c?d(n):Jo(n,d):th&&(n instanceof ArrayBuffer||eh(n))?c?d(n):Jo(new Blob([n]),d):d($e[s]+(n||"")),Jo=(s,n)=>{const c=new FileReader;return c.onload=function(){const d=c.result.split(",")[1];n("b"+(d||""))},c.readAsDataURL(s)};function Qo(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let ur;function up(s,n){if(Qc&&s.data instanceof Blob)return s.data.arrayBuffer().then(Qo).then(n);if(th&&(s.data instanceof ArrayBuffer||eh(s.data)))return n(Qo(s.data));Pn(s,!1,c=>{ur||(ur=new TextEncoder),n(ur.encode(c))})}const tl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",da=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<tl.length;s++)da[tl.charCodeAt(s)]=s;const fp=s=>{let n=s.length*.75,c=s.length,d,m=0,y,S,L,I;s[s.length-1]==="="&&(n--,s[s.length-2]==="="&&n--);const F=new ArrayBuffer(n),z=new Uint8Array(F);for(d=0;d<c;d+=4)y=da[s.charCodeAt(d)],S=da[s.charCodeAt(d+1)],L=da[s.charCodeAt(d+2)],I=da[s.charCodeAt(d+3)],z[m++]=y<<2|S>>4,z[m++]=(S&15)<<4|L>>2,z[m++]=(L&3)<<6|I&63;return F},gp=typeof ArrayBuffer=="function",Ln=(s,n)=>{if(typeof s!="string")return{type:"message",data:ih(s,n)};const c=s.charAt(0);return c==="b"?{type:"message",data:pp(s.substring(1),n)}:gs[c]?s.length>1?{type:gs[c],data:s.substring(1)}:{type:gs[c]}:Br},pp=(s,n)=>{if(gp){const c=fp(s);return ih(c,n)}else return{base64:!0,data:s}},ih=(s,n)=>{switch(n){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}},ah="",xp=(s,n)=>{const c=s.length,d=new Array(c);let m=0;s.forEach((y,S)=>{Pn(y,!1,L=>{d[S]=L,++m===c&&n(d.join(ah))})})},mp=(s,n)=>{const c=s.split(ah),d=[];for(let m=0;m<c.length;m++){const y=Ln(c[m],n);if(d.push(y),y.type==="error")break}return d};function bp(){return new TransformStream({transform(s,n){up(s,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))}s.data&&typeof s.data!="string"&&(m[0]|=128),n.enqueue(m),n.enqueue(c)})}})}let fr;function es(s){return s.reduce((n,c)=>n+c.length,0)}function is(s,n){if(s[0].length===n)return s.shift();const c=new Uint8Array(n);let d=0;for(let m=0;m<n;m++)c[m]=s[0][d++],d===s[0].length&&(s.shift(),d=0);return s.length&&d<s[0].length&&(s[0]=s[0].slice(d)),c}function vp(s,n){fr||(fr=new TextDecoder);const c=[];let d=0,m=-1,y=!1;return new TransformStream({transform(S,L){for(c.push(S);;){if(d===0){if(es(c)<1)break;const I=is(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(es(c)<2)break;const I=is(c,2);m=new DataView(I.buffer,I.byteOffset,I.length).getUint16(0),d=3}else if(d===2){if(es(c)<8)break;const I=is(c,8),F=new DataView(I.buffer,I.byteOffset,I.length),z=F.getUint32(0);if(z>Math.pow(2,21)-1){L.enqueue(Br);break}m=z*Math.pow(2,32)+F.getUint32(4),d=3}else{if(es(c)<m)break;const I=is(c,m);L.enqueue(Ln(y?I:fr.decode(I),n)),d=0}if(m===0||m>s){L.enqueue(Br);break}}}})}const sh=4;function ae(s){if(s)return yp(s)}function yp(s){for(var n in ae.prototype)s[n]=ae.prototype[n];return s}ae.prototype.on=ae.prototype.addEventListener=function(s,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(n),this};ae.prototype.once=function(s,n){function c(){this.off(s,c),n.apply(this,arguments)}return c.fn=n,this.on(s,c),this};ae.prototype.off=ae.prototype.removeListener=ae.prototype.removeAllListeners=ae.prototype.removeEventListener=function(s,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c=this._callbacks["$"+s];if(!c)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var d,m=0;m<c.length;m++)if(d=c[m],d===n||d.fn===n){c.splice(m,1);break}return c.length===0&&delete this._callbacks["$"+s],this};ae.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),c=this._callbacks["$"+s],d=1;d<arguments.length;d++)n[d-1]=arguments[d];if(c){c=c.slice(0);for(var d=0,m=c.length;d<m;++d)c[d].apply(this,n)}return this};ae.prototype.emitReserved=ae.prototype.emit;ae.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]};ae.prototype.hasListeners=function(s){return!!this.listeners(s).length};const Ie=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function rh(s,...n){return n.reduce((c,d)=>(s.hasOwnProperty(d)&&(c[d]=s[d]),c),{})}const wp=Ie.setTimeout,kp=Ie.clearTimeout;function Vs(s,n){n.useNativeTimers?(s.setTimeoutFn=wp.bind(Ie),s.clearTimeoutFn=kp.bind(Ie)):(s.setTimeoutFn=Ie.setTimeout.bind(Ie),s.clearTimeoutFn=Ie.clearTimeout.bind(Ie))}const Ap=1.33;function Sp(s){return typeof s=="string"?Cp(s):Math.ceil((s.byteLength||s.size)*Ap)}function Cp(s){let n=0,c=0;for(let d=0,m=s.length;d<m;d++)n=s.charCodeAt(d),n<128?c+=1:n<2048?c+=2:n<55296||n>=57344?c+=3:(d++,c+=4);return c}function Pp(s){let n="";for(let c in s)s.hasOwnProperty(c)&&(n.length&&(n+="&"),n+=encodeURIComponent(c)+"="+encodeURIComponent(s[c]));return n}function Lp(s){let n={},c=s.split("&");for(let d=0,m=c.length;d<m;d++){let y=c[d].split("=");n[decodeURIComponent(y[0])]=decodeURIComponent(y[1])}return n}class Ep extends Error{constructor(n,c,d){super(n),this.description=c,this.context=d,this.type="TransportError"}}class En extends ae{constructor(n){super(),this.writable=!1,Vs(this,n),this.opts=n,this.query=n.query,this.socket=n.socket}onError(n,c,d){return super.emitReserved("error",new Ep(n,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(n){this.readyState==="open"&&this.write(n)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(n){const c=Ln(n,this.socket.binaryType);this.onPacket(c)}onPacket(n){super.emitReserved("packet",n)}onClose(n){this.readyState="closed",super.emitReserved("close",n)}pause(n){}createUri(n,c={}){return n+"://"+this._hostname()+this._port()+this.opts.path+this._query(c)}_hostname(){const n=this.opts.hostname;return n.indexOf(":")===-1?n:"["+n+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(n){const c=Pp(n);return c.length?"?"+c:""}}const nh="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Wr=64,Tp={};let el=0,as=0,il;function al(s){let n="";do n=nh[s%Wr]+n,s=Math.floor(s/Wr);while(s>0);return n}function oh(){const s=al(+new Date);return s!==il?(el=0,il=s):s+"."+al(el++)}for(;as<Wr;as++)Tp[nh[as]]=as;let lh=!1;try{lh=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const _p=lh;function ch(s){const n=s.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||_p))return new XMLHttpRequest}catch{}if(!n)try{return new Ie[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Ip(){}const Mp=function(){return new ch({xdomain:!1}).responseType!=null}();class Op extends En{constructor(n){if(super(n),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"&&n.hostname!==location.hostname||m!==n.port}const c=n&&n.forceBase64;this.supportsBinary=Mp&&!c,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(n){this.readyState="pausing";const c=()=>{this.readyState="paused",n()};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(n){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)};mp(n,this.socket.binaryType).forEach(c),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,xp(n,c=>{this.doWrite(c,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",c=this.query||{};return this.opts.timestampRequests!==!1&&(c[this.opts.timestampParam]=oh()),!this.supportsBinary&&!c.sid&&(c.b64=1),this.createUri(n,c)}request(n={}){return Object.assign(n,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new je(this.uri(),n)}doWrite(n,c){const d=this.request({method:"POST",data:n});d.on("success",c),d.on("error",(m,y)=>{this.onError("xhr post error",m,y)})}doPoll(){const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(c,d)=>{this.onError("xhr poll error",c,d)}),this.pollXhr=n}}class je extends ae{constructor(n,c){super(),Vs(this,c),this.opts=c,this.method=c.method||"GET",this.uri=n,this.data=c.data!==void 0?c.data:null,this.create()}create(){var n;const c=rh(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");c.xdomain=!!this.opts.xd;const d=this.xhr=new ch(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{}(n=this.opts.cookieJar)===null||n===void 0||n.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=je.requestsCount++,je.requests[this.index]=this)}onError(n){this.emitReserved("error",n,this.xhr),this.cleanup(!0)}cleanup(n){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Ip,n)try{this.xhr.abort()}catch{}typeof document<"u"&&delete je.requests[this.index],this.xhr=null}}onLoad(){const n=this.xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}je.requestsCount=0;je.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",sl);else if(typeof addEventListener=="function"){const s="onpagehide"in Ie?"pagehide":"unload";addEventListener(s,sl,!1)}}function sl(){for(let s in je.requests)je.requests.hasOwnProperty(s)&&je.requests[s].abort()}const Tn=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,c)=>c(n,0),ss=Ie.WebSocket||Ie.MozWebSocket,rl=!0,Rp="arraybuffer",nl=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class zp extends En{constructor(n){super(n),this.supportsBinary=!n.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const n=this.uri(),c=this.opts.protocols,d=nl?{}:rh(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=rl&&!nl?c?new ss(n,c):new ss(n):new ss(n,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=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let c=0;c<n.length;c++){const d=n[c],m=c===n.length-1;Pn(d,this.supportsBinary,y=>{const S={};try{rl&&this.ws.send(y)}catch{}m&&Tn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const n=this.opts.secure?"wss":"ws",c=this.query||{};return this.opts.timestampRequests&&(c[this.opts.timestampParam]=oh()),this.supportsBinary||(c.b64=1),this.createUri(n,c)}check(){return!!ss}}class Fp extends En{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(n=>{this.onError("webtransport error",n)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(n=>{const c=vp(Number.MAX_SAFE_INTEGER,this.socket.binaryType),d=n.readable.pipeThrough(c).getReader(),m=bp();m.readable.pipeTo(n.writable),this.writer=m.writable.getWriter();const y=()=>{d.read().then(({done:L,value:I})=>{L||(this.onPacket(I),y())}).catch(L=>{})};y();const S={type:"open"};this.query.sid&&(S.data=`{"sid":"${this.query.sid}"}`),this.writer.write(S).then(()=>this.onOpen())})}))}write(n){this.writable=!1;for(let c=0;c<n.length;c++){const d=n[c],m=c===n.length-1;this.writer.write(d).then(()=>{m&&Tn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this.transport)===null||n===void 0||n.close()}}const Np={websocket:zp,webtransport:Fp,polling:Op},Xp=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Yp=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Vr(s){if(s.length>2e3)throw"URI too long";const n=s,c=s.indexOf("["),d=s.indexOf("]");c!=-1&&d!=-1&&(s=s.substring(0,c)+s.substring(c,d).replace(/:/g,";")+s.substring(d,s.length));let m=Xp.exec(s||""),y={},S=14;for(;S--;)y[Yp[S]]=m[S]||"";return c!=-1&&d!=-1&&(y.source=n,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=Dp(y,y.path),y.queryKey=Hp(y,y.query),y}function Dp(s,n){const c=/\/{2,9}/g,d=n.replace(c,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&d.splice(0,1),n.slice(-1)=="/"&&d.splice(d.length-1,1),d}function Hp(s,n){const c={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(d,m,y){m&&(c[m]=y)}),c}let hh=class Vi extends ae{constructor(n,c={}){super(),this.binaryType=Rp,this.writeBuffer=[],n&&typeof n=="object"&&(c=n,n=null),n?(n=Vr(n),c.hostname=n.host,c.secure=n.protocol==="https"||n.protocol==="wss",c.port=n.port,n.query&&(c.query=n.query)):c.host&&(c.hostname=Vr(c.host).host),Vs(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=Lp(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(n){const c=Object.assign({},this.opts.query);c.EIO=sh,c.transport=n,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[n]);return new Np[n](d)}open(){let n;if(this.opts.rememberUpgrade&&Vi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)n="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else n=this.transports[0];this.readyState="opening";try{n=this.createTransport(n)}catch{this.transports.shift(),this.open();return}n.open(),this.setTransport(n)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.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(n){let c=this.createTransport(n),d=!1;Vi.priorWebsocketSuccess=!1;const m=()=>{d||(c.send([{type:"ping",data:"probe"}]),c.once("packet",H=>{if(!d)if(H.type==="pong"&&H.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;Vi.priorWebsocketSuccess=c.name==="websocket",this.transport.pause(()=>{d||this.readyState!=="closed"&&(z(),this.setTransport(c),c.send([{type:"upgrade"}]),this.emitReserved("upgrade",c),c=null,this.upgrading=!1,this.flush())})}else{const G=new Error("probe error");G.transport=c.name,this.emitReserved("upgradeError",G)}}))};function y(){d||(d=!0,z(),c.close(),c=null)}const S=H=>{const G=new Error("probe error: "+H);G.transport=c.name,y(),this.emitReserved("upgradeError",G)};function L(){S("transport closed")}function I(){S("socket closed")}function F(H){c&&H.name!==c.name&&y()}const z=()=>{c.removeListener("open",m),c.removeListener("error",S),c.removeListener("close",L),this.off("close",I),this.off("upgrading",F)};c.once("open",m),c.once("error",S),c.once("close",L),this.once("close",I),this.once("upgrading",F),this.upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{d||c.open()},200):c.open()}onOpen(){if(this.readyState="open",Vi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let n=0;const c=this.upgrades.length;for(;n<c;n++)this.probe(this.upgrades[n])}}onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",n),this.emitReserved("heartbeat"),this.resetPingTimeout(),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const c=new Error("server error");c.code=n.data,this.onError(c);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this.upgrades=this.filterUpgrades(n.upgrades),this.pingInterval=n.pingInterval,this.pingTimeout=n.pingTimeout,this.maxPayload=n.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 n=this.getWritablePackets();this.transport.send(n),this.prevBufferLen=n.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+=Sp(m)),d>0&&c>this.maxPayload)return this.writeBuffer.slice(0,d);c+=2}return this.writeBuffer}write(n,c,d){return this.sendPacket("message",n,c,d),this}send(n,c,d){return this.sendPacket("message",n,c,d),this}sendPacket(n,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:n,data:c,options:d};this.emitReserved("packetCreate",y),this.writeBuffer.push(y),m&&this.once("flush",m),this.flush()}close(){const n=()=>{this.onClose("forced close"),this.transport.close()},c=()=>{this.off("upgrade",c),this.off("upgradeError",c),n()},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():n()}):this.upgrading?d():n()),this}onError(n){Vi.priorWebsocketSuccess=!1,this.emitReserved("error",n),this.onClose("transport error",n)}onClose(n,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",n,c),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(n){const c=[];let d=0;const m=n.length;for(;d<m;d++)~this.transports.indexOf(n[d])&&c.push(n[d]);return c}};hh.protocol=sh;function Bp(s,n="",c){let d=s;c=c||typeof location<"u"&&location,s==null&&(s=c.protocol+"//"+c.host),typeof s=="string"&&(s.charAt(0)==="/"&&(s.charAt(1)==="/"?s=c.protocol+s:s=c.host+s),/^(https?|wss?):\/\//.test(s)||(typeof c<"u"?s=c.protocol+"//"+s:s="https://"+s),d=Vr(s)),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+n,d.href=d.protocol+"://"+y+(c&&c.port===d.port?"":":"+d.port),d}const Wp=typeof ArrayBuffer=="function",Vp=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,dh=Object.prototype.toString,Gp=typeof Blob=="function"||typeof Blob<"u"&&dh.call(Blob)==="[object BlobConstructor]",jp=typeof File=="function"||typeof File<"u"&&dh.call(File)==="[object FileConstructor]";function _n(s){return Wp&&(s instanceof ArrayBuffer||Vp(s))||Gp&&s instanceof Blob||jp&&s instanceof File}function ps(s,n){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let c=0,d=s.length;c<d;c++)if(ps(s[c]))return!0;return!1}if(_n(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return ps(s.toJSON(),!0);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)&&ps(s[c]))return!0;return!1}function Up(s){const n=[],c=s.data,d=s;return d.data=Gr(c,n),d.attachments=n.length,{packet:d,buffers:n}}function Gr(s,n){if(!s)return s;if(_n(s)){const c={_placeholder:!0,num:n.length};return n.push(s),c}else if(Array.isArray(s)){const c=new Array(s.length);for(let d=0;d<s.length;d++)c[d]=Gr(s[d],n);return c}else if(typeof s=="object"&&!(s instanceof Date)){const c={};for(const d in s)Object.prototype.hasOwnProperty.call(s,d)&&(c[d]=Gr(s[d],n));return c}return s}function $p(s,n){return s.data=jr(s.data,n),delete s.attachments,s}function jr(s,n){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<n.length)return n[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let c=0;c<s.length;c++)s[c]=jr(s[c],n);else if(typeof s=="object")for(const c in s)Object.prototype.hasOwnProperty.call(s,c)&&(s[c]=jr(s[c],n));return s}const qp=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Zp=5;var zt;(function(s){s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK"})(zt||(zt={}));class Kp{constructor(n){this.replacer=n}encode(n){return(n.type===zt.EVENT||n.type===zt.ACK)&&ps(n)?this.encodeAsBinary({type:n.type===zt.EVENT?zt.BINARY_EVENT:zt.BINARY_ACK,nsp:n.nsp,data:n.data,id:n.id}):[this.encodeAsString(n)]}encodeAsString(n){let c=""+n.type;return(n.type===zt.BINARY_EVENT||n.type===zt.BINARY_ACK)&&(c+=n.attachments+"-"),n.nsp&&n.nsp!=="/"&&(c+=n.nsp+","),n.id!=null&&(c+=n.id),n.data!=null&&(c+=JSON.stringify(n.data,this.replacer)),c}encodeAsBinary(n){const c=Up(n),d=this.encodeAsString(c.packet),m=c.buffers;return m.unshift(d),m}}function ol(s){return Object.prototype.toString.call(s)==="[object Object]"}class In extends ae{constructor(n){super(),this.reviver=n}add(n){let c;if(typeof n=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");c=this.decodeString(n);const d=c.type===zt.BINARY_EVENT;d||c.type===zt.BINARY_ACK?(c.type=d?zt.EVENT:zt.ACK,this.reconstructor=new Jp(c),c.attachments===0&&super.emitReserved("decoded",c)):super.emitReserved("decoded",c)}else if(_n(n)||n.base64)if(this.reconstructor)c=this.reconstructor.takeBinaryData(n),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: "+n)}decodeString(n){let c=0;const d={type:Number(n.charAt(0))};if(zt[d.type]===void 0)throw new Error("unknown packet type "+d.type);if(d.type===zt.BINARY_EVENT||d.type===zt.BINARY_ACK){const y=c+1;for(;n.charAt(++c)!=="-"&&c!=n.length;);const S=n.substring(y,c);if(S!=Number(S)||n.charAt(c)!=="-")throw new Error("Illegal attachments");d.attachments=Number(S)}if(n.charAt(c+1)==="/"){const y=c+1;for(;++c&&!(n.charAt(c)===","||c===n.length););d.nsp=n.substring(y,c)}else d.nsp="/";const m=n.charAt(c+1);if(m!==""&&Number(m)==m){const y=c+1;for(;++c;){const S=n.charAt(c);if(S==null||Number(S)!=S){--c;break}if(c===n.length)break}d.id=Number(n.substring(y,c+1))}if(n.charAt(++c)){const y=this.tryParse(n.substr(c));if(In.isPayloadValid(d.type,y))d.data=y;else throw new Error("invalid payload")}return d}tryParse(n){try{return JSON.parse(n,this.reviver)}catch{return!1}}static isPayloadValid(n,c){switch(n){case zt.CONNECT:return ol(c);case zt.DISCONNECT:return c===void 0;case zt.CONNECT_ERROR:return typeof c=="string"||ol(c);case zt.EVENT:case zt.BINARY_EVENT:return Array.isArray(c)&&(typeof c[0]=="number"||typeof c[0]=="string"&&qp.indexOf(c[0])===-1);case zt.ACK:case zt.BINARY_ACK:return Array.isArray(c)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Jp{constructor(n){this.packet=n,this.buffers=[],this.reconPack=n}takeBinaryData(n){if(this.buffers.push(n),this.buffers.length===this.reconPack.attachments){const c=$p(this.reconPack,this.buffers);return this.finishedReconstruction(),c}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Qp=Object.freeze(Object.defineProperty({__proto__:null,Decoder:In,Encoder:Kp,get PacketType(){return zt},protocol:Zp},Symbol.toStringTag,{value:"Module"}));function Ne(s,n,c){return s.on(n,c),function(){s.off(n,c)}}const tx=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class uh extends ae{constructor(n,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=n,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 n=this.io;this.subs=[Ne(n,"open",this.onopen.bind(this)),Ne(n,"packet",this.onpacket.bind(this)),Ne(n,"error",this.onerror.bind(this)),Ne(n,"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(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...c){if(tx.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(c.unshift(n),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const d={type:zt.EVENT,data:c};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const S=this.ids++,L=c.pop();this._registerAckCallback(S,L),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(n,c){var d;const m=(d=this.flags.timeout)!==null&&d!==void 0?d:this._opts.ackTimeout;if(m===void 0){this.acks[n]=c;return}const y=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let L=0;L<this.sendBuffer.length;L++)this.sendBuffer[L].id===n&&this.sendBuffer.splice(L,1);c.call(this,new Error("operation has timed out"))},m),S=(...L)=>{this.io.clearTimeoutFn(y),c.apply(this,L)};S.withError=!0,this.acks[n]=S}emitWithAck(n,...c){return new Promise((d,m)=>{const y=(S,L)=>S?m(S):d(L);y.withError=!0,c.push(y),this.emit(n,...c)})}_addToQueue(n){let c;typeof n[n.length-1]=="function"&&(c=n.pop());const d={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.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(n=!1){if(!this.connected||this._queue.length===0)return;const c=this._queue[0];c.pending&&!n||(c.pending=!0,c.tryCount++,this.flags=c.flags,this.emit.apply(this,c.args))}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:zt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,c){this.connected=!1,delete this.id,this.emitReserved("disconnect",n,c),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(d=>String(d.id)===n)){const d=this.acks[n];delete this.acks[n],d.withError&&d.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case zt.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.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 zt.EVENT:case zt.BINARY_EVENT:this.onevent(n);break;case zt.ACK:case zt.BINARY_ACK:this.onack(n);break;case zt.DISCONNECT:this.ondisconnect();break;case zt.CONNECT_ERROR:this.destroy();const d=new Error(n.data.message);d.data=n.data.data,this.emitReserved("connect_error",d);break}}onevent(n){const c=n.data||[];n.id!=null&&c.push(this.ack(n.id)),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const d of c)d.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const c=this;let d=!1;return function(...m){d||(d=!0,c.packet({type:zt.ACK,id:n,data:m}))}}onack(n){const c=this.acks[n.id];typeof c=="function"&&(delete this.acks[n.id],c.withError&&n.data.unshift(null),c.apply(this,n.data))}onconnect(n,c){this.id=n,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:zt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const c=this._anyListeners;for(let d=0;d<c.length;d++)if(n===c[d])return c.splice(d,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const c=this._anyOutgoingListeners;for(let d=0;d<c.length;d++)if(n===c[d])return c.splice(d,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const d of c)d.apply(this,n.data)}}}function aa(s){s=s||{},this.ms=s.min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}aa.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),c=Math.floor(n*this.jitter*s);s=Math.floor(n*10)&1?s+c:s-c}return Math.min(s,this.max)|0};aa.prototype.reset=function(){this.attempts=0};aa.prototype.setMin=function(s){this.ms=s};aa.prototype.setMax=function(s){this.max=s};aa.prototype.setJitter=function(s){this.jitter=s};class Ur extends ae{constructor(n,c){var d;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(c=n,n=void 0),c=c||{},c.path=c.path||"/socket.io",this.opts=c,Vs(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 aa({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(c.timeout==null?2e4:c.timeout),this._readyState="closed",this.uri=n;const m=c.parser||Qp;this.encoder=new m.Encoder,this.decoder=new m.Decoder,this._autoConnect=c.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var c;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(c=this.backoff)===null||c===void 0||c.setMin(n),this)}randomizationFactor(n){var c;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(c=this.backoff)===null||c===void 0||c.setJitter(n),this)}reconnectionDelayMax(n){var c;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(c=this.backoff)===null||c===void 0||c.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(~this._readyState.indexOf("open"))return this;this.engine=new hh(this.uri,this.opts);const c=this.engine,d=this;this._readyState="opening",this.skipReconnect=!1;const m=Ne(c,"open",function(){d.onopen(),n&&n()}),y=L=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",L),n?n(L):this.maybeReconnectOnOpen()},S=Ne(c,"error",y);if(this._timeout!==!1){const L=this._timeout,I=this.setTimeoutFn(()=>{m(),y(new Error("timeout")),c.close()},L);this.opts.autoUnref&&I.unref(),this.subs.push(()=>{this.clearTimeoutFn(I)})}return this.subs.push(m),this.subs.push(S),this}connect(n){return this.open(n)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const n=this.engine;this.subs.push(Ne(n,"ping",this.onping.bind(this)),Ne(n,"data",this.ondata.bind(this)),Ne(n,"error",this.onerror.bind(this)),Ne(n,"close",this.onclose.bind(this)),Ne(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(c){this.onclose("parse error",c)}}ondecoded(n){Tn(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){this.emitReserved("error",n)}socket(n,c){let d=this.nsps[n];return d?this._autoConnect&&!d.active&&d.connect():(d=new uh(this,n,c),this.nsps[n]=d),d}_destroy(n){const c=Object.keys(this.nsps);for(const d of c)if(this.nsps[d].active)return;this._close()}_packet(n){const c=this.encoder.encode(n);for(let d=0;d<c.length;d++)this.engine.write(c[d],n.options)}cleanup(){this.subs.forEach(n=>n()),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(n,c){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,c),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const n=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(()=>{n.skipReconnect||(this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(m=>{m?(n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",m)):n.onreconnect()}))},c);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}}onreconnect(){const n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}}const la={};function xs(s,n){typeof s=="object"&&(n=s,s=void 0),n=n||{};const c=Bp(s,n.path||"/socket.io"),d=c.source,m=c.id,y=c.path,S=la[m]&&y in la[m].nsps,L=n.forceNew||n["force new connection"]||n.multiplex===!1||S;let I;return L?I=new Ur(d,n):(la[m]||(la[m]=new Ur(d,n)),I=la[m]),c.query&&!n.query&&(n.query=c.queryKey),I.socket(c.path,n)}Object.assign(xs,{Manager:Ur,Socket:uh,io:xs,connect:xs});var rs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ex(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var ix="Expected a function",ll=NaN,ax="[object Symbol]",sx=/^\s+|\s+$/g,rx=/^[-+]0x[0-9a-f]+$/i,nx=/^0b[01]+$/i,ox=/^0o[0-7]+$/i,lx=parseInt,cx=typeof rs=="object"&&rs&&rs.Object===Object&&rs,hx=typeof self=="object"&&self&&self.Object===Object&&self,dx=cx||hx||Function("return this")(),ux=Object.prototype,fx=ux.toString,gx=Math.max,px=Math.min,gr=function(){return dx.Date.now()};function xx(s,n,c){var d,m,y,S,L,I,F=0,z=!1,H=!1,G=!0;if(typeof s!="function")throw new TypeError(ix);n=cl(n)||0,$r(c)&&(z=!!c.leading,H="maxWait"in c,y=H?gx(cl(c.maxWait)||0,n):y,G="trailing"in c?!!c.trailing:G);function J(it){var Mt=d,Ut=m;return d=m=void 0,F=it,S=s.apply(Ut,Mt),S}function bt(it){return F=it,L=setTimeout(et,n),z?J(it):S}function lt(it){var Mt=it-I,Ut=it-F,re=n-Mt;return H?px(re,y-Ut):re}function Ot(it){var Mt=it-I,Ut=it-F;return I===void 0||Mt>=n||Mt<0||H&&Ut>=y}function et(){var it=gr();if(Ot(it))return R(it);L=setTimeout(et,lt(it))}function R(it){return L=void 0,G&&d?J(it):(d=m=void 0,S)}function ct(){L!==void 0&&clearTimeout(L),F=0,d=I=m=L=void 0}function ut(){return L===void 0?S:R(gr())}function W(){var it=gr(),Mt=Ot(it);if(d=arguments,m=this,I=it,Mt){if(L===void 0)return bt(I);if(H)return L=setTimeout(et,n),J(I)}return L===void 0&&(L=setTimeout(et,n)),S}return W.cancel=ct,W.flush=ut,W}function $r(s){var n=typeof s;return!!s&&(n=="object"||n=="function")}function mx(s){return!!s&&typeof s=="object"}function bx(s){return typeof s=="symbol"||mx(s)&&fx.call(s)==ax}function cl(s){if(typeof s=="number")return s;if(bx(s))return ll;if($r(s)){var n=typeof s.valueOf=="function"?s.valueOf():s;s=$r(n)?n+"":n}if(typeof s!="string")return s===0?s:+s;s=s.replace(sx,"");var c=nx.test(s);return c||ox.test(s)?lx(s.slice(2),c?2:8):rx.test(s)?ll:+s}var vx=xx;const fh=ex(vx),yx=void 0,wx=30,gh={notificationEvents:[],notificationCounter:0,notificationAPICounter:0,notificationHistory:[],notificationHistoryConfig:{},userActivity:{},userActivityConfig:{},exercises:[],selected_exercises:[],progresses:{},diagnostic:{}},Dt=Ta({...gh}),za=Ta({connected:!1,zmq_last_time:!1}),se=xs(yx,{autoConnect:!0}),kx=Et(()=>Dt.exercises),hl=Et(()=>Dt.selected_exercises),dl=Et(()=>Dt.exercises.filter(s=>Dt.selected_exercises.includes(s.uuid))),ul=Et(()=>Dt.progresses),fl=Et(()=>Dt.notificationEvents),Ax=Et(()=>Dt.notificationCounter),Sx=Et(()=>Dt.notificationAPICounter),Cx=Et(()=>Object.keys(Dt.progresses).length),Wi=Et(()=>Dt.diagnostic),pr=Et(()=>Dt.notificationHistory),Px=Et(()=>Dt.notificationHistoryConfig),xr=Et(()=>Dt.userActivity),gl=Et(()=>Dt.userActivityConfig),Gi=Et(()=>za.connected),pl=Et(()=>za.zmq_last_time);function Lx(){Object.assign(Dt,gh)}function qr(){zx(),xh(),mh(),Gs(),Fx()}function Ex(s,n,c,d){Xx(s,{user_id:n,exercise_uuid:c,task_uuid:d})}function Tx(){Yx()}function _x(){Dx()}function Ix(s,n){Hx({exercise_uuid:s,selected:n})}function Mx(s){Bx(s)}function Ox(s){Wx(s)}const ph=fh(Gs,200,{leading:!0}),Rx=fh(Nx,1e3,{leading:!0});function zx(){se.emit("get_exercises",s=>{Dt.exercises=s})}function xh(){se.emit("get_selected_exercises",s=>{Dt.selected_exercises=s})}function mh(){se.emit("get_notifications",s=>{Dt.notificationEvents=s})}function Gs(){se.emit("get_progress",s=>{Dt.progresses=s})}function Fx(){se.emit("get_users_activity",s=>{Dt.userActivity=s.activity,Dt.userActivityConfig=s.config})}function Nx(){Dt.diagnostic={},se.emit("get_diagnostic",s=>{Dt.diagnostic=s})}function Xx(s,n){const c=s?"mark_task_incomplete":"mark_task_completed";se.emit(c,n,()=>{Gs()})}function Yx(){se.emit("reset_all_exercise_progress",()=>{Gs()})}function Dx(){se.emit("reset_notifications",()=>{mh()})}function Hx(s){se.emit("change_exercise_selection",s,()=>{xh()})}function Bx(s){const n={verbose:s};se.emit("toggle_verbose_mode",n,()=>{})}function Wx(s){const n={apiquery:s};se.emit("toggle_apiquery_mode",n,()=>{})}se.on("connect",()=>{za.connected=!0});se.on("disconnect",()=>{za.connected=!1});se.on("notification",s=>{Dt.notificationCounter+=1,s.is_api_request&&(Dt.notificationAPICounter+=1),Vx(Dt.notificationEvents,s,wx)});se.on("new_user",s=>{ph()});se.on("refresh_score",s=>{ph()});se.on("keep_alive",s=>{za.zmq_last_time=s.zmq_last_time});se.on("update_notification_history",s=>{Dt.notificationHistory=s.history,Dt.notificationHistoryConfig=s.config});se.on("update_users_activity",s=>{Dt.userActivity=s.activity,Dt.userActivityConfig=s.config});function Vx(s,n,c){s.unshift(n),s.length>c&&(s.length=c)}const Gx={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"},jx={class:"text-2xl font-bold"},Ux=j("div",{class:"modal-action"},[j("form",{method:"dialog"},[j("button",{class:"btn btn-sm btn-circle btn-ghost absolute right-2 top-2"},"✕")])],-1),$x={class:"flex mb-5 gap-2"},qx={class:"text-lg font-semibold"},Zx={class:"label cursor-pointer justify-start"},Kx=["onChange","checked","value"],Jx={class:"font-mono font-semibold text-base ml-3"},Qx={class:"text-lg font-semibold mt-4"},tm={class:"font-semibold ml-1 my-3"},em=j("strong",null,"MISP Status:",-1),im={class:"ml-2"},am={key:0,class:"loading loading-dots loading-sm h-4 inline-block align-middle"},sm={key:1,class:"font-bold"},rm={class:"font-semibold ml-1 my-3"},nm=j("strong",null,"ZMQ Status:",-1),om={class:"ml-2"},lm={key:0,class:"loading loading-dots loading-sm h-4 inline-block align-middle"},cm={key:1,class:"font-bold"},hm=j("h4",{class:"font-semibold ml-1"},[j("strong",null,"MISP Settings:")],-1),dm={class:"ml-3"},um={key:0,class:"flex justify-center"},fm=j("span",{class:"loading loading-dots loading-lg"},null,-1),gm=[fm],pm={class:"label cursor-pointer justify-start p-0 pt-1"},xm=["checked","value"],mm={class:"font-mono font-semibold text-base ml-3"},bm=j("form",{method:"dialog",class:"modal-backdrop"},[j("button",null,"close")],-1),vm={__name:"TheAdminPanel",setup(s){const n=He(null),c=Et(()=>Object.keys(Wi.value).length==0),d=Et(()=>{var I;return((I=Wi.value.version)==null?void 0:I.version)!==void 0}),m=Et(()=>Wi.value.zmq_message_count>0),y=Et(()=>Wi.value.zmq_message_count);function S(I,F){Ix(F,I)}function L(){n.value.showModal(),Rx()}return(I,F)=>(yt(),At(Kt,null,[j("button",{onClick:F[0]||(F[0]=z=>L()),class:"px-2 py-1 rounded-md focus-outline font-semibold bg-blue-600 text-slate-200 hover:bg-blue-700"},[It(dt(oe),{icon:dt(Zo),class:"mr-1"},null,8,["icon"]),ne(" Admin panel ")]),j("dialog",{ref_key:"admin_modal",ref:n,class:"modal"},[j("div",Gx,[j("h2",jx,[It(dt(oe),{icon:dt(Zo),class:""},null,8,["icon"]),ne(" Admin panel ")]),Ux,j("div",null,[j("div",$x,[j("button",{onClick:F[1]||(F[1]=z=>dt(qr)()),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"},[It(dt(oe),{icon:dt(rp),size:"lg","fixed-width":""},null,8,["icon"]),ne(" Full refresh ")]),j("button",{onClick:F[2]||(F[2]=z=>dt(Tx)()),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"},[It(dt(oe),{icon:dt(Qg),size:"lg","fixed-width":""},null,8,["icon"]),ne(" Reset All Exercises ")]),j("button",{onClick:F[3]||(F[3]=z=>dt(_x)()),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"},[It(dt(oe),{icon:dt(Kg),size:"lg"},{default:Ul(()=>[ne(" fixed-width")]),_:1},8,["icon"]),ne(" Clear Live Logs ")])]),j("h3",qx,[It(dt(oe),{icon:dt(Jc),class:"mr-1"},null,8,["icon"]),ne(" Selected Exercises ")]),(yt(!0),At(Kt,null,Mi(dt(kx),z=>(yt(),At("div",{key:z.name,class:"form-control pl-3"},[j("label",Zx,[j("input",{onChange:H=>S(H.target.checked,z.uuid),type:"checkbox",checked:dt(hl).includes(z.uuid),value:z.uuid,class:ie(`checkbox ${dt(hl).includes(z.uuid)?"checkbox-success":""} [--fallback-bc:#94a3b8]`)},null,42,Kx),j("span",Jx,Wt(z.name),1)])]))),128)),j("h3",Qx,[It(dt(oe),{icon:dt(tp),class:"mr-1"},null,8,["icon"]),ne(" Diagnostic ")]),j("h4",tm,[em,j("span",im,[j("span",{class:ie({"rounded-lg py-1 px-2":!0,"dark:bg-neutral-800 bg-neutral-400 text-slate-800 dark:text-slate-200":c.value,"dark:bg-green-700 bg-green-500 text-slate-800 dark:text-slate-200":!c.value&&d.value,"dark:bg-red-700 bg-red-700 text-slate-200 dark:text-slate-200":!c.value&&!d.value})},[c.value?(yt(),At("span",am)):(yt(),At("span",sm,Wt(d.value?`Online (${dt(Wi).version.version})`:"Unreachable"),1))],2)])]),j("h4",rm,[nm,j("span",om,[j("span",{class:ie({"rounded-lg py-1 px-2":!0,"dark:bg-neutral-800 bg-neutral-400 text-slate-800 dark:text-slate-200":c.value,"dark:bg-green-700 bg-green-500 text-slate-800 dark:text-slate-200":!c.value&&m.value,"dark:bg-red-700 bg-red-700 text-slate-200 dark:text-slate-200":!c.value&&!m.value})},[c.value?(yt(),At("span",lm)):(yt(),At("span",cm,Wt(m.value?`ZMQ Active (${y.value} messages)`:"No message received yet"),1))],2)])]),c.value||d.value?(yt(),At(Kt,{key:0},[hm,j("div",dm,[c.value?(yt(),At("div",um,gm)):Xi("",!0),(yt(!0),At(Kt,null,Mi(dt(Wi).settings,(z,H)=>(yt(),At("div",{key:H},[j("div",null,[j("label",pm,[j("input",{type:"checkbox",checked:z,value:H,class:ie(`checkbox ${z?"checkbox-success":"checkbox-danger"} [--fallback-bc:#cbd5e1]`),disabled:""},null,10,xm),j("span",mm,Wt(H),1)])])]))),128))])],64)):Xi("",!0)])]),bm],512)],64))}},ym={class:"flex flex-col justify-center mt-1"},wm=j("span",{class:"mr-1"},"Socket.IO:",-1),km={class:"font-semibold text-green-600 dark:text-green-400"},Am={class:"font-semibold text-slate-50"},Sm={key:0,class:"text-xs font-thin leading-3 inline-block text-center"},Cm={__name:"TheSocketConnectionState",setup(s){const n=He("?");function c(){pl.value!==!1?n.value=parseInt((new Date().getTime()-pl.value*1e3)/1e3):n.value="?"}return _a(()=>{setInterval(()=>{c()},1e3)}),(d,m)=>(yt(),At("span",ym,[j("span",{class:ie({"px-2 rounded-md inline-block w-48 leading-4":!0,"text-slate-900 dark:text-slate-400":dt(Gi),"text-slate-50 bg-red-600 px-2 py-1":!dt(Gi)})},[wm,Kn(j("span",km,"Connected",512),[[fo,dt(Gi)]]),Kn(j("span",Am,"Disconnected",512),[[fo,!dt(Gi)]])],2),dt(Gi)?(yt(),At("span",Sm,[n.value==0?(yt(),At(Kt,{key:0},[ne(" online ")],64)):(yt(),At(Kt,{key:1},[ne(" Last keep-alive: "+Wt(n.value)+"s ago ",1)],64))])):Xi("",!0)]))}},Pm={class:"my-2 --ml-1 bg-slate-50 dark:bg-slate-600 py-1 pl-1 pr-3 rounded-md relative flex flex-col"},Lm={class:"text-xxs flex justify-between h-full items-center text-slate-500 dark:text-slate-300"},Em={class:"-rotate-90 w-8 -ml-3"},Tm=j("span",{class:"-rotate-90 w-8 text-xs"},"",-1),_m=j("span",{class:"-rotate-90 w-8 text-lg"},"",-1),Im=j("span",{class:"-rotate-90 w-8 text-xs"},"",-1),Mm=j("span",{class:"-rotate-90 w-8 -mr-1.5"},"- 0min",-1),Om={__name:"TheLiveLogsActivityGraph",setup(s){const n=He(null),c=[{data:Array.from(Array(12*20)).map(()=>0)}],d=Et(()=>pr.value.length>0),m=Et(()=>pr.value?y.value:c.value),y=Et(()=>[{data:Array.from(pr.value)}]),S=Et(()=>({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:ti.value?.35:.15},animations:{enabled:!1,easing:"easeinout",speed:200}},colors:[ti.value?"#008ffb":"#1f9eff"],plotOptions:{bar:{columnWidth:"80%"}},yaxis:{min:0,labels:{show:!1}},tooltip:{enabled:!1}}));return(L,I)=>{const F=$l("apexchart");return yt(),At("div",Pm,[j("div",{class:ie(`${d.value?"absolute":"hidden"} h-10 -mt-1 w-full z-40`)},[j("div",Lm,[j("span",Em,"- "+Wt(dt(Px).buffer_timestamp_min)+"min",1),Tm,_m,Im,Mm])],2),j("i",{class:ie(["text-center text-slate-600 dark:text-slate-400",d.value?"hidden":"block"])}," - No recorded activity - ",2),It(F,{ref_key:"theChart",ref:n,class:ie(d.value?"block":"absolute h-8 w-full"),height:"32",width:"100%",options:S.value,series:m.value},null,8,["class","options","series"])])}}},Rm={class:"text-2xl mt-6 mb-2 font-bold text-blue-500 dark:text-blue-400"},zm={class:"mb-2 flex flex-wrap gap-x-3"},Fm={class:"rounded-lg py-1 px-2 dark:bg-sky-700 bg-sky-400 text-slate-800 dark:text-slate-200"},Nm={class:"mr-1"},Xm={class:"font-bold"},Ym={class:"rounded-lg py-1 px-2 dark:bg-sky-700 bg-sky-400 text-slate-800 dark:text-slate-200"},Dm={class:"mr-1"},Hm={class:"font-bold"},Bm={class:"rounded-lg py-1 px-2 dark:bg-sky-700 bg-sky-400 text-slate-800 dark:text-slate-200"},Wm={class:"mr-1"},Vm={class:"font-bold"},Gm={class:"flex items-center"},jm={class:"mr-1 flex items-center cursor-pointer text-slate-700 dark:text-slate-300"},Um=["checked"],$m={class:"flex items-center"},qm={class:"mr-1 flex items-center cursor-pointer text-slate-700 dark:text-slate-300"},Zm=["checked"],Km={class:"bg-white dark:bg-slate-800 rounded-lg shadow-xl w-full"},Jm=j("thead",null,[j("tr",{class:"font-medium dark:text-slate-200 text-slate-600"},[j("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 pl-6 text-left"}),j("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 pl-2 text-left"},"User"),j("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 text-left"},"Time"),j("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 text-left"},"URL"),j("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 text-left"},"Payload")])],-1),Qm={key:0},tb=j("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"},[j("i",null,"- No logs yet -")],-1),eb=[tb],ib={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"},ab={class:"inline ml-1"},sb=["title"],rb={class:"text-lg font-bold font-mono"},nb={class:"text-xs font-mono"},ob={class:"border-b border-slate-100 dark:border-slate-700 text-slate-600 dark:text-slate-400 p-1"},lb={class:"border-b border-slate-100 dark:border-slate-700 text-sky-600 dark:text-sky-400 p-1"},cb={class:"flex items-center"},hb={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"},db={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"},ub={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"},fb={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"},gb={class:"text-sm inline"},pb={class:"border-b border-slate-100 dark:border-slate-700 text-slate-600 dark:text-slate-300 p-1"},xb={key:0,class:"border border-slate-200 dark:border-slate-600 bg-slate-100 dark:bg-slate-600 rounded-md"},mb={class:"p-1 text-xs"},bb={__name:"TheLiveLogs",setup(s){const n=He(!1),c=He(!1);Te(n,m=>{Mx(m==!0)}),Te(c,m=>{Ox(m==!0)});function d(m){return String(m).startsWith("2")?"text-green-500":String(m).startsWith("5")?"text-red-600":"text-amber-600"}return(m,y)=>(yt(),At(Kt,null,[j("h3",Rm,[It(dt(oe),{icon:dt(Ko)},null,8,["icon"]),ne(" Live logs ")]),j("div",zm,[j("span",Fm,[j("span",Nm,[It(dt(oe),{icon:dt(Zg),size:"sm"},null,8,["icon"]),ne(" Players: ")]),j("span",Xm,Wt(dt(Cx)),1)]),j("span",Ym,[j("span",Dm,[It(dt(oe),{icon:dt(Ko),size:"sm"},null,8,["icon"]),ne(" Total Queries: ")]),j("span",Hm,Wt(dt(Ax)),1)]),j("span",Bm,[j("span",Wm,[It(dt(oe),{icon:dt(dr),size:"sm",mask:dt(hr),transform:"shrink-7 left-1"},null,8,["icon","mask"]),ne(" Total API Queries: ")]),j("span",Vm,Wt(dt(Sx)),1)]),j("span",Gm,[j("label",jm,[j("input",{type:"checkbox",class:"toggle toggle-warning [--fallback-su:#22c55e] mr-1",checked:n.value,onChange:y[0]||(y[0]=S=>n.value=!n.value)},null,40,Um),ne(" Verbose ")])]),j("span",$m,[j("label",qm,[j("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,Zm),It(dt(oe),{icon:dt(dr),size:"sm",mask:dt(hr),transform:"shrink-7 left-1",class:"mr-1"},null,8,["icon","mask"]),ne(" API Queries ")])])]),It(Om),j("table",Km,[Jm,j("tbody",null,[dt(fl).length==0?(yt(),At("tr",Qm,eb)):(yt(!0),At(Kt,{key:1},Mi(dt(fl),S=>(yt(),At("tr",{key:S.id},[j("td",ib,[It(dt(oe),{icon:dt(Jg),size:"xs",class:ie(d(S.response_code))},null,8,["icon","class"]),j("pre",ab,Wt(S.response_code),1)]),j("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},[j("span",rb,Wt(S.user.split("@")[0]),1),j("span",nb,"@"+Wt(S.user.split("@")[1]),1)],8,sb),j("td",ob,Wt(S.time),1),j("td",lb,[j("div",cb,[S.http_method=="POST"?(yt(),At("span",hb,"POST")):S.http_method=="PUT"?(yt(),At("span",db,"PUT")):S.http_method=="DELETE"?(yt(),At("span",ub,"DEL")):(yt(),At("span",fb,Wt(S.http_method),1)),S.is_api_request?(yt(),ji(dt(oe),{key:4,class:"text-slate-800 dark:text-slate-100 mr-1 inline-block",icon:dt(dr),mask:dt(hr),transform:"shrink-7 left-1"},null,8,["icon","mask"])):Xi("",!0),j("pre",gb,Wt(S.url),1)])]),j("td",pb,[S.http_method=="POST"?(yt(),At("div",xb,[j("pre",mb,Wt(JSON.stringify(S.payload,null,2)),1)])):Xi("",!0)])]))),128))])])],64))}},vb=["title"],yb={__name:"LiveLogsUserActivityGraph",props:["user_id"],setup(s){const n=s;He(null);const c=Et(()=>gl.value.activity_buffer_size),d=Et(()=>gl.value.timestamp_min),m=Array.from(Array(c.value)).map(()=>0),y=Et(()=>xr.value.length!=0),S=Et(()=>y.value?L.value:m),L=Et(()=>{const z=xr.value[n.user_id]===void 0?m:xr.value[n.user_id];return[{data:Array.from(z)}]}),I=[1,3,5,7,9,1e3],F=Et(()=>({chart:{height:12,width:224,type:"heatmap",sparkline:{enabled:!0},animations:{enabled:!1,easing:"easeinout",speed:200}},dataLabels:{enabled:!1,style:{fontSize:"10px",fontWeight:"400"}},plotOptions:{heatmap:{radius:2,enableShades:!1,shadeIntensity:.5,reverseNegativeShade:!0,distributed:!1,useFillColorAsStroke:!1,colorScale:{ranges:[{from:0,to:I[0],color:ti.value?"#1e3a8a":"#bfdbfe"},{from:I[0]+1,to:I[1],color:ti.value?"#1d4ed8":"#93c5fd"},{from:I[1]+1,to:I[2],color:ti.value?"#2563eb":"#60a5fa"},{from:I[2]+1,to:I[3],color:(ti.value,"#3b82f6")},{from:I[3]+1,to:I[4],color:ti.value?"#60a5fa":"#2563eb"},{from:I[4]+1,to:I[5],color:ti.value?"#93c5fd":"#1d4ed8"}],min:0,max:1e3}}},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},grid:{show:!1},legend:{show:!0},stroke:{width:0},tooltip:{enabled:!1}}));return(z,H)=>{const G=$l("apexchart");return yt(),At("span",{class:"h-3 w-52",title:`Activity over ${d.value}min`},[It(G,{type:"heatmap",height:"12",width:"224",options:F.value,series:S.value},null,8,["options","series"])],8,vb)}}},wb={class:"text-2xl mt-6 mb-2 font-bold text-blue-500 dark:text-blue-400"},kb={key:0,class:"text-center text-slate-600 dark:text-slate-400 p-3 pl-6"},Ab=j("i",null,"- No Exercise available -",-1),Sb=[Ab],Cb=["onClick"],Pb=["colspan"],Lb={class:"flex justify-between items-center"},Eb={class:"dark:text-blue-200 text-slate-200"},Tb={class:"text-lg"},_b={class:""},Ib=j("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 pl-6 text-left"},"User",-1),Mb=["title"],Ob={class:"flex flex-col"},Rb={class:"text-center font-normal text-sm dark:text-blue-200 text-slate-500 text-nowrap"},zb={class:"text-center"},Fb=j("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 text-left"},"Progress",-1),Nb={key:0},Xb=["colspan"],Yb=j("i",null,"- No user yet -",-1),Db=[Yb],Hb={class:"border-b border-slate-200 dark:border-slate-700 text-slate-600 dark:text-slate-400 p-0 pl-2 relative"},Bb={class:"flex flex-col max-w-60"},Wb=["title"],Vb={class:"text-lg font-bold font-mono leading-5 tracking-tight"},Gb={class:"text-xs font-mono tracking-tight"},jb=["onClick"],Ub={class:"flex flex-col"},$b={class:"text-nowrap"},qb={class:"text-sm leading-3"},Zb={key:1},Kb={class:"border-b border-slate-200 dark:border-slate-700 text-slate-500 dark:text-slate-400 p-3"},Jb=["aria-valuenow"],Qb={__name:"TheScores",setup(s){const n=He([]);function c(S,L,I,F){Ex(S,L,I,F)}function d(S){const L=n.value.indexOf(S);L>=0?n.value.splice(L,1):n.value.push(S)}const m=Et(()=>dl.value.length>0),y=Et(()=>Object.keys(ul.value).length>0);return(S,L)=>(yt(),At(Kt,null,[j("h3",wb,[It(dt(oe),{icon:dt(Jc)},null,8,["icon"]),ne(" Active Exercises ")]),m.value?Xi("",!0):(yt(),At("div",kb,Sb)),(yt(!0),At(Kt,null,Mi(dt(dl),(I,F)=>(yt(),At("table",{key:I.name,class:"bg-white dark:bg-slate-800 rounded-lg shadow-xl w-full mb-4"},[j("thead",null,[j("tr",{onClick:z=>d(F),class:"cursor-pointer"},[j("th",{colspan:2+I.tasks.length,class:"rounded-t-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"},[j("div",Lb,[j("span",Eb,"# "+Wt(F+1),1),j("span",Tb,Wt(I.name),1),j("span",_b,[ne(" Level: "),j("span",{class:ie({"rounded-lg px-1 ml-2":!0,"dark:bg-sky-400 bg-sky-400 text-neutral-950":I.level=="beginner","dark:bg-orange-400 bg-orange-400 text-neutral-950":I.level=="advanced","dark:bg-red-600 bg-red-600 text-neutral-950":I.level=="expert"})},Wt(I.level),3)])])],8,Pb)],8,Cb),j("tr",{class:ie(`font-medium text-slate-600 dark:text-slate-200 ${n.value.includes(F)?"hidden":""}`)},[Ib,(yt(!0),At(Kt,null,Mi(I.tasks,(z,H)=>(yt(),At("th",{key:z.name,class:"border-b border-slate-100 dark:border-slate-700 p-3 align-top",title:z.description},[j("div",Ob,[j("span",Rb,"Task "+Wt(H+1),1),j("i",zb,Wt(z.name),1)])],8,Mb))),128)),Fb],2)]),j("tbody",{class:ie(`${n.value.includes(F)?"hidden":""}`)},[y.value?(yt(!0),At(Kt,{key:1},Mi(dt(ul),(z,H)=>(yt(),At("tr",{key:H,class:"bg-slate-100 dark:bg-slate-900"},[j("td",Hb,[j("span",Bb,[j("span",{title:H,class:"text-nowrap inline-block leading-5 truncate"},[z.exercises[I.uuid].score/z.exercises[I.uuid].max_score==1?(yt(),ji(dt(oe),{key:0,icon:dt(ip),class:"mr-1 text-amber-300"},null,8,["icon"])):Xi("",!0),j("span",Vb,Wt(z.email.split("@")[0]),1),j("span",Gb,"@"+Wt(z.email.split("@")[1]),1)],8,Wb),It(yb,{user_id:H},null,8,["user_id"])])]),(yt(!0),At(Kt,null,Mi(I.tasks,(G,J)=>{var bt;return yt(),At("td",{key:J,class:"text-center border-b border-slate-200 dark:border-slate-700 text-slate-500 dark:text-slate-400 p-2"},[j("span",{class:"select-none cursor-pointer flex justify-center content-center flex-wrap h-9",onClick:lt=>c(z.exercises[I.uuid].tasks_completion[G.uuid],H,I.uuid,G.uuid)},[j("span",Ub,[j("span",$b,[z.exercises[I.uuid].tasks_completion[G.uuid]?(yt(),ji(dt(oe),{key:0,icon:dt(np),class:ie(`text-xl ${z.exercises[I.uuid].tasks_completion[G.uuid]?"dark:text-green-400 text-green-600":"dark:text-slate-500 text-slate-400"}`)},null,8,["icon","class"])):((bt=G.requirements)==null?void 0:bt.inject_uuid)!==void 0&&!z.exercises[I.uuid].tasks_completion[G.requirements.inject_uuid]?(yt(),ji(dt(oe),{key:1,title:"All requirements for that task haven't been fullfilled yet",icon:dt(qg),class:ie(`text-lg ${z.exercises[I.uuid].tasks_completion[G.uuid]?"dark:text-green-400 text-green-600":"dark:text-slate-500 text-slate-400"}`)},null,8,["icon","class"])):(yt(),ji(dt(oe),{key:2,icon:dt(sp),class:ie(`text-xl ${z.exercises[I.uuid].tasks_completion[G.uuid]?"dark:text-green-400 text-green-600":"dark:text-slate-500 text-slate-400"}`)},null,8,["icon","class"])),j("small",{class:ie(z.exercises[I.uuid].tasks_completion[G.uuid]?"dark:text-green-400 text-green-600":"dark:text-slate-500 text-slate-400")}," (+"+Wt(G.score)+")",3)]),j("span",qb,[z.exercises[I.uuid].tasks_completion[G.uuid].timestamp?(yt(),At("span",{key:0,class:ie(z.exercises[I.uuid].tasks_completion[G.uuid].first_completion?"font-bold":"font-extralight")},Wt(new Date(z.exercises[I.uuid].tasks_completion[G.uuid].timestamp*1e3).toTimeString().split(" ",1)[0]),3)):(yt(),At("span",Zb))])])],8,jb)])}),128)),j("td",Kb,[j("div",{class:"flex w-full h-2 bg-gray-200 rounded-full overflow-hidden dark:bg-neutral-600",role:"progressbar","aria-valuenow":z.exercises[I.uuid].score,"aria-valuemin":0,"aria-valuemax":"100"},[j("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:Ms(`width: ${100*(z.exercises[I.uuid].score/z.exercises[I.uuid].max_score)}%`)},null,4)],8,Jb)])]))),128)):(yt(),At("tr",Nb,[j("td",{colspan:2+I.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"},Db,8,Xb)]))],2)]))),128))],64))}},tv={__name:"TheDahboard",setup(s){return Te(Gi,n=>{n&&(Lx(),qr())}),_a(()=>{qr()}),(n,c)=>(yt(),At(Kt,null,[It(Qb),It(bb)],64))}},ev=j("h1",{class:"text-2xl text-center text-slate-500 dark:text-slate-400 absolute top-1 left-1"},"Exercise Dashboard",-1),iv={class:"absolute top-1 right-1"},av={class:"flex gap-2"},sv={__name:"App",setup(s){return _a(()=>{ti.value&&document.getElementsByTagName("body")[0].classList.add("dark")}),(n,c)=>(yt(),At("main",null,[ev,j("div",iv,[j("div",av,[It(dp),It(vm),It(Cm)])]),It(tv)]))}},bh=Ju(sv);bh.use(As);bh.mount("#app");