(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 C of y.addedNodes)C.tagName==="LINK"&&C.rel==="modulepreload"&&d(C)}).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{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{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;cle(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=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;n0){d._dirtyLevel=2;continue}let m;d._dirtyLevel{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 C=ms.get(s);if(!C)return;let L=[];if(n==="clear")L=[...C.values()];else if(c==="length"&&wt(s)){const I=Number(d);C.forEach((R,X)=>{(X==="length"||!Hi(X)&&X>=I)&&L.push(R)})}else switch(c!==void 0&&L.push(C.get(c)),n){case"add":wt(s)?Qr(c)&&L.push(C.get("length")):(L.push(C.get(Fi)),Zi(s)&&L.push(C.get(vr)));break;case"delete":wt(s)||(L.push(C.get(Fi)),Zi(s)&&L.push(C.get(vr)));break;case"set":Zi(s)&&L.push(C.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,C=this.length;y{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 C=wt(n);if(!m){if(C&&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)?C&&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 C=wt(n)&&Qr(c)?Number(c)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:C}=Os(m),L=d?sn:c?on:ya;if(C.call(m,n))return L(s.get(n));if(C.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 C=m.call(c,s);return c.set(s,n),y?bi(n,C)&&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,C=y.__v_raw,L=Yt(C),I=n?sn:s?on:ya;return!s&&Ce(L,"iterate",Fi),C.forEach((R,X)=>d.call(m,I(R),I(X),y))}}function Va(s,n,c){return function(...d){const m=this.__v_raw,y=Yt(m),C=Zi(y),L=s==="entries"||s===Symbol.iterator&&C,I=s==="keys"&&C,R=m[s](...d),X=c?sn:n?on:ya;return!n&&Ce(y,"iterate",I?vr:Fi),{next(){const{value:D,done:G}=R.next();return G?{value:D,done:G}:{value:L?[X(D[0]),X(D[1])]:X(D),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 C=ud(s);if(C===0)return s;const L=new Proxy(s,C===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>>1,m=xe[d],y=ka(m);yVe&&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(;cka(c)-ka(d));if(Ki.length=0,fi){fi.push(...n);return}for(fi=n,Ii=0;Iis.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;Vele(J)?J.trim():J)),D&&(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 R=d[L+"Once"];if(R){if(!s.emitted)s.emitted={};else if(s.emitted[L])return;s.emitted[L]=!0,De(R,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 C={},L=!1;if(!St(s)){const I=R=>{const X=Gl(R,n,!0);X&&(L=!0,he(C,X))};!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=>C[I]=null):he(C,y),qt(s)&&d.set(s,C),C)}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 C;try{C=s(...m)}finally{vs(y),d._d&&oo(1)}return C};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:C,attrs:L,emit:I,render:R,renderCache:X,props:D,data:G,setupState:J,ctx:bt,inheritAttrs:lt}=s,Ot=vs(s);let et,z;try{if(c.shapeFlag&4){const ut=m||d,W=ut;et=We(R.call(W,ut,X,D,J,G,bt)),z=L}else{const ut=n;et=We(ut.length>1?ut(D,{attrs:L,slots:C,emit:I}):ut(D,null)),z=n.props?L:Ed(L)}}catch(ut){xa.length=0,Rs(ut,s,1),et=It(Ni)}let ct=et;if(z&<!==!1){const ut=Object.keys(z),{shapeFlag:W}=ct;ut.length&&W&7&&(y&&ut.some(Kr)&&(z=Td(z,y)),ct=Qi(ct,z,!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:C,children:L,patchFlag:I}=n,R=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,C,R):!!C;if(I&8){const X=n.dynamicProps;for(let D=0;Ds.__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=(...C)=>{ki();const L=Ia(c),I=De(n,c,s,C);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;mn(C,L,void 0,y));else{const C=Object.keys(s);m=new Array(C.length);for(let L=0,I=C.length;L!!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:C,type:L,appContext:I}=s;let R;if(n[0]!=="$"){const J=C[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 C[n]=1,d[n];if(m!==Vt&&Nt(m,n))return C[n]=2,m[n];if((R=s.propsOptions[0])&&Nt(R,n))return C[n]=3,y[n];if(c!==Vt&&Nt(c,n))return C[n]=4,c[n];kr&&(C[n]=0)}}const X=ga[n];let D,G;if(X)return n==="$attrs"&&Ce(s.attrs,"get",""),X(s);if((D=L.__cssModules)&&(D=D[n]))return D;if(c!==Vt&&Nt(c,n))return C[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}},C){let L;return!!c[C]||s!==Vt&&Nt(s,C)||er(n,C)||(L=y[0])&&Nt(L,C)||Nt(d,C)||Nt(ga,C)||Nt(m.config.globalProperties,C)},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:C,watch:L,provide:I,inject:R,created:X,beforeMount:D,mounted:G,beforeUpdate:J,updated:bt,activated:lt,deactivated:Ot,beforeDestroy:et,beforeUnmount:z,destroyed:ct,unmounted:ut,render:W,renderTracked:it,renderTriggered:Mt,errorCaptured:Ut,serverPrefetch:re,expose:de,inheritAttrs:mt,components:Lt,directives:ge,filters:Tt}=n;if(R&&Gd(R,d,null),C)for(const Xt in C){const Rt=C[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=Pt({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])})}X&&Qn(X,s,"c");function Zt(Xt,Rt){wt(Rt)?Rt.forEach(Le=>Xt(Le.bind(c))):Rt&&Xt(Rt.bind(c))}if(Zt(ql,D),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,z),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),Lt&&(s.components=Lt),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:C=>y.value=C}):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:C}}=s.appContext,L=y.get(n);let I;return L?I=L:!m.length&&!c&&!d?I=n:(I={},m.length&&m.forEach(R=>ys(I,R,C,!0)),ys(I,n,C)),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(C=>ys(s,C,c,!0));for(const C in n)if(!(d&&C==="expose")){const L=jd[C]||c&&c[C];s[C]=L?L(s[C],n[C]):n[C]}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;c1)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 C in s.propsOptions[0])C in m||(m[C]=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:C}}=s,L=Yt(m),[I]=s.propsOptions;let R=!1;if((d||C>0)&&!(C&16)){if(C&8){const X=s.vnode.dynamicProps;for(let D=0;D{I=!0;const[G,J]=rc(D,n,!0);he(C,G),J&&L.push(...J)};!c&&n.mixins.length&&n.mixins.forEach(X),s.extends&&X(s.extends),s.mixins&&s.mixins.forEach(X)}if(!y&&!I)return qt(s)&&d.set(s,qi),qi;if(wt(y))for(let X=0;X-1,J[1]=lt<0||bt-1||Nt(J,"default"))&&L.push(D)}}}const R=[C,L];return qt(s)&&d.set(s,R),R}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 C=dn(y);n[m]=()=>C}}},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,C=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)),C=n}else n&&(lc(s,n),C={default:1});if(y)for(const L in m)!nc(L)&&C[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,C=m?null:y,{i:L,r:I}=s,R=n&&n.r,X=L.refs===Vt?L.refs={}:L.refs,D=L.setupState;if(R!=null&&R!==I&&(le(R)?(X[R]=null,Nt(D,R)&&(D[R]=null)):ve(R)&&(R.value=null)),St(I))mi(I,L,12,[C,X]);else{const G=le(I),J=ve(I);if(G||J){const bt=()=>{if(s.f){const lt=G?Nt(D,I)?D[I]:X[I]:I.value;m?wt(lt)&&Jr(lt,y):wt(lt)?lt.includes(y)||lt.push(y):G?(X[I]=[y],Nt(D,I)&&(D[I]=X[I])):(I.value=[y],s.k&&(X[s.k]=I.value))}else G?(X[I]=C,Nt(D,I)&&(D[I]=C)):J&&(I.value=C,s.k&&(X[s.k]=C))};C?(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:C,createText:L,createComment:I,setText:R,setElementText:X,parentNode:D,nextSibling:G,setScopeId:J=Me,insertStaticContent:bt}=s,lt=(Y,H,U,q=null,Z=null,Q=null,rt=void 0,tt=null,at=!!H.dynamicChildren)=>{if(Y===H)return;Y&&!na(Y,H)&&(q=Ci(Y),Jt(Y,Z,Q,!0),Y=null),H.patchFlag===-2&&(at=!1,H.dynamicChildren=null);const{type:K,ref:nt,shapeFlag:xt}=H;switch(K){case Ns:Ot(Y,H,U,q);break;case Ni:et(Y,H,U,q);break;case cs:Y==null&&z(H,U,q,rt);break;case Kt:Lt(Y,H,U,q,Z,Q,rt,tt,at);break;default:xt&1?W(Y,H,U,q,Z,Q,rt,tt,at):xt&6?ge(Y,H,U,q,Z,Q,rt,tt,at):(xt&64||xt&128)&&K.process(Y,H,U,q,Z,Q,rt,tt,at,Re)}nt!=null&&Z&&Cr(nt,Y&&Y.ref,Q,H||Y,!H)},Ot=(Y,H,U,q)=>{if(Y==null)d(H.el=L(H.children),U,q);else{const Z=H.el=Y.el;H.children!==Y.children&&R(Z,H.children)}},et=(Y,H,U,q)=>{Y==null?d(H.el=I(H.children||""),U,q):H.el=Y.el},z=(Y,H,U,q)=>{[Y.el,Y.anchor]=bt(Y.children,H,U,q,Y.el,Y.anchor)},ct=({el:Y,anchor:H},U,q)=>{let Z;for(;Y&&Y!==H;)Z=G(Y),d(Y,U,q),Y=Z;d(H,U,q)},ut=({el:Y,anchor:H})=>{let U;for(;Y&&Y!==H;)U=G(Y),m(Y),Y=U;m(H)},W=(Y,H,U,q,Z,Q,rt,tt,at)=>{H.type==="svg"?rt="svg":H.type==="math"&&(rt="mathml"),Y==null?it(H,U,q,Z,Q,rt,tt,at):re(Y,H,Z,Q,rt,tt,at)},it=(Y,H,U,q,Z,Q,rt,tt)=>{let at,K;const{props:nt,shapeFlag:xt,transition:gt,dirs:vt}=Y;if(at=Y.el=C(Y.type,Q,nt&&nt.is,nt),xt&8?X(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 Et=ru(Z,gt);Et&>.beforeEnter(at),d(at,H,U),((K=nt&&nt.onVnodeMounted)||Et||vt)&&Ae(()=>{K&&Be(K,q,Y),Et&>.enter(at),vt&&Ti(Y,null,q,"mounted")},Z)},Mt=(Y,H,U,q,Z)=>{if(U&&J(Y,U),q)for(let Q=0;Q{for(let K=at;K{const tt=H.el=Y.el;let{patchFlag:at,dynamicChildren:K,dirs:nt}=H;at|=Y.patchFlag&16;const xt=Y.props||Vt,gt=H.props||Vt;let vt;if(U&&_i(U,!1),(vt=gt.onVnodeBeforeUpdate)&&Be(vt,U,H,Y),nt&&Ti(H,Y,U,"beforeUpdate"),U&&_i(U,!0),K?de(Y.dynamicChildren,K,tt,U,q,ir(H,Z),Q):rt||Rt(Y,H,tt,null,U,q,ir(H,Z),Q,!1),at>0){if(at&16)mt(tt,H,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 Et=H.dynamicProps;for(let Ht=0;Ht{vt&&Be(vt,U,H,Y),nt&&Ti(H,Y,U,"updated")},q)},de=(Y,H,U,q,Z,Q,rt)=>{for(let tt=0;tt{if(U!==q){if(U!==Vt)for(const tt in U)!ua(tt)&&!(tt in q)&&y(Y,tt,U[tt],null,rt,H.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,H.children,Z,Q,Qt)}"value"in q&&y(Y,"value",U.value,q.value,rt)}},Lt=(Y,H,U,q,Z,Q,rt,tt,at)=>{const K=H.el=Y?Y.el:L(""),nt=H.anchor=Y?Y.anchor:L("");let{patchFlag:xt,dynamicChildren:gt,slotScopeIds:vt}=H;vt&&(tt=tt?tt.concat(vt):vt),Y==null?(d(K,U,q),d(nt,U,q),Ut(H.children||[],U,nt,Z,Q,rt,tt,at)):xt>0&&xt&64&>&&Y.dynamicChildren?(de(Y.dynamicChildren,gt,U,Z,Q,rt,tt),(H.key!=null||Z&&H===Z.subTree)&&cc(Y,H,!0)):Rt(Y,H,U,nt,Z,Q,rt,tt,at)},ge=(Y,H,U,q,Z,Q,rt,tt,at)=>{H.slotScopeIds=tt,Y==null?H.shapeFlag&512?Z.ctx.activate(H,U,q,rt,at):Tt(H,U,q,Z,Q,rt,at):Pe(Y,H,at)},Tt=(Y,H,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,H,U)}}else Zt(tt,Y,H,U,Z,Q,rt)},Pe=(Y,H,U)=>{const q=H.component=Y.component;if(_d(Y,H,U))if(q.asyncDep&&!q.asyncResolved){Xt(q,H,U);return}else q.next=H,Sd(q.update),q.effect.dirty=!0,q.update();else H.el=Y.el,q.vnode=H},Zt=(Y,H,U,q,Z,Q,rt)=>{const tt=()=>{if(Y.isMounted){let{next:nt,bu:xt,u:gt,parent:vt,vnode:Et}=Y;{const hi=hc(Y);if(hi){nt&&(nt.el=Et.el,Xt(Y,nt,rt)),hi.asyncDep.then(()=>{Y.isUnmounted||tt()});return}}let Ht=nt,Ft;_i(Y,!1),nt?(nt.el=Et.el,Xt(Y,nt,rt)):nt=Et,xt&&Js(xt),(Ft=nt.props&&nt.props.onVnodeBeforeUpdate)&&Be(Ft,vt,nt,Et),_i(Y,!0);const ee=tr(Y),ye=Y.subTree;Y.subTree=ee,lt(ye,ee,D(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,Et),Z)}else{let nt;const{el:xt,props:gt}=H,{bm:vt,m:Et,parent:Ht}=Y,Ft=os(H);if(_i(Y,!1),vt&&Js(vt),!Ft&&(nt=gt&>.onVnodeBeforeMount)&&Be(nt,Ht,H),_i(Y,!0),xt&&Ze){const ee=()=>{Y.subTree=tr(Y),Ze(xt,Y.subTree,Y,Z,null)};Ft?H.type.__asyncLoader().then(()=>!Y.isUnmounted&&ee()):ee()}else{const ee=Y.subTree=tr(Y);lt(null,ee,U,q,Y,Z,Q),H.el=ee.el}if(Et&&Ae(Et,Z),!Ft&&(nt=gt&>.onVnodeMounted)){const ee=H;Ae(()=>Be(nt,Ht,ee),Z)}(H.shapeFlag&256||Ht&&os(Ht.vnode)&&Ht.vnode.shapeFlag&256)&&Y.a&&Ae(Y.a,Z),Y.isMounted=!0,H=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,H,U)=>{H.component=Y;const q=Y.vnode.props;Y.vnode=H,Y.next=null,Qd(Y,H.props,q,U),iu(Y,H.children,U),ki(),$n(Y),Ai()},Rt=(Y,H,U,q,Z,Q,rt,tt,at=!1)=>{const K=Y&&Y.children,nt=Y?Y.shapeFlag:0,xt=H.children,{patchFlag:gt,shapeFlag:vt}=H;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&&X(U,xt)):nt&16?vt&16?Si(K,xt,U,q,Z,Q,rt,tt,at):Qt(K,Z,Q,!0):(nt&8&&X(U,""),vt&16&&Ut(xt,U,q,Z,Q,rt,tt,at))},Le=(Y,H,U,q,Z,Q,rt,tt,at)=>{Y=Y||qi,H=H||qi;const K=Y.length,nt=H.length,xt=Math.min(K,nt);let gt;for(gt=0;gtnt?Qt(Y,Z,Q,!0,!1,xt):Ut(H,U,q,Z,Q,rt,tt,at,xt)},Si=(Y,H,U,q,Z,Q,rt,tt,at)=>{let K=0;const nt=H.length;let xt=Y.length-1,gt=nt-1;for(;K<=xt&&K<=gt;){const vt=Y[K],Et=H[K]=at?gi(H[K]):We(H[K]);if(na(vt,Et))lt(vt,Et,U,null,Z,Q,rt,tt,at);else break;K++}for(;K<=xt&&K<=gt;){const vt=Y[xt],Et=H[gt]=at?gi(H[gt]):We(H[gt]);if(na(vt,Et))lt(vt,Et,U,null,Z,Q,rt,tt,at);else break;xt--,gt--}if(K>xt){if(K<=gt){const vt=gt+1,Et=vtgt)for(;K<=xt;)Jt(Y[K],Z,Q,!0),K++;else{const vt=K,Et=K,Ht=new Map;for(K=Et;K<=gt;K++){const me=H[K]=at?gi(H[K]):We(H[K]);me.key!=null&&Ht.set(me.key,K)}let Ft,ee=0;const ye=gt-Et+1;let hi=!1,ra=0;const Li=new Array(ye);for(K=0;K=ye){Jt(me,Z,Q,!0);continue}let Ee;if(me.key!=null)Ee=Ht.get(me.key);else for(Ft=Et;Ft<=gt;Ft++)if(Li[Ft-Et]===0&&na(me,H[Ft])){Ee=Ft;break}Ee===void 0?Jt(me,Z,Q,!0):(Li[Ee-Et]=K+1,Ee>=ra?ra=Ee:hi=!0,lt(me,H[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=Et+K,Ee=H[me],Xa=me+1{const{el:Q,type:rt,transition:tt,children:at,shapeFlag:K}=Y;if(K&6){qe(Y.component.subTree,H,U,q);return}if(K&128){Y.suspense.move(H,U,q);return}if(K&64){rt.move(Y,H,U,Re);return}if(rt===Kt){d(Q,H,U);for(let xt=0;xttt.enter(Q),Z);else{const{leave:xt,delayLeave:gt,afterLeave:vt}=tt,Et=()=>d(Q,H,U),Ht=()=>{xt(Q,()=>{Et(),vt&&vt()})};gt?gt(Q,Et,Ht):Ht()}else d(Q,H,U)},Jt=(Y,H,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&&(H.renderCache[vt]=void 0),nt&256){H.ctx.deactivate(Y);return}const Et=nt&1&>,Ht=!os(Y);let Ft;if(Ht&&(Ft=rt&&rt.onVnodeBeforeUnmount)&&Be(Ft,H,Y),nt&6)ci(Y.component,U,q);else{if(nt&128){Y.suspense.unmount(U,q);return}Et&&Ti(Y,null,H,"beforeUnmount"),nt&64?Y.type.remove(Y,H,U,Z,Re,q):K&&(Q!==Kt||xt>0&&xt&64)?Qt(K,H,U,!1,!0):(Q===Kt&&xt&384||!Z&&nt&16)&&Qt(at,H,U),q&&li(Y)}(Ht&&(Ft=rt&&rt.onVnodeUnmounted)||Et)&&Ae(()=>{Ft&&Be(Ft,H,Y),Et&&Ti(Y,null,H,"unmounted")},U)},li=Y=>{const{type:H,el:U,anchor:q,transition:Z}=Y;if(H===Kt){Fa(U,q);return}if(H===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,H)=>{let U;for(;Y!==H;)U=G(Y),m(Y),Y=U;m(H)},ci=(Y,H,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,H,U)),tt&&Ae(tt,H),Ae(()=>{Y.isUnmounted=!0},H),H&&H.pendingBranch&&!H.isUnmounted&&Y.asyncDep&&!Y.asyncResolved&&Y.suspenseId===H.pendingId&&(H.deps--,H.deps===0&&H.resolve())},Qt=(Y,H,U,q=!1,Z=!1,Q=0)=>{for(let rt=Q;rtY.shapeFlag&6?Ci(Y.component.subTree):Y.shapeFlag&128?Y.suspense.next():G(Y.anchor||Y.el);let Oe=!1;const Pi=(Y,H,U)=>{Y==null?H._vnode&&Jt(H._vnode,null,null,!0):lt(H._vnode||null,Y,H,null,null,null,U),Oe||(Oe=!0,$n(),Wl(),Oe=!1),H._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>1,s[c[L]]0&&(n[d]=c[y-1]),c[y]=d)}}for(y=c.length,C=c[y-1];y-- >0;)c[y]=C,C=n[C];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;nls(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:C,onTrigger:L}=Vt){if(n&&y){const it=n;n=(...Mt)=>{it(...Mt),W()}}const I=fe,R=it=>d===!0?it:pi(it,d===!1?1:void 0);let X,D=!1,G=!1;if(ve(s)?(X=()=>s.value,D=bs(s)):fa(s)?(X=()=>R(s),D=!0):wt(s)?(G=!0,D=s.some(it=>fa(it)||bs(it)),X=()=>s.map(it=>{if(ve(it))return it.value;if(fa(it))return R(it);if(St(it))return mi(it,I,2)})):St(s)?n?X=()=>mi(s,I,2):X=()=>(J&&J(),De(s,I,3,[bt])):X=Me,n&&d){const it=X;X=()=>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,[X(),G?[]:void 0,bt]):X(),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||D||(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 z;m==="sync"?z=et:m==="post"?z=()=>Ae(et,I&&I.suspense):(et.pre=!0,I&&(et.id=I.uid),z=()=>cn(et));const ct=new tn(X,Me,z),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&<.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 C=Ia(this),L=dc(m,y.bind(d),c);return C(),L}function uc(s,n){const c=n.split(".");return()=>{let d=s;for(let m=0;m{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,C=!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&&!C&&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 C=le(s)?1:zd(s)?128:fu(s)?64:qt(s)?4:St(s)?2:0;return j(s,n,c,d,m,C,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:C,children:L,transition:I}=s,R=n?bu(m||{},n):m,X={__v_isVNode:!0,__v_skip:!0,type:s.type,props:R,key:R&&mc(R),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?C===-1?16:C|16:C,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(X,I.clone(X)),X}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;cfe||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(C=>C(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 C=mi(d,s,0,[s.props,m]);if(Ai(),y(),ml(C)){if(C.then(lo,lo),n)return C.then(L=>{co(s,L,n)}).catch(L=>{Rs(L,s,0)});s.asyncDep=C}else co(s,C,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:C}=s.appContext.config,{delimiters:L,compilerOptions:I}=d,R=he(he({isCustomElement:y,delimiters:L},C),I);d.render=ho(m,R)}}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 Pt=(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 C=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"?`${s}`:d==="mathml"?`${s}`: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[C?C.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 C of n.split(";")){const L=C.slice(0,C.indexOf(":")).trim();c[L]==null&&ds(d,L,"")}else for(const C in n)c[C]==null&&ds(d,C,"");for(const C in c)C==="display"&&(y=!0),ds(d,C,c[C])}else if(m){if(n!==c){const C=d[zu];C&&(c+=";"+C),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;msr||(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,C,L,I)=>{const R=m==="svg";n==="class"?Ru(s,d,R):n==="style"?Nu(s,c,d):Es(n)?Kr(n)||Bu(s,n,c,d,C):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):qu(s,n,d,R))?(Yu(s,n,d,y,C,L,I),(n==="value"||n==="checked"||n==="selected")&&mo(s,n,d,R,C,n!=="value")):(n==="true-value"?s._trueValue=d:n==="false-value"&&(s._falseValue=d),mo(s,n,d,R))};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 C=c(m,!1,Qu(m));return m instanceof Element&&(m.removeAttribute("v-cloak"),m.setAttribute("data-v-app","")),C},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"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=X(E);if(t){var a=X(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>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;e1&&arguments[1]!==void 0?arguments[1]:2;return Number.isInteger(t)?t:parseFloat(t.toPrecision(e))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(t){var e=String(t).split(/[eE]/);if(e.length===1)return e[0];var i="",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;a1&&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(){z.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),z.isIE()&&g.config.chart.type==="radialBar"||(l=Array.isArray(l)?l[i]:l,t.filter(function(p){var x=null;x=z.isSafari()||z.isFirefox()||z.isIE()?p.flood(l,h).composite(p.sourceAlpha,"in").offset(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,F,N){var B=F.x-O.x,$=F.y-O.y,V=Math.sqrt(B*B+$*$);return a(O,F,Math.min(1,N/V))}function a(O,F,N){return{x:O.x+(F.x-O.x)*N,y:O.y+(F.y-O.y)*N}}function r(O,F){O.length>2&&(O[O.length-2]=F.x,O[O.length-1]=F.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,F){var N=F.match("([a-zA-Z])(.+)");return N?(O.push(N[1]),O.push(N[2])):O.push(F),O},[]).reduce(function(O,F){return parseFloat(F)==F&&O.length?O[O.length-1].push(F):O.push([F]),O},[]),h=[];if(l.length>1){var f=o(l[0]),g=null;l[l.length-1][0]=="Z"&&l[0].length>2&&(g=["L",f.x,f.y],l[l.length-1]=g),h.push(l[0]);for(var p=1;p2&&v[0]=="L"&&w.length>2&&w[0]=="L"){var A,S,T=o(x),M=o(v),u=o(w);A=i(M,T,e),S=i(M,u,e),r(v,A),v.origPoint=M,h.push(v);var b=a(A,M,.5),k=a(M,S,.5),P=["C",b.x,b.y,k.x,k.y,S.x,S.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,F){return O+F.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,S=t.strokeDashArray,T=S===void 0?0:S,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,S=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,F=O&&this.w.config.chart.animations.dynamicAnimation.enabled,N=!!(O&&!k.globals.resized||F&&k.globals.dataChanged&&k.globals.shouldAnimate);N?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),S&&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&&F&&N&&_.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=z.hexToRgba(e,a)),i.length<9&&i.indexOf("#")===0&&(i=z.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 S=!(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(S?"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(S?"radial":"linear",function(u){(Array.isArray(f[g])?f[g]:f).forEach(function(b){u.at(b.offset/100,b.color,b.opacity)})}),S){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-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;a0&&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;rt&&i.globals.seriesX[r][l]0&&(e=!0),{comboBarCount:i,comboCharts:e}}},{key:"extendArrayProps",value:function(t,e,i){return e.yaxis&&(e=t.extendYAxis(e,i)),e.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),e.annotations.xaxis&&(e=t.extendXAxisAnnotations(e)),e.annotations.points&&(e=t.extendPointAnnotations(e))),e}}]),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(z.isNumber(o)){if(t.x2===null||t.x2===void 0){var f=this.annoCtx.graphics.drawLine(o+t.offsetX,0+t.offsetY,o+t.offsetX,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))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(z.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"}}},Lt=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,S=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:_,F=t.paddingTop,N=F===void 0?2:F,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-N,st.width+b+P,st.height+O+N,A,x||"transparent",1,v,S,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 S=i.globals.dom.baseEl.querySelector(w);return S&&S.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 Lt,x=Object.assign({},r==="xaxis"?p.xAxisAnnotation:r==="yaxis"?p.yAxisAnnotation:p.pointAnnotation),v=z.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:z.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=z.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,F){var N=O+"";for(F=F||2;N.length12?v-12:v===0?12:v;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+f(v))).replace(/(^|[^\\])H/g,"$1"+v)).replace(/(^|[^\\])hh+/g,"$1"+f(w))).replace(/(^|[^\\])h/g,"$1"+w);var A=a?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+f(A))).replace(/(^|[^\\])m/g,"$1"+A);var S=a?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+f(S))).replace(/(^|[^\\])s/g,"$1"+S);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=z.monthMod(t),!0){case this.months30.indexOf(t)>-1:t===2&&(i=this.isLeapYear(e)?29:28);break;case this.months31.indexOf(t)>-1:default:i=31}return i}}]),E}(),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 z.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(z.isNumber(i)){if(!e.config.xaxis.convertedCatToNumeric&&e.config.xaxis.type==="numeric"){if(z.isNumber(e.config.xaxis.decimalsInFloat))return i.toFixed(e.config.xaxis.decimalsInFloat);var 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 S="",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);S=u.formatDate(u.getDate(f),h.config.tooltip.x.format),T=u.formatDate(u.getDate(g),h.config.tooltip.x.format)}else S=f,T=g;else S=h.config.tooltip.x.formatter(f),T=h.config.tooltip.x.formatter(g);return{start:f,end:g,startVal:S,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=` `.concat(a,` - `).concat(r,` `);return'
'+(e||"")+'
'+i+": "+(E.w.globals.comboCharts?E.w.config.series[o].type==="rangeArea"||E.w.config.series[o].type==="rangeBar"?g:"".concat(f,""):g)+"
"},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(),z.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),d(d({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var t=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,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 z.extend(t,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;var e=t.dataLabels.formatter;return t.yaxis.forEach(function(i,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 z.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 z.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?`
`.concat(t.config.series[e].name?t.config.series[e].name:"series-"+(e+1),": ").concat(t.globals.series[e][i],`
`):'
')+"
".concat(a[0],': ')+o+"
"+"
".concat(a[1],': ')+l+"
"+(h?"
".concat(a[2],': ')+h+"
":"")+"
".concat(a[3],': ')+f+"
"+"
".concat(a[4],': ')+g+"
"}}]),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 Lt,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,S={};S=["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&&(S=r.funnel()),i.chart.stacked&&i.chart.type==="bar"&&(S=r.stackedBars()),(g=i.chart.brush)!==null&&g!==void 0&&g.enabled&&(S=r.brush(S)),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,S,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)&&(S=r.sparkline(S)),l=z.extend(o,S)}var T=z.extend(l,window.Apex);return o=z.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 Lt;(t.yaxis===void 0||!t.yaxis||Array.isArray(t.yaxis)&&t.yaxis.length===0)&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=z.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[z.extend(i.yAxis,t.yaxis)]:t.yaxis=z.extendArray(t.yaxis,i.yAxis);var 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=z.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 Lt;return t.annotations.yaxis=z.extendArray(t.annotations.yaxis!==void 0?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new Lt;return t.annotations.xaxis=z.extendArray(t.annotations.xaxis!==void 0?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new Lt;return t.annotations.points=z.extendArray(t.annotations.points!==void 0?t.annotations.points:[],e.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(t){t.theme&&t.theme.mode==="dark"&&(t.tooltip||(t.tooltip={}),t.tooltip.theme!=="light"&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.chart.background||(t.chart.background="#424242"),t.theme.palette||(t.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(t){var e=t;if(e.tooltip.shared&&e.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(e.chart.type==="bar"&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return e.chart.type!=="bar"&&e.chart.type!=="rangeBar"||e.tooltip.shared&&e.xaxis.crosshairs.width==="barWidth"&&e.series.length>1&&(e.xaxis.crosshairs.width="tickWidth"),e.chart.type!=="candlestick"&&e.chart.type!=="boxPlot"||e.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(e.chart.type," chart is not supported.")),e.yaxis[0].reversed=!1),e}}]),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=z.extend({},t),e.initialSeries=z.clone(t.series),e.lastXAxis=z.clone(e.initialConfig.xaxis),e.lastYAxis=z.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=z.hexToRgba(l,f)):l.indexOf("rgba")>-1&&(f=z.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-1&&(v=z.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?z.rgb2hex(e):e):g.shadeColor(parseFloat(o.gradient.shadeIntensity),e.indexOf("rgb")>-1?z.rgb2hex(e):e);else if(o.gradient.gradientToColors[h.seriesNumber]){var A=o.gradient.gradientToColors[h.seriesNumber];l=A,A.indexOf("rgba")>-1&&(w=z.getOpacityFromRGBA(A))}else l=e;if(o.gradient.gradientFrom&&(x=o.gradient.gradientFrom),o.gradient.gradientTo&&(l=o.gradient.gradientTo),o.gradient.inverseColors){var S=x;x=l,l=S}return x.indexOf("rgb")>-1&&(x=z.rgb2hex(x)),l.indexOf("rgb")>-1&&(l=z.rgb2hex(l)),f.drawGradient(p,x,l,v,w,h.size,o.gradient.stops,o.gradient.colorStops,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.length4&&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;v0:l.config.markers.size>0)||o||x){z.isNumber(f.y[v])?A+=" w".concat(z.randomId()):A="apexcharts-nullpoint";var S=this.getMarkerConfig({cssClass:A,seriesIndex:e,dataPointIndex:w});l.config.series[h].data[w]&&(l.config.series[h].data[w].fillColor&&(S.pointFillColor=l.config.series[h].data[w].fillColor),l.config.series[h].data[w].strokeColor&&(S.pointStrokeColor=l.config.series[h].data[w].strokeColor)),a&&(S.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)&&(S.pSize=0),(r=p.drawMarker(f.x[v],f.y[v],S)).attr("rel",w),r.attr("j",w),r.attr("index",e),r.node.setAttribute("default-marker-size",S.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;pS.maxBubbleRadius&&(A=S.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 S,T=x.fillPath({seriesNumber:r,dataPointIndex:o,color:A.pointFillColor,patternUnits:"objectBoundingBox",value:h.globals.series[r][l]});if(A.shape==="circle"?S=w.drawCircle(i):A.shape!=="square"&&A.shape!=="rect"||(S=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),S.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(S,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(S,0,A.shape==="circle"?a:{width:A.width,height:A.height},u,h.globals.easing,function(){window.setTimeout(function(){g.animationCompleted(S)},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 F=0;Fh.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+xe.globals.gridWidth+S.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),S.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;i0&&arguments[0]!==void 0)||arguments[0],e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=this.w,r=z.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-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=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=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;p0)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;g0)for(var a=0;a0?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=5?this.twoDSeries.push(z.parseNumber(t[e].data[o][4])):this.twoDSeries.push(z.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-1&&(o=this.activeSeriesIndex);for(var l=0;l1&&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 S=g.indexOf(w.group);f[S]||(f[S]=[]),f[S].push(w.name)}),o.seriesGroups=f}for(var p=function(){for(var w=0;w0&&(this.twoDSeriesX=h,o.seriesX.push(this.twoDSeriesX))),o.labels.push(this.twoDSeriesX);var v=t[x].data.map(function(w){return z.parseNumber(w)});o.series.push(v)}o.seriesZ.push(this.threeDSeries),t[x].name!==void 0?o.seriesNames.push(t[x].name):o.seriesNames.push("series-"+parseInt(x+1,10)),t[x].color!==void 0?o.seriesColors.push(t[x].color):o.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(t){var e=this.w.globals,i=this.w.config;e.series=t.slice(),e.seriesNames=i.labels.slice();for(var a=0;a0?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(S){return S.x===v.x})===w})}),o=r.reduce(function(p,x,v,w){return w[p].length>x.length?p:v},0),l=0;l4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",l=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],h=this.w,f=t[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 S,T;e.length>0?(S=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===S,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.x0){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(!z.isIE11())return t.replace(/ /g," ");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&&z.isIE11()){var g=window.canvg.Canvg.fromString(h,f,{ignoreClear:!0,ignoreDimensions:!0});g.start();var p=o.msToBlob();g.stop(),i({blob:p})}else{var x="data:image/svg+xml,"+encodeURIComponent(f),v=new Image;v.crossOrigin="anonymous",v.onload=function(){if(h.drawImage(v,0,0),o.msToBlob){var w=o.msToBlob();i({blob:w})}else{var A=o.toDataURL("image/png");i({imgURI:A})}},v.src=x}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var t=this;this.dataURI().then(function(e){var i=e.imgURI,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:[]}),S=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],F=new Qt(e.ctx).getActiveConfigSeriesIndex();_=O(f.globals.labels[P],{seriesIndex:F,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(" ")),z.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;O0&&!i.globals.isBarHorizontal&&(this.xaxisLabels=i.globals.timescaleLabels.slice()),i.config.xaxis.overwriteCategories&&(this.xaxisLabels=i.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],i.config.xaxis.position==="top"?this.offY=0:this.offY=i.globals.gridHeight+1,this.offY=this.offY+i.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=i.config.chart.type==="bar"&&i.config.plotOptions.bar.horizontal,this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.xaxisBorderWidth=i.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=i.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=i.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=i.config.xaxis.axisBorder.height,this.yaxis=i.config.yaxis[0]}return 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;o6&&arguments[6]!==void 0?arguments[6]:{},g=[],p=[],x=this.w,v=f.xaxisFontSize||this.xaxisFontSize,w=f.xaxisFontFamily||this.xaxisFontFamily,A=f.xaxisForeColors||this.xaxisForeColors,S=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 F=M-o(O,l)/2+x.config.xaxis.labels.offsetX;O===0&&u===1&&l/2===M&&b===1&&(F=x.globals.gridWidth/2);var N=h.axesUtils.getLabel(a,x.globals.timescaleLabels,F,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)),N=x.config.xaxis.tickAmount!==void 0&&x.config.xaxis.tickAmount!=="dataPoints"&&x.config.xaxis.type!=="datetime"?h.axesUtils.checkLabelBasedOnTickamount(O,N,u):h.axesUtils.checkForOverflowingLabels(O,N,u,g,p),x.config.xaxis.labels.show){var $=e.drawText({x:N.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:N.text,textAnchor:"middle",fontWeight:N.isBold?600:S,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(N.text)?N.text.join(" "):N.text,$.node.appendChild(V),N.text!==""&&(g.push(N.text),p.push(N))}}Oa.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;r0){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;x0&&(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;x2));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=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=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||!z.isNumber(t)&&!z.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(z.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),S=w*Math.ceil(e/w),T=A;if(r&&l>2){for(;h.push(z.stripNumber(T,7)),!((T+=w)>S););return{result:h,niceMin:h[0],niceMax:h[h.length-1]}}var M=t;(h=[]).push(z.stripNumber(M,7));for(var u=Math.abs(e-t)/i,b=0;b<=i;b++)M+=u,h.push(M);return h[h.length-2]>=e&&h.pop(),{result:h,niceMin:h[0],niceMax:h[h.length-1]}}},{key:"linearScale",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5,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));o5)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&&z.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&&z.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,S){l.forEach(function(T,M){var u,b;S!==M&&(u=A,b=T,u.filter(function(k){return b.indexOf(k)!==-1})).length>0&&(l[S]=l[S].concat(l[M]))})});var h=l.map(function(A){return A.filter(function(S,T){return A.indexOf(S)===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,S){return g.indexOf(JSON.stringify(A))===S});var p=[],x=[];t.forEach(function(A,S){f.forEach(function(T,M){T.indexOf(S)>-1&&(p[M]===void 0&&(p[M]=[],x[M]=[]),p[M].push({key:S,value:A}),x[M].push({key:S,value:e[S]}))})});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,S){A.forEach(function(T,M){v[S]=Math.min(T.value,v[S])})}),x.forEach(function(A,S){A.forEach(function(T,M){w[S]=Math.max(T.value,w[S])})}),t.forEach(function(A,S){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===S&&(r.yaxis[S].min!==void 0&&(u=typeof r.yaxis[S].min=="function"?r.yaxis[S].min(o.minY):r.yaxis[S].min),r.yaxis[S].max!==void 0&&(b=typeof r.yaxis[S].max=="function"?r.yaxis[S].max(o.maxY):r.yaxis[S].max),a.setYScaleForIndex(S,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=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(S,T){var M=S[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),S[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),kv&&(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;xg[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=0&&i<=10||e.yaxis[0].min!==void 0||e.yaxis[0].max!==void 0)&&(l=0),t.minY=i-5*l/100,i>0&&t.minY<0&&(t.minY=0),t.maxY=t.maxY+5*l/100}return e.yaxis.forEach(function(h,f){h.max!==void 0&&(typeof h.max=="number"?t.maxYArr[f]=h.max:typeof h.max=="function"&&(t.maxYArr[f]=h.max(t.isMultipleYAxis?t.maxYArr[f]:t.maxY)),t.maxY=t.maxYArr[f]),h.min!==void 0&&(typeof h.min=="number"?t.minYArr[f]=h.min:typeof h.min=="function"&&(t.minYArr[f]=h.min(t.isMultipleYAxis?t.minYArr[f]===Number.MIN_VALUE?0:t.minYArr[f]:t.minY)),t.minY=t.minYArr[f])}),t.isBarHorizontal&&["min","max"].forEach(function(h){e.xaxis[h]!==void 0&&typeof e.xaxis[h]=="number"&&(h==="min"?t.minY=e.xaxis[h]:t.maxY=e.xaxis[h])}),t.isMultipleYAxis?(this.scales.setMultipleYScales(),t.minY=i,t.yAxisScale.forEach(function(h,f){t.minYArr[f]=h.niceMin,t.maxYArr[f]=h.niceMax})):(this.scales.setYScaleForIndex(0,t.minY,t.maxY),t.minY=t.yAxisScale[0].niceMin,t.maxY=t.yAxisScale[0].niceMax,t.minYArr[0]=t.yAxisScale[0].niceMin,t.maxYArr[0]=t.yAxisScale[0].niceMax),{minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,yAxisScale:t.yAxisScale}}},{key:"setXRange",value:function(){var t=this.w.globals,e=this.w.config,i=e.xaxis.type==="numeric"||e.xaxis.type==="datetime"||e.xaxis.type==="category"&&!t.noLabelsProvided||t.noLabelsProvided||t.isXNumeric;if(t.isXNumeric&&function(){for(var l=0;lt.dataPoints&&t.dataPoints!==0&&(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;o0&&(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;e0){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;h0?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}(),H=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 S="";if(i.config.yaxis[t].labels.show)for(var T=function(F){var N=A[F];N=w(N,F,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:N,textAnchor:$,fontSize:o,fontFamily:l,fontWeight:h,maxWidth:i.config.yaxis[t].labels.maxWidth,foreColor:Array.isArray(V)?V[F]:V,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+r.cssClass});F===p&&(S=ht),g.add(ht);var pt=document.createElementNS(i.globals.SVGNS,"title");if(pt.textContent=Array.isArray(N)?N.join(" "):N,ht.node.appendChild(pt),i.config.yaxis[t].labels.rotate!==0){var kt=a.rotateAroundCenter(S.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=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 S=this.axesUtils.getLabel(g,p,A,v,this.drawnLabels,this.xaxisFontSize);A=S.x,w=S.text,this.drawnLabels.push(S.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=z.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=z.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=z.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;o0&&(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=z.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 H(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,S=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;(!z.isNumber(b)||b<0)&&(b=0);var k=t.config.xaxis.crosshairs.width;(!z.isNumber(k)||k<0)&&(k=0),u.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:b,width:k,height:b,fill:M,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),x&&(u=i.dropShadow(u,{left:v,top:w,blur:A,color:S,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=z.extend(x,f),f=z.extend(i.config,f),e.overrideResponsiveOptions(f)}else for(var v=0;v0&&typeof i.config.colors[0]=="function"&&(i.globals.colors=i.config.series.map(function(w,A){var S=i.config.colors[A];return S||(S=i.config.colors[0]),typeof S=="function"?(e.isColorFn=!0,S({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})):S}))),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;p2&&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.lengtht.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(t,e){var i=t;if(this.w.globals.isMultiLineX){var 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=z.getLargestStringFromArr(i),l=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,i);e.globals.isBarHorizontal&&(l=o=e.globals.yAxisScale[0].result.reduce(function(w,A){return w.length>A.length?w:A},0));var h=new 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=z.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,S=i.config.legend.position==="right"&&e.dCtx.lgRect.width>0?e.dCtx.lgRect.width:0;w>a.svgWidth-a.translateX-S&&(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((_=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=z.getLargestStringFromArr(A),v=p(v,{seriesIndex:l,dataPointIndex:-1,w:e}),w=t.dCtx.dimHelpers.getLargestStringFromMultiArr(v,A)}var S=new W(t.dCtx.ctx),T="rotate(".concat(o.labels.rotate," 0 0)"),M=S.getTextRects(v,o.labels.style.fontSize,o.labels.style.fontFamily,T,!1),u=M;v!==w&&(u=S.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 H(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.xAxisHeightp&&(this.yAxisWidth=p)}}]),E}(),Et=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=z.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;f0){for(var o=0;o-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 Et(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(),z.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),i.legend.position==="bottom"||i.legend.position==="top"?this.legendAlignHorizontal():i.legend.position!=="right"&&i.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var t=this,e=this.w,i=e.config.legend.fontFamily,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;w0)for(var A=0;A0?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 `),l("zoomOut",this.elZoomOut,` `);var h=function(p){t.t[p]&&e.config.chart[p].enabled&&o.push({el:p==="zoom"?t.elZoom:t.elSelection,icon:typeof t.t[p]=="string"?t.t[p]:p==="zoom"?` `:` `,title:t.localeValues[p==="zoom"?"selectionZoom":"selection"],class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(p,"-icon")})};h("zoom"),h("selection"),this.t.pan&&e.config.chart.zoom.enabled&&o.push({el:this.elPan,icon:typeof this.t.pan=="string"?this.t.pan:` `,title:this.localeValues.pan,class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),l("reset",this.elZoomReset,` `),this.t.download&&o.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var f=0;f0&&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,S=r.gridRect.getBoundingClientRect(),T=h.node.getBoundingClientRect();o.globals.isRangeBar?(x=o.globals.yAxisScale[0].niceMin+(T.left-S.left)*l.invertedYRatio,v=o.globals.yAxisScale[0].niceMin+(T.right-S.left)*l.invertedYRatio,w=0,A=1):(x=o.globals.xAxisScale.niceMin+(T.left-S.left)*l.xRatio,v=o.globals.xAxisScale.niceMin+(T.right-S.left)*l.xRatio,w=o.globals.yAxisScale[0].niceMin+(S.bottom-T.bottom)*l.yRatio[0],A=o.globals.yAxisScale[0].niceMax-(T.top-S.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 S=z.clone(o.globals.initialConfig.yaxis),T=z.clone(o.globals.initialConfig.xaxis);if(o.globals.zoomed=!0,o.config.xaxis.convertedCatToNumeric&&(x=Math.floor(x),v=Math.floor(v),x<1&&(x=1,v=o.globals.dataPoints),v-x<2&&(v=x+1)),r!=="xy"&&r!=="x"||(T={min:x,max:v}),r!=="xy"&&r!=="y"||S.forEach(function(_,O){S[O].min=A[O],S[O].max=w[O]}),o.config.chart.zoom.autoScaleYaxis){var M=new Ze(l.ctx);S=M.autoScaleY(l.ctx,S,{xaxis:T})}if(f){var u=f.getBeforeZoomRange(T,S);u&&(T=u.xaxis?u.xaxis:T,S=u.yaxis?u.yaxis:S)}var b={xaxis:T};o.config.chart.group||(b.yaxis=S),l.ctx.updateHelpers._updateOptions(b,!1,l.w.config.chart.animations.dynamicAnimation.enabled),typeof o.config.chart.events.zoomed=="function"&&f.zoomCallback(T,S)}else if(o.globals.selectionEnabled){var k,P=null;k={min:x,max:v},r!=="xy"&&r!=="y"||(P=z.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=z.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||(ir.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),S=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(F){return z.isNumber(F)})}),b=o.globals.seriesYvalues.map(function(O){return O.filter(function(F){return z.isNumber(F)})});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=S:o.globals.capturedDataPointIndex=A,{capturedSeries:T,j:o.globals.isBarHorizontal?S: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 S=Math.abs(t-w);S<=g&&(g=S,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;r0)for(var a=0;a *")):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 or?-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 ').concat(N.attrs.name,""),F+="
".concat(N.val,"
")}),u.innerHTML=O+"",b.innerHTML=F+""};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&&S[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?S[0].parentNode.style.display="none":S[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;o0&&(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;g0?(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;r2&&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=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=z.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),S=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&&!S?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())&&(S&&(g-=l.tooltipRect.ttWidth)<0&&(g=0),!S||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(),S=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(N){return r.globals.isXNumeric?u-M/2:e.isVerticalGroupedRangeBar?u+M/2:u-l.dataPointsDividedWidth+M/2},F=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-S.left+15,g=F()):(f=O(),g=i.clientY-S.top-l.tooltipRect.ttHeight/2-15):r.globals.isBarHorizontal?((f=u)0&&i.setAttribute("width",e.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var t=this.w,e=this.ttCtx;e.ycrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(t,e,i){var 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;l0&&this.addPathsEventListeners(w,p),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(p)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),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=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,fl.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 S=0;Sf.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;a5&&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 F=this.tooltipUtil.hasMarkers(i),N=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||(S=A[a])===null||S===void 0||(T=S.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})),F)_.globals.markers.largestSize>0?O.marker.enlargePoints(a):O.tooltipPosition.moveDynamicPointsOnHover(a);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(N),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;$t0&&a.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(w-=p*_)),P&&(w=w+v.height/2-u/2-2);var F=this.barCtx.series[r][o]<0,N=f;switch(this.barCtx.isReversed&&(N=f-x+(F?2*x:0),f-=x),T.position){case"center":A=P?F?N-x/2+k:N+x/2-k:F?N-x/2+v.height/2+k:N+x/2+v.height/2-k;break;case"bottom":A=P?F?N-x+k:N+x-k:F?N-x+v.height+u+k:N+x-v.height/2+u-k;break;case"top":A=P?F?N+k:N-k:F?N-v.height/2-k:N+v.height+k}if(this.barCtx.lastActiveBarSerieIndex===l&&M.enabled){var B=new W(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:l,j:o}),S.fontSize);e=F?N-B.height/2-k-M.offsetY+18:N+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,S=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,F=i;switch(this.barCtx.isReversed&&(F=i+g-(O?2*g:0),i=e.globals.gridWidth-g),A.position){case"center":x=O?F+g/2-T:Math.max(p.width/2,F-g/2)+T;break;case"bottom":x=O?F+g-v-Math.round(p.width/2)-T:F-g+v+Math.round(p.width/2)+T;break;case"top":x=O?F-v+Math.round(p.width/2)-T:F-v-Math.round(p.width/2)+T}if(this.barCtx.lastActiveBarSerieIndex===o&&S.enabled){var N=new W(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:r}),w.fontSize);O?(b=F-v+Math.round(N.width/2)-T-S.offsetX-15,_="end"):b=F-v-Math.round(N.width/2)+T+S.offsetX+15,k=P+S.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,S=null,T=p.globals.collapsedSeriesIndices.indexOf(r)>-1;if(g.enabled&&!T){S=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&&fMath.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:S,dataLabelsConfig:k,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return S}},{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;i0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=t[i].length),e.globals.isXNumeric)for(var a=0;ae.globals.minX&&e.globals.seriesX[i][a]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 S=A,T=A+w;r+=.001,o+=.001;var M=v.move(S,r),u=v.move(S,r),b=v.line(T-l,r);if(x.globals.previousPaths.length>0&&(u=this.barCtx.getPreviousPath(f,p,!1)),M=M+v.line(S,o)+v.line(T-l,o)+v.line(T-l,r)+(x.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),u=u+v.line(S,r)+b+b+b+b+b+v.line(S,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 S=w,T=w+A;r+=.001,o+=.001;var M=v.move(r,S),u=v.move(r,S);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,S)+v.line(o,T-l)+b+(x.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),u=u+v.line(r,S)+b+b+b+b+b+v.line(r,S)+(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;a2&&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 z,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,z.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++,hthis.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var l=0,h=0;l0&&(this.visibleI=this.visibleI+1);var u=0,b=0;this.yRatio.length>1&&(this.yaxisIndex=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||S.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 F=0;F0){var st=this.barHelpers.drawBarShadow({color:typeof V=="string"&&(V==null?void 0:V.indexOf("url"))===-1?V:z.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,F>0&&S.push(v+b/2),A.push(w),this.renderSeries({realIndex:T,pathFill:V,j:F,i:l,pathFrom:B.pathFrom,pathTo:B.pathTo,strokeWidth:N,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]=S,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,S=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,F=t.type,N=this.w,B=new W(this.ctx);a||(a=this.barOptions.distributed?N.globals.stroke.colors[r]:N.globals.stroke.colors[e]),N.config.series[o].data[r]&&N.config.series[o].data[r].strokeColor&&(a=N.config.series[o].data[r].strokeColor),this.isNullValue&&(i="none");var $=r/N.config.chart.animations.animateGradually.delay*(N.config.chart.animations.speed/N.globals.dataPoints)/2.4,V=B.renderPaths({i:o,j:r,realIndex:e,pathFrom:h,pathTo:f,stroke:a,strokeWidth:g,strokeLineCap:N.config.stroke.lineCap,fill:i,animationDelay:$,initialSpeed:N.config.chart.animations.speed,dataChangeSpeed:N.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(F,"-area")});V.attr("clip-path","url(#gridRectMask".concat(N.globals.cuid,")"));var st=N.config.forecastDataPoints;st.count>0&&r>=N.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:S,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++,M0&&(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 S=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:S.pathTo,pathFrom:S.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 S=this.getBarXForNumericXAxis({x:a,j:w,realIndex:x,barWidth:l});a=S.x,e=S.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;r0&&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){R(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 S=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:z.escapeString(o.globals.seriesNames[_]),rel:w+1,"data:realIndex":_});r.ctx.series.addCollapsedClassToSeries(O,_);var F=r.graphics.group({class:"apexcharts-datalabels","data:realIndex":_}),N=r.graphics.group({class:"apexcharts-bar-goals-markers"}),B=0,$=0,V=r.initialPositions(f,g,S,T,M,u);g=V.y,B=V.barHeight,T=V.yDivision,u=V.zeroW,f=V.x,$=V.barWidth,S=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;st1?(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,S=g+(p!==-1?p*o:0),T=r.i,M=r.j,u=0,b=0;b0){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:S,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:S,y2:o,elSeries:w}),g+=v,{pathTo:_.pathTo,pathFrom:_.pathFrom,goalX:this.barHelpers.getGoalValues("x",h,null,T,M),barYPosition:S,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,S=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;k0&&!v.globals.isXNumeric||P>0&&v.globals.isXNumeric&&v.globals.seriesX[w-1][A]===v.globals.seriesX[w][A]){var _,O,F,N=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=0?F-b+2*(this.isReversed?b:0):F;break}if(((ht=this.groupCtx.prevYVal[P-V])===null||ht===void 0?void 0:ht[A])>=0){O=this.series[w][A]>=0?F:F+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:S,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){R(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 S,T,M,u,b=void 0,k=void 0,P=[],_=[],O=l.globals.comboCharts?r[A]:A,F=h.group({class:"apexcharts-series",seriesName:z.escapeString(l.globals.seriesNames[O]),rel:A+1,"data:realIndex":O});o.ctx.series.addCollapsedClassToSeries(F,O),i[A].length>0&&(o.visibleI=o.visibleI+1);var N,B;o.yRatio.length>1&&(o.yaxisIndex=O);var $=o.barHelpers.initialPositions();k=$.y,N=$.barHeight,T=$.yDivision,u=$.zeroW,b=$.x,B=$.barWidth,S=$.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:F};_t=o.isHorizontal?o.drawHorizontalBoxPaths(d(d({},Ct),{},{yDivision:T,barHeight:N,zeroW:u})):o.drawVerticalBoxPaths(d(d({},Ct),{},{xDivision:S,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:F,x:b,y:k,series:i,barHeight:N,barWidth:B,elDataLabelsWrap:V,visibleSeries:o.visibleI,type:l.config.chart.type})})},ht=0;htb.c&&(w=!1);var _=Math.min(b.o,b.c),O=Math.max(b.o,b.c),F=b.m;g.globals.isXNumeric&&(r=(g.globals.seriesX[u][v]-g.globals.minX)/this.xRatio-l/2);var N=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,F=h-b.m/M);var B=p.move(N,h),$=p.move(N+l/2,_);return g.globals.previousPaths.length>0&&($=this.getPreviousPath(u,v,!0)),B=this.isBoxPlot?[p.move(N,_)+p.line(N+l/2,_)+p.line(N+l/2,k)+p.line(N+l/4,k)+p.line(N+l-l/4,k)+p.line(N+l/2,k)+p.line(N+l/2,_)+p.line(N+l,_)+p.line(N+l,F)+p.line(N,F)+p.line(N,_+f/2),p.move(N,F)+p.line(N+l,F)+p.line(N+l,O)+p.line(N+l/2,O)+p.line(N+l/2,P)+p.line(N+l-l/4,P)+p.line(N+l/4,P)+p.line(N+l/2,P)+p.line(N+l/2,O)+p.line(N,O)+p.line(N,F)+"z"]:[p.move(N,O)+p.line(N+l/2,O)+p.line(N+l/2,k)+p.line(N+l/2,O)+p.line(N+l,O)+p.line(N+l,_)+p.line(N+l/2,_)+p.line(N+l/2,P)+p.line(N+l/2,_)+p.line(N,_)+p.line(N,O-f/2)],$+=p.move(N,_),g.globals.isXNumeric||(r+=o),{pathTo:B,pathFrom:$,x:r,y:O,barXPosition:N,color:this.isBoxPlot?T:w?[A]:[S]}}},{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,S=a.realIndex,T=this.getOHLCValue(S,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[S][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,_),F=p.move(b,_+l/2);return g.globals.previousPaths.length>0&&(F=this.getPreviousPath(S,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"],F+=p.move(b,_),g.globals.isXNumeric||(r+=o),{pathTo:O,pathFrom:F,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 z;return r.config.plotOptions[t].enableShades&&(f=this.w.config.theme.mode==="dark"?z.hexToRgba(g.shadeColor(-1*o,h.color),r.config.fill.opacity):z.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.mina.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 S=Math.abs(p)+Math.abs(g);v=100*r/(S===0?S-1e-6:S)}}),{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,S=a+parseFloat(f.style.fontSize)/3+w;p.plotDataLabelsText({x:A,y:S,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=0;h?g++:g--){var p=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:z.escapeString(e.globals.seriesNames[g]),rel:g+1,"data:realIndex":g});if(this.ctx.series.addCollapsedClassToSeries(p,g),e.config.chart.dropShadow.enabled){var x=e.config.chart.dropShadow;new ut(this.ctx).dropShadow(p,x,g)}for(var v=0,w=e.config.plotOptions.heatmap.shadeIntensity,A=0;A-1&&this.pieClicked(x),i.config.dataLabels.enabled){var k=u.x,P=u.y,_=100*w/this.fullAngle+"%";if(w!==0&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabelthis.fullAngle?e.endAngle=e.endAngle-(a+l):a+l=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(g=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(g)>this.fullAngle&&(g-=this.fullAngle);var p=Math.PI*(g-90)/180,x=i.centerX+o*Math.cos(f),v=i.centerY+o*Math.sin(f),w=i.centerX+o*Math.cos(p),A=i.centerY+o*Math.sin(p),S=z.polarToCartesian(i.centerX,i.centerY,i.donutSize,g),T=z.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",S.x,S.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;v1&&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;h1)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.svgHeight0&&(P=e.getPreviousPath(T));for(var _=0;_=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;a0&&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=360&&(A=360-Math.abs(this.startAngle)-.1);var S=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(S,T)}p.add(S),S.attr("id","apexcharts-radialbarTrack-"+g),this.animatePaths(S,{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 S=null;this.radialDataLabels.show&&(S=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:p,centerX:i.centerX,centerY:i.centerY,opacity:A})),a.config.plotOptions.radialBar.hollow.position==="back"&&(h.add(v),S&&h.add(S));var T=!1;a.config.plotOptions.radialBar.inverseOrder&&(T=!0);for(var M=T?i.series.length-1:0;T?M>=0:M100?100:i.series[M])/100,O=Math.round(this.totalAngle*_)+this.startAngle,F=void 0;a.globals.dataChanged&&(P=this.startAngle,F=Math.round(this.totalAngle*z.negToZero(a.globals.previousPaths[M])/100)+P),Math.abs(O)+Math.abs(k)>=360&&(O-=.01),Math.abs(F)+Math.abs(P)>=360&&(F-=.01);var N=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":N,"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=z.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:F,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:S}}},{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=z.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){R(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;h0&&(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;P0});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&&(S=A.globals.seriesRange[a][k].overlaps).indexOf(T)>-1&&(o=(g=w.barHeight/S.length)*this.visibleI+x*(100-parseInt(this.barOptions.barHeight,10))/100/2+g*(this.visibleI+S.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&&(S=A.globals.seriesRange[a][k].overlaps).indexOf(T)>-1&&(l=(p=w.barWidth/S.length)*this.visibleI+v*(100-parseInt(this.barOptions.barWidth,10))/100/2+p*(this.visibleI+S.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),S=Math.min(A.start,A.end),T=Math.max(A.start,A.end);this.series[p][x]===void 0||this.series[p][x]===null?S=f:(S=f-S/v,T=f-T/v);var M=Math.abs(T-S),u=this.barHelpers.getColumnPaths({barXPosition:h,barWidth:l,y1:S,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),S=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:S.pathTo,pathFrom:S.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(z.isNumber(e[o][0])?h+f.config.markers.offsetY:null),g.push(a+f.config.markers.offsetX),p.push(z.isNumber(e[o][l+1])?r+f.config.markers.offsetY:null)}else g.push(a+f.config.markers.offsetX),p.push(z.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;o0&&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,S=g.length-1;A9&&(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;e4?(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;l0&&(T=(o.globals.seriesX[v][0]-o.globals.minX)/this.xRatio),S.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:S,yArrj:w,y2Arrj:A,seriesRangeEnd:a},F=this._iterateOverDataPoints(d(d({},O),{},{iterations:h==="rangeArea"?t[x].length-1:void 0,isRangeStart:!0}));if(h==="rangeArea"){var N=this._calculatePathsFrom({series:a,i:x,realIndex:v,prevX:k,prevY:_}),B=this._iterateOverDataPoints(d(d({},O),{},{series:a,pY:b,pathsFrom:N,iterations:a[x].length-1,isRangeStart:!1}));F.linePaths[0]=B.linePath+F.linePath,F.pathFromLine=B.pathFromLine+F.pathFromLine}this._handlePaths({type:h,realIndex:v,i:x,paths:F}),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;V1&&(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:z.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;A0){var S=this.lineHelpers.checkPreviousPaths({pathFromLine:a,pathFromArea:r,realIndex:f});a=S.pathFromLine,r=S.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;A0&&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,S=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),F=this.yRatio,N=v.prevY,B=v.linePath,$=v.areaPath,V=v.pathFromLine,st=v.pathFromArea,ht=z.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/F[i.yaxisIndex]+2*(i.isReversed?Ke/F[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;Ct0&&_.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:N}),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:S,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,S=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 F=e==="rangeArea"?f.length===k.globals.dataPoints:o===i[a].length-2,N=f.map(function(_t,Ct){return[f[Ct],g[Ct]]}).filter(function(_t){return _t[1]!==null});if(F&&N.length>1){var B=Fn(N);if(A+=Us(B),i[a][0]===null?S=A:S+=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);S=A+=Us(ht)}else S+=P.line(N[N.length-1][0],O)+P.line(N[0][0],O)+P.move(N[0][0],N[0][1])+"z";T.push(A),M.push(S)}}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),S=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),S=P.move(v,w)+"z")),T.push(A),M.push(S)):(A+=P.curve(v+pt,w,l-pt,h,l,h),S+=P.curve(v+pt,w,l-pt,h,l,h)),v=l,w=h,o===i[a].length-2&&(S=S+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(S)))}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;S=S+P.line(kt,O)+P.move(l,h)+"z"}i[a][o]===null&&(A+=P.move(l,h),S+=P.move(l,O)),_==="stepline"?(A=A+P.line(l,null,"H")+P.line(null,h,"V"),S=S+P.line(l,null,"H")+P.line(null,h,"V")):_==="straight"&&(A+=P.line(l,h),S+=P.line(l,h)),o===i[a].length-2&&(S=S+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(S)))}return{linePaths:T,areaPaths:M,pX:v,pY:w,linePath:A,areaPath:S}}},{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,S=r(p)/this.height,T=r(p)/this.width;if(this.width>=this.height)for(x=0;x=this.height){var v=p/this.height,w=this.width-v;x=new E(this.xoffset+v,this.yoffset,w,this.height)}else{var A=p/this.width,S=this.height-A;x=new E(this.xoffset,this.yoffset+A,this.width,S)}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,S=[],T=w/r(v);for(A=0;A=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;ho-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),S=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:S,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 F=!1,N=!1;switch(i.tickInterval){case"years":k.unit==="year"&&(F=!0);break;case"half_year":P=7,k.unit==="year"&&(F=!0);break;case"months":P=1,k.unit==="year"&&(F=!0);break;case"months_fortnight":P=15,k.unit!=="year"&&k.unit!=="month"||(F=!0),O===30&&(N=!0);break;case"months_days":P=10,k.unit==="month"&&(F=!0),O===30&&(N=!0);break;case"week_days":P=8,k.unit==="month"&&(F=!0);break;case"days":P=1,k.unit==="month"&&(F=!0);break;case"hours":k.unit==="day"&&(F=!0);break;case"minutes_fives":case"seconds_fives":O%5!=0&&(N=!0);break;case"seconds_tens":O%10!=0&&(N=!0)}if(i.tickInterval==="hours"||i.tickInterval==="minutes_fives"||i.tickInterval==="seconds_tens"||i.tickInterval==="seconds_fives"){if(!N)return!0}else if((O%P==0||F)&&!N)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:z.monthMod(i+1)})}else e.minDate===1&&e.minMonth===0&&this.timeScaleArray.push({position:h,value:l,unit:g,year:a,month:z.monthMod(i+1)});for(var x=l,v=h,w=0;w1){f=(g.determineDaysOfMonths(a+1,e.minYear)-i+1)*o,h=z.monthMod(a+1);var v=r+x,w=z.monthMod(h),A=h;h===0&&(p="year",A=v,w=1,v+=x+=1),this.timeScaleArray.push({position:f,value:A,unit:p,year:v,month:w})}else this.timeScaleArray.push({position:f,value:h,unit:p,year:r,month:z.monthMod(a)});for(var S=h+1,T=f,M=0,u=1;Ml.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=z.monthMod(e.minMonth),h="month",g=e.minDate):e.minDate!==1&&e.minHour===0&&e.minMinute===0&&(x=0,f=e.minDate,v=f,w=p(g=f,i,a)),this.timeScaleArray.push({position:x,value:v,unit:h,year:this._getYear(a,w,0),month:z.monthMod(w),day:g});for(var A=x,S=0;Sh.determineDaysOfMonths(_+1,r)&&(S=1,_+=1),{month:_,date:S}},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 S=i;A>=24&&(A=0,S+=1,f="day");var T=g(S,a).month;T=p(S,T),this.timeScaleArray.push({position:v,value:w,unit:f,day:S,hour:A,year:r,month:z.monthMod(T)}),A++;for(var M=v,u=0;u=24&&(A=0,f="day",T=g(S+=1,T).month,T=p(S,T));var b=this._getYear(r,T,0);M=60*o+M;var k=A===0?S:A;this.timeScaleArray.push({position:M,value:k,unit:f,hour:A,day:S,year:b,month:z.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,S=r,T=(60-i-e/1e3)*g,M=0;M=60&&(x=0,(S+=1)===24&&(S=0)),this.timeScaleArray.push({position:T,value:x,unit:"minute",hour:S,minute:x,day:v,year:this._getYear(A,w,0),month:z.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,S=r,T=(1e3-e)/1e3*f,M=0;M=60&&(p=0,++x>=60&&(x=0,++S===24&&(S=0))),this.timeScaleArray.push({position:T,value:p,unit:"second",hour:S,minute:x,second:p,day:v,year:this._getYear(A,w,0),month:z.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 F=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),F++,i.globals.columnSeries=g.series):t[O].type==="area"?(l.series.push(_),l.i.push(O),F++):t[O].type==="line"?(o.series.push(_),o.i.push(O),F++):t[O].type==="scatter"?(h.series.push(_),h.i.push(O)):t[O].type==="bubble"?(f.series.push(_),f.i.push(O),F++):t[O].type==="candlestick"?(p.series.push(_),p.i.push(O),F++):t[O].type==="boxPlot"?(x.series.push(_),x.i.push(O),F++):t[O].type==="rangeBar"?(v.series.push(_),v.i.push(O),F++):t[O].type==="rangeArea"?(w.series.push(r.seriesRangeStart[O]),w.seriesRangeEnd.push(r.seriesRangeEnd[O]),w.i.push(O),F++):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"),F>1&&(r.comboCharts=!0)):(o.series.push(_),o.i.push(O))});var A=new qs(this.ctx,e),S=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(S.draw(p.series,"candlestick",p.i)),x.series.length>0&&u.push(S.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=z.getDimensions(this.el),a=e.chart.width.toString().split(/[0-9]+/g).pop();a==="%"?z.isNumber(i[0])&&(i[0].width===0&&(i=z.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=z.getDimensions(this.el.parentNode);t.svgHeight=o[1]*parseInt(e.chart.height,10)/100}else t.svgHeight=parseInt(e.chart.height,10);else t.axisCharts?t.svgHeight=t.svgWidth/1.61:t.svgHeight=t.svgWidth/1.2;if(t.svgWidth<0&&(t.svgWidth=0),t.svgHeight<0&&(t.svgHeight=0),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=z.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=z.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=z.extend(p.config,t),o&&(p.globals.lastXAxis=t.xaxis?z.clone(t.xaxis):[],p.globals.lastYAxis=t.yaxis?z.clone(t.yaxis):[],p.globals.initialConfig=z.extend({},p.config),p.globals.initialSeries=z.clone(p.config.series),t.series))){for(var x=0;x2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(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=z.clone(l.config.series),l.globals.initialSeries=z.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;_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;rF);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(/^/,"").replace(/<\/svg>$/,"");b.innerHTML=""+u.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2>")+"";for(var k=0,P=b.firstChild.childNodes.length;k":function(u){return-Math.cos(u*Math.PI)/2+.5},">":function(u){return Math.sin(u*Math.PI/2)},"<":function(u){return 1-Math.cos(u*Math.PI/2)}},e.morph=function(u){return function(b,k){return new e.MorphObj(b,k).at(u)}},e.Situation=e.invent({create:function(u){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new e.Number(u.duration).valueOf(),this.delay=new e.Number(u.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=u.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),e.FX=e.invent({create:function(u){this._target=u,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(u,b,k){m(u)==="object"&&(b=u.ease,k=u.delay,u=u.duration);var 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||kthis.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(N){return typeof N!="string"&&N.at?N.at(P.ease(b.pos),b.pos):N}),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;_=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("+S(this.a)+","+S(this.b)+","+S(this.c)+","+S(this.d)+","+S(this.e)+","+S(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=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),F=(e.handlerMap.indexOf(u)+1||e.handlerMap.push(u))-1,N=b.split(".")[0],B=b.split(".")[1]||"*";e.listeners[F]=e.listeners[F]||{},e.listeners[F][N]=e.listeners[F][N]||{},e.listeners[F][N][B]=e.listeners[F][N][B]||{},k._svgjsListenerId||(k._svgjsListenerId=++e.listenerId),e.listeners[F][N][B][k._svgjsListenerId]=O,u.addEventListener(N,O,_||{passive:!0})},e.off=function(u,b,k){var P=e.handlerMap.indexOf(u),_=b&&b.split(".")[0],O=b&&b.split(".")[1],F="";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 N in e.listeners[P][_][O])e.off(u,[_,O].join("."),N);delete e.listeners[P][_][O]}}else if(O)for(var B in e.listeners[P])for(var F in e.listeners[P][B])O===F&&e.off(u,[B,O].join("."));else if(_){if(e.listeners[P][_]){for(var F in e.listeners[P][_])e.off(u,[_,F].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=0;b--)u.childNodes[b]instanceof E.SVGElement&&A(u.childNodes[b]);return e.adopt(u).id(e.eid(u.nodeName))}function S(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-1&&this.members.splice(b,1),this},each:function(u){for(var b=0,k=this.members.length;b=0},index:function(u){return this.members.indexOf(u)},get:function(u){return this.members[u]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(u){return new e.Set(u)}}}),e.FX.Set=e.invent({create:function(u){this.set=u}}),e.Set.inherit=function(){var u=[];for(var b in e.Shape.prototype)typeof e.Shape.prototype[b]=="function"&&typeof e.Set.prototype[b]!="function"&&u.push(b);for(var b in u.forEach(function(P){e.Set.prototype[P]=function(){for(var _=0,O=this.members.length;_=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=[];f1&&(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),S=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-S.x,ue.y-S.y),M=new SVG.Point(pe.x-S.x,pe.y-S.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&&uo.maxX-e.width&&(l=(a=o.maxX-e.width)-this.startPoints.box.x),o.minY!=null&&ro.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;i0&&this.parameters.box.height-l[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+l[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-l[0]);l=this.checkAspectRatio(l),this.el.move(this.parameters.box.x+l[0],this.parameters.box.y+l[1]).size(this.parameters.box.width-l[0],this.parameters.box.height-l[1])}};break;case"rt":this.calc=function(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])l.maxX&&(t=l.maxX-r),l.minY!==void 0&&o+el.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 la&&(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 Lt,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=z.randomId(),this.w.globals.chartID=this.w.config.chart.id?z.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Nn(this).initModules(),this.create=z.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 S=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 S.observe(T)}):S.observe(x),Zs.set(v,S)}(t.el.parentNode,t.parentResizeHandler),!t.css){var r=t.el.getRootNode&&t.el.getRootNode(),o=z.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;g0&&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===z.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;r0&&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=z.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;e2?r-2:0),l=2;lmt&&typeof mt=="object"&&!Array.isArray(mt)&&mt!=null,y=(mt,Lt)=>{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{m(Lt[Tt])?Tt in mt?ge[Tt]=y(mt[Tt],Lt[Tt]):Object.assign(ge,{[Tt]:Lt[Tt]}):Object.assign(ge,{[Tt]:Lt[Tt]})}),ge},C=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 Lt=y(s.options,mt);return d.value=new ko(c.value,Lt),d.value.render()},L=()=>(I(),C()),I=()=>{d.value.destroy()},R=(mt,Lt)=>d.value.updateSeries(mt,Lt),X=(mt,Lt,ge,Tt)=>d.value.updateOptions(mt,Lt,ge,Tt),D=mt=>d.value.toggleSeries(mt),G=mt=>{d.value.showSeries(mt)},J=mt=>{d.value.hideSeries(mt)},bt=(mt,Lt)=>d.value.appendSeries(mt,Lt),lt=()=>{d.value.resetSeries()},Ot=(mt,Lt)=>{d.value.toggleDataPointSelection(mt,Lt)},et=mt=>d.value.appendData(mt),z=(mt,Lt)=>d.value.zoomX(mt,Lt),ct=mt=>d.value.dataURI(mt),ut=mt=>d.value.setLocale(mt),W=(mt,Lt)=>{d.value.addXaxisAnnotation(mt,Lt)},it=(mt,Lt)=>{d.value.addYaxisAnnotation(mt,Lt)},Mt=(mt,Lt)=>{d.value.addPointAnnotation(mt,Lt)},Ut=(mt,Lt)=>{d.value.removeAnnotation(mt,Lt)},re=()=>{d.value.clearAnnotations()};ql(()=>{window.ApexCharts=ko}),_a(()=>{c.value=ku().proxy.$el,C()}),Zl(()=>{d.value&&I()});const de=vd(s);return Te(de.options,()=>{!d.value&&s.options?C():d.value.updateOptions(s.options)}),Te(de.series,()=>{!d.value&&s.series?C():d.value.updateSeries(s.series)},{deep:!0}),Te(de.type,()=>{L()}),Te(de.width,()=>{L()}),Te(de.height,()=>{L()}),{chart:d,init:C,refresh:L,destroy:I,updateOptions:X,updateSeries:R,toggleSeries:D,showSeries:G,hideSeries:J,resetSeries:lt,zoomX:z,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;ns.length)&&(n=s.length);for(var c=0,d=new Array(n);c-1;m--){var y=c[m],C=(y.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(C)>-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,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}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,") "),C="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(C," ").concat(L)},R={transform:"translate(".concat(d/2*-1," -256)")};return{outer:m,inner:I,path:R}}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,C=s.startCentered,L=C===void 0?!1:C,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"),C=new RegExp("\\--".concat(s,"\\-"),"g"),L=new RegExp("\\.".concat(n),"g");m=m.replace(y,".".concat(c,"-")).replace(C,"--".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(""),"")}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),C=y.length,L=c,I,R,X;for(d===void 0?(I=1,X=n[y[0]]):(I=0,X=d);I=55296&&m<=56319&&c=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(C,L,I){return C[I]=nr(L,y,{}),C},{})};Fc=n(function(m,y,C){if(y[3]&&(m[y[3]]=C),y[2]){var L=y[2].filter(function(I){return typeof I=="number"});L.forEach(function(I){m[I.toString(16)]=C})}return m}),Nc=n(function(m,y,C){if(m[C]=C,y[2]){var L=y[2].filter(function(I){return typeof I=="string"});L.forEach(function(I){m[I]=C})}return m}),Dc=n(function(m,y,C){var L=y[2];return m[C]=C,L.forEach(function(I){m[I]=C}),m});var c="far"in Ui||ft.autoFetchSvg,d=nr(Df,function(m,y){var C=y[0],L=y[1],I=y[2];return L==="far"&&!c&&(L="fas"),typeof C=="string"&&(m.names[C]={prefix:L,iconName:I}),typeof C=="number"&&(m.unicodes[C.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],C=s in Ye.styles?s:null;return y||C||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),C=null,L=Gt;(s.includes(y[Gt])||s.some(function(R){return Oo[Gt].includes(R)}))&&(L=Gt),(s.includes(y[te])||s.some(function(R){return Oo[te].includes(R)}))&&(L=te);var I=s.reduce(function(R,X){var D=Vf(ft.cssPrefix,X);if(Ui[X]?(X=Hf[L].includes(X)?bf[L][X]:X,C=X,R.prefix=X):Bf[L].indexOf(X)>-1?(C=X,R.prefix=Hs(X,{family:L})):D?R.iconName=D:X!==ft.replacementClass&&X!==y[Gt]&&X!==y[te]&&R.rest.push(X),!m&&R.prefix&&R.iconName){var G=C==="fa"?Bc(R.iconName):{},J=Ri(R.prefix,R.iconName);G.prefix&&(C=null),R.iconName=G.iconName||J||R.iconName,R.prefix=G.prefix||R.prefix,R.prefix==="far"&&!Ui.far&&Ui.fas&&!ft.autoFetchSvg&&(R.prefix="fas")}return R},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"||C==="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;y0&&X.forEach(function(D){typeof D=="string"&&(c[L][D]=R)}),c[L][I]=R}),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(C){typeof m[C]=="function"&&(c[C]=m[C]),Ss(m[C])==="object"&&Object.keys(m[C]).forEach(function(L){c[C]||(c[C]={}),c[C][L]=m[C][L]})}),d.hooks){var y=d.hooks();Object.keys(y).forEach(function(C){$i[C]||($i[C]=[]),$i[C].push(y[C])})}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;m1?n-1:0),d=1;d0&&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,C=s.transform;if(vn(C)&&c.found&&!d.found){var L=c.width,I=c.height,R={x:L/I/2,y:.5};m.style=Ds(ot(ot({},y),{},{"transform-origin":"".concat(R.x+C.x/16,"em ").concat(R.y+C.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,C=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:C}),children:d}]}]}function An(s){var n=s.icons,c=n.main,d=n.mask,m=s.prefix,y=s.iconName,C=s.transform,L=s.symbol,I=s.title,R=s.maskId,X=s.titleId,D=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",z=[ft.replacementClass,y?"".concat(ft.cssPrefix,"-").concat(y):""].filter(function(re){return D.classes.indexOf(re)===-1}).filter(function(re){return re!==""||!!re}).concat(D.classes).join(" "),ct={children:[],attributes:ot(ot({},D.attributes),{},{"data-prefix":m,"data-icon":y,class:z,role:D.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(lt," ").concat(Ot)})},ut=et&&!~D.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(X||Ea())},children:[I]}),delete ct.attributes.title);var W=ot(ot({},ct),{},{prefix:m,iconName:y,main:c,mask:d,maskId:R,transform:C,symbol:L,styles:ot(ot({},ut),D.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,C=s.extra,L=s.watchable,I=L===void 0?!1:L,R=ot(ot(ot({},C.attributes),y?{title:y}:{}),{},{class:C.classes.join(" ")});I&&(R[Yi]="");var X=ot({},C.styles);vn(m)&&(X.transform=Of({transform:m,startCentered:!0,width:c,height:d}),X["-webkit-transform"]=X.transform);var D=Ds(X);D.length>0&&(R.style=D);var G=[];return G.push({tag:"span",attributes:R,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 C=[];return C.push({tag:"span",attributes:m,children:[n]}),c&&C.push({tag:"span",attributes:{class:"sr-only"},children:[c]}),C}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],C=null;return Array.isArray(y)?C={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]}}]}:C={tag:"path",attributes:{fill:"currentColor",d:y}},{found:!0,width:n,height:c,icon:C}}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 C=or[n][s];return d(Fr(C))}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(C){m.setAttribute(C,s.attributes[C])});var y=s.children||[];return y.forEach(function(C){m.appendChild(Gc(C,{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 C=d.map(function(L){return Ra(L)}).join(` `);c.setAttribute(Yi,""),c.innerHTML=C}};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,C=y===void 0?us:y,L=s.observeMutationsRoot,I=L===void 0?jt:L;Ps=new Eo(function(R){if(!Cn){var X=yi();ia(R).forEach(function(D){if(D.type==="childList"&&D.addedNodes.length>0&&!No(D.addedNodes[0])&&(ft.searchPseudoElements&&C(D.target),c(D.target)),D.type==="attributes"&&D.target.parentNode&&ft.searchPseudoElements&&C(D.target.parentNode),D.type==="attributes"&&No(D.target)&&~Af.indexOf(D.attributeName))if(D.attributeName==="class"&&ng(D.target)){var G=Bs(bn(D.target)),J=G.prefix,bt=G.iconName;D.target.setAttribute(pn,J||X),bt&&D.target.setAttribute(xn,bt)}else og(D.target)&&m(D.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(":"),C=y[0],L=y.slice(1);return C&&L.length>0&&(d[C]=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,C=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:C}},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(D){return c.add("".concat(To,"-").concat(D))},m=function(D){return c.remove("".concat(To,"-").concat(D))},y=ft.autoFetchSvg?wi:mn.map(function(X){return"fa-".concat(X)}).concat(Object.keys(mg));y.includes("fa")||y.push("fa");var C=[".".concat(_c,":not([").concat(Yi,"])")].concat(y.map(function(X){return".".concat(X,":not([").concat(Yi,"])")})).join(", ");if(C.length===0)return Promise.resolve();var L=[];try{L=ia(s.querySelectorAll(C))}catch{}if(L.length>0)d("pending"),m("complete");else return Promise.resolve();var I=Sn.begin("onTree"),R=L.reduce(function(X,D){try{var G=$c(D);G&&X.push(G)}catch(J){Tc||J.name==="MissingIcon"&&console.error(J)}return X},[]);return new Promise(function(X,D){Promise.all(R).then(function(G){jc(G,function(){d("active"),d("complete"),m("pending"),typeof n=="function"&&n(),I(),X()})}).catch(function(G){I(),D(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,C=y===void 0?!1:y,L=c.mask,I=L===void 0?null:L,R=c.maskId,X=R===void 0?null:R,D=c.title,G=D===void 0?null:D,J=c.titleId,bt=J===void 0?null:J,lt=c.classes,Ot=lt===void 0?[]:lt,et=c.attributes,z=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?z["aria-labelledby"]="".concat(ft.replacementClass,"-title-").concat(bt||Ea()):(z["aria-hidden"]="true",z.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:C,title:G,maskId:X,titleId:bt,extra:{attributes:z,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,C=y===void 0?function(){}:y;return Ho(m,C)},n.generateSvgReplacementMutation=function(c,d){var m=d.iconName,y=d.title,C=d.titleId,L=d.prefix,I=d.transform,R=d.symbol,X=d.mask,D=d.maskId,G=d.extra;return new Promise(function(J,bt){Promise.all([Nr(m,L),X.iconName?Nr(X.iconName,X.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(lt){var Ot=fn(lt,2),et=Ot[0],z=Ot[1];J([c,An({icons:{main:et,mask:z},prefix:L,iconName:m,transform:I,symbol:R,maskId:D,title:y,titleId:C,extra:G,watchable:!0})])}).catch(bt)})},n.generateAbstractIcon=function(c){var d=c.children,m=c.attributes,y=c.main,C=c.transform,L=c.styles,I=Ds(L);I.length>0&&(m.style=I);var R;return vn(C)&&(R=ri("generateAbstractTransformGrouping",{main:y,transform:C,containerWidth:y.width,iconWidth:y.width})),d.push(R||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 C=[];return c(function(L){Array.isArray(L)?L.map(function(I){C=C.concat(I.abstract)}):C=C.concat(L.abstract)}),[{tag:"span",attributes:{class:["".concat(ft.cssPrefix,"-layers")].concat(Ma(y)).join(" ")},children:C}]})}}}},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,C=d.classes,L=C===void 0?[]:C,I=d.attributes,R=I===void 0?{}:I,X=d.styles,D=X===void 0?{}:X;return Ws({type:"counter",content:c},function(){return Di("beforeDOMElementCreation",{content:c,params:d}),ig({content:c.toString(),title:y,extra:{attributes:R,styles:D,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,C=d.title,L=C===void 0?null:C,I=d.classes,R=I===void 0?[]:I,X=d.attributes,D=X===void 0?{}:X,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:D,styles:J,classes:["".concat(ft.cssPrefix,"-layers-text")].concat(Ma(R))}})})}}},provides:function(n){n.generateLayersText=function(c,d){var m=d.title,y=d.transform,C=d.extra,L=null,I=null;if(Pc){var R=parseInt(getComputedStyle(c).fontSize,10),X=c.getBoundingClientRect();L=X.width/R,I=X.height/R}return ft.autoA11y&&!m&&(C.attributes["aria-hidden"]="true"),Promise.resolve([c,zo({content:c.innerHTML,width:L,height:I,transform:y,title:m,extra:C,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),C=y.filter(function(Mt){return Mt.getAttribute(Ir)===n})[0],L=vi.getComputedStyle(s,n),I=L.getPropertyValue("font-family").match(yf),R=L.getPropertyValue("font-weight"),X=L.getPropertyValue("content");if(C&&!I)return s.removeChild(C),d();if(I&&X!=="none"&&X!==""){var D=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][R],bt=Pg(D),lt=bt.value,Ot=bt.isSecondary,et=I[0].startsWith("FontAwesome"),z=wn(J,lt),ct=z;if(et){var ut=jf(lt);ut.iconName&&ut.prefix&&(z=ut.iconName,J=ut.prefix)}if(z&&!Ot&&(!C||C.getAttribute(pn)!==J||C.getAttribute(xn)!==ct)){s.setAttribute(c,ct),C&&s.removeChild(C);var W=xg(),it=W.extra;it.attributes[Ir]=n,Nr(z,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("-"),C=y[0],L=y.slice(1).join("-");if(C&&L==="h")return d.flipX=!0,d;if(C&&L==="v")return d.flipY=!0,d;if(L=parseFloat(L),isNaN(L))return d;switch(C){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,C=c.iconWidth,L={transform:"translate(".concat(y/2," 256)")},I="translate(".concat(m.x*32,", ").concat(m.y*32,") "),R="scale(".concat(m.size/16*(m.flipX?-1:1),", ").concat(m.size/16*(m.flipY?-1:1),") "),X="rotate(".concat(m.rotate," 0 0)"),D={transform:"".concat(I," ").concat(R," ").concat(X)},G={transform:"translate(".concat(C/2*-1," -256)")},J={outer:L,inner:D,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(C){return C.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,C=c.mask,L=c.maskId,I=c.transform,R=y.width,X=y.icon,D=C.width,G=C.icon,J=Mf({transform:I,containerWidth:D,iconWidth:R}),bt={tag:"rect",attributes:ot(ot({},lr),{},{fill:"white"})},lt=X.children?{children:X.children.map(Uo)}:{},Ot={tag:"g",attributes:ot({},J.inner),children:[Uo(ot({tag:X.tag,attributes:ot(ot({},X.attributes),J.path)},lt))]},et={tag:"g",attributes:ot({},J.outer),children:[Ot]},z="mask-".concat(L||Ea()),ct="clip-".concat(L||Ea()),ut={tag:"mask",attributes:ot(ot({},lr),{},{id:z,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(z,")")},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 C=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({},C),{},{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({},C),{},{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({},C),{},{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=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=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,z,ct){if(!R(z)||D(z)||G(z)||J(z)||I(z))return z;var ut,W=0,it=0;if(X(z))for(ut=[],it=z.length;W1&&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,R){var X=s.attributes[R];switch(R){case"class":I.class=jg(X);break;case"style":I.style=Gg(X);break;default:I.attrs[R]=X}return I},{attrs:{},class:{},style:{}});c.class;var y=c.style,C=y===void 0?{}:y,L=Hg(c,Vg);return yc(s.tag,ei(ei(ei({},n),{},{class:m.class,style:ei(ei({},m.style),C)},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=Pt(function(){return qo(n.icon)}),y=Pt(function(){return cr("classes",$g(n))}),C=Pt(function(){return cr("transform",typeof n.transform=="string"?Dr.transform(n.transform):n.transform)}),L=Pt(function(){return cr("mask",qo(n.mask))}),I=Pt(function(){return Ng(m.value,ei(ei(ei(ei({},y.value),C.value),L.value),{},{symbol:n.symbol,title:n.title,titleId:n.titleId,maskId:n.maskId}))});Te(I,function(X){if(!X)return Ug("Could not find one or more icon(s)",m.value,L.value)},{immediate:!0});var R=Pt(function(){return I.value?Zc(I.value.abstract[0],{},d):null});return function(){return R.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=Pt(()=>Hr.value),op={class:"flex"},lp={class:"grid cursor-pointer place-items-center"},cp=["checked"],hp=mu('',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{let n=s.length*.75,c=s.length,d,m=0,y,C,L,I;s[s.length-1]==="="&&(n--,s[s.length-2]==="="&&n--);const R=new ArrayBuffer(n),X=new Uint8Array(R);for(d=0;d>4,X[m++]=(C&15)<<4|L>>2,X[m++]=(L&3)<<6|I&63;return R},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,C)=>{Pn(y,!1,L=>{d[C]=L,++m===c&&n(d.join(ah))})})},mp=(s,n)=>{const c=s.split(ah),d=[];for(let m=0;m{const d=c.length;let m;if(d<126)m=new Uint8Array(1),new DataView(m.buffer).setUint8(0,d);else if(d<65536){m=new Uint8Array(3);const y=new DataView(m.buffer);y.setUint8(0,126),y.setUint16(1,d)}else{m=new Uint8Array(9);const y=new DataView(m.buffer);y.setUint8(0,127),y.setBigUint64(1,BigInt(d))}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;mMath.pow(2,21)-1){L.enqueue(Br);break}m=X*Math.pow(2,32)+R.getUint32(4),d=3}else{if(es(c)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(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=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;d0);return n}function oh(){const s=al(+new Date);return s!==il?(el=0,il=s):s+"."+al(el++)}for(;as{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{const C={};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 C={type:"open"};this.query.sid&&(C.data=`{"sid":"${this.query.sid}"}`),this.writer.write(C).then(()=>this.onOpen())})}))}write(n){this.writable=!1;for(let c=0;c{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={},C=14;for(;C--;)y[Yp[C]]=m[C]||"";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",D=>{if(!d)if(D.type==="pong"&&D.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;Vi.priorWebsocketSuccess=c.name==="websocket",this.transport.pause(()=>{d||this.readyState!=="closed"&&(X(),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,X(),c.close(),c=null)}const C=D=>{const G=new Error("probe error: "+D);G.transport=c.name,y(),this.emitReserved("upgradeError",G)};function L(){C("transport closed")}function I(){C("socket closed")}function R(D){c&&D.name!==c.name&&y()}const X=()=>{c.removeListener("open",m),c.removeListener("error",C),c.removeListener("close",L),this.off("close",I),this.off("upgrading",R)};c.once("open",m),c.once("error",C),c.once("close",L),this.once("close",I),this.once("upgrading",R),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{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;d0&&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(;dtypeof 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=0&&s.num{delete this.acks[n];for(let L=0;L{this.io.clearTimeoutFn(y),c.apply(this,L)};C.withError=!0,this.acks[n]=C}emitWithAck(n,...c){return new Promise((d,m)=>{const y=(C,L)=>C?m(C):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;d0&&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()},C=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(C),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;dn()),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,C=la[m]&&y in la[m].nsps,L=n.forceNew||n["force new connection"]||n.multiplex===!1||C;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,C,L,I,R=0,X=!1,D=!1,G=!0;if(typeof s!="function")throw new TypeError(ix);n=cl(n)||0,$r(c)&&(X=!!c.leading,D="maxWait"in c,y=D?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,R=it,C=s.apply(Ut,Mt),C}function bt(it){return R=it,L=setTimeout(et,n),X?J(it):C}function lt(it){var Mt=it-I,Ut=it-R,re=n-Mt;return D?px(re,y-Ut):re}function Ot(it){var Mt=it-I,Ut=it-R;return I===void 0||Mt>=n||Mt<0||D&&Ut>=y}function et(){var it=gr();if(Ot(it))return z(it);L=setTimeout(et,lt(it))}function z(it){return L=void 0,G&&d?J(it):(d=m=void 0,C)}function ct(){L!==void 0&&clearTimeout(L),R=0,d=I=m=L=void 0}function ut(){return L===void 0?C:z(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(D)return L=setTimeout(et,n),J(I)}return L===void 0&&(L=setTimeout(et,n)),C}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=Pt(()=>Dt.exercises),hl=Pt(()=>Dt.selected_exercises),dl=Pt(()=>Dt.exercises.filter(s=>Dt.selected_exercises.includes(s.uuid))),ul=Pt(()=>Dt.progresses),fl=Pt(()=>Dt.notificationEvents),Ax=Pt(()=>Dt.notificationCounter),Sx=Pt(()=>Dt.notificationAPICounter),Cx=Pt(()=>Object.keys(Dt.progresses).length),Wi=Pt(()=>Dt.diagnostic),pr=Pt(()=>Dt.notificationHistory),Px=Pt(()=>Dt.notificationHistoryConfig),xr=Pt(()=>Dt.userActivity),gl=Pt(()=>Dt.userActivityConfig),Gi=Pt(()=>za.connected),pl=Pt(()=>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=Pt(()=>Object.keys(Wi.value).length==0),d=Pt(()=>{var I;return((I=Wi.value.version)==null?void 0:I.version)!==void 0}),m=Pt(()=>Wi.value.zmq_message_count>0),y=Pt(()=>Wi.value.zmq_message_count);function C(I,R){Ix(R,I)}function L(){n.value.showModal(),Rx()}return(I,R)=>(yt(),At(Kt,null,[j("button",{onClick:R[0]||(R[0]=X=>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:R[1]||(R[1]=X=>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:R[2]||(R[2]=X=>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:R[3]||(R[3]=X=>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),X=>(yt(),At("div",{key:X.name,class:"form-control pl-3"},[j("label",Zx,[j("input",{onChange:D=>C(D.target.checked,X.uuid),type:"checkbox",checked:dt(hl).includes(X.uuid),value:X.uuid,class:ie(`checkbox ${dt(hl).includes(X.uuid)?"checkbox-success":""} [--fallback-bc:#94a3b8]`)},null,42,Kx),j("span",Jx,Wt(X.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,(X,D)=>(yt(),At("div",{key:D},[j("div",null,[j("label",pm,[j("input",{type:"checkbox",checked:X,value:D,class:ie(`checkbox ${X?"checkbox-success":"checkbox-danger"} [--fallback-bc:#cbd5e1]`),disabled:""},null,10,xm),j("span",mm,Wt(D),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=Pt(()=>pr.value.length>0),m=Pt(()=>pr.value?y.value:c.value),y=Pt(()=>[{data:Array.from(pr.value)}]),C=Pt(()=>({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 R=$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(R,{ref_key:"theChart",ref:n,class:ie(d.value?"block":"absolute h-8 w-full"),height:"32",width:"100%",options:C.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]=C=>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]=C=>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),C=>(yt(),At("tr",{key:C.id},[j("td",ib,[It(dt(oe),{icon:dt(Jg),size:"xs",class:ie(d(C.response_code))},null,8,["icon","class"]),j("pre",ab,Wt(C.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:C.user_id},[j("span",rb,Wt(C.user.split("@")[0]),1),j("span",nb,"@"+Wt(C.user.split("@")[1]),1)],8,sb),j("td",ob,Wt(C.time),1),j("td",lb,[j("div",cb,[C.http_method=="POST"?(yt(),At("span",hb,"POST")):C.http_method=="PUT"?(yt(),At("span",db,"PUT")):C.http_method=="DELETE"?(yt(),At("span",ub,"DEL")):(yt(),At("span",fb,Wt(C.http_method),1)),C.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(C.url),1)])]),j("td",pb,[C.http_method=="POST"?(yt(),At("div",xb,[j("pre",mb,Wt(JSON.stringify(C.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=Pt(()=>gl.value.activity_buffer_size),d=Pt(()=>gl.value.timestamp_min),m=Pt(()=>Array.from(Array(c.value)).map(()=>0)),y=Pt(()=>xr.value.length!=0),C=Pt(()=>y.value?L.value:m.value),L=Pt(()=>{const X=xr.value[n.user_id]===void 0?m.value:xr.value[n.user_id];return[{data:Array.from(X)}]}),I=[1,2,3,4,5,1e3],R=Pt(()=>({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(X,D)=>{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:R.value,series:C.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(L,I,R,X){Ex(L,I,R,X)}function d(L){const I=n.value.indexOf(L);I>=0?n.value.splice(I,1):n.value.push(L)}const m=Pt(()=>dl.value.length>0),y=Pt(()=>Object.keys(ul.value).length>0),C=Pt(()=>Object.values(ul.value).sort((L,I)=>L.emailI.email?1:0));return(L,I)=>(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),(R,X)=>(yt(),At("table",{key:R.name,class:"bg-white dark:bg-slate-800 rounded-lg shadow-xl w-full mb-4"},[j("thead",null,[j("tr",{onClick:D=>d(X),class:"cursor-pointer"},[j("th",{colspan:2+R.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(X+1),1),j("span",Tb,Wt(R.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":R.level=="beginner","dark:bg-orange-400 bg-orange-400 text-neutral-950":R.level=="advanced","dark:bg-red-600 bg-red-600 text-neutral-950":R.level=="expert"})},Wt(R.level),3)])])],8,Pb)],8,Cb),j("tr",{class:ie(`font-medium text-slate-600 dark:text-slate-200 ${n.value.includes(X)?"hidden":""}`)},[Ib,(yt(!0),At(Kt,null,Mi(R.tasks,(D,G)=>(yt(),At("th",{key:D.name,class:"border-b border-slate-100 dark:border-slate-700 p-3 align-top",title:D.description},[j("div",Ob,[j("span",Rb,"Task "+Wt(G+1),1),j("i",zb,Wt(D.name),1)])],8,Mb))),128)),Fb],2)]),j("tbody",{class:ie(`${n.value.includes(X)?"hidden":""}`)},[y.value?(yt(!0),At(Kt,{key:1},Mi(C.value,D=>(yt(),At("tr",{key:D.user_id,class:"bg-slate-100 dark:bg-slate-900"},[j("td",Hb,[j("span",Bb,[j("span",{title:D.user_id,class:"text-nowrap inline-block leading-5 truncate"},[D.exercises[R.uuid].score/D.exercises[R.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(D.email.split("@")[0]),1),j("span",Gb,"@"+Wt(D.email.split("@")[1]),1)],8,Wb),It(yb,{user_id:D.user_id},null,8,["user_id"])])]),(yt(!0),At(Kt,null,Mi(R.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(D.exercises[R.uuid].tasks_completion[G.uuid],D.user_id,R.uuid,G.uuid)},[j("span",Ub,[j("span",$b,[D.exercises[R.uuid].tasks_completion[G.uuid]?(yt(),ji(dt(oe),{key:0,icon:dt(np),class:ie(`text-xl ${D.exercises[R.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&&!D.exercises[R.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 ${D.exercises[R.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 ${D.exercises[R.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(D.exercises[R.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,[D.exercises[R.uuid].tasks_completion[G.uuid].timestamp?(yt(),At("span",{key:0,class:ie(D.exercises[R.uuid].tasks_completion[G.uuid].first_completion?"font-bold":"font-extralight")},Wt(new Date(D.exercises[R.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":D.exercises[R.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*(D.exercises[R.uuid].score/D.exercises[R.uuid].max_score)}%`)},null,4)],8,Jb)])]))),128)):(yt(),At("tr",Nb,[j("td",{colspan:2+R.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");