0;)s=c[i],d[s]||(a[s]=e[s],d[s]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a}function jg(e,a,r){e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;var c=e.indexOf(a,r);return c!==-1&&c===r}function Xg(e){if(!e)return null;var a=e.length;if(Ht(a))return null;for(var r=new Array(a);a-- >0;)r[a]=e[a];return r}var Wg=function(e){return function(a){return e&&a instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),F2={isArray:wo,isArrayBuffer:S9,isBuffer:kg,isFormData:Og,isArrayBufferView:Ag,isString:Sg,isNumber:_g,isObject:_9,isPlainObject:Ql,isUndefined:Ht,isDate:Eg,isFile:zg,isBlob:Tg,isFunction:Zo,isStream:Ig,isURLSearchParams:qg,isStandardBrowserEnv:Fg,forEach:ko,merge:sr,extend:Dg,trim:Rg,stripBOM:Ng,inherits:Bg,toFlatObject:Yg,kindOf:xo,kindOfTest:ye,endsWith:jg,toArray:Xg,isTypedArray:Wg,isFileList:Pg},Ze=F2;function U6(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var E9=function(a,r,c){if(!r)return a;var i;if(c)i=c(r);else if(Ze.isURLSearchParams(r))i=r.toString();else{var s=[];Ze.forEach(r,function(y,V){y===null||typeof y>"u"||(Ze.isArray(y)?V=V+"[]":y=[y],Ze.forEach(y,function(x){Ze.isDate(x)?x=x.toISOString():Ze.isObject(x)&&(x=JSON.stringify(x)),s.push(U6(V)+"="+U6(x))}))}),i=s.join("&")}if(i){var d=a.indexOf("#");d!==-1&&(a=a.slice(0,d)),a+=(a.indexOf("?")===-1?"?":"&")+i}return a},$g=F2;function i4(){this.handlers=[]}i4.prototype.use=function(a,r,c){return this.handlers.push({fulfilled:a,rejected:r,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1};i4.prototype.eject=function(a){this.handlers[a]&&(this.handlers[a]=null)};i4.prototype.forEach=function(a){$g.forEach(this.handlers,function(c){c!==null&&a(c)})};var Gg=i4,Ug=F2,Qg=function(a,r){Ug.forEach(a,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(a[r]=i,delete a[s])})},z9=F2;function Xe(e,a,r,c,i){Error.call(this),this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),c&&(this.request=c),i&&(this.response=i)}z9.inherits(Xe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var T9=Xe.prototype,P9={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){P9[e]={value:e}});Object.defineProperties(Xe,P9);Object.defineProperty(T9,"isAxiosError",{value:!0});Xe.from=function(e,a,r,c,i,s){var d=Object.create(T9);return z9.toFlatObject(e,d,function(y){return y!==Error.prototype}),Xe.call(d,e.message,a,r,c,i),d.name=e.name,s&&Object.assign(d,s),d};var r3=Xe,I9={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},L0=F2;function Kg(e,a){a=a||new FormData;var r=[];function c(s){return s===null?"":L0.isDate(s)?s.toISOString():L0.isArrayBuffer(s)||L0.isTypedArray(s)?typeof Blob=="function"?new Blob([s]):Buffer.from(s):s}function i(s,d){if(L0.isPlainObject(s)||L0.isArray(s)){if(r.indexOf(s)!==-1)throw Error("Circular reference detected in "+d);r.push(s),L0.forEach(s,function(y,V){if(!L0.isUndefined(y)){var C=d?d+"."+V:V,x;if(y&&!d&&typeof y=="object"){if(L0.endsWith(V,"{}"))y=JSON.stringify(y);else if(L0.endsWith(V,"[]")&&(x=L0.toArray(y))){x.forEach(function(w){!L0.isUndefined(w)&&a.append(C,c(w))});return}}i(y,C)}}),r.pop()}else a.append(d,c(s))}return i(e),a}var O9=Kg,Y4,Q6;function Jg(){if(Q6)return Y4;Q6=1;var e=r3;return Y4=function(r,c,i){var s=i.config.validateStatus;!i.status||!s||s(i.status)?r(i):c(new e("Request failed with status code "+i.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},Y4}var j4,K6;function eH(){if(K6)return j4;K6=1;var e=F2;return j4=e.isStandardBrowserEnv()?function(){return{write:function(c,i,s,d,p,y){var V=[];V.push(c+"="+encodeURIComponent(i)),e.isNumber(s)&&V.push("expires="+new Date(s).toGMTString()),e.isString(d)&&V.push("path="+d),e.isString(p)&&V.push("domain="+p),y===!0&&V.push("secure"),document.cookie=V.join("; ")},read:function(c){var i=document.cookie.match(new RegExp("(^|;\\s*)("+c+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(c){this.write(c,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),j4}var lH=function(a){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a)},tH=function(a,r){return r?a.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):a},aH=lH,rH=tH,q9=function(a,r){return a&&!aH(r)?rH(a,r):r},X4,J6;function oH(){if(J6)return X4;J6=1;var e=F2,a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return X4=function(c){var i={},s,d,p;return c&&e.forEach(c.split(`
-`),function(V){if(p=V.indexOf(":"),s=e.trim(V.substr(0,p)).toLowerCase(),d=e.trim(V.substr(p+1)),s){if(i[s]&&a.indexOf(s)>=0)return;s==="set-cookie"?i[s]=(i[s]?i[s]:[]).concat([d]):i[s]=i[s]?i[s]+", "+d:d}}),i},X4}var W4,en;function cH(){if(en)return W4;en=1;var e=F2;return W4=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),c=document.createElement("a"),i;function s(d){var p=d;return r&&(c.setAttribute("href",p),p=c.href),c.setAttribute("href",p),{href:c.href,protocol:c.protocol?c.protocol.replace(/:$/,""):"",host:c.host,search:c.search?c.search.replace(/^\?/,""):"",hash:c.hash?c.hash.replace(/^#/,""):"",hostname:c.hostname,port:c.port,pathname:c.pathname.charAt(0)==="/"?c.pathname:"/"+c.pathname}}return i=s(window.location.href),function(p){var y=e.isString(p)?s(p):p;return y.protocol===i.protocol&&y.host===i.host}}():function(){return function(){return!0}}(),W4}var $4,ln;function h4(){if(ln)return $4;ln=1;var e=r3,a=F2;function r(c){e.call(this,c==null?"canceled":c,e.ERR_CANCELED),this.name="CanceledError"}return a.inherits(r,e,{__CANCEL__:!0}),$4=r,$4}var G4,tn;function nH(){return tn||(tn=1,G4=function(a){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(a);return r&&r[1]||""}),G4}var U4,an;function rn(){if(an)return U4;an=1;var e=F2,a=Jg(),r=eH(),c=E9,i=q9,s=oH(),d=cH(),p=I9,y=r3,V=h4(),C=nH();return U4=function(w){return new Promise(function(P,R){var _=w.data,E=w.headers,A=w.responseType,S;function Y(){w.cancelToken&&w.cancelToken.unsubscribe(S),w.signal&&w.signal.removeEventListener("abort",S)}e.isFormData(_)&&e.isStandardBrowserEnv()&&delete E["Content-Type"];var W=new XMLHttpRequest;if(w.auth){var j=w.auth.username||"",Q=w.auth.password?unescape(encodeURIComponent(w.auth.password)):"";E.Authorization="Basic "+btoa(j+":"+Q)}var G=i(w.baseURL,w.url);W.open(w.method.toUpperCase(),c(G,w.params,w.paramsSerializer),!0),W.timeout=w.timeout;function e1(){if(!!W){var a1="getAllResponseHeaders"in W?s(W.getAllResponseHeaders()):null,c1=!A||A==="text"||A==="json"?W.responseText:W.response,o1={data:c1,status:W.status,statusText:W.statusText,headers:a1,config:w,request:W};a(function(w1){P(w1),Y()},function(w1){R(w1),Y()},o1),W=null}}if("onloadend"in W?W.onloadend=e1:W.onreadystatechange=function(){!W||W.readyState!==4||W.status===0&&!(W.responseURL&&W.responseURL.indexOf("file:")===0)||setTimeout(e1)},W.onabort=function(){!W||(R(new y("Request aborted",y.ECONNABORTED,w,W)),W=null)},W.onerror=function(){R(new y("Network Error",y.ERR_NETWORK,w,W,W)),W=null},W.ontimeout=function(){var c1=w.timeout?"timeout of "+w.timeout+"ms exceeded":"timeout exceeded",o1=w.transitional||p;w.timeoutErrorMessage&&(c1=w.timeoutErrorMessage),R(new y(c1,o1.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,w,W)),W=null},e.isStandardBrowserEnv()){var t1=(w.withCredentials||d(G))&&w.xsrfCookieName?r.read(w.xsrfCookieName):void 0;t1&&(E[w.xsrfHeaderName]=t1)}"setRequestHeader"in W&&e.forEach(E,function(c1,o1){typeof _>"u"&&o1.toLowerCase()==="content-type"?delete E[o1]:W.setRequestHeader(o1,c1)}),e.isUndefined(w.withCredentials)||(W.withCredentials=!!w.withCredentials),A&&A!=="json"&&(W.responseType=w.responseType),typeof w.onDownloadProgress=="function"&&W.addEventListener("progress",w.onDownloadProgress),typeof w.onUploadProgress=="function"&&W.upload&&W.upload.addEventListener("progress",w.onUploadProgress),(w.cancelToken||w.signal)&&(S=function(a1){!W||(R(!a1||a1&&a1.type?new V:a1),W.abort(),W=null)},w.cancelToken&&w.cancelToken.subscribe(S),w.signal&&(w.signal.aborted?S():w.signal.addEventListener("abort",S))),_||(_=null);var s1=C(G);if(s1&&["http","https","file"].indexOf(s1)===-1){R(new y("Unsupported protocol "+s1+":",y.ERR_BAD_REQUEST,w));return}W.send(_)})},U4}var Q4,on;function iH(){return on||(on=1,Q4=null),Q4}var T2=F2,cn=Qg,nn=r3,hH=I9,sH=O9,vH={"Content-Type":"application/x-www-form-urlencoded"};function hn(e,a){!T2.isUndefined(e)&&T2.isUndefined(e["Content-Type"])&&(e["Content-Type"]=a)}function uH(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=rn()),e}function dH(e,a,r){if(T2.isString(e))try{return(a||JSON.parse)(e),T2.trim(e)}catch(c){if(c.name!=="SyntaxError")throw c}return(r||JSON.stringify)(e)}var s4={transitional:hH,adapter:uH(),transformRequest:[function(a,r){if(cn(r,"Accept"),cn(r,"Content-Type"),T2.isFormData(a)||T2.isArrayBuffer(a)||T2.isBuffer(a)||T2.isStream(a)||T2.isFile(a)||T2.isBlob(a))return a;if(T2.isArrayBufferView(a))return a.buffer;if(T2.isURLSearchParams(a))return hn(r,"application/x-www-form-urlencoded;charset=utf-8"),a.toString();var c=T2.isObject(a),i=r&&r["Content-Type"],s;if((s=T2.isFileList(a))||c&&i==="multipart/form-data"){var d=this.env&&this.env.FormData;return sH(s?{"files[]":a}:a,d&&new d)}else if(c||i==="application/json")return hn(r,"application/json"),dH(a);return a}],transformResponse:[function(a){var r=this.transitional||s4.transitional,c=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!c&&this.responseType==="json";if(s||i&&T2.isString(a)&&a.length)try{return JSON.parse(a)}catch(d){if(s)throw d.name==="SyntaxError"?nn.from(d,nn.ERR_BAD_RESPONSE,this,null,this.response):d}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:iH()},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};T2.forEach(["delete","get","head"],function(a){s4.headers[a]={}});T2.forEach(["post","put","patch"],function(a){s4.headers[a]=T2.merge(vH)});var Ao=s4,mH=F2,pH=Ao,fH=function(a,r,c){var i=this||pH;return mH.forEach(c,function(d){a=d.call(i,a,r)}),a},K4,sn;function R9(){return sn||(sn=1,K4=function(a){return!!(a&&a.__CANCEL__)}),K4}var vn=F2,J4=fH,bH=R9(),yH=Ao,gH=h4();function ea(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gH}var HH=function(a){ea(a),a.headers=a.headers||{},a.data=J4.call(a,a.data,a.headers,a.transformRequest),a.headers=vn.merge(a.headers.common||{},a.headers[a.method]||{},a.headers),vn.forEach(["delete","get","head","post","put","patch","common"],function(i){delete a.headers[i]});var r=a.adapter||yH.adapter;return r(a).then(function(i){return ea(a),i.data=J4.call(a,i.data,i.headers,a.transformResponse),i},function(i){return bH(i)||(ea(a),i&&i.response&&(i.response.data=J4.call(a,i.response.data,i.response.headers,a.transformResponse))),Promise.reject(i)})},i0=F2,F9=function(a,r){r=r||{};var c={};function i(C,x){return i0.isPlainObject(C)&&i0.isPlainObject(x)?i0.merge(C,x):i0.isPlainObject(x)?i0.merge({},x):i0.isArray(x)?x.slice():x}function s(C){if(i0.isUndefined(r[C])){if(!i0.isUndefined(a[C]))return i(void 0,a[C])}else return i(a[C],r[C])}function d(C){if(!i0.isUndefined(r[C]))return i(void 0,r[C])}function p(C){if(i0.isUndefined(r[C])){if(!i0.isUndefined(a[C]))return i(void 0,a[C])}else return i(void 0,r[C])}function y(C){if(C in r)return i(a[C],r[C]);if(C in a)return i(void 0,a[C])}var V={url:d,method:d,data:d,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:y};return i0.forEach(Object.keys(a).concat(Object.keys(r)),function(x){var w=V[x]||s,k=w(x);i0.isUndefined(k)&&w!==y||(c[x]=k)}),c},la,un;function D9(){return un||(un=1,la={version:"0.27.2"}),la}var VH=D9().version,H5=r3,So={};["object","boolean","number","function","string","symbol"].forEach(function(e,a){So[e]=function(c){return typeof c===e||"a"+(a<1?"n ":" ")+e}});var dn={};So.transitional=function(a,r,c){function i(s,d){return"[Axios v"+VH+"] Transitional option '"+s+"'"+d+(c?". "+c:"")}return function(s,d,p){if(a===!1)throw new H5(i(d," has been removed"+(r?" in "+r:"")),H5.ERR_DEPRECATED);return r&&!dn[d]&&(dn[d]=!0,console.warn(i(d," has been deprecated since v"+r+" and will be removed in the near future"))),a?a(s,d,p):!0}};function MH(e,a,r){if(typeof e!="object")throw new H5("options must be an object",H5.ERR_BAD_OPTION_VALUE);for(var c=Object.keys(e),i=c.length;i-- >0;){var s=c[i],d=a[s];if(d){var p=e[s],y=p===void 0||d(p,s,e);if(y!==!0)throw new H5("option "+s+" must be "+y,H5.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new H5("Unknown option "+s,H5.ERR_BAD_OPTION)}}var CH={assertOptions:MH,validators:So},N9=F2,LH=E9,mn=Gg,pn=HH,v4=F9,xH=q9,B9=CH,ke=B9.validators;function We(e){this.defaults=e,this.interceptors={request:new mn,response:new mn}}We.prototype.request=function(a,r){typeof a=="string"?(r=r||{},r.url=a):r=a||{},r=v4(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var c=r.transitional;c!==void 0&&B9.assertOptions(c,{silentJSONParsing:ke.transitional(ke.boolean),forcedJSONParsing:ke.transitional(ke.boolean),clarifyTimeoutError:ke.transitional(ke.boolean)},!1);var i=[],s=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(r)===!1||(s=s&&k.synchronous,i.unshift(k.fulfilled,k.rejected))});var d=[];this.interceptors.response.forEach(function(k){d.push(k.fulfilled,k.rejected)});var p;if(!s){var y=[pn,void 0];for(Array.prototype.unshift.apply(y,i),y=y.concat(d),p=Promise.resolve(r);y.length;)p=p.then(y.shift(),y.shift());return p}for(var V=r;i.length;){var C=i.shift(),x=i.shift();try{V=C(V)}catch(w){x(w);break}}try{p=pn(V)}catch(w){return Promise.reject(w)}for(;d.length;)p=p.then(d.shift(),d.shift());return p};We.prototype.getUri=function(a){a=v4(this.defaults,a);var r=xH(a.baseURL,a.url);return LH(r,a.params,a.paramsSerializer)};N9.forEach(["delete","get","head","options"],function(a){We.prototype[a]=function(r,c){return this.request(v4(c||{},{method:a,url:r,data:(c||{}).data}))}});N9.forEach(["post","put","patch"],function(a){function r(c){return function(s,d,p){return this.request(v4(p||{},{method:a,headers:c?{"Content-Type":"multipart/form-data"}:{},url:s,data:d}))}}We.prototype[a]=r(),We.prototype[a+"Form"]=r(!0)});var wH=We,ta,fn;function ZH(){if(fn)return ta;fn=1;var e=h4();function a(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var c;this.promise=new Promise(function(d){c=d});var i=this;this.promise.then(function(s){if(!!i._listeners){var d,p=i._listeners.length;for(d=0;d{var c;return q("div",{class:["v-card-actions",e.class],style:e.style},[(c=r.default)==null?void 0:c.call(r)])}),{}}}),ur=e3("v-card-subtitle"),Oe=e3("v-card-title"),zH=H1({appendAvatar:String,appendIcon:v2,prependAvatar:String,prependIcon:v2,subtitle:String,title:String,...j1(),...T0()},"VCardItem"),u4=z1()({name:"VCardItem",props:zH(),setup(e,a){let{slots:r}=a;return N1(()=>{var V;const c=!!(e.prependAvatar||e.prependIcon),i=!!(c||r.prepend),s=!!(e.appendAvatar||e.appendIcon),d=!!(s||r.append),p=!!(e.title||r.title),y=!!(e.subtitle||r.subtitle);return q("div",{class:["v-card-item",e.class],style:e.style},[i&&q("div",{key:"prepend",class:"v-card-item__prepend"},[r.prepend?q(E2,{key:"prepend-defaults",disabled:!c,defaults:{VAvatar:{density:e.density,icon:e.prependIcon,image:e.prependAvatar}}},r.prepend):c&&q(k0,{key:"prepend-avatar",density:e.density,icon:e.prependIcon,image:e.prependAvatar},null)]),q("div",{class:"v-card-item__content"},[p&&q(Oe,{key:"title"},{default:()=>{var C,x;return[(x=(C=r.title)==null?void 0:C.call(r))!=null?x:e.title]}}),y&&q(ur,{key:"subtitle"},{default:()=>{var C,x;return[(x=(C=r.subtitle)==null?void 0:C.call(r))!=null?x:e.subtitle]}}),(V=r.default)==null?void 0:V.call(r)]),d&&q("div",{key:"append",class:"v-card-item__append"},[r.append?q(E2,{key:"append-defaults",disabled:!s,defaults:{VAvatar:{density:e.density,icon:e.appendIcon,image:e.appendAvatar}}},r.append):s&&q(k0,{key:"append-avatar",density:e.density,icon:e.appendIcon,image:e.appendAvatar},null)])])}),{}}}),C5=e3("v-card-text"),TH=H1({appendAvatar:String,appendIcon:v2,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:v2,ripple:{type:[Boolean,Object],default:!0},subtitle:String,text:String,title:String,...h5(),...j1(),...T0(),...pe(),...C0(),...mo(),...sl(),...so(),...R2(),...Jt(),...u2(),...V2(),...i5({variant:"elevated"})},"VCard"),$5=z1()({name:"VCard",directives:{Ripple:ml},props:TH(),setup(e,a){let{attrs:r,slots:c}=a;const{themeClasses:i}=Z2(e),{borderClasses:s}=s5(e),{colorClasses:d,colorStyles:p,variantClasses:y}=t3(e),{densityClasses:V}=G0(e),{dimensionStyles:C}=fe(e),{elevationClasses:x}=z0(e),{loaderClasses:w}=po(e),{locationStyles:k}=vl(e),{positionClasses:P}=vo(e),{roundedClasses:R}=X2(e),_=Kt(e,r),E=U(()=>e.link!==!1&&_.isLink.value),A=U(()=>!e.disabled&&e.link!==!1&&(e.link||_.isClickable.value));return N1(()=>{const S=E.value?"a":e.tag,Y=!!(c.title||e.title),W=!!(c.subtitle||e.subtitle),j=Y||W,Q=!!(c.append||e.appendAvatar||e.appendIcon),G=!!(c.prepend||e.prependAvatar||e.prependIcon),e1=!!(c.image||e.image),t1=j||G||Q,s1=!!(c.text||e.text);return P2(q(S,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":A.value},i.value,s.value,d.value,V.value,x.value,w.value,P.value,R.value,y.value,e.class],style:[p.value,C.value,k.value,e.style],href:_.href.value,onClick:A.value&&_.navigate,tabindex:e.disabled?-1:void 0},{default:()=>{var a1;return[e1&&q("div",{key:"image",class:"v-card__image"},[c.image?q(E2,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},c.image):q(B0,{key:"image-img",cover:!0,src:e.image},null)]),q(P8,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:c.loader}),t1&&q(u4,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:c.item,prepend:c.prepend,title:c.title,subtitle:c.subtitle,append:c.append}),s1&&q(C5,{key:"text"},{default:()=>{var c1,o1;return[(o1=(c1=c.text)==null?void 0:c1.call(c))!=null?o1:e.text]}}),(a1=c.default)==null?void 0:a1.call(c),c.actions&&q(vr,null,{default:c.actions}),l3(A.value,"v-card")]}}),[[W0("ripple"),A.value&&e.ripple]])}),{}}}),PH={class:"text-2xl font-weight-medium text-primary"},IH={__name:"AnalyticsAward",setup(e){const a=$t(),r=U(()=>a.global.name.value==="light"?xg:Lg),c=de();return c.getters.runmode==="online"&&c.getters.serverApi!==""&&j9.post(`${c.getters.serverApi}verify`,{token:c.getters.userToken}).then(i=>{var s,d;(s=i.data)!=null&&s.verify||(c.dispatch("user/logout"),c.commit("app/ADD_SNACKBAR",{message:"\u5F53\u524D\u8D26\u53F7\u9A8C\u8BC1\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\uFF01",color:"warning"})),c.commit("app/SET_SERVERVERSION",((d=i.data)==null?void 0:d.version)||0)}).catch(i=>{c.commit("app/SET_RUNMODE","offline"),c.commit("app/ADD_SNACKBAR",{message:`\u670D\u52A1\u5668\u8FDE\u63A5\u9519\u8BEF\uFF0C\u5DF2\u8F6C\u5165\u79BB\u7EBF\u6A21\u5F0F\uFF0C\u8BF7\u68C0\u67E5\u63D2\u4EF6\u662F\u5426\u6B63\u5E38\u8FD0\u884C\u4E14\u4E3A\u6700\u65B0\u7248\u672C\uFF01
-${i.message}`,color:"error"}),console.log(i)}),(i,s)=>(W1(),h2($5,{title:"ChatGPT \u63D2\u4EF6\u670D\u52A1\u5668",subtitle:"\u53EF\u8FDC\u7A0B\u8FDE\u63A5\u5230chatgpt-plugin\u8FDB\u884C\u76F8\u5173\u914D\u7F6E\u64CD\u4F5C",class:"position-relative"},{default:v1(()=>[q(C5,null,{default:v1(()=>[C2("h5",PH,n2(i.$store.state.app.mode==="online"&&i.$store.state.app.api?"\u8FDE\u63A5\u6B63\u5E38":"\u79BB\u7EBF\u6A21\u5F0F"),1),C2("p",null,n2(i.$store.state.app.api||"\u672A\u77E5\u533A\u57DF"),1),q(V0,{size:"small",onClick:s[0]||(s[0]=d=>i.$router.push({path:"login"}))},{default:v1(()=>[c2(n2(i.$store.state.app.mode==="online"&&i.$store.state.app.api?"\u65AD\u5F00\u8FDE\u63A5":"\u8FDE\u63A5\u533A\u57DF"),1)]),_:1})]),_:1}),q(B0,{src:J1(r),class:"triangle-bg flip-in-rtl"},null,8,["src"]),q(B0,{src:J1(wg),class:"trophy"},null,8,["src"])]),_:1}))}};var OH={exports:{}};const qH=qb(Zu);var Il={exports:{}};/*!
- * ApexCharts v3.28.3
- * (c) 2018-2022 ApexCharts
- * Released under the MIT License.
- */var Hn;function RH(){return Hn||(Hn=1,function(e,a){function r(F,l){var t=Object.keys(F);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(F);l&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(F,n).enumerable})),t.push.apply(t,o)}return t}function c(F){for(var l=1;l"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 t,o=C(F);if(l){var n=C(this).constructor;t=Reflect.construct(o,arguments,n)}else t=o.apply(this,arguments);return w(this,t)}}function P(F){return function(l){if(Array.isArray(l))return R(l)}(F)||function(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}(F)||function(l,t){if(!!l){if(typeof l=="string")return R(l,t);var o=Object.prototype.toString.call(l).slice(8,-1);if(o==="Object"&&l.constructor&&(o=l.constructor.name),o==="Map"||o==="Set")return Array.from(l);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return R(l,t)}}(F)||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 R(F,l){(l==null||l>F.length)&&(l=F.length);for(var t=0,o=new Array(l);t>16,v=o>>8&255,m=255&o;return"#"+(16777216+65536*(Math.round((n-u)*h)+u)+256*(Math.round((n-v)*h)+v)+(Math.round((n-m)*h)+m)).toString(16).slice(1)}},{key:"shadeColor",value:function(l,t){return F.isColorHex(t)?this.shadeHexColor(l,t):this.shadeRGBColor(l,t)}}],[{key:"bind",value:function(l,t){return function(){return l.apply(t,arguments)}}},{key:"isObject",value:function(l){return l&&i(l)==="object"&&!Array.isArray(l)&&l!=null}},{key:"listToArray",value:function(l){var t,o=[];for(t=0;th.length?n:h})),t.length>o.length?t:o},0)}},{key:"hexToRgba",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;l.substring(0,1)!=="#"&&(l="#999999");var o=l.replace("#","");o=o.match(new RegExp("(.{"+o.length/3+"})","g"));for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:"x",o=l.toString().slice();return o=o.replace(/[` ~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(l){return l<0?0:l}},{key:"moveIndexInArray",value:function(l,t,o){if(o>=l.length)for(var n=o-l.length+1;n--;)l.push(void 0);return l.splice(o,0,l.splice(t,1)[0]),l}},{key:"extractNumber",value:function(l){return parseFloat(l.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(l,t){for(;(l=l.parentElement)&&!l.classList.contains(t););return l}},{key:"setELstyles",value:function(l,t){for(var o in t)t.hasOwnProperty(o)&&(l.style.key=t[o])}},{key:"isNumber",value:function(l){return!isNaN(l)&&parseFloat(Number(l))===l&&!isNaN(parseInt(l,10))}},{key:"isFloat",value:function(l){return Number(l)===l&&l%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 l=window.navigator.userAgent,t=l.indexOf("MSIE ");if(t>0)return parseInt(l.substring(t+5,l.indexOf(".",t)),10);if(l.indexOf("Trident/")>0){var o=l.indexOf("rv:");return parseInt(l.substring(o+3,l.indexOf(".",o)),10)}var n=l.indexOf("Edge/");return n>0&&parseInt(l.substring(n+5,l.indexOf(".",n)),10)}}]),F}(),E=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.setEasingFunctions()}return p(F,[{key:"setEasingFunctions",value:function(){var l;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":l="-";break;case"easein":l="<";break;case"easeout":l=">";break;case"easeinout":l="<>";break;case"swing":l=function(t){var o=1.70158;return(t-=1)*t*((o+1)*t+o)+1};break;case"bounce":l=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375};break;case"elastic":l=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1};break;default:l="<>"}this.w.globals.easing=l}}},{key:"animateLine",value:function(l,t,o,n){l.attr(t).animate(n).attr(o)}},{key:"animateMarker",value:function(l,t,o,n,h,u){t||(t=0),l.attr({r:t,width:t,height:t}).animate(n,h).attr({r:o,width:o.width,height:o.height}).afterAll(function(){u()})}},{key:"animateCircle",value:function(l,t,o,n,h){l.attr({r:t.r,cx:t.cx,cy:t.cy}).animate(n,h).attr({r:o.r,cx:o.cx,cy:o.cy})}},{key:"animateRect",value:function(l,t,o,n,h){l.attr(t).animate(n).attr(o).afterAll(function(){return h()})}},{key:"animatePathsGradually",value:function(l){var t=l.el,o=l.realIndex,n=l.j,h=l.fill,u=l.pathFrom,v=l.pathTo,m=l.speed,b=l.delay,g=this.w,H=0;g.config.chart.animations.animateGradually.enabled&&(H=g.config.chart.animations.animateGradually.delay),g.config.chart.animations.dynamicAnimation.enabled&&g.globals.dataChanged&&g.config.chart.type!=="bar"&&(H=0),this.morphSVG(t,o,n,g.config.chart.type!=="line"||g.globals.comboCharts?h:"stroke",u,v,m,b*H)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(l){l.el.classList.remove("apexcharts-element-hidden")})}},{key:"animationCompleted",value:function(l){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),typeof t.config.chart.events.animationEnd=="function"&&t.config.chart.events.animationEnd(this.ctx,{el:l,w:t}))}},{key:"morphSVG",value:function(l,t,o,n,h,u,v,m){var b=this,g=this.w;h||(h=l.attr("pathFrom")),u||(u=l.attr("pathTo"));var H=function(M){return g.config.chart.type==="radar"&&(v=1),"M 0 ".concat(g.globals.gridHeight)};(!h||h.indexOf("undefined")>-1||h.indexOf("NaN")>-1)&&(h=H()),(!u||u.indexOf("undefined")>-1||u.indexOf("NaN")>-1)&&(u=H()),g.globals.shouldAnimate||(v=1),l.plot(h).animate(1,g.globals.easing,m).plot(h).animate(v,g.globals.easing,m).plot(u).afterAll(function(){_.isNumber(o)?o===g.globals.series[g.globals.maxValsInArrayIndex].length-2&&g.globals.shouldAnimate&&b.animationCompleted(l):n!=="none"&&g.globals.shouldAnimate&&(!g.globals.comboCharts&&t===g.globals.series.length-1||g.globals.comboCharts)&&b.animationCompleted(l),b.showDelayedElements()})}}]),F}(),A=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"getDefaultFilter",value:function(l,t){var o=this.w;l.unfilter(!0),new window.SVG.Filter().size("120%","180%","-5%","-40%"),o.config.states.normal.filter!=="none"?this.applyFilter(l,t,o.config.states.normal.filter.type,o.config.states.normal.filter.value):o.config.chart.dropShadow.enabled&&this.dropShadow(l,o.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(l,t){var o=this.w;o.config.chart.dropShadow.enabled&&!l.node.classList.contains("apexcharts-marker")&&this.dropShadow(l,o.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(l,t,o){var n=this,h=this.w,u=o.intensity;l.unfilter(!0),new window.SVG.Filter,l.filter(function(v){var m=h.config.chart.dropShadow;(m.enabled?n.addShadow(v,t,m):v).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:u}})}),l.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(l.filterer.node)}},{key:"addDarkenFilter",value:function(l,t,o){var n=this,h=this.w,u=o.intensity;l.unfilter(!0),new window.SVG.Filter,l.filter(function(v){var m=h.config.chart.dropShadow;(m.enabled?n.addShadow(v,t,m):v).componentTransfer({rgb:{type:"linear",slope:u}})}),l.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(l.filterer.node)}},{key:"applyFilter",value:function(l,t,o){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5;switch(o){case"none":this.addNormalFilter(l,t);break;case"lighten":this.addLightenFilter(l,t,{intensity:n});break;case"darken":this.addDarkenFilter(l,t,{intensity:n})}}},{key:"addShadow",value:function(l,t,o){var n=o.blur,h=o.top,u=o.left,v=o.color,m=o.opacity,b=l.flood(Array.isArray(v)?v[t]:v,m).composite(l.sourceAlpha,"in").offset(u,h).gaussianBlur(n).merge(l.source);return l.blend(l.source,b)}},{key:"dropShadow",value:function(l,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=t.top,h=t.left,u=t.blur,v=t.color,m=t.opacity,b=t.noUserSpaceOnUse,g=this.w;return l.unfilter(!0),_.isIE()&&g.config.chart.type==="radialBar"||(v=Array.isArray(v)?v[o]:v,l.filter(function(H){var M=null;M=_.isSafari()||_.isFirefox()||_.isIE()?H.flood(v,m).composite(H.sourceAlpha,"in").offset(h,n).gaussianBlur(u):H.flood(v,m).composite(H.sourceAlpha,"in").offset(h,n).gaussianBlur(u).merge(H.source),H.blend(H.source,M)}),b||l.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(l.filterer.node)),l}},{key:"setSelectionFilter",value:function(l,t,o){var n=this.w;if(n.globals.selectedDataPoints[t]!==void 0&&n.globals.selectedDataPoints[t].indexOf(o)>-1){l.node.setAttribute("selected",!0);var h=n.config.states.active.filter;h!=="none"&&this.applyFilter(l,t,h.type,h.value)}}},{key:"_scaleFilterSize",value:function(l){(function(t){for(var o in t)t.hasOwnProperty(o)&&l.setAttribute(o,t[o])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),F}(),S=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"drawLine",value:function(l,t,o,n){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,v=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,m=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt",b=this.w,g=b.globals.dom.Paper.line().attr({x1:l,y1:t,x2:o,y2:n,stroke:h,"stroke-dasharray":u,"stroke-width":v,"stroke-linecap":m});return g}},{key:"drawRect",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",v=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,m=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,b=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,g=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,H=this.w,M=H.globals.dom.Paper.rect();return M.attr({x:l,y:t,width:o>0?o:0,height:n>0?n:0,rx:h,ry:h,opacity:v,"stroke-width":m!==null?m:0,stroke:b!==null?b:"none","stroke-dasharray":g}),M.node.setAttribute("fill",u),M}},{key:"drawPolygon",value:function(l){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none",h=this.w,u=h.globals.dom.Paper.polygon(l).attr({fill:n,stroke:t,"stroke-width":o});return u}},{key:"drawCircle",value:function(l){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=this.w;l<0&&(l=0);var n=o.globals.dom.Paper.circle(2*l);return t!==null&&n.attr(t),n}},{key:"drawPath",value:function(l){var t=l.d,o=t===void 0?"":t,n=l.stroke,h=n===void 0?"#a8a8a8":n,u=l.strokeWidth,v=u===void 0?1:u,m=l.fill,b=l.fillOpacity,g=b===void 0?1:b,H=l.strokeOpacity,M=H===void 0?1:H,Z=l.classes,z=l.strokeLinecap,T=z===void 0?null:z,I=l.strokeDashArray,D=I===void 0?0:I,B=this.w;return T===null&&(T=B.config.stroke.lineCap),(o.indexOf("undefined")>-1||o.indexOf("NaN")>-1)&&(o="M 0 ".concat(B.globals.gridHeight)),B.globals.dom.Paper.path(o).attr({fill:m,"fill-opacity":g,stroke:h,"stroke-opacity":M,"stroke-linecap":T,"stroke-width":v,"stroke-dasharray":D,class:Z})}},{key:"group",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w,o=t.globals.dom.Paper.group();return l!==null&&o.attr(l),o}},{key:"move",value:function(l,t){var o=["M",l,t].join(" ");return o}},{key:"line",value:function(l,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=null;return o===null?n=["L",l,t].join(" "):o==="H"?n=["H",l].join(" "):o==="V"&&(n=["V",t].join(" ")),n}},{key:"curve",value:function(l,t,o,n,h,u){var v=["C",l,t,o,n,h,u].join(" ");return v}},{key:"quadraticCurve",value:function(l,t,o,n){return["Q",l,t,o,n].join(" ")}},{key:"arc",value:function(l,t,o,n,h,u,v){var m=arguments.length>7&&arguments[7]!==void 0&&arguments[7],b="A";m&&(b="a");var g=[b,l,t,o,n,h,u,v].join(" ");return g}},{key:"renderPaths",value:function(l){var t,o=l.j,n=l.realIndex,h=l.pathFrom,u=l.pathTo,v=l.stroke,m=l.strokeWidth,b=l.strokeLinecap,g=l.fill,H=l.animationDelay,M=l.initialSpeed,Z=l.dataChangeSpeed,z=l.className,T=l.shouldClipToGrid,I=T===void 0||T,D=l.bindEventsOnPaths,B=D===void 0||D,X=l.drawShadow,f=X===void 0||X,L=this.w,O=new A(this.ctx),N=new E(this.ctx),K=this.w.config.chart.animations.enabled,n1=K&&this.w.config.chart.animations.dynamicAnimation.enabled,l1=!!(K&&!L.globals.resized||n1&&L.globals.dataChanged&&L.globals.shouldAnimate);l1?t=h:(t=u,L.globals.animationEnded=!0);var b1=L.config.stroke.dashArray,m1=0;m1=Array.isArray(b1)?b1[n]:L.config.stroke.dashArray;var C1=this.drawPath({d:t,stroke:v,strokeWidth:m,fill:g,fillOpacity:1,classes:z,strokeLinecap:b,strokeDashArray:m1});if(C1.attr("index",n),I&&C1.attr({"clip-path":"url(#gridRectMask".concat(L.globals.cuid,")")}),L.config.states.normal.filter.type!=="none")O.getDefaultFilter(C1,n);else if(L.config.chart.dropShadow.enabled&&f&&(!L.config.chart.dropShadow.enabledOnSeries||L.config.chart.dropShadow.enabledOnSeries&&L.config.chart.dropShadow.enabledOnSeries.indexOf(n)!==-1)){var F1=L.config.chart.dropShadow;O.dropShadow(C1,F1,n)}B&&(C1.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,C1)),C1.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,C1)),C1.node.addEventListener("mousedown",this.pathMouseDown.bind(this,C1))),C1.attr({pathTo:u,pathFrom:h});var g2={el:C1,j:o,realIndex:n,pathFrom:h,pathTo:u,fill:g,strokeWidth:m,delay:H};return!K||L.globals.resized||L.globals.dataChanged?!L.globals.resized&&L.globals.dataChanged||N.showDelayedElements():N.animatePathsGradually(c(c({},g2),{},{speed:M})),L.globals.dataChanged&&n1&&l1&&N.animatePathsGradually(c(c({},g2),{},{speed:Z})),C1}},{key:"drawPattern",value:function(l,t,o){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,u=this.w,v=u.globals.dom.Paper.pattern(t,o,function(m){l==="horizontalLines"?m.line(0,0,o,0).stroke({color:n,width:h+1}):l==="verticalLines"?m.line(0,0,0,t).stroke({color:n,width:h+1}):l==="slantedLines"?m.line(0,0,t,o).stroke({color:n,width:h}):l==="squares"?m.rect(t,o).fill("none").stroke({color:n,width:h}):l==="circles"&&m.circle(t).fill("none").stroke({color:n,width:h})});return v}},{key:"drawGradient",value:function(l,t,o,n,h){var u,v=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,m=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,b=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,g=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,H=this.w;t.length<9&&t.indexOf("#")===0&&(t=_.hexToRgba(t,n)),o.length<9&&o.indexOf("#")===0&&(o=_.hexToRgba(o,h));var M=0,Z=1,z=1,T=null;m!==null&&(M=m[0]!==void 0?m[0]/100:0,Z=m[1]!==void 0?m[1]/100:1,z=m[2]!==void 0?m[2]/100:1,T=m[3]!==void 0?m[3]/100:null);var I=!(H.config.chart.type!=="donut"&&H.config.chart.type!=="pie"&&H.config.chart.type!=="polarArea"&&H.config.chart.type!=="bubble");if(u=b===null||b.length===0?H.globals.dom.Paper.gradient(I?"radial":"linear",function(X){X.at(M,t,n),X.at(Z,o,h),X.at(z,o,h),T!==null&&X.at(T,t,n)}):H.globals.dom.Paper.gradient(I?"radial":"linear",function(X){(Array.isArray(b[g])?b[g]:b).forEach(function(f){X.at(f.offset/100,f.color,f.opacity)})}),I){var D=H.globals.gridWidth/2,B=H.globals.gridHeight/2;H.config.chart.type!=="bubble"?u.attr({gradientUnits:"userSpaceOnUse",cx:D,cy:B,r:v}):u.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else l==="vertical"?u.from(0,0).to(0,1):l==="diagonal"?u.from(0,0).to(1,1):l==="horizontal"?u.from(0,1).to(1,1):l==="diagonal2"&&u.from(1,0).to(0,1);return u}},{key:"drawText",value:function(l){var t,o=l.x,n=l.y,h=l.text,u=l.textAnchor,v=l.fontSize,m=l.fontFamily,b=l.fontWeight,g=l.foreColor,H=l.opacity,M=l.cssClass,Z=M===void 0?"":M,z=l.isPlainText,T=z===void 0||z,I=this.w;return h===void 0&&(h=""),u||(u="start"),g&&g.length||(g=I.config.chart.foreColor),m=m||I.config.chart.fontFamily,b=b||"regular",(t=Array.isArray(h)?I.globals.dom.Paper.text(function(D){for(var B=0;B-1){var m=o.globals.selectedDataPoints[h].indexOf(u);o.globals.selectedDataPoints[h].splice(m,1)}}else{if(!o.config.states.active.allowMultipleDataPointsSelection&&o.globals.selectedDataPoints.length>0){o.globals.selectedDataPoints=[];var b=o.globals.dom.Paper.select(".apexcharts-series path").members,g=o.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,H=function(Z){Array.prototype.forEach.call(Z,function(z){z.node.setAttribute("selected","false"),n.getDefaultFilter(z,h)})};H(b),H(g)}l.node.setAttribute("selected","true"),v="true",o.globals.selectedDataPoints[h]===void 0&&(o.globals.selectedDataPoints[h]=[]),o.globals.selectedDataPoints[h].push(u)}if(v==="true"){var M=o.config.states.active.filter;M!=="none"&&n.applyFilter(l,h,M.type,M.value)}else o.config.states.active.filter.type!=="none"&&n.getDefaultFilter(l,h);typeof o.config.chart.events.dataPointSelection=="function"&&o.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:o.globals.selectedDataPoints,seriesIndex:h,dataPointIndex:u,w:o}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:o.globals.selectedDataPoints,seriesIndex:h,dataPointIndex:u,w:o}])}},{key:"rotateAroundCenter",value:function(l){var t=l.getBBox();return{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(l,t,o,n){var h=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],u=this.w,v=this.drawText({x:-200,y:-200,text:l,textAnchor:"start",fontSize:t,fontFamily:o,foreColor:"#fff",opacity:0});n&&v.attr("transform",n),u.globals.dom.Paper.add(v);var m=v.bbox();return h||(m=v.node.getBoundingClientRect()),v.remove(),{width:m.width,height:m.height}}},{key:"placeTextWithEllipsis",value:function(l,t,o){if(typeof l.getComputedTextLength=="function"&&(l.textContent=t,t.length>0&&l.getComputedTextLength()>=o/1.1)){for(var n=t.length-3;n>0;n-=3)if(l.getSubStringLength(0,n)<=o/1.1)return void(l.textContent=t.substring(0,n)+"...");l.textContent="."}}}],[{key:"setAttrs",value:function(l,t){for(var o in t)t.hasOwnProperty(o)&&l.setAttribute(o,t[o])}}]),F}(),Y=function(){function F(l){s(this,F),this.w=l.w,this.annoCtx=l}return p(F,[{key:"setOrientations",value:function(l){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=this.w;if(l.label.orientation==="vertical"){var n=t!==null?t:0,h=o.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(n,"']"));if(h!==null){var u=h.getBoundingClientRect();h.setAttribute("x",parseFloat(h.getAttribute("x"))-u.height+4),l.label.position==="top"?h.setAttribute("y",parseFloat(h.getAttribute("y"))+u.width):h.setAttribute("y",parseFloat(h.getAttribute("y"))-u.width);var v=this.annoCtx.graphics.rotateAroundCenter(h),m=v.x,b=v.y;h.setAttribute("transform","rotate(-90 ".concat(m," ").concat(b,")"))}}}},{key:"addBackgroundToAnno",value:function(l,t){var o=this.w;if(!l||!t.label.text||t.label.text&&!t.label.text.trim())return null;var n=o.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),h=l.getBoundingClientRect(),u=t.label.style.padding.left,v=t.label.style.padding.right,m=t.label.style.padding.top,b=t.label.style.padding.bottom;t.label.orientation==="vertical"&&(m=t.label.style.padding.left,b=t.label.style.padding.right,u=t.label.style.padding.top,v=t.label.style.padding.bottom);var g=h.left-n.left-u,H=h.top-n.top-m,M=this.annoCtx.graphics.drawRect(g-o.globals.barPadForNumericAxis,H,h.width+u+v,h.height+m+b,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&M.node.classList.add(t.id),M}},{key:"annotationsBackground",value:function(){var l=this,t=this.w,o=function(n,h,u){var v=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(u,"-annotations .apexcharts-").concat(u,"-annotation-label[rel='").concat(h,"']"));if(v){var m=v.parentNode,b=l.addBackgroundToAnno(v,n);b&&m.insertBefore(b.node,v)}};t.config.annotations.xaxis.map(function(n,h){o(n,h,"xaxis")}),t.config.annotations.yaxis.map(function(n,h){o(n,h,"yaxis")}),t.config.annotations.points.map(function(n,h){o(n,h,"point")})}},{key:"getStringX",value:function(l){var t=this.w,o=l;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(l=t.globals.categoryLabels.indexOf(l)+1);var n=t.globals.labels.indexOf(l),h=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(n+1)+")");return h&&(o=parseFloat(h.getAttribute("x"))),o}}]),F}(),W=function(){function F(l){s(this,F),this.w=l.w,this.annoCtx=l,this.invertAxis=this.annoCtx.invertAxis}return p(F,[{key:"addXaxisAnnotation",value:function(l,t,o){var n=this.w,h=this.invertAxis?n.globals.minY:n.globals.minX,u=this.invertAxis?n.globals.maxY:n.globals.maxX,v=this.invertAxis?n.globals.yRange[0]:n.globals.xRange,m=(l.x-h)/(v/n.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(m=(u-l.x)/(v/n.globals.gridWidth));var b=l.label.text;n.config.xaxis.type!=="category"&&!n.config.xaxis.convertedCatToNumeric||this.invertAxis||n.globals.dataFormatXNumeric||(m=this.annoCtx.helpers.getStringX(l.x));var g=l.strokeDashArray;if(_.isNumber(m)){if(l.x2===null||l.x2===void 0){var H=this.annoCtx.graphics.drawLine(m+l.offsetX,0+l.offsetY,m+l.offsetX,n.globals.gridHeight+l.offsetY,l.borderColor,g,l.borderWidth);t.appendChild(H.node),l.id&&H.node.classList.add(l.id)}else{var M=(l.x2-h)/(v/n.globals.gridWidth);if(this.annoCtx.inversedReversedAxis&&(M=(u-l.x2)/(v/n.globals.gridWidth)),n.config.xaxis.type!=="category"&&!n.config.xaxis.convertedCatToNumeric||this.invertAxis||n.globals.dataFormatXNumeric||(M=this.annoCtx.helpers.getStringX(l.x2)),M0&&arguments[0]!==void 0?arguments[0]:null;return l===null?this.w.config.series.reduce(function(t,o){return t+o},0):this.w.globals.series[l].reduce(function(t,o){return t+o},0)}},{key:"isSeriesNull",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(l===null?this.w.config.series.filter(function(t){return t!==null}):this.w.config.series[l].data.filter(function(t){return t!==null})).length===0}},{key:"seriesHaveSameValues",value:function(l){return this.w.globals.series[l].every(function(t,o,n){return t===n[0]})}},{key:"getCategoryLabels",value:function(l){var t=this.w,o=l.slice();return t.config.xaxis.convertedCatToNumeric&&(o=l.map(function(n,h){return t.config.xaxis.labels.formatter(n-t.globals.minX+1)})),o}},{key:"getLargestSeries",value:function(){var l=this.w;l.globals.maxValsInArrayIndex=l.globals.series.map(function(t){return t.length}).indexOf(Math.max.apply(Math,l.globals.series.map(function(t){return t.length})))}},{key:"getLargestMarkerSize",value:function(){var l=this.w,t=0;return l.globals.markers.size.forEach(function(o){t=Math.max(t,o)}),l.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var l=this.w;l.globals.seriesTotals=l.globals.series.map(function(t,o){var n=0;if(Array.isArray(t))for(var h=0;hl&&o.globals.seriesX[h][v]1&&(t=!0),{comboBarCount:o,comboCharts:t}}},{key:"extendArrayProps",value:function(l,t,o){return t.yaxis&&(t=l.extendYAxis(t,o)),t.annotations&&(t.annotations.yaxis&&(t=l.extendYAxisAnnotations(t)),t.annotations.xaxis&&(t=l.extendXAxisAnnotations(t)),t.annotations.points&&(t=l.extendPointAnnotations(t))),t}}]),F}(),Q=function(){function F(l){s(this,F),this.w=l.w,this.annoCtx=l}return p(F,[{key:"addYaxisAnnotation",value:function(l,t,o){var n,h=this.w,u=l.strokeDashArray,v=this._getY1Y2("y1",l),m=l.label.text;if(l.y2===null||l.y2===void 0){var b=this.annoCtx.graphics.drawLine(0+l.offsetX,v+l.offsetY,this._getYAxisAnnotationWidth(l),v+l.offsetY,l.borderColor,u,l.borderWidth);t.appendChild(b.node),l.id&&b.node.classList.add(l.id)}else{if((n=this._getY1Y2("y2",l))>v){var g=v;v=n,n=g}var H=this.annoCtx.graphics.drawRect(0+l.offsetX,n+l.offsetY,this._getYAxisAnnotationWidth(l),v-n,0,l.fillColor,l.opacity,1,l.borderColor,u);H.node.classList.add("apexcharts-annotation-rect"),H.attr("clip-path","url(#gridRectMask".concat(h.globals.cuid,")")),t.appendChild(H.node),l.id&&H.node.classList.add(l.id)}var M=l.label.position==="right"?h.globals.gridWidth:0,Z=this.annoCtx.graphics.drawText({x:M+l.label.offsetX,y:(n||v)+l.label.offsetY-3,text:m,textAnchor:l.label.textAnchor,fontSize:l.label.style.fontSize,fontFamily:l.label.style.fontFamily,fontWeight:l.label.style.fontWeight,foreColor:l.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(l.label.style.cssClass," ").concat(l.id?l.id:"")});Z.attr({rel:o}),t.appendChild(Z.node)}},{key:"_getY1Y2",value:function(l,t){var o,n=l==="y1"?t.y:t.y2,h=this.w;if(this.annoCtx.invertAxis){var u=h.globals.labels.indexOf(n);h.config.xaxis.convertedCatToNumeric&&(u=h.globals.categoryLabels.indexOf(n));var v=h.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(u+1)+")");v&&(o=parseFloat(v.getAttribute("y")))}else{var m;h.config.yaxis[t.yAxisIndex].logarithmic?m=(n=new j(this.annoCtx.ctx).getLogVal(n,t.yAxisIndex))/h.globals.yLogRatio[t.yAxisIndex]:m=(n-h.globals.minYArr[t.yAxisIndex])/(h.globals.yRange[t.yAxisIndex]/h.globals.gridHeight),o=h.globals.gridHeight-m,h.config.yaxis[t.yAxisIndex]&&h.config.yaxis[t.yAxisIndex].reversed&&(o=m)}return o}},{key:"_getYAxisAnnotationWidth",value:function(l){var t=this.w;return t.globals.gridWidth,(l.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(l.width,10)/100:parseInt(l.width,10))+l.offsetX}},{key:"drawYAxisAnnotations",value:function(){var l=this,t=this.w,o=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.map(function(n,h){l.addYaxisAnnotation(n,o.node,h)}),o}}]),F}(),G=function(){function F(l){s(this,F),this.w=l.w,this.annoCtx=l}return p(F,[{key:"addPointAnnotation",value:function(l,t,o){var n=this.w,h=0,u=0,v=0;this.annoCtx.invertAxis&&console.warn("Point annotation is not supported in horizontal bar charts.");var m=parseFloat(l.y);if(typeof l.x=="string"){var b=n.globals.labels.indexOf(l.x);n.config.xaxis.convertedCatToNumeric&&(b=n.globals.categoryLabels.indexOf(l.x)),h=this.annoCtx.helpers.getStringX(l.x),l.y===null&&(m=n.globals.series[l.seriesIndex][b])}else h=(l.x-n.globals.minX)/(n.globals.xRange/n.globals.gridWidth);for(var g,H=[],M=0,Z=0;Z<=l.seriesIndex;Z++){var z=n.config.yaxis[Z].seriesName;if(z)for(var T=Z+1;T<=l.seriesIndex;T++)n.config.yaxis[T].seriesName===z&&H.indexOf(z)===-1&&(M++,H.push(z))}if(n.config.yaxis[l.yAxisIndex].logarithmic)g=(m=new j(this.annoCtx.ctx).getLogVal(m,l.yAxisIndex))/n.globals.yLogRatio[l.yAxisIndex];else{var I=l.yAxisIndex+M;g=(m-n.globals.minYArr[I])/(n.globals.yRange[I]/n.globals.gridHeight)}if(u=n.globals.gridHeight-g-parseFloat(l.label.style.fontSize)-l.marker.size,v=n.globals.gridHeight-g,n.config.yaxis[l.yAxisIndex]&&n.config.yaxis[l.yAxisIndex].reversed&&(u=g+parseFloat(l.label.style.fontSize)+l.marker.size,v=g),_.isNumber(h)){var D={pSize:l.marker.size,pointStrokeWidth:l.marker.strokeWidth,pointFillColor:l.marker.fillColor,pointStrokeColor:l.marker.strokeColor,shape:l.marker.shape,pRadius:l.marker.radius,class:"apexcharts-point-annotation-marker ".concat(l.marker.cssClass," ").concat(l.id?l.id:"")},B=this.annoCtx.graphics.drawMarker(h+l.marker.offsetX,v+l.marker.offsetY,D);t.appendChild(B.node);var X=l.label.text?l.label.text:"",f=this.annoCtx.graphics.drawText({x:h+l.label.offsetX,y:u+l.label.offsetY,text:X,textAnchor:l.label.textAnchor,fontSize:l.label.style.fontSize,fontFamily:l.label.style.fontFamily,fontWeight:l.label.style.fontWeight,foreColor:l.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(l.label.style.cssClass," ").concat(l.id?l.id:"")});if(f.attr({rel:o}),t.appendChild(f.node),l.customSVG.SVG){var L=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+l.customSVG.cssClass});L.attr({transform:"translate(".concat(h+l.customSVG.offsetX,", ").concat(u+l.customSVG.offsetY,")")}),L.node.innerHTML=l.customSVG.SVG,t.appendChild(L.node)}if(l.image.path){var O=l.image.width?l.image.width:20,N=l.image.height?l.image.height:20;this.annoCtx.addImage({x:h+l.image.offsetX-O/2,y:u+l.image.offsetY-N/2,width:O,height:N,path:l.image.path,appendTo:".apexcharts-point-annotations"})}}}},{key:"drawPointAnnotations",value:function(){var l=this,t=this.w,o=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map(function(n,h){l.addPointAnnotation(n,o.node,h)}),o}}]),F}(),e1={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"}}},t1=function(){function F(){s(this,F),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,tickAmount: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={x:0,y:null,yAxisIndex:0,seriesIndex: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,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={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,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={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,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return p(F,[{key:"init",value:function(){return{annotations:{position:"front",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:[e1],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,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,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},stacked:!1,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(l){return new Date(l).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,startingShape:"flat",endingShape:"flat",rangeBarOverlap:!0,rangeBarGroupRows:!1,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal"}},bubble:{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,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(l){return l}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(l){return l+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(l){return l.globals.seriesTotals.reduce(function(t,o){return t+o},0)/l.globals.series.length+"%"}}}},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(l){return l}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(l){return l}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(l){return l.globals.seriesTotals.reduce(function(t,o){return t+o},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(l){return l!==null?l:""},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},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",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(l){return l?l+": ":""}}},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"}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY: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}}}}}]),F}(),s1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.graphics=new S(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new Y(this),this.xAxisAnnotations=new W(this),this.yAxisAnnotations=new Q(this),this.pointsAnnotations=new G(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return p(F,[{key:"drawAxesAnnotations",value:function(){var l=this.w;if(l.globals.axisCharts){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),o=this.xAxisAnnotations.drawXAxisAnnotations(),n=this.pointsAnnotations.drawPointAnnotations(),h=l.config.chart.animations.enabled,u=[t,o,n],v=[o.node,t.node,n.node],m=0;m<3;m++)l.globals.dom.elGraphical.add(u[m]),!h||l.globals.resized||l.globals.dataChanged||l.config.chart.type!=="scatter"&&l.config.chart.type!=="bubble"&&l.globals.dataPoints>1&&v[m].classList.add("apexcharts-element-hidden"),l.globals.delayedElements.push({el:v[m],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var l=this;this.w.config.annotations.images.map(function(t,o){l.addImage(t,o)})}},{key:"drawTextAnnos",value:function(){var l=this;this.w.config.annotations.texts.map(function(t,o){l.addText(t,o)})}},{key:"addXaxisAnnotation",value:function(l,t,o){this.xAxisAnnotations.addXaxisAnnotation(l,t,o)}},{key:"addYaxisAnnotation",value:function(l,t,o){this.yAxisAnnotations.addYaxisAnnotation(l,t,o)}},{key:"addPointAnnotation",value:function(l,t,o){this.pointsAnnotations.addPointAnnotation(l,t,o)}},{key:"addText",value:function(l,t){var o=l.x,n=l.y,h=l.text,u=l.textAnchor,v=l.foreColor,m=l.fontSize,b=l.fontFamily,g=l.fontWeight,H=l.cssClass,M=l.backgroundColor,Z=l.borderWidth,z=l.strokeDashArray,T=l.borderRadius,I=l.borderColor,D=l.appendTo,B=D===void 0?".apexcharts-annotations":D,X=l.paddingLeft,f=X===void 0?4:X,L=l.paddingRight,O=L===void 0?4:L,N=l.paddingBottom,K=N===void 0?2:N,n1=l.paddingTop,l1=n1===void 0?2:n1,b1=this.w,m1=this.graphics.drawText({x:o,y:n,text:h,textAnchor:u||"start",fontSize:m||"12px",fontWeight:g||"regular",fontFamily:b||b1.config.chart.fontFamily,foreColor:v||b1.config.chart.foreColor,cssClass:H}),C1=b1.globals.dom.baseEl.querySelector(B);C1&&C1.appendChild(m1.node);var F1=m1.bbox();if(h){var g2=this.graphics.drawRect(F1.x-f,F1.y-l1,F1.width+f+O,F1.height+K+l1,T,M||"transparent",1,Z,I,z);C1.insertBefore(g2.node,m1.node)}}},{key:"addImage",value:function(l,t){var o=this.w,n=l.path,h=l.x,u=h===void 0?0:h,v=l.y,m=v===void 0?0:v,b=l.width,g=b===void 0?20:b,H=l.height,M=H===void 0?20:H,Z=l.appendTo,z=Z===void 0?".apexcharts-annotations":Z,T=o.globals.dom.Paper.image(n);T.size(g,M).move(u,m);var I=o.globals.dom.baseEl.querySelector(z);I&&I.appendChild(T.node)}},{key:"addXaxisAnnotationExternal",value:function(l,t,o){return this.addAnnotationExternal({params:l,pushToMemory:t,context:o,type:"xaxis",contextMethod:o.addXaxisAnnotation}),o}},{key:"addYaxisAnnotationExternal",value:function(l,t,o){return this.addAnnotationExternal({params:l,pushToMemory:t,context:o,type:"yaxis",contextMethod:o.addYaxisAnnotation}),o}},{key:"addPointAnnotationExternal",value:function(l,t,o){return this.invertAxis===void 0&&(this.invertAxis=o.w.globals.isBarHorizontal),this.addAnnotationExternal({params:l,pushToMemory:t,context:o,type:"point",contextMethod:o.addPointAnnotation}),o}},{key:"addAnnotationExternal",value:function(l){var t=l.params,o=l.pushToMemory,n=l.context,h=l.type,u=l.contextMethod,v=n,m=v.w,b=m.globals.dom.baseEl.querySelector(".apexcharts-".concat(h,"-annotations")),g=b.childNodes.length+1,H=new t1,M=Object.assign({},h==="xaxis"?H.xAxisAnnotation:h==="yaxis"?H.yAxisAnnotation:H.pointAnnotation),Z=_.extend(M,t);switch(h){case"xaxis":this.addXaxisAnnotation(Z,b,g);break;case"yaxis":this.addYaxisAnnotation(Z,b,g);break;case"point":this.addPointAnnotation(Z,b,g)}var z=m.globals.dom.baseEl.querySelector(".apexcharts-".concat(h,"-annotations .apexcharts-").concat(h,"-annotation-label[rel='").concat(g,"']")),T=this.helpers.addBackgroundToAnno(z,Z);return T&&b.insertBefore(T.node,z),o&&m.globals.memory.methodsToExec.push({context:v,id:Z.id?Z.id:_.randomId(),method:u,label:"addAnnotation",params:t}),n}},{key:"clearAnnotations",value:function(l){var t=l.w,o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");t.globals.memory.methodsToExec.map(function(n,h){n.label!=="addText"&&n.label!=="addAnnotation"||t.globals.memory.methodsToExec.splice(h,1)}),o=_.listToArray(o),Array.prototype.forEach.call(o,function(n){for(;n.firstChild;)n.removeChild(n.firstChild)})}},{key:"removeAnnotation",value:function(l,t){var o=l.w,n=o.globals.dom.baseEl.querySelectorAll(".".concat(t));n&&(o.globals.memory.methodsToExec.map(function(h,u){h.id===t&&o.globals.memory.methodsToExec.splice(u,1)}),Array.prototype.forEach.call(n,function(h){h.parentElement.removeChild(h)}))}}]),F}(),a1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.opts=null,this.seriesIndex=0}return p(F,[{key:"clippedImgArea",value:function(l){var t=this.w,o=t.config,n=parseInt(t.globals.gridWidth,10),h=parseInt(t.globals.gridHeight,10),u=n>h?n:h,v=l.image,m=0,b=0;l.width===void 0&&l.height===void 0?o.fill.image.width!==void 0&&o.fill.image.height!==void 0?(m=o.fill.image.width+1,b=o.fill.image.height):(m=u+1,b=u):(m=l.width,b=l.height);var g=document.createElementNS(t.globals.SVGNS,"pattern");S.setAttrs(g,{id:l.patternID,patternUnits:l.patternUnits?l.patternUnits:"userSpaceOnUse",width:m+"px",height:b+"px"});var H=document.createElementNS(t.globals.SVGNS,"image");g.appendChild(H),H.setAttributeNS(window.SVG.xlink,"href",v),S.setAttrs(H,{x:0,y:0,preserveAspectRatio:"none",width:m+"px",height:b+"px"}),H.style.opacity=l.opacity,t.globals.dom.elDefs.node.appendChild(g)}},{key:"getSeriesIndex",value:function(l){var t=this.w;return(t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")&&t.config.plotOptions.bar.distributed||t.config.chart.type==="heatmap"||t.config.chart.type==="treemap"?this.seriesIndex=l.seriesNumber:this.seriesIndex=l.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(l){var t=this.w;this.opts=l;var o,n,h,u=this.w.config;this.seriesIndex=this.getSeriesIndex(l);var v=this.getFillColors()[this.seriesIndex];t.globals.seriesColors[this.seriesIndex]!==void 0&&(v=t.globals.seriesColors[this.seriesIndex]),typeof v=="function"&&(v=v({seriesIndex:this.seriesIndex,dataPointIndex:l.dataPointIndex,value:l.value,w:t}));var m=this.getFillType(this.seriesIndex),b=Array.isArray(u.fill.opacity)?u.fill.opacity[this.seriesIndex]:u.fill.opacity;l.color&&(v=l.color);var g=v;if(v.indexOf("rgb")===-1?v.length<9&&(g=_.hexToRgba(v,b)):v.indexOf("rgba")>-1&&(b=_.getOpacityFromRGBA(v)),l.opacity&&(b=l.opacity),m==="pattern"&&(n=this.handlePatternFill(n,v,b,g)),m==="gradient"&&(h=this.handleGradientFill(v,b,this.seriesIndex)),m==="image"){var H=u.fill.image.src,M=l.patternID?l.patternID:"";this.clippedImgArea({opacity:b,image:Array.isArray(H)?l.seriesNumber-1&&(H=_.getOpacityFromRGBA(g));var M=h.fill.gradient.opacityTo===void 0?t:Array.isArray(h.fill.gradient.opacityTo)?h.fill.gradient.opacityTo[o]:h.fill.gradient.opacityTo;if(h.fill.gradient.gradientToColors===void 0||h.fill.gradient.gradientToColors.length===0)n=h.fill.gradient.shade==="dark"?m.shadeColor(-1*parseFloat(h.fill.gradient.shadeIntensity),l.indexOf("rgb")>-1?_.rgb2hex(l):l):m.shadeColor(parseFloat(h.fill.gradient.shadeIntensity),l.indexOf("rgb")>-1?_.rgb2hex(l):l);else if(h.fill.gradient.gradientToColors[u.seriesNumber]){var Z=h.fill.gradient.gradientToColors[u.seriesNumber];n=Z,Z.indexOf("rgba")>-1&&(M=_.getOpacityFromRGBA(Z))}else n=l;if(h.fill.gradient.inverseColors){var z=g;g=n,n=z}return g.indexOf("rgb")>-1&&(g=_.rgb2hex(g)),n.indexOf("rgb")>-1&&(n=_.rgb2hex(n)),v.drawGradient(b,g,n,H,M,u.size,h.fill.gradient.stops,h.fill.gradient.colorStops,o)}}]),F}(),c1=function(){function F(l,t){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"setGlobalMarkerSize",value:function(){var l=this.w;if(l.globals.markers.size=Array.isArray(l.config.markers.size)?l.config.markers.size:[l.config.markers.size],l.globals.markers.size.length>0){if(l.globals.markers.size.length4&&arguments[4]!==void 0&&arguments[4],v=this.w,m=t,b=l,g=null,H=new S(this.ctx);if((v.globals.markers.size[t]>0||u)&&(g=H.group({class:u?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(v.globals.cuid,")")),Array.isArray(b.x))for(var M=0;M0:v.config.markers.size>0;if(T||u){_.isNumber(b.y[M])?z+=" w".concat(_.randomId()):z="apexcharts-nullpoint";var I=this.getMarkerConfig({cssClass:z,seriesIndex:t,dataPointIndex:Z});v.config.series[m].data[Z]&&(v.config.series[m].data[Z].fillColor&&(I.pointFillColor=v.config.series[m].data[Z].fillColor),v.config.series[m].data[Z].strokeColor&&(I.pointStrokeColor=v.config.series[m].data[Z].strokeColor)),n&&(I.pSize=n),(h=H.drawMarker(b.x[M],b.y[M],I)).attr("rel",Z),h.attr("j",Z),h.attr("index",t),h.node.setAttribute("default-marker-size",I.pSize);var D=new A(this.ctx);D.setSelectionFilter(h,t,Z),this.addEvents(h),g&&g.add(h)}else v.globals.pointsArray[t]===void 0&&(v.globals.pointsArray[t]=[]),v.globals.pointsArray[t].push([b.x[M],b.y[M]])}return g}},{key:"getMarkerConfig",value:function(l){var t=l.cssClass,o=l.seriesIndex,n=l.dataPointIndex,h=n===void 0?null:n,u=l.finishRadius,v=u===void 0?null:u,m=this.w,b=this.getMarkerStyle(o),g=m.globals.markers.size[o],H=m.config.markers;return h!==null&&H.discrete.length&&H.discrete.map(function(M){M.seriesIndex===o&&M.dataPointIndex===h&&(b.pointStrokeColor=M.strokeColor,b.pointFillColor=M.fillColor,g=M.size,b.pointShape=M.shape)}),{pSize:v===null?g:v,pRadius:H.radius,width:Array.isArray(H.width)?H.width[o]:H.width,height:Array.isArray(H.height)?H.height[o]:H.height,pointStrokeWidth:Array.isArray(H.strokeWidth)?H.strokeWidth[o]:H.strokeWidth,pointStrokeColor:b.pointStrokeColor,pointFillColor:b.pointFillColor,shape:b.pointShape||(Array.isArray(H.shape)?H.shape[o]:H.shape),class:t,pointStrokeOpacity:Array.isArray(H.strokeOpacity)?H.strokeOpacity[o]:H.strokeOpacity,pointStrokeDashArray:Array.isArray(H.strokeDashArray)?H.strokeDashArray[o]:H.strokeDashArray,pointFillOpacity:Array.isArray(H.fillOpacity)?H.fillOpacity[o]:H.fillOpacity,seriesIndex:o}}},{key:"addEvents",value:function(l){var t=this.w,o=new S(this.ctx);l.node.addEventListener("mouseenter",o.pathMouseEnter.bind(this.ctx,l)),l.node.addEventListener("mouseleave",o.pathMouseLeave.bind(this.ctx,l)),l.node.addEventListener("mousedown",o.pathMouseDown.bind(this.ctx,l)),l.node.addEventListener("click",t.config.markers.onClick),l.node.addEventListener("dblclick",t.config.markers.onDblClick),l.node.addEventListener("touchstart",o.pathMouseDown.bind(this.ctx,l),{passive:!0})}},{key:"getMarkerStyle",value:function(l){var t=this.w,o=t.globals.markers.colors,n=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(n)?n[l]:n,pointFillColor:Array.isArray(o)?o[l]:o}}}]),F}(),o1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return p(F,[{key:"draw",value:function(l,t,o){var n=this.w,h=new S(this.ctx),u=o.realIndex,v=o.pointsPos,m=o.zRatio,b=o.elParent,g=h.group({class:"apexcharts-series-markers apexcharts-series-".concat(n.config.chart.type)});if(g.attr("clip-path","url(#gridRectMarkerMask".concat(n.globals.cuid,")")),Array.isArray(v.x))for(var H=0;HI.maxBubbleRadius&&(T=I.maxBubbleRadius)}n.config.chart.animations.enabled||(z=T);var D=v.x[H],B=v.y[H];if(z=z||0,B!==null&&n.globals.series[u][M]!==void 0||(Z=!1),Z){var X=this.drawPoint(D,B,z,T,u,M,t);g.add(X)}b.add(g)}}},{key:"drawPoint",value:function(l,t,o,n,h,u,v){var m=this.w,b=h,g=new E(this.ctx),H=new A(this.ctx),M=new a1(this.ctx),Z=new c1(this.ctx),z=new S(this.ctx),T=Z.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:b,dataPointIndex:u,finishRadius:m.config.chart.type==="bubble"||m.globals.comboCharts&&m.config.series[h]&&m.config.series[h].type==="bubble"?n:null});n=T.pSize;var I,D=M.fillPath({seriesNumber:h,dataPointIndex:u,color:T.pointFillColor,patternUnits:"objectBoundingBox",value:m.globals.series[h][v]});if(T.shape==="circle"?I=z.drawCircle(o):T.shape!=="square"&&T.shape!=="rect"||(I=z.drawRect(0,0,T.width-T.pointStrokeWidth/2,T.height-T.pointStrokeWidth/2,T.pRadius)),m.config.series[b].data[u]&&m.config.series[b].data[u].fillColor&&(D=m.config.series[b].data[u].fillColor),I.attr({x:l-T.width/2-T.pointStrokeWidth/2,y:t-T.height/2-T.pointStrokeWidth/2,cx:l,cy:t,fill:D,"fill-opacity":T.pointFillOpacity,stroke:T.pointStrokeColor,r:n,"stroke-width":T.pointStrokeWidth,"stroke-dasharray":T.pointStrokeDashArray,"stroke-opacity":T.pointStrokeOpacity}),m.config.chart.dropShadow.enabled){var B=m.config.chart.dropShadow;H.dropShadow(I,B,h)}if(!this.initialAnim||m.globals.dataChanged||m.globals.resized)m.globals.animationEnded=!0;else{var X=m.config.chart.animations.speed;g.animateMarker(I,0,T.shape==="circle"?n:{width:T.width,height:T.height},X,m.globals.easing,function(){window.setTimeout(function(){g.animationCompleted(I)},100)})}if(m.globals.dataChanged&&T.shape==="circle")if(this.dynamicAnim){var f,L,O,N,K=m.config.chart.animations.dynamicAnimation.speed;(N=m.globals.previousPaths[h]&&m.globals.previousPaths[h][v])!=null&&(f=N.x,L=N.y,O=N.r!==void 0?N.r:n);for(var n1=0;n1m.globals.gridHeight+M&&(t=m.globals.gridHeight+M/2),m.globals.dataLabelsRects[n]===void 0&&(m.globals.dataLabelsRects[n]=[]),m.globals.dataLabelsRects[n].push({x:l,y:t,width:H,height:M});var Z=m.globals.dataLabelsRects[n].length-2,z=m.globals.lastDrawnDataLabelsIndexes[n]!==void 0?m.globals.lastDrawnDataLabelsIndexes[n][m.globals.lastDrawnDataLabelsIndexes[n].length-1]:0;if(m.globals.dataLabelsRects[n][Z]!==void 0){var T=m.globals.dataLabelsRects[n][z];(l>T.x+T.width+2||t>T.y+T.height+2||l+H4&&arguments[4]!==void 0?arguments[4]:2,u=this.w,v=new S(this.ctx),m=u.config.dataLabels,b=0,g=0,H=o,M=null;if(!m.enabled||!Array.isArray(l.x))return M;M=v.group({class:"apexcharts-data-labels"});for(var Z=0;Zt.globals.gridWidth+I.textRects.width+10)&&(m="");var D=t.globals.dataLabels.style.colors[u];((t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(D=t.globals.dataLabels.style.colors[v]),typeof D=="function"&&(D=D({series:t.globals.series,seriesIndex:u,dataPointIndex:v,w:t})),Z&&(D=Z);var B=M.offsetX,X=M.offsetY;if(t.config.chart.type!=="bar"&&t.config.chart.type!=="rangeBar"||(B=0,X=0),I.drawnextLabel){var f=o.drawText({width:100,height:parseInt(M.style.fontSize,10),x:n+B,y:h+X,foreColor:D,textAnchor:b||M.textAnchor,text:m,fontSize:g||M.style.fontSize,fontFamily:M.style.fontFamily,fontWeight:M.style.fontWeight||"normal"});if(f.attr({class:"apexcharts-datalabel",cx:n,cy:h}),M.dropShadow.enabled){var L=M.dropShadow;new A(this.ctx).dropShadow(f,L)}H.add(f),t.globals.lastDrawnDataLabelsIndexes[u]===void 0&&(t.globals.lastDrawnDataLabelsIndexes[u]=[]),t.globals.lastDrawnDataLabelsIndexes[u].push(v)}}}},{key:"addBackgroundToDataLabel",value:function(l,t){var o=this.w,n=o.config.dataLabels.background,h=n.padding,u=n.padding/2,v=t.width,m=t.height,b=new S(this.ctx).drawRect(t.x-h,t.y-u/2,v+2*h,m+u,n.borderRadius,o.config.chart.background==="transparent"?"#fff":o.config.chart.background,n.opacity,n.borderWidth,n.borderColor);return n.dropShadow.enabled&&new A(this.ctx).dropShadow(b,n.dropShadow),b}},{key:"dataLabelsBackground",value:function(){var l=this.w;if(l.config.chart.type!=="bubble")for(var t=l.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),o=0;oo.globals.gridHeight&&(H=o.globals.gridHeight-Z)),{bcx:v,bcy:u,dataLabelsX:t,dataLabelsY:H}}},{key:"calculateBarsDataLabelsPosition",value:function(l){var t=this.w,o=l.x,n=l.i,h=l.j,u=l.bcy,v=l.barHeight,m=l.barWidth,b=l.textRects,g=l.dataLabelsX,H=l.strokeWidth,M=l.barDataLabelsConfig,Z=l.offX,z=l.offY,T=t.globals.gridHeight/t.globals.dataPoints;m=Math.abs(m);var I=u-(this.barCtx.isTimelineBar?0:T)+v/2+b.height/2+z-3,D=this.barCtx.series[n][h]<0,B=o;switch(this.barCtx.isReversed&&(B=o+m-(D?2*m:0),o=t.globals.gridWidth-m),M.position){case"center":g=D?B+m/2-Z:Math.max(b.width/2,B-m/2)+Z;break;case"bottom":g=D?B+m-H-Math.round(b.width/2)-Z:B-m+H+Math.round(b.width/2)+Z;break;case"top":g=D?B-H+Math.round(b.width/2)-Z:B-H-Math.round(b.width/2)+Z}return t.config.chart.stacked||(g<0?g=g+b.width+H:g+b.width/2>t.globals.gridWidth&&(g=t.globals.gridWidth-b.width-H)),{bcx:o,bcy:u,dataLabelsX:g,dataLabelsY:I}}},{key:"drawCalculatedDataLabels",value:function(l){var t=l.x,o=l.y,n=l.val,h=l.i,u=l.j,v=l.textRects,m=l.barHeight,b=l.barWidth,g=l.dataLabelsConfig,H=this.w,M="rotate(0)";H.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(M="rotate(-90, ".concat(t,", ").concat(o,")"));var Z=new k1(this.barCtx.ctx),z=new S(this.barCtx.ctx),T=g.formatter,I=null,D=H.globals.collapsedSeriesIndices.indexOf(h)>-1;if(g.enabled&&!D){I=z.group({class:"apexcharts-data-labels",transform:M});var B="";n!==void 0&&(B=T(n,{seriesIndex:h,dataPointIndex:u,w:H}));var X=H.globals.series[h][u]<0,f=H.config.plotOptions.bar.dataLabels.position;H.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(f==="top"&&(g.textAnchor=X?"end":"start"),f==="center"&&(g.textAnchor="middle"),f==="bottom"&&(g.textAnchor=X?"end":"start")),this.barCtx.isTimelineBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&bMath.abs(b)&&(B=""):v.height/1.6>Math.abs(m)&&(B=""));var L=c({},g);this.barCtx.isHorizontal&&n<0&&(g.textAnchor==="start"?L.textAnchor="end":g.textAnchor==="end"&&(L.textAnchor="start")),Z.plotDataLabelsText({x:t,y:o,text:B,i:h,j:u,parent:I,dataLabelsConfig:L,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return I}}]),F}(),A1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.legendInactiveClass="legend-mouseover-inactive"}return p(F,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(l){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(_.escapeString(l),"']"))}},{key:"isSeriesHidden",value:function(l){var t=this.getSeriesByName(l),o=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:o}}},{key:"addCollapsedClassToSeries",value:function(l,t){var o=this.w;function n(h){for(var u=0;u0&&arguments[0]!==void 0)||arguments[0],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],o=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],n=this.w,h=_.clone(n.globals.initialSeries);n.globals.previousPaths=[],o?(n.globals.collapsedSeries=[],n.globals.ancillaryCollapsedSeries=[],n.globals.collapsedSeriesIndices=[],n.globals.ancillaryCollapsedSeriesIndices=[]):h=this.emptyCollapsedSeries(h),n.config.series=h,l&&(t&&(n.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(h,n.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(l){for(var t=this.w,o=0;o-1&&(l[o].data=[]);return l}},{key:"toggleSeriesOnHover",value:function(l,t){var o=this.w,n=o.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if(l.type==="mousemove"){var h=parseInt(t.getAttribute("rel"),10)-1,u=null,v=null;o.globals.axisCharts||o.config.chart.type==="radialBar"?o.globals.axisCharts?(u=o.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(h,"']")),v=o.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(h,"']"))):u=o.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(h+1,"']")):u=o.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(h+1,"'] path"));for(var m=0;m=m.from&&g<=m.to&&h[b].classList.remove(o.legendInactiveClass)}}(n.config.plotOptions.heatmap.colorScale.ranges[v])}else l.type==="mouseout"&&u("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var l=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"asc",o=this.w,n=0;if(o.config.series.length>1){for(var h=o.config.series.map(function(v,m){var b=!1;return l&&(b=o.config.series[m].type==="bar"||o.config.series[m].type==="column"),v.data&&v.data.length>0&&!b?m:-1}),u=t==="asc"?0:h.length-1;t==="asc"?u=0;t==="asc"?u++:u--)if(h[u]!==-1){n=h[u];break}}return n}},{key:"getPreviousPaths",value:function(){var l=this.w;function t(u,v,m){for(var b=u[v].childNodes,g={type:m,paths:[],realIndex:u[v].getAttribute("data:realIndex")},H=0;H0)for(var n=function(u){for(var v=l.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(l.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(u,"'] rect")),m=[],b=function(H){var M=function(z){return v[H].getAttribute(z)},Z={x:parseFloat(M("x")),y:parseFloat(M("y")),width:parseFloat(M("width")),height:parseFloat(M("height"))};m.push({rect:Z,color:v[H].getAttribute("color")})},g=0;g0)for(var n=0;n0?t:[]});return l}}]),F}(),y1=function(){function F(l){s(this,F),this.w=l.w,this.barCtx=l}return p(F,[{key:"initVariables",value:function(l){var t=this.w;this.barCtx.series=l,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var o=0;o0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=l[o].length),t.globals.isXNumeric)for(var n=0;nt.globals.minX&&t.globals.seriesX[o][n]0&&(n=b.globals.minXDiff/M),(u=n/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(u=1)}v=b.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?b.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),l=b.globals.padHorizontal+(n-u*this.barCtx.seriesLen)/2}return{x:l,y:t,yDivision:o,xDivision:n,barHeight:h,barWidth:u,zeroH:v,zeroW:m}}},{key:"getPathFillColor",value:function(l,t,o,n){var h=this.w,u=new a1(this.barCtx.ctx),v=null,m=this.barCtx.barOptions.distributed?o:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(b){l[t][o]>=b.from&&l[t][o]<=b.to&&(v=b.color)}),h.config.series[t].data[o]&&h.config.series[t].data[o].fillColor&&(v=h.config.series[t].data[o].fillColor),u.fillPath({seriesNumber:this.barCtx.barOptions.distributed?m:n,dataPointIndex:o,color:v,value:l[t][o]})}},{key:"getStrokeWidth",value:function(l,t,o){var n=0,h=this.w;return this.barCtx.series[l][t]===void 0||this.barCtx.series[l][t]===null?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,h.config.stroke.show&&(this.barCtx.isNullValue||(n=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[o]:this.barCtx.strokeWidth)),n}},{key:"barBackground",value:function(l){var t=l.j,o=l.i,n=l.x1,h=l.x2,u=l.y1,v=l.y2,m=l.elSeries,b=this.w,g=new S(this.barCtx.ctx),H=new A1(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&H===o){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t-=this.barCtx.barOptions.colors.backgroundBarColors.length);var M=this.barCtx.barOptions.colors.backgroundBarColors[t],Z=g.drawRect(n!==void 0?n:0,u!==void 0?u:0,h!==void 0?h:b.globals.gridWidth,v!==void 0?v:b.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,M,this.barCtx.barOptions.colors.backgroundBarOpacity);m.add(Z),Z.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(l){var t=l.barWidth,o=l.barXPosition,n=l.yRatio,h=l.y1,u=l.y2,v=l.strokeWidth,m=l.series,b=l.realIndex,g=l.i,H=l.j,M=l.w,Z=new S(this.barCtx.ctx);(v=Array.isArray(v)?v[b]:v)&&m[g][H]!==0||(v=0),m[g][H]===0&&(t=0);var z={barWidth:t,strokeWidth:v,yRatio:n,barXPosition:o,y1:h,y2:u},T=this.getRoundedBars(M,z,m,g,H),I=o,D=o+t,B=Z.move(I,T.y1),X=Z.move(I,T.y1),f=Z.line(D-v,T.y1);return M.globals.previousPaths.length>0&&(X=this.barCtx.getPreviousPath(b,H,!1)),B=B+Z.line(I,T.y2)+T.startingShape+Z.line(D-v,T.y2)+f+T.endingShape+"z",X=X+Z.line(I,T.y1)+f+f+f+f+f+Z.line(I,T.y1),M.config.chart.stacked&&(this.barCtx.yArrj.push(T.y2),this.barCtx.yArrjF.push(Math.abs(h-T.y2)),this.barCtx.yArrjVal.push(this.barCtx.series[g][H])),{pathTo:B,pathFrom:X}}},{key:"getBarpaths",value:function(l){var t=l.barYPosition,o=l.barHeight,n=l.x1,h=l.x2,u=l.strokeWidth,v=l.series,m=l.realIndex,b=l.i,g=l.j,H=l.w,M=new S(this.barCtx.ctx);(u=Array.isArray(u)?u[m]:u)&&!v[b][g]||(u=0),v[b][g]===0&&(o=0);var Z={barHeight:o,strokeWidth:u,barYPosition:t,x2:h,x1:n},z=this.getRoundedBars(H,Z,v,b,g),T=M.move(z.x1,t),I=M.move(z.x1,t);H.globals.previousPaths.length>0&&(I=this.barCtx.getPreviousPath(m,g,!1));var D=t,B=t+o,X=M.line(z.x1,B-u);return T=T+M.line(z.x2,D)+z.startingShape+M.line(z.x2,B-u)+X+X+z.endingShape+"z",I=I+M.line(z.x1,D)+X+X+X+X+X+M.line(z.x1,D),H.config.chart.stacked&&(this.barCtx.xArrj.push(z.x2),this.barCtx.xArrjF.push(Math.abs(z.x1-z.x2)),this.barCtx.xArrjVal.push(this.barCtx.series[b][g])),{pathTo:T,pathFrom:I}}},{key:"getRoundedBars",value:function(l,t,o,n,h){var u=new S(this.barCtx.ctx),v=0,m=l.config.plotOptions.bar.borderRadius;if(Array.isArray(m)?v=m[n>m.length-1?m.length-1:n]:v=m,this.barCtx.isHorizontal){var b="",g="",H=v,M=v,Z=t.x1,z=t.x2;if(Math.abs(t.x1-t.x2)0:o[n][h]<0;T&&(v*=-1),H=M=v,this.barCtx.barOptions.startingShape==="flat"&&(H=0),this.barCtx.barOptions.endingShape==="flat"&&(M=0),this.barCtx.barOptions.startingShape==="flat"&&this.barCtx.barOptions.endingShape==="flat"&&(v=0),l.config.chart.stacked&&o.length>1&&n!==0?this.barCtx.barOptions.endingShape==="flat"||this.barCtx.barOptions.startingShape==="flat"?Z+=v:Z+=2*M:(Z+=M,z-=H),b=u.quadraticCurve(z+H,t.barYPosition,z+H,t.barYPosition+(T?-1*H:H))+u.line(z+H,t.barYPosition+t.barHeight-t.strokeWidth-(T?-1*H:H))+u.quadraticCurve(z+H,t.barYPosition+t.barHeight-t.strokeWidth,z,t.barYPosition+t.barHeight-t.strokeWidth),g=u.quadraticCurve(Z-M,t.barYPosition+t.barHeight-t.strokeWidth,Z-M,t.barYPosition+t.barHeight-t.strokeWidth-(T?-1*M:M))+u.line(Z-M,t.barYPosition+(T?-1*M:M))+u.quadraticCurve(Z-M,t.barYPosition,Z,t.barYPosition)}return{startingShape:b,endingShape:g,x1:Z,x2:z}}var I="",D="",B=v,X=v,f=t.y2,L=t.y1;if(Math.abs(t.y1-t.y2)1&&n!==0?this.barCtx.barOptions.endingShape==="flat"||this.barCtx.barOptions.startingShape==="flat"?L-=v:L-=2*X:(L-=X,f+=B),I=u.quadraticCurve(t.barXPosition,f-B,t.barXPosition+(O?-1*B:B),f-B)+u.line(t.barXPosition+t.barWidth-t.strokeWidth-(O?-1*B:B),f-B)+u.quadraticCurve(t.barXPosition+t.barWidth-t.strokeWidth,f-B,t.barXPosition+t.barWidth-t.strokeWidth,f),D=u.quadraticCurve(t.barXPosition+t.barWidth-t.strokeWidth,L+X,t.barXPosition+t.barWidth-t.strokeWidth-(O?-1*X:X),L+X)+u.line(t.barXPosition+(O?-1*X:X),L+X)+u.quadraticCurve(t.barXPosition,L+X,t.barXPosition,L)}return{startingShape:I,endingShape:D,y1:L,y2:f}}},{key:"checkZeroSeries",value:function(l){for(var t=l.series,o=this.w,n=0;n=0;v--)this.barCtx.zeroSerieses.indexOf(v)>-1&&v===this.radiusOnSeriesNumber&&(this.barCtx.radiusOnSeriesNumber-=1);for(var m=t.length-1;m>=0;m--)o.globals.collapsedSeriesIndices.indexOf(this.barCtx.radiusOnSeriesNumber)>-1&&(this.barCtx.radiusOnSeriesNumber-=1)}},{key:"getXForValue",value:function(l,t){var o=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],n=o?t:null;return l!=null&&(n=t+l/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?l/this.barCtx.invertedYRatio:0)),n}},{key:"getYForValue",value:function(l,t){var o=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],n=o?t:null;return l!=null&&(n=t-l/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?l/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),n}},{key:"getGoalValues",value:function(l,t,o,n,h){var u=this,v=this.w,m=[];return v.globals.seriesGoals[n]&&v.globals.seriesGoals[n][h]&&Array.isArray(v.globals.seriesGoals[n][h])&&v.globals.seriesGoals[n][h].forEach(function(b){var g;m.push((y(g={},l,l==="x"?u.getXForValue(b.value,t,!1):u.getYForValue(b.value,o,!1)),y(g,"attrs",b),g))}),m}},{key:"drawGoalLine",value:function(l){var t=l.barXPosition,o=l.barYPosition,n=l.goalX,h=l.goalY,u=l.barWidth,v=l.barHeight,m=new S(this.barCtx.ctx),b=m.group({className:"apexcharts-bar-goals-groups"}),g=null;return this.barCtx.isHorizontal?Array.isArray(n)&&n.forEach(function(H){var M=H.attrs.strokeHeight!==void 0?H.attrs.strokeHeight:v/2,Z=o+M+v/2;g=m.drawLine(H.x,Z-2*M,H.x,Z,H.attrs.strokeColor?H.attrs.strokeColor:void 0,H.attrs.strokeDashArray,H.attrs.strokeWidth?H.attrs.strokeWidth:2,H.attrs.strokeLineCap),b.add(g)}):Array.isArray(h)&&h.forEach(function(H){var M=H.attrs.strokeWidth!==void 0?H.attrs.strokeWidth:u/2,Z=t+M+u/2;g=m.drawLine(Z-2*M,H.y,Z,H.y,H.attrs.strokeColor?H.attrs.strokeColor:void 0,H.attrs.strokeDashArray,H.attrs.strokeHeight?H.attrs.strokeHeight:2,H.attrs.strokeLineCap),b.add(g)}),b}}]),F}(),L1=function(){function F(l,t){s(this,F),this.ctx=l,this.w=l.w;var o=this.w;this.barOptions=o.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=o.config.stroke.width,this.isNullValue=!1,this.isTimelineBar=o.config.xaxis.type==="datetime"&&o.globals.seriesRangeBarTimeline.length,this.xyRatios=t,this.xyRatios!==null&&(this.xRatio=t.xRatio,this.initialXRatio=t.initialXRatio,this.yRatio=t.yRatio,this.invertedXRatio=t.invertedXRatio,this.invertedYRatio=t.invertedYRatio,this.baseLineY=t.baseLineY,this.baseLineInvertedY=t.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.barHelpers=new y1(this)}return p(F,[{key:"draw",value:function(l,t){var o=this.w,n=new S(this.ctx),h=new j(this.ctx,o);l=h.getLogSeries(l),this.series=l,this.yRatio=h.getLogYRatios(this.yRatio),this.barHelpers.initVariables(l);var u=n.group({class:"apexcharts-bar-series apexcharts-plot-series"});o.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.");for(var v=0,m=0;v0&&(this.visibleI=this.visibleI+1);var X=0,f=0;this.yRatio.length>1&&(this.yaxisIndex=D),this.isReversed=o.config.yaxis[this.yaxisIndex]&&o.config.yaxis[this.yaxisIndex].reversed;var L=this.barHelpers.initialPositions();z=L.y,X=L.barHeight,g=L.yDivision,M=L.zeroW,Z=L.x,f=L.barWidth,b=L.xDivision,H=L.zeroH,this.horizontal||I.push(Z+f/2);for(var O=n.group({class:"apexcharts-datalabels","data:realIndex":D}),N=n.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),K=0;K0&&I.push(Z+f/2),T.push(z);var C1=this.barHelpers.getPathFillColor(l,v,K,D);this.renderSeries({realIndex:D,pathFill:C1,j:K,i:v,pathFrom:l1.pathFrom,pathTo:l1.pathTo,strokeWidth:n1,elSeries:B,x:Z,y:z,series:l,barHeight:X,barWidth:f,elDataLabelsWrap:O,elGoalsMarkers:N,visibleSeries:this.visibleI,type:"bar"})}o.globals.seriesXvalues[D]=I,o.globals.seriesYvalues[D]=T,u.add(B)}return u}},{key:"renderSeries",value:function(l){var t=l.realIndex,o=l.pathFill,n=l.lineFill,h=l.j,u=l.i,v=l.pathFrom,m=l.pathTo,b=l.strokeWidth,g=l.elSeries,H=l.x,M=l.y,Z=l.y1,z=l.y2,T=l.series,I=l.barHeight,D=l.barWidth,B=l.barYPosition,X=l.elDataLabelsWrap,f=l.elGoalsMarkers,L=l.visibleSeries,O=l.type,N=this.w,K=new S(this.ctx);n||(n=this.barOptions.distributed?N.globals.stroke.colors[h]:N.globals.stroke.colors[t]),N.config.series[u].data[h]&&N.config.series[u].data[h].strokeColor&&(n=N.config.series[u].data[h].strokeColor),this.isNullValue&&(o="none");var n1=h/N.config.chart.animations.animateGradually.delay*(N.config.chart.animations.speed/N.globals.dataPoints)/2.4,l1=K.renderPaths({i:u,j:h,realIndex:t,pathFrom:v,pathTo:m,stroke:n,strokeWidth:b,strokeLineCap:N.config.stroke.lineCap,fill:o,animationDelay:n1,initialSpeed:N.config.chart.animations.speed,dataChangeSpeed:N.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(O,"-area")});l1.attr("clip-path","url(#gridRectMask".concat(N.globals.cuid,")"));var b1=N.config.forecastDataPoints;b1.count>0&&h>=N.globals.dataPoints-b1.count&&(l1.node.setAttribute("stroke-dasharray",b1.dashArray),l1.node.setAttribute("stroke-width",b1.strokeWidth),l1.node.setAttribute("fill-opacity",b1.fillOpacity)),Z!==void 0&&z!==void 0&&(l1.attr("data-range-y1",Z),l1.attr("data-range-y2",z)),new A(this.ctx).setSelectionFilter(l1,t,h),g.add(l1);var m1=new w1(this).handleBarDataLabels({x:H,y:M,y1:Z,y2:z,i:u,j:h,series:T,realIndex:t,barHeight:I,barWidth:D,barYPosition:B,renderedPath:l1,visibleSeries:L});return m1!==null&&X.add(m1),g.add(X),f&&g.add(f),g}},{key:"drawBarPaths",value:function(l){var t=l.indexes,o=l.barHeight,n=l.strokeWidth,h=l.zeroW,u=l.x,v=l.y,m=l.yDivision,b=l.elSeries,g=this.w,H=t.i,M=t.j;g.globals.isXNumeric&&(v=(g.globals.seriesX[H][M]-g.globals.minX)/this.invertedXRatio-o);var Z=v+o*this.visibleI;u=this.barHelpers.getXForValue(this.series[H][M],h);var z=this.barHelpers.getBarpaths({barYPosition:Z,barHeight:o,x1:h,x2:u,strokeWidth:n,series:this.series,realIndex:t.realIndex,i:H,j:M,w:g});return g.globals.isXNumeric||(v+=m),this.barHelpers.barBackground({j:M,i:H,y1:Z-o*this.visibleI,y2:o*this.seriesLen,elSeries:b}),{pathTo:z.pathTo,pathFrom:z.pathFrom,x:u,y:v,goalX:this.barHelpers.getGoalValues("x",h,null,H,M),barYPosition:Z}}},{key:"drawColumnPaths",value:function(l){var t=l.indexes,o=l.x,n=l.y,h=l.xDivision,u=l.barWidth,v=l.zeroH,m=l.strokeWidth,b=l.elSeries,g=this.w,H=t.realIndex,M=t.i,Z=t.j,z=t.bc;if(g.globals.isXNumeric){var T=H;g.globals.seriesX[H].length||(T=g.globals.maxValsInArrayIndex),o=(g.globals.seriesX[T][Z]-g.globals.minX)/this.xRatio-u*this.seriesLen/2}var I=o+u*this.visibleI;n=this.barHelpers.getYForValue(this.series[M][Z],v);var D=this.barHelpers.getColumnPaths({barXPosition:I,barWidth:u,y1:v,y2:n,strokeWidth:m,series:this.series,realIndex:t.realIndex,i:M,j:Z,w:g});return g.globals.isXNumeric||(o+=h),this.barHelpers.barBackground({bc:z,j:Z,i:M,x1:I-m/2-u*this.visibleI,x2:u*this.seriesLen+m/2,elSeries:b}),{pathTo:D.pathTo,pathFrom:D.pathFrom,x:o,y:n,goalY:this.barHelpers.getGoalValues("y",null,v,M,Z),barXPosition:I}}},{key:"getPreviousPath",value:function(l,t){for(var o,n=this.w,h=0;h0&&parseInt(u.realIndex,10)===parseInt(l,10)&&n.globals.previousPaths[h].paths[t]!==void 0&&(o=n.globals.previousPaths[h].paths[t].d)}return o}}]),F}(),g1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return p(F,[{key:"isValidDate",value:function(l){return!isNaN(this.parseDate(l))}},{key:"getTimeStamp",value:function(l){return Date.parse(l)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(l).toISOString().substr(0,25)).getTime():new Date(l).getTime():l}},{key:"getDate",value:function(l){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(l).toUTCString()):new Date(l)}},{key:"parseDate",value:function(l){var t=Date.parse(l);if(!isNaN(t))return this.getTimeStamp(l);var o=Date.parse(l.replace(/-/g,"/").replace(/[a-z]+/gi," "));return o=this.getTimeStamp(o)}},{key:"parseDateWithTimezone",value:function(l){return Date.parse(l.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(l,t){var o=this.w.globals.locale,n=this.w.config.xaxis.labels.datetimeUTC,h=["\0"].concat(P(o.months)),u=[""].concat(P(o.shortMonths)),v=[""].concat(P(o.days)),m=[""].concat(P(o.shortDays));function b(K,n1){var l1=K+"";for(n1=n1||2;l1.length12?Z-12:Z===0?12:Z;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+b(Z))).replace(/(^|[^\\])H/g,"$1"+Z)).replace(/(^|[^\\])hh+/g,"$1"+b(z))).replace(/(^|[^\\])h/g,"$1"+z);var T=n?l.getUTCMinutes():l.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+b(T))).replace(/(^|[^\\])m/g,"$1"+T);var I=n?l.getUTCSeconds():l.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+b(I))).replace(/(^|[^\\])s/g,"$1"+I);var D=n?l.getUTCMilliseconds():l.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+b(D,3)),D=Math.round(D/10),t=t.replace(/(^|[^\\])ff/g,"$1"+b(D)),D=Math.round(D/10);var B=Z<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+D)).replace(/(^|[^\\])TT+/g,"$1"+B)).replace(/(^|[^\\])T/g,"$1"+B.charAt(0));var X=B.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+X)).replace(/(^|[^\\])t/g,"$1"+X.charAt(0));var f=-l.getTimezoneOffset(),L=n||!f?"Z":f>0?"+":"-";if(!n){var O=(f=Math.abs(f))%60;L+=b(Math.floor(f/60))+":"+b(O)}t=t.replace(/(^|[^\\])K/g,"$1"+L);var N=(n?l.getUTCDay():l.getDay())+1;return t=(t=(t=(t=(t=t.replace(new RegExp(v[0],"g"),v[N])).replace(new RegExp(m[0],"g"),m[N])).replace(new RegExp(h[0],"g"),h[H])).replace(new RegExp(u[0],"g"),u[H])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(l,t,o){var n=this.w;n.config.xaxis.min!==void 0&&(l=n.config.xaxis.min),n.config.xaxis.max!==void 0&&(t=n.config.xaxis.max);var h=this.getDate(l),u=this.getDate(t),v=this.formatDate(h,"yyyy MM dd HH mm ss fff").split(" "),m=this.formatDate(u,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(v[6],10),maxMillisecond:parseInt(m[6],10),minSecond:parseInt(v[5],10),maxSecond:parseInt(m[5],10),minMinute:parseInt(v[4],10),maxMinute:parseInt(m[4],10),minHour:parseInt(v[3],10),maxHour:parseInt(m[3],10),minDate:parseInt(v[2],10),maxDate:parseInt(m[2],10),minMonth:parseInt(v[1],10)-1,maxMonth:parseInt(m[1],10)-1,minYear:parseInt(v[0],10),maxYear:parseInt(m[0],10)}}},{key:"isLeapYear",value:function(l){return l%4==0&&l%100!=0||l%400==0}},{key:"calculcateLastDaysOfMonth",value:function(l,t,o){return this.determineDaysOfMonths(l,t)-o}},{key:"determineDaysOfYear",value:function(l){var t=365;return this.isLeapYear(l)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(l,t,o){var n=this.daysCntOfYear[t]+o;return t>1&&this.isLeapYear()&&n++,n}},{key:"determineDaysOfMonths",value:function(l,t){var o=30;switch(l=_.monthMod(l),!0){case this.months30.indexOf(l)>-1:l===2&&(o=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(l)>-1:default:o=31}return o}}]),F}(),_1=function(F){V(t,L1);var l=k(t);function t(){return s(this,t),l.apply(this,arguments)}return p(t,[{key:"draw",value:function(o,n){var h=this.w,u=new S(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=o,this.seriesRangeStart=h.globals.seriesRangeStart,this.seriesRangeEnd=h.globals.seriesRangeEnd,this.barHelpers.initVariables(o);for(var v=u.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),m=0;m0&&(this.visibleI=this.visibleI+1);var D=0,B=0;this.yRatio.length>1&&(this.yaxisIndex=T);var X=this.barHelpers.initialPositions();Z=X.y,H=X.zeroW,M=X.x,B=X.barWidth,b=X.xDivision,g=X.zeroH;for(var f=u.group({class:"apexcharts-datalabels","data:realIndex":T}),L=u.group({class:"apexcharts-rangebar-goals-markers",style:"pointer-events: none"}),O=0;O0});return u=H.config.plotOptions.bar.rangeBarGroupRows?v+b*T:v+m*this.visibleI+b*T,I>-1&&!H.config.plotOptions.bar.rangeBarOverlap&&(M=H.globals.seriesRangeBarTimeline[n][I].overlaps).indexOf(Z)>-1&&(u=(m=g.barHeight/M.length)*this.visibleI+b*(100-parseInt(this.barOptions.barHeight,10))/100/2+m*(this.visibleI+M.indexOf(Z))+b*T),{barYPosition:u,barHeight:m}}},{key:"drawRangeColumnPaths",value:function(o){var n=o.indexes,h=o.x;o.strokeWidth;var u=o.xDivision,v=o.barWidth,m=o.zeroH,b=this.w,g=n.i,H=n.j,M=this.yRatio[this.yaxisIndex],Z=n.realIndex,z=this.getRangeValue(Z,H),T=Math.min(z.start,z.end),I=Math.max(z.start,z.end);b.globals.isXNumeric&&(h=(b.globals.seriesX[g][H]-b.globals.minX)/this.xRatio-v/2);var D=h+v*this.visibleI;this.series[g][H]===void 0||this.series[g][H]===null?T=m:(T=m-T/M,I=m-I/M);var B=Math.abs(I-T),X=this.barHelpers.getColumnPaths({barXPosition:D,barWidth:v,y1:T,y2:I,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:n.realIndex,i:Z,j:H,w:b});return b.globals.isXNumeric||(h+=u),{pathTo:X.pathTo,pathFrom:X.pathFrom,barHeight:B,x:h,y:I,goalY:this.barHelpers.getGoalValues("y",null,m,g,H),barXPosition:D}}},{key:"drawRangeBarPaths",value:function(o){var n=o.indexes,h=o.y,u=o.y1,v=o.y2,m=o.yDivision,b=o.barHeight,g=o.barYPosition,H=o.zeroW,M=this.w,Z=H+u/this.invertedYRatio,z=H+v/this.invertedYRatio,T=Math.abs(z-Z),I=this.barHelpers.getBarpaths({barYPosition:g,barHeight:b,x1:Z,x2:z,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:n.realIndex,realIndex:n.realIndex,j:n.j,w:M});return M.globals.isXNumeric||(h+=m),{pathTo:I.pathTo,pathFrom:I.pathFrom,barWidth:T,x:z,goalX:this.barHelpers.getGoalValues("x",H,null,n.realIndex,n.j),y:h}}},{key:"getRangeValue",value:function(o,n){var h=this.w;return{start:h.globals.seriesRangeStart[o][n],end:h.globals.seriesRangeEnd[o][n]}}},{key:"getTooltipValues",value:function(o){var n=o.ctx,h=o.seriesIndex,u=o.dataPointIndex,v=o.y1,m=o.y2,b=o.w,g=b.globals.seriesRangeStart[h][u],H=b.globals.seriesRangeEnd[h][u],M=b.globals.labels[u],Z=b.config.series[h].name?b.config.series[h].name:"",z=b.config.tooltip.y.formatter,T=b.config.tooltip.y.title.formatter,I={w:b,seriesIndex:h,dataPointIndex:u,start:g,end:H};typeof T=="function"&&(Z=T(Z,I)),Number.isFinite(v)&&Number.isFinite(m)&&(g=v,H=m,b.config.series[h].data[u].x&&(M=b.config.series[h].data[u].x+":"),typeof z=="function"&&(M=z(M,I)));var D="",B="",X=b.globals.colors[h];if(b.config.tooltip.x.formatter===void 0)if(b.config.xaxis.type==="datetime"){var f=new g1(n);D=f.formatDate(f.getDate(g),b.config.tooltip.x.format),B=f.formatDate(f.getDate(H),b.config.tooltip.x.format)}else D=g,B=H;else D=b.config.tooltip.x.formatter(g),B=b.config.tooltip.x.formatter(H);return{start:g,end:H,startVal:D,endVal:B,ylabel:M,color:X,seriesName:Z}}},{key:"buildCustomTooltipHTML",value:function(o){var n=o.color,h=o.seriesName;return'"}}]),t}(),B1=function(){function F(l){s(this,F),this.opts=l}return p(F,[{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(l){return 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,_.extend(l,{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:"candlestick",value:function(){var l=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var o=t.seriesIndex,n=t.dataPointIndex,h=t.w;return l._getBoxTooltip(h,o,n,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var l=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var o=t.seriesIndex,n=t.dataPointIndex,h=t.w;return l._getBoxTooltip(h,o,n,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(l,t){t.ctx;var o=t.seriesIndex,n=t.dataPointIndex,h=t.w,u=h.globals.seriesRangeStart[o][n];return h.globals.seriesRangeEnd[o][n]-u},background:{enabled:!1},style:{colors:["#fff"]}},tooltip:{shared:!1,followCursor:!0,custom:function(l){return l.w.config.plotOptions&&l.w.config.plotOptions.bar&&l.w.config.plotOptions.bar.horizontal?function(t){var o=new _1(t.ctx,null),n=o.getTooltipValues(t),h=n.color,u=n.seriesName,v=n.ylabel,m=n.startVal,b=n.endVal;return o.buildCustomTooltipHTML({color:h,seriesName:u,ylabel:v,start:m,end:b})}(l):function(t){var o=new _1(t.ctx,null),n=o.getTooltipValues(t),h=n.color,u=n.seriesName,v=n.ylabel,m=n.start,b=n.end;return o.buildCustomTooltipHTML({color:h,seriesName:u,ylabel:v,start:m,end:b})}(l)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"area",value:function(){return{stroke:{width:4},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:"brush",value:function(l){return _.extend(l,{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(l){l.dataLabels=l.dataLabels||{},l.dataLabels.formatter=l.dataLabels.formatter||void 0;var t=l.dataLabels.formatter;return l.yaxis.forEach(function(o,n){l.yaxis[n].min=0,l.yaxis[n].max=100}),l.chart.type==="bar"&&(l.dataLabels.formatter=t||function(o){return typeof o=="number"&&o?o.toFixed(0)+"%":o}),l}},{key:"convertCatToNumeric",value:function(l){return l.xaxis.convertedCatToNumeric=!0,l}},{key:"convertCatToNumericXaxis",value:function(l,t,o){l.xaxis.type="numeric",l.xaxis.labels=l.xaxis.labels||{},l.xaxis.labels.formatter=l.xaxis.labels.formatter||function(u){return _.isNumber(u)?Math.floor(u):u};var n=l.xaxis.labels.formatter,h=l.xaxis.categories&&l.xaxis.categories.length?l.xaxis.categories:l.labels;return o&&o.length&&(h=o.map(function(u){return Array.isArray(u)?u:String(u)})),h&&h.length&&(l.xaxis.labels.formatter=function(u){return _.isNumber(u)?n(h[Math.floor(u)-1]):n(u)}),l.xaxis.categories=[],l.labels=[],l.xaxis.tickAmount=l.xaxis.tickAmount||"dataPoints",l}},{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(l){return l.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(l){return l.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(l){return l.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(l){return l},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(l,t,o,n,h){var u=l.globals.seriesCandleO[t][o],v=l.globals.seriesCandleH[t][o],m=l.globals.seriesCandleM[t][o],b=l.globals.seriesCandleL[t][o],g=l.globals.seriesCandleC[t][o];return l.config.series[t].type&&l.config.series[t].type!==h?`
- `.concat(l.config.series[t].name?l.config.series[t].name:"series-"+(t+1),": ").concat(l.globals.series[t][o],`
-
`):'"}}]),F}(),r2=function(){function F(l){s(this,F),this.opts=l}return p(F,[{key:"init",value:function(l){var t=l.responsiveOverride,o=this.opts,n=new t1,h=new B1(o);this.chartType=o.chart.type,this.chartType==="histogram"&&(o.chart.type="bar",o=_.extend({plotOptions:{bar:{columnWidth:"99.99%"}}},o)),o=this.extendYAxis(o),o=this.extendAnnotations(o);var u=n.init(),v={};if(o&&i(o)==="object"){var m={};m=["line","area","bar","candlestick","boxPlot","rangeBar","histogram","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(o.chart.type)!==-1?h[o.chart.type]():h.line(),o.chart.brush&&o.chart.brush.enabled&&(m=h.brush(m)),o.chart.stacked&&o.chart.stackType==="100%"&&(o=h.stacked100(o)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(o),o.xaxis=o.xaxis||window.Apex.xaxis||{},t||(o.xaxis.convertedCatToNumeric=!1),((o=this.checkForCatToNumericXAxis(this.chartType,m,o)).chart.sparkline&&o.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(m=h.sparkline(m)),v=_.extend(u,m)}var b=_.extend(v,window.Apex);return u=_.extend(b,o),u=this.handleUserInputErrors(u)}},{key:"checkForCatToNumericXAxis",value:function(l,t,o){var n=new B1(o),h=l==="bar"&&o.plotOptions&&o.plotOptions.bar&&o.plotOptions.bar.horizontal,u=l==="pie"||l==="polarArea"||l==="donut"||l==="radar"||l==="radialBar"||l==="heatmap",v=o.xaxis.type!=="datetime"&&o.xaxis.type!=="numeric",m=o.xaxis.tickPlacement?o.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return h||u||!v||m==="between"||(o=n.convertCatToNumeric(o)),o}},{key:"extendYAxis",value:function(l,t){var o=new t1;(l.yaxis===void 0||!l.yaxis||Array.isArray(l.yaxis)&&l.yaxis.length===0)&&(l.yaxis={}),l.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(l.yaxis=_.extend(l.yaxis,window.Apex.yaxis)),l.yaxis.constructor!==Array?l.yaxis=[_.extend(o.yAxis,l.yaxis)]:l.yaxis=_.extendArray(l.yaxis,o.yAxis);var n=!1;l.yaxis.forEach(function(u){u.logarithmic&&(n=!0)});var h=l.series;return t&&!h&&(h=t.config.series),n&&h.length!==l.yaxis.length&&h.length&&(l.yaxis=h.map(function(u,v){if(u.name||(h[v].name="series-".concat(v+1)),l.yaxis[v])return l.yaxis[v].seriesName=h[v].name,l.yaxis[v];var m=_.extend(o.yAxis,l.yaxis[0]);return m.show=!1,m})),n&&h.length>1&&h.length!==l.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."),l}},{key:"extendAnnotations",value:function(l){return l.annotations===void 0&&(l.annotations={},l.annotations.yaxis=[],l.annotations.xaxis=[],l.annotations.points=[]),l=this.extendYAxisAnnotations(l),l=this.extendXAxisAnnotations(l),l=this.extendPointAnnotations(l)}},{key:"extendYAxisAnnotations",value:function(l){var t=new t1;return l.annotations.yaxis=_.extendArray(l.annotations.yaxis!==void 0?l.annotations.yaxis:[],t.yAxisAnnotation),l}},{key:"extendXAxisAnnotations",value:function(l){var t=new t1;return l.annotations.xaxis=_.extendArray(l.annotations.xaxis!==void 0?l.annotations.xaxis:[],t.xAxisAnnotation),l}},{key:"extendPointAnnotations",value:function(l){var t=new t1;return l.annotations.points=_.extendArray(l.annotations.points!==void 0?l.annotations.points:[],t.pointAnnotation),l}},{key:"checkForDarkTheme",value:function(l){l.theme&&l.theme.mode==="dark"&&(l.tooltip||(l.tooltip={}),l.tooltip.theme!=="light"&&(l.tooltip.theme="dark"),l.chart.foreColor||(l.chart.foreColor="#f6f7f8"),l.chart.background||(l.chart.background="#424242"),l.theme.palette||(l.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(l){var t=l;if(t.tooltip.shared&&t.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(t.chart.type==="bar"&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return t.chart.type!=="bar"&&t.chart.type!=="rangeBar"||t.tooltip.shared&&t.xaxis.crosshairs.width==="barWidth"&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),t.chart.type!=="candlestick"&&t.chart.type!=="boxPlot"||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t.chart.group&&t.yaxis[0].labels.minWidth===0&&console.warn("It looks like you have multiple charts in synchronization. You must provide yaxis.labels.minWidth which must be EQUAL for all grouped charts to prevent incorrect behaviour."),Array.isArray(t.stroke.width)&&t.chart.type!=="line"&&t.chart.type!=="area"&&(console.warn("stroke.width option accepts array only for line and area charts. Reverted back to Number"),t.stroke.width=t.stroke.width[0]),t}}]),F}(),p2=function(){function F(){s(this,F)}return p(F,[{key:"initGlobalVars",value:function(l){l.series=[],l.seriesCandleO=[],l.seriesCandleH=[],l.seriesCandleM=[],l.seriesCandleL=[],l.seriesCandleC=[],l.seriesRangeStart=[],l.seriesRangeEnd=[],l.seriesRangeBarTimeline=[],l.seriesPercent=[],l.seriesGoals=[],l.seriesX=[],l.seriesZ=[],l.seriesNames=[],l.seriesTotals=[],l.seriesLog=[],l.seriesColors=[],l.stackedSeriesTotals=[],l.seriesXvalues=[],l.seriesYvalues=[],l.labels=[],l.categoryLabels=[],l.timescaleLabels=[],l.noLabelsProvided=!1,l.resizeTimer=null,l.selectionResizeTimer=null,l.delayedElements=[],l.pointsArray=[],l.dataLabelsRects=[],l.isXNumeric=!1,l.xaxisLabelsCount=0,l.skipLastTimelinelabel=!1,l.skipFirstTimelinelabel=!1,l.isDataXYZ=!1,l.isMultiLineX=!1,l.isMultipleYAxis=!1,l.maxY=-Number.MAX_VALUE,l.minY=Number.MIN_VALUE,l.minYArr=[],l.maxYArr=[],l.maxX=-Number.MAX_VALUE,l.minX=Number.MAX_VALUE,l.initialMaxX=-Number.MAX_VALUE,l.initialMinX=Number.MAX_VALUE,l.maxDate=0,l.minDate=Number.MAX_VALUE,l.minZ=Number.MAX_VALUE,l.maxZ=-Number.MAX_VALUE,l.minXDiff=Number.MAX_VALUE,l.yAxisScale=[],l.xAxisScale=null,l.xAxisTicksPositions=[],l.yLabelsCoords=[],l.yTitleCoords=[],l.barPadForNumericAxis=0,l.padHorizontal=0,l.xRange=0,l.yRange=[],l.zRange=0,l.dataPoints=0,l.xTickAmount=0}},{key:"globalVars",value:function(l){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:l.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:l.chart.toolbar.autoSelected==="zoom"&&l.chart.toolbar.tools.zoom&&l.chart.zoom.enabled,panEnabled:l.chart.toolbar.autoSelected==="pan"&&l.chart.toolbar.tools.pan,selectionEnabled:l.chart.toolbar.autoSelected==="selection"&&l.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,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(l){var t=this.globalVars(l);return this.initGlobalVars(t),t.initialConfig=_.extend({},l),t.initialSeries=_.clone(l.series),t.lastXAxis=_.clone(t.initialConfig.xaxis),t.lastYAxis=_.clone(t.initialConfig.yaxis),t}}]),F}(),r1=function(){function F(l){s(this,F),this.opts=l}return p(F,[{key:"init",value:function(){var l=new r2(this.opts).init({responsiveOverride:!1});return{config:l,globals:new p2().init(l)}}}]),F}(),h1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new j(this.ctx)}return p(F,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var l=this.w.config.series.slice(),t=new A1(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),l[this.activeSeriesIndex].data!==void 0&&l[this.activeSeriesIndex].data.length>0&&l[this.activeSeriesIndex].data[0]!==null&&l[this.activeSeriesIndex].data[0].x!==void 0&&l[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var l=this.w.config.series.slice(),t=new A1(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),l[this.activeSeriesIndex].data!==void 0&&l[this.activeSeriesIndex].data.length>0&&l[this.activeSeriesIndex].data[0]!==void 0&&l[this.activeSeriesIndex].data[0]!==null&&l[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(l,t){for(var o=this.w.config,n=this.w.globals,h=o.chart.type==="boxPlot"||o.series[t].type==="boxPlot",u=0;u=5?this.twoDSeries.push(_.parseNumber(l[t].data[u][4])):this.twoDSeries.push(_.parseNumber(l[t].data[u][1])),n.dataFormatXNumeric=!0),o.xaxis.type==="datetime"){var v=new Date(l[t].data[u][0]);v=new Date(v).getTime(),this.twoDSeriesX.push(v)}else this.twoDSeriesX.push(l[t].data[u][0]);for(var m=0;m-1&&(u=this.activeSeriesIndex);for(var v=0;v1&&arguments[1]!==void 0?arguments[1]:this.ctx,n=this.w.config,h=this.w.globals,u=new g1(o),v=n.labels.length>0?n.labels.slice():n.xaxis.categories.slice();h.isTimelineBar=n.chart.type==="rangeBar"&&n.xaxis.type==="datetime";for(var m=function(){for(var H=0;H0&&(this.twoDSeriesX=v,h.seriesX.push(this.twoDSeriesX))),h.labels.push(this.twoDSeriesX);var g=l[b].data.map(function(H){return _.parseNumber(H)});h.series.push(g)}h.seriesZ.push(this.threeDSeries),l[b].name!==void 0?h.seriesNames.push(l[b].name):h.seriesNames.push("series-"+parseInt(b+1,10)),l[b].color!==void 0?h.seriesColors.push(l[b].color):h.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(l){var t=this.w.globals,o=this.w.config;t.series=l.slice(),t.seriesNames=o.labels.slice();for(var n=0;n0?o.labels=t.xaxis.categories:t.labels.length>0?o.labels=t.labels.slice():this.fallbackToCategory?(o.labels=o.labels[0],o.seriesRangeBarTimeline.length&&(o.seriesRangeBarTimeline.map(function(n){n.forEach(function(h){o.labels.indexOf(h.x)<0&&h.x&&o.labels.push(h.x)})}),o.labels=o.labels.filter(function(n,h,u){return u.indexOf(n)===h})),t.xaxis.convertedCatToNumeric&&(new B1(t).convertCatToNumericXaxis(t,this.ctx,o.seriesX[0]),this._generateExternalLabels(l))):this._generateExternalLabels(l)}},{key:"_generateExternalLabels",value:function(l){var t=this.w.globals,o=this.w.config,n=[];if(t.axisCharts){if(t.series.length>0)for(var h=0;h0&&n<100?o.toFixed(1):o.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?o.toFixed(1):o.toFixed(0)}return o},typeof t.config.tooltip.x.formatter=="function"?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,typeof t.config.xaxis.tooltip.formatter=="function"&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||t.config.tooltip.y.formatter!==void 0)&&(t.globals.ttVal=t.config.tooltip.y),t.config.tooltip.z.formatter!==void 0&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),t.config.legend.formatter!==void 0&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach(function(o,n){o.labels.formatter!==void 0?t.globals.yLabelFormatters[n]=o.labels.formatter:t.globals.yLabelFormatters[n]=function(h){return t.globals.xyCharts?Array.isArray(h)?h.map(function(u){return l.defaultYFormatter(u,o,n)}):l.defaultYFormatter(h,o,n):h}}),t.globals}},{key:"heatmapLabelFormatters",value:function(){var l=this.w;if(l.config.chart.type==="heatmap"){l.globals.yAxisScale[0].result=l.globals.seriesNames.slice();var t=l.globals.seriesNames.reduce(function(o,n){return o.length>n.length?o:n},0);l.globals.yAxisScale[0].niceMax=t,l.globals.yAxisScale[0].niceMin=t}}}]),F}(),x1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"getLabel",value:function(l,t,o,n){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",v=this.w,m=l[n]===void 0?"":l[n],b=m,g=v.globals.xLabelFormatter,H=v.config.xaxis.labels.formatter,M=!1,Z=new p1(this.ctx),z=m;b=Z.xLabelFormat(g,m,z,{i:n,dateFormatter:new g1(this.ctx).formatDate,w:v}),H!==void 0&&(b=H(m,l[n],{i:n,dateFormatter:new g1(this.ctx).formatDate,w:v}));var T=function(X){var f=null;return t.forEach(function(L){L.unit==="month"?f="year":L.unit==="day"?f="month":L.unit==="hour"?f="day":L.unit==="minute"&&(f="hour")}),f===X};t.length>0?(M=T(t[n].unit),o=t[n].position,b=t[n].value):v.config.xaxis.type==="datetime"&&H===void 0&&(b=""),b===void 0&&(b=""),b=Array.isArray(b)?b:b.toString();var I=new S(this.ctx),D={};D=v.globals.rotateXLabels?I.getTextRects(b,parseInt(u,10),null,"rotate(".concat(v.config.xaxis.labels.rotate," 0 0)"),!1):I.getTextRects(b,parseInt(u,10));var B=!v.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(b)&&(b.indexOf("NaN")===0||b.toLowerCase().indexOf("invalid")===0||b.toLowerCase().indexOf("infinity")>=0||h.indexOf(b)>=0&&B)&&(b=""),{x:o,text:b,textRect:D,isBold:M}}},{key:"checkLabelBasedOnTickamount",value:function(l,t,o){var n=this.w,h=n.config.xaxis.tickAmount;return h==="dataPoints"&&(h=Math.round(n.globals.gridWidth/120)),h>o||l%Math.round(o/(h+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(l,t,o,n,h){var u=this.w;if(l===0&&u.globals.skipFirstTimelinelabel&&(t.text=""),l===o-1&&u.globals.skipLastTimelinelabel&&(t.text=""),u.config.xaxis.labels.hideOverlappingLabels&&n.length>0){var v=h[h.length-1];t.x0){m.config.yaxis[h].opposite===!0&&(l+=n.width);for(var H=t;H>=0;H--){var M=g+t/10+m.config.yaxis[h].labels.offsetY-1;m.globals.isBarHorizontal&&(M=u*H),m.config.chart.type==="heatmap"&&(M+=u/2);var Z=b.drawLine(l+o.offsetX-n.width+n.offsetX,M+n.offsetY,l+o.offsetX+n.offsetX,M+n.offsetY,n.color);v.add(Z),g+=u}}}}]),F}(),Q1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"scaleSvgNode",value:function(l,t){var o=parseFloat(l.getAttributeNS(null,"width")),n=parseFloat(l.getAttributeNS(null,"height"));l.setAttributeNS(null,"width",o*t),l.setAttributeNS(null,"height",n*t),l.setAttributeNS(null,"viewBox","0 0 "+o+" "+n)}},{key:"fixSvgStringForIe11",value:function(l){if(!_.isIE11())return l;var t=0,o=l.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(n){return++t===2?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':n});return o=(o=o.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(l){var t=this.w.globals.dom.Paper.svg();if(l!==1){var o=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(o,l),t=new XMLSerializer().serializeToString(o)}return this.fixSvgStringForIe11(t)}},{key:"cleanup",value:function(){var l=this.w,t=l.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),o=l.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),n=l.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(n,function(h){h.setAttribute("width",0)}),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),o&&o[0]&&(o[0].setAttribute("y",-100),o[0].setAttribute("y1",-100),o[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var l=this.getSvgString(),t=new Blob([l],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(t)}},{key:"dataURI",value:function(l){var t=this;return new Promise(function(o){var n=t.w,h=l?l.scale||l.width/n.globals.svgWidth:1;t.cleanup();var u=document.createElement("canvas");u.width=n.globals.svgWidth*h,u.height=parseInt(n.globals.dom.elWrap.style.height,10)*h;var v=n.config.chart.background==="transparent"?"#fff":n.config.chart.background,m=u.getContext("2d");m.fillStyle=v,m.fillRect(0,0,u.width*h,u.height*h);var b=t.getSvgString(h);if(window.canvg&&_.isIE11()){var g=window.canvg.Canvg.fromString(m,b,{ignoreClear:!0,ignoreDimensions:!0});g.start();var H=u.msToBlob();g.stop(),o({blob:H})}else{var M="data:image/svg+xml,"+encodeURIComponent(b),Z=new Image;Z.crossOrigin="anonymous",Z.onload=function(){if(m.drawImage(Z,0,0),u.msToBlob){var z=u.msToBlob();o({blob:z})}else{var T=u.toDataURL("image/png");o({imgURI:T})}},Z.src=M}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var l=this;this.dataURI().then(function(t){var o=t.imgURI,n=t.blob;n?navigator.msSaveOrOpenBlob(n,l.w.globals.chartID+".png"):l.triggerDownload(o,l.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(l){var t=this,o=l.series,n=l.columnDelimiter,h=l.lineDelimiter,u=h===void 0?`
-`:h,v=this.w,m=[],b=[],g="data:text/csv;charset=utf-8,\uFEFF",H=new h1(this.ctx),M=new x1(this.ctx),Z=function(z){var T="";if(v.globals.axisCharts){if(v.config.xaxis.type==="category"||v.config.xaxis.convertedCatToNumeric)if(v.globals.isBarHorizontal){var I=v.globals.yLabelFormatters[0],D=new A1(t.ctx).getActiveConfigSeriesIndex();T=I(v.globals.labels[z],{seriesIndex:D,dataPointIndex:z,w:v})}else T=M.getLabel(v.globals.labels,v.globals.timescaleLabels,0,z).text;v.config.xaxis.type==="datetime"&&(v.config.xaxis.categories.length?T=v.config.xaxis.categories[z]:v.config.labels.length&&(T=v.config.labels[z]))}else T=v.config.labels[z];return Array.isArray(T)&&(T=T.join(" ")),_.isNumber(T)?T:T.split(n).join("")};m.push(v.config.chart.toolbar.export.csv.headerCategory),o.map(function(z,T){var I=z.name?z.name:"series-".concat(T);v.globals.axisCharts&&m.push(I.split(n).join("")?I.split(n).join(""):"series-".concat(T))}),v.globals.axisCharts||(m.push(v.config.chart.toolbar.export.csv.headerValue),b.push(m.join(n))),o.map(function(z,T){v.globals.axisCharts?function(I,D){if(m.length&&D===0&&b.push(m.join(n)),I.data&&I.data.length)for(var B=0;B=10?v.config.chart.toolbar.export.csv.dateFormatter(X):_.isNumber(X)?X:X.split(n).join("")));for(var f=0;f0&&!t.globals.isBarHorizontal&&(this.xaxisLabels=t.globals.timescaleLabels.slice()),t.config.xaxis.overwriteCategories&&(this.xaxisLabels=t.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],t.config.xaxis.position==="top"?this.offY=0:this.offY=t.globals.gridHeight+1,this.offY=this.offY+t.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=t.config.chart.type==="bar"&&t.config.plotOptions.bar.horizontal,this.xaxisFontSize=t.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=t.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=t.config.xaxis.labels.style.colors,this.xaxisBorderWidth=t.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=t.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=t.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=t.config.xaxis.axisBorder.height,this.yaxis=t.config.yaxis[0]}return p(F,[{key:"drawXaxis",value:function(){var l,t=this,o=this.w,n=new S(this.ctx),h=n.group({class:"apexcharts-xaxis",transform:"translate(".concat(o.config.xaxis.offsetX,", ").concat(o.config.xaxis.offsetY,")")}),u=n.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(o.globals.translateXAxisX,", ").concat(o.globals.translateXAxisY,")")});h.add(u);for(var v=o.globals.padHorizontal,m=[],b=0;b1?g-1:g;l=o.globals.gridWidth/H,v=v+l/2+o.config.xaxis.labels.offsetX}else l=o.globals.gridWidth/m.length,v=v+l+o.config.xaxis.labels.offsetX;for(var M=function(B){var X=v-l/2+o.config.xaxis.labels.offsetX;B===0&&g===1&&l/2===v&&o.globals.dataPoints===1&&(X=o.globals.gridWidth/2);var f=t.axesUtils.getLabel(m,o.globals.timescaleLabels,X,B,t.drawnLabels,t.xaxisFontSize),L=28;if(o.globals.rotateXLabels&&(L=22),(f=o.config.xaxis.tickAmount!==void 0&&o.config.xaxis.tickAmount!=="dataPoints"&&o.config.xaxis.type!=="datetime"?t.axesUtils.checkLabelBasedOnTickamount(B,f,g):t.axesUtils.checkForOverflowingLabels(B,f,g,t.drawnLabels,t.drawnLabelsRects)).text&&o.globals.xaxisLabelsCount++,o.config.xaxis.labels.show){var O=n.drawText({x:f.x,y:t.offY+o.config.xaxis.labels.offsetY+L-(o.config.xaxis.position==="top"?o.globals.xAxisHeight+o.config.xaxis.axisTicks.height-2:0),text:f.text,textAnchor:"middle",fontWeight:f.isBold?600:o.config.xaxis.labels.style.fontWeight,fontSize:t.xaxisFontSize,fontFamily:t.xaxisFontFamily,foreColor:Array.isArray(t.xaxisForeColors)?o.config.xaxis.convertedCatToNumeric?t.xaxisForeColors[o.globals.minX+B-1]:t.xaxisForeColors[B]:t.xaxisForeColors,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+o.config.xaxis.labels.style.cssClass});u.add(O);var N=document.createElementNS(o.globals.SVGNS,"title");N.textContent=Array.isArray(f.text)?f.text.join(" "):f.text,O.node.appendChild(N),f.text!==""&&(t.drawnLabels.push(f.text),t.drawnLabelsRects.push(f))}v+=l},Z=0;Z<=g-1;Z++)M(Z);if(o.config.xaxis.title.text!==void 0){var z=n.group({class:"apexcharts-xaxis-title"}),T=n.drawText({x:o.globals.gridWidth/2+o.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+o.globals.xAxisLabelsHeight+o.config.xaxis.title.offsetY,text:o.config.xaxis.title.text,textAnchor:"middle",fontSize:o.config.xaxis.title.style.fontSize,fontFamily:o.config.xaxis.title.style.fontFamily,fontWeight:o.config.xaxis.title.style.fontWeight,foreColor:o.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+o.config.xaxis.title.style.cssClass});z.add(T),h.add(z)}if(o.config.xaxis.axisBorder.show){var I=o.globals.barPadForNumericAxis,D=n.drawLine(o.globals.padHorizontal+o.config.xaxis.axisBorder.offsetX-I,this.offY,this.xaxisBorderWidth+I,this.offY,o.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);h.add(D)}return h}},{key:"drawXaxisInversed",value:function(l){var t,o,n=this,h=this.w,u=new S(this.ctx),v=h.config.yaxis[0].opposite?h.globals.translateYAxisX[l]:0,m=u.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:l}),b=u.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+v+", 0)"});m.add(b);var g=[];if(h.config.yaxis[l].show)for(var H=0;Ho.globals.gridWidth)){var h=this.offY+o.config.xaxis.axisTicks.offsetY,u=h+o.config.xaxis.axisTicks.height;if(o.config.xaxis.position==="top"&&(u=h-o.config.xaxis.axisTicks.height),o.config.xaxis.axisTicks.show){var v=new S(this.ctx).drawLine(l+o.config.xaxis.axisTicks.offsetX,h+o.config.xaxis.offsetY,n+o.config.xaxis.axisTicks.offsetX,u+o.config.xaxis.offsetY,o.config.xaxis.axisTicks.color);t.add(v),v.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var l=this.w,t=[],o=this.xaxisLabels.length,n=l.globals.padHorizontal;if(l.globals.timescaleLabels.length>0)for(var h=0;h0){var g=h[h.length-1].getBBox(),H=h[0].getBBox();g.x<-20&&h[h.length-1].parentNode.removeChild(h[h.length-1]),H.x+H.width>l.globals.gridWidth&&!l.globals.isBarHorizontal&&h[0].parentNode.removeChild(h[0]);for(var M=0;M0&&(this.xaxisLabels=t.globals.timescaleLabels.slice())}return p(F,[{key:"drawGridArea",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w,o=new S(this.ctx);l===null&&(l=o.group({class:"apexcharts-grid"}));var n=o.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),h=o.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return l.add(h),l.add(n),l}},{key:"drawGrid",value:function(){var l=null;return this.w.globals.axisCharts&&(l=this.renderGrid(),this.drawGridArea(l.el)),l}},{key:"createGridMask",value:function(){var l=this.w,t=l.globals,o=new S(this.ctx),n=Array.isArray(l.config.stroke.width)?0:l.config.stroke.width;if(Array.isArray(l.config.stroke.width)){var h=0;l.config.stroke.width.forEach(function(H){h=Math.max(h,H)}),n=h}t.dom.elGridRectMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elForecastMask.setAttribute("id","forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(t.cuid));var u=l.config.chart.type,v=0,m=0;(u==="bar"||u==="rangeBar"||u==="candlestick"||u==="boxPlot"||l.globals.comboBarCount>0)&&l.globals.isXNumeric&&!l.globals.isBarHorizontal&&(v=l.config.grid.padding.left,m=l.config.grid.padding.right,t.barPadForNumericAxis>v&&(v=t.barPadForNumericAxis,m=t.barPadForNumericAxis)),t.dom.elGridRect=o.drawRect(-n/2-v-2,-n/2,t.gridWidth+n+m+v+4,t.gridHeight+n,0,"#fff"),new j(this).getLargestMarkerSize();var b=l.globals.markers.largestSize+1;t.dom.elGridRectMarker=o.drawRect(2*-b,2*-b,t.gridWidth+4*b,t.gridHeight+4*b,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var g=t.dom.baseEl.querySelector("defs");g.appendChild(t.dom.elGridRectMask),g.appendChild(t.dom.elForecastMask),g.appendChild(t.dom.elNonForecastMask),g.appendChild(t.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(l){var t=l.i,o=l.x1,n=l.y1,h=l.x2,u=l.y2,v=l.xCount,m=l.parent,b=this.w;t===0&&b.globals.skipFirstTimelinelabel||t===v-1&&b.globals.skipLastTimelinelabel&&!b.config.xaxis.labels.formatter||b.config.chart.type==="radar"||(b.config.grid.xaxis.lines.show&&this._drawGridLine({x1:o,y1:n,x2:h,y2:u,parent:m}),new o2(this.ctx).drawXaxisTicks(o,this.elg))}},{key:"_drawGridLine",value:function(l){var t=l.x1,o=l.y1,n=l.x2,h=l.y2,u=l.parent,v=this.w,m=u.node.classList.contains("apexcharts-gridlines-horizontal"),b=v.config.grid.strokeDashArray,g=v.globals.barPadForNumericAxis,H=new S(this).drawLine(t-(m?g:0),o,n+(m?g:0),h,v.config.grid.borderColor,b);H.node.classList.add("apexcharts-gridline"),u.add(H)}},{key:"_drawGridBandRect",value:function(l){var t=l.c,o=l.x1,n=l.y1,h=l.x2,u=l.y2,v=l.type,m=this.w,b=new S(this.ctx),g=m.globals.barPadForNumericAxis;if(v!=="column"||m.config.xaxis.type!=="datetime"){var H=m.config.grid[v].colors[t],M=b.drawRect(o-(v==="row"?g:0),n,h+(v==="row"?2*g:0),u,0,H,m.config.grid[v].opacity);this.elg.add(M),M.attr("clip-path","url(#gridRectMask".concat(m.globals.cuid,")")),M.node.classList.add("apexcharts-grid-".concat(v))}}},{key:"_drawXYLines",value:function(l){var t=this,o=l.xCount,n=l.tickAmount,h=this.w;if(h.config.grid.xaxis.lines.show||h.config.xaxis.axisTicks.show){var u,v=h.globals.padHorizontal,m=h.globals.gridHeight;h.globals.timescaleLabels.length?function(z){for(var T=z.xC,I=z.x1,D=z.y1,B=z.x2,X=z.y2,f=0;f2));h++);return!l.globals.isBarHorizontal||this.isTimelineBar?(o=this.xaxisLabels.length,this.isTimelineBar&&(n=l.globals.labels.length,l.config.xaxis.tickAmount&&l.config.xaxis.labels.formatter&&(o=l.config.xaxis.tickAmount)),this._drawXYLines({xCount:o,tickAmount:n})):(o=n,n=l.globals.xTickAmount,this._drawInvertedXYLines({xCount:o,tickAmount:n})),this.drawGridBands(o,n),{el:this.elg,xAxisTickWidth:l.globals.gridWidth/o}}},{key:"drawGridBands",value:function(l,t){var o=this.w;if(o.config.grid.row.colors!==void 0&&o.config.grid.row.colors.length>0)for(var n=0,h=o.globals.gridHeight/t,u=o.globals.gridWidth,v=0,m=0;v=o.config.grid.row.colors.length&&(m=0),this._drawGridBandRect({c:m,x1:0,y1:n,x2:u,y2:h,type:"row"}),n+=o.globals.gridHeight/t;if(o.config.grid.column.colors!==void 0&&o.config.grid.column.colors.length>0)for(var b=o.globals.isBarHorizontal||o.config.xaxis.type!=="category"&&!o.config.xaxis.convertedCatToNumeric?l:l-1,g=o.globals.padHorizontal,H=o.globals.padHorizontal+o.globals.gridWidth/b,M=o.globals.gridHeight,Z=0,z=0;Z=o.config.grid.column.colors.length&&(z=0),this._drawGridBandRect({c:z,x1:g,y1:0,x2:H,y2:M,type:"column"}),g+=o.globals.gridWidth/b}}]),F}(),$=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"niceScale",value:function(l,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,h=arguments.length>4?arguments[4]:void 0,u=this.w,v=Math.abs(t-l);if((o=this._adjustTicksForSmallRange(o,n,v))==="dataPoints"&&(o=u.globals.dataPoints-1),l===Number.MIN_VALUE&&t===0||!_.isNumber(l)&&!_.isNumber(t)||l===Number.MIN_VALUE&&t===-Number.MAX_VALUE){l=0,t=o;var m=this.linearScale(l,t,o);return m}l>t?(console.warn("axis.min cannot be greater than axis.max"),t=l+.1):l===t&&(l=l===0?0:l-.5,t=t===0?2:t+.5);var b=[];v<1&&h&&(u.config.chart.type==="candlestick"||u.config.series[n].type==="candlestick"||u.config.chart.type==="boxPlot"||u.config.series[n].type==="boxPlot"||u.globals.isRangeData)&&(t*=1.01);var g=o+1;g<2?g=2:g>2&&(g-=2);var H=v/g,M=Math.floor(_.log10(H)),Z=Math.pow(10,M),z=Math.round(H/Z);z<1&&(z=1);var T=z*Z,I=T*Math.floor(l/T),D=T*Math.ceil(t/T),B=I;if(h&&v>2){for(;b.push(B),!((B+=T)>D););return{result:b,niceMin:b[0],niceMax:b[b.length-1]}}var X=l;(b=[]).push(X);for(var f=Math.abs(t-l)/o,L=0;L<=o;L++)X+=f,b.push(X);return b[b.length-2]>=t&&b.pop(),{result:b,niceMin:b[0],niceMax:b[b.length-1]}}},{key:"linearScale",value:function(l,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,n=arguments.length>3?arguments[3]:void 0,h=Math.abs(t-l);(o=this._adjustTicksForSmallRange(o,n,h))==="dataPoints"&&(o=this.w.globals.dataPoints-1);var u=h/o;o===Number.MAX_VALUE&&(o=10,u=1);for(var v=[],m=l;o>=0;)v.push(m),m+=u,o-=1;return{result:v,niceMin:v[0],niceMax:v[v.length-1]}}},{key:"logarithmicScale",value:function(l){for(var t=[],o=Math.ceil(Math.log10(l))+1,n=0;n5)n.allSeriesCollapsed=!1,n.yAxisScale[l]=this.logarithmicScale(o);else if(o!==-Number.MAX_VALUE&&_.isNumber(o))if(n.allSeriesCollapsed=!1,u.min===void 0&&u.max===void 0||u.forceNiceScale){var m=h.yaxis[l].max===void 0&&h.yaxis[l].min===void 0||h.yaxis[l].forceNiceScale;n.yAxisScale[l]=this.niceScale(t,o,u.tickAmount?u.tickAmount:v<5&&v>1?v+1:5,l,m)}else n.yAxisScale[l]=this.linearScale(t,o,u.tickAmount,l);else n.yAxisScale[l]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(l,t){var o=this.w,n=o.globals,h=o.config.xaxis,u=Math.abs(t-l);return t!==-Number.MAX_VALUE&&_.isNumber(t)?n.xAxisScale=this.linearScale(l,t,h.tickAmount?h.tickAmount:u<5&&u>1?u+1:5,0):n.xAxisScale=this.linearScale(0,5,5),n.xAxisScale}},{key:"setMultipleYScales",value:function(){var l=this,t=this.w.globals,o=this.w.config,n=t.minYArr.concat([]),h=t.maxYArr.concat([]),u=[];o.yaxis.forEach(function(v,m){var b=m;o.series.forEach(function(M,Z){M.name===v.seriesName&&(b=Z,m!==Z?u.push({index:Z,similarIndex:m,alreadyExists:!0}):u.push({index:Z}))});var g=n[b],H=h[b];l.setYScaleForIndex(m,g,H)}),this.sameScaleInMultipleAxes(n,h,u)}},{key:"sameScaleInMultipleAxes",value:function(l,t,o){var n=this,h=this.w.config,u=this.w.globals,v=[];o.forEach(function(T){T.alreadyExists&&(v[T.index]===void 0&&(v[T.index]=[]),v[T.index].push(T.index),v[T.index].push(T.similarIndex))}),u.yAxisSameScaleIndices=v,v.forEach(function(T,I){v.forEach(function(D,B){var X,f;I!==B&&(X=T,f=D,X.filter(function(L){return f.indexOf(L)!==-1})).length>0&&(v[I]=v[I].concat(v[B]))})});var m=v.map(function(T){return T.filter(function(I,D){return T.indexOf(I)===D})}).map(function(T){return T.sort()});v=v.filter(function(T){return!!T});var b=m.slice(),g=b.map(function(T){return JSON.stringify(T)});b=b.filter(function(T,I){return g.indexOf(JSON.stringify(T))===I});var H=[],M=[];l.forEach(function(T,I){b.forEach(function(D,B){D.indexOf(I)>-1&&(H[B]===void 0&&(H[B]=[],M[B]=[]),H[B].push({key:I,value:T}),M[B].push({key:I,value:t[I]}))})});var Z=Array.apply(null,Array(b.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),z=Array.apply(null,Array(b.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);H.forEach(function(T,I){T.forEach(function(D,B){Z[I]=Math.min(D.value,Z[I])})}),M.forEach(function(T,I){T.forEach(function(D,B){z[I]=Math.max(D.value,z[I])})}),l.forEach(function(T,I){M.forEach(function(D,B){var X=Z[B],f=z[B];h.chart.stacked&&(f=0,D.forEach(function(L,O){L.value!==-Number.MAX_VALUE&&(f+=L.value),X!==Number.MIN_VALUE&&(X+=H[B][O].value)})),D.forEach(function(L,O){D[O].key===I&&(h.yaxis[I].min!==void 0&&(X=typeof h.yaxis[I].min=="function"?h.yaxis[I].min(u.minY):h.yaxis[I].min),h.yaxis[I].max!==void 0&&(f=typeof h.yaxis[I].max=="function"?h.yaxis[I].max(u.maxY):h.yaxis[I].max),n.setYScaleForIndex(I,X,f))})})})}},{key:"autoScaleY",value:function(l,t,o){l||(l=this);var n=l.w;if(n.globals.isMultipleYAxis||n.globals.collapsedSeries.length)return console.warn("autoScaleYaxis is not supported in a multi-yaxis chart."),t;var h=n.globals.seriesX[0],u=n.config.chart.stacked;return t.forEach(function(v,m){for(var b=0,g=0;g=o.xaxis.min){b=g;break}var H,M,Z=n.globals.minYArr[m],z=n.globals.maxYArr[m],T=n.globals.stackedSeriesTotals;n.globals.series.forEach(function(I,D){var B=I[b];u?(B=T[b],H=M=B,T.forEach(function(X,f){h[f]<=o.xaxis.max&&h[f]>=o.xaxis.min&&(X>M&&X!==null&&(M=X),I[f]=o.xaxis.min){var L=X,O=X;n.globals.series.forEach(function(N,K){X!==null&&(L=Math.min(N[f],L),O=Math.max(N[f],O))}),O>M&&O!==null&&(M=O),LZ&&(H=Z),t.length>1?(t[D].min=v.min===void 0?H:v.min,t[D].max=v.max===void 0?M:v.max):(t[0].min=v.min===void 0?H:v.min,t[0].max=v.max===void 0?M:v.max)})}),t}}]),F}(),J=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.scales=new $(l)}return p(F,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(l){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,h=this.w.config,u=this.w.globals,v=-Number.MAX_VALUE,m=Number.MIN_VALUE;n===null&&(n=l+1);var b=u.series,g=b,H=b;h.chart.type==="candlestick"?(g=u.seriesCandleL,H=u.seriesCandleH):h.chart.type==="boxPlot"?(g=u.seriesCandleO,H=u.seriesCandleC):u.isRangeData&&(g=u.seriesRangeStart,H=u.seriesRangeEnd);for(var M=l;Mg[M][Z]&&g[M][Z]<0&&(m=g[M][Z])):u.hasNullValues=!0}}return h.chart.type==="rangeBar"&&u.seriesRangeStart.length&&u.isBarHorizontal&&h.xaxis.type==="datetime"&&(m=t),h.chart.type==="bar"&&(m<0&&v<0&&(v=0),m===Number.MIN_VALUE&&(m=0)),{minY:m,maxY:v,lowestY:t,highestY:o}}},{key:"setYRange",value:function(){var l=this.w.globals,t=this.w.config;l.maxY=-Number.MAX_VALUE,l.minY=Number.MIN_VALUE;var o=Number.MAX_VALUE;if(l.isMultipleYAxis)for(var n=0;n=0&&o<=10||t.yaxis[0].min!==void 0||t.yaxis[0].max!==void 0)&&(v=0),l.minY=o-5*v/100,o>0&&l.minY<0&&(l.minY=0),l.maxY=l.maxY+5*v/100}return t.yaxis.forEach(function(m,b){m.max!==void 0&&(typeof m.max=="number"?l.maxYArr[b]=m.max:typeof m.max=="function"&&(l.maxYArr[b]=m.max(l.isMultipleYAxis?l.maxYArr[b]:l.maxY)),l.maxY=l.maxYArr[b]),m.min!==void 0&&(typeof m.min=="number"?l.minYArr[b]=m.min:typeof m.min=="function"&&(l.minYArr[b]=m.min(l.isMultipleYAxis?l.minYArr[b]===Number.MIN_VALUE?0:l.minYArr[b]:l.minY)),l.minY=l.minYArr[b])}),l.isBarHorizontal&&["min","max"].forEach(function(m){t.xaxis[m]!==void 0&&typeof t.xaxis[m]=="number"&&(m==="min"?l.minY=t.xaxis[m]:l.maxY=t.xaxis[m])}),l.isMultipleYAxis?(this.scales.setMultipleYScales(),l.minY=o,l.yAxisScale.forEach(function(m,b){l.minYArr[b]=m.niceMin,l.maxYArr[b]=m.niceMax})):(this.scales.setYScaleForIndex(0,l.minY,l.maxY),l.minY=l.yAxisScale[0].niceMin,l.maxY=l.yAxisScale[0].niceMax,l.minYArr[0]=l.yAxisScale[0].niceMin,l.maxYArr[0]=l.yAxisScale[0].niceMax),{minY:l.minY,maxY:l.maxY,minYArr:l.minYArr,maxYArr:l.maxYArr,yAxisScale:l.yAxisScale}}},{key:"setXRange",value:function(){var l=this.w.globals,t=this.w.config,o=t.xaxis.type==="numeric"||t.xaxis.type==="datetime"||t.xaxis.type==="category"&&!l.noLabelsProvided||l.noLabelsProvided||l.isXNumeric;if(l.isXNumeric&&function(){for(var v=0;vl.dataPoints&&l.dataPoints!==0&&(n=l.dataPoints-1)):t.xaxis.tickAmount==="dataPoints"?(l.series.length>1&&(n=l.series[l.maxValsInArrayIndex].length-1),l.isXNumeric&&(n=l.maxX-l.minX-1)):n=t.xaxis.tickAmount,l.xTickAmount=n,t.xaxis.max!==void 0&&typeof t.xaxis.max=="number"&&(l.maxX=t.xaxis.max),t.xaxis.min!==void 0&&typeof t.xaxis.min=="number"&&(l.minX=t.xaxis.min),t.xaxis.range!==void 0&&(l.minX=l.maxX-t.xaxis.range),l.minX!==Number.MAX_VALUE&&l.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!l.dataFormatXNumeric){for(var h=[],u=l.minX-1;u0&&(l.xAxisScale=this.scales.linearScale(1,l.labels.length,n-1),l.seriesX=l.labels.slice());o&&(l.labels=l.xAxisScale.result.slice())}return l.isBarHorizontal&&l.labels.length&&(l.xTickAmount=l.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:l.minX,maxX:l.maxX}}},{key:"setZRange",value:function(){var l=this.w.globals;if(l.isDataXYZ){for(var t=0;t0){var v=h-n[u-1];v>0&&(l.minXDiff=Math.min(v,l.minXDiff))}}),l.dataPoints===1&&l.minXDiff===Number.MAX_VALUE&&(l.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var l=this.w.globals,t=[],o=[];if(l.series.length)for(var n=0;n0?h=h+parseFloat(l.series[v][n])+1e-4:u+=parseFloat(l.series[v][n])),v===l.series.length-1&&(t.push(h),o.push(u));for(var m=0;m=0;B--)D(B);if(o.config.yaxis[l].title.text!==void 0){var X=n.group({class:"apexcharts-yaxis-title"}),f=0;o.config.yaxis[l].opposite&&(f=o.globals.translateYAxisX[l]);var L=n.drawText({x:f,y:o.globals.gridHeight/2+o.globals.translateY+o.config.yaxis[l].title.offsetY,text:o.config.yaxis[l].title.text,textAnchor:"end",foreColor:o.config.yaxis[l].title.style.color,fontSize:o.config.yaxis[l].title.style.fontSize,fontWeight:o.config.yaxis[l].title.style.fontWeight,fontFamily:o.config.yaxis[l].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+o.config.yaxis[l].title.style.cssClass});X.add(L),b.add(X)}var O=o.config.yaxis[l].axisBorder,N=31+O.offsetX;if(o.config.yaxis[l].opposite&&(N=-31-O.offsetX),O.show){var K=n.drawLine(N,o.globals.translateY+O.offsetY-2,N,o.globals.gridHeight+o.globals.translateY+O.offsetY+2,O.color,0,O.width);b.add(K)}return o.config.yaxis[l].axisTicks.show&&this.axesUtils.drawYAxisTicks(N,H,O,o.config.yaxis[l].axisTicks,l,M,b),b}},{key:"drawYaxisInversed",value:function(l){var t=this.w,o=new S(this.ctx),n=o.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),h=o.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});n.add(h);var u=t.globals.yAxisScale[l].result.length-1,v=t.globals.gridWidth/u+.1,m=v+t.config.xaxis.labels.offsetX,b=t.globals.xLabelFormatter,g=t.globals.yAxisScale[l].result.slice(),H=t.globals.timescaleLabels;H.length>0&&(this.xaxisLabels=H.slice(),u=(g=H.slice()).length),g=this.axesUtils.checkForReversedLabels(l,g);var M=H.length;if(t.config.xaxis.labels.show)for(var Z=M?0:u;M?Z=0;M?Z++:Z--){var z=g[Z];z=b(z,Z,t);var T=t.globals.gridWidth+t.globals.padHorizontal-(m-v+t.config.xaxis.labels.offsetX);if(H.length){var I=this.axesUtils.getLabel(g,H,T,Z,this.drawnLabels,this.xaxisFontSize);T=I.x,z=I.text,this.drawnLabels.push(I.text),Z===0&&t.globals.skipFirstTimelinelabel&&(z=""),Z===g.length-1&&t.globals.skipLastTimelinelabel&&(z="")}var D=o.drawText({x:T,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-(t.config.xaxis.position==="top"?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:z,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[l]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+t.config.xaxis.labels.style.cssClass});h.add(D),D.tspan(z);var B=document.createElementNS(t.globals.SVGNS,"title");B.textContent=z,D.node.appendChild(B),m+=v}return this.inversedYAxisTitleText(n),this.inversedYAxisBorder(n),n}},{key:"inversedYAxisBorder",value:function(l){var t=this.w,o=new S(this.ctx),n=t.config.xaxis.axisBorder;if(n.show){var h=0;t.config.chart.type==="bar"&&t.globals.isXNumeric&&(h-=15);var u=o.drawLine(t.globals.padHorizontal+h+n.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,n.color,0,n.height);l.add(u)}}},{key:"inversedYAxisTitleText",value:function(l){var t=this.w,o=new S(this.ctx);if(t.config.xaxis.title.text!==void 0){var n=o.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),h=o.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});n.add(h),l.add(n)}}},{key:"yAxisTitleRotate",value:function(l,t){var o=this.w,n=new S(this.ctx),h={width:0,height:0},u={width:0,height:0},v=o.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(l,"'] .apexcharts-yaxis-texts-g"));v!==null&&(h=v.getBoundingClientRect());var m=o.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(l,"'] .apexcharts-yaxis-title text"));if(m!==null&&(u=m.getBoundingClientRect()),m!==null){var b=this.xPaddingForYAxisTitle(l,h,u,t);m.setAttribute("x",b.xPos-(t?10:0))}if(m!==null){var g=n.rotateAroundCenter(m);m.setAttribute("transform","rotate(".concat(t?-1*o.config.yaxis[l].title.rotate:o.config.yaxis[l].title.rotate," ").concat(g.x," ").concat(g.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(l,t,o,n){var h=this.w,u=0,v=0,m=10;return h.config.yaxis[l].title.text===void 0||l<0?{xPos:v,padd:0}:(n?(v=t.width+h.config.yaxis[l].title.offsetX+o.width/2+m/2,(u+=1)===0&&(v-=m/2)):(v=-1*t.width+h.config.yaxis[l].title.offsetX+m/2+o.width/2,h.globals.isBarHorizontal&&(m=25,v=-1*t.width-h.config.yaxis[l].title.offsetX-m)),{xPos:v,padd:m})}},{key:"setYAxisXPosition",value:function(l,t){var o=this.w,n=0,h=0,u=18,v=1;o.config.yaxis.length>1&&(this.multipleYs=!0),o.config.yaxis.map(function(m,b){var g=o.globals.ignoreYAxisIndexes.indexOf(b)>-1||!m.show||m.floating||l[b].width===0,H=l[b].width+t[b].width;m.opposite?o.globals.isBarHorizontal?(h=o.globals.gridWidth+o.globals.translateX-1,o.globals.translateYAxisX[b]=h-m.labels.offsetX):(h=o.globals.gridWidth+o.globals.translateX+v,g||(v=v+H+20),o.globals.translateYAxisX[b]=h-m.labels.offsetX+20):(n=o.globals.translateX-u,g||(u=u+H+20),o.globals.translateYAxisX[b]=n+m.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var l=this.w,t=l.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(t=_.listToArray(t)).forEach(function(o,n){var h=l.config.yaxis[n];if(h&&h.labels.align!==void 0){var u=l.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-texts-g")),v=l.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-label"));v=_.listToArray(v);var m=u.getBoundingClientRect();h.labels.align==="left"?(v.forEach(function(b,g){b.setAttribute("text-anchor","start")}),h.opposite||u.setAttribute("transform","translate(-".concat(m.width,", 0)"))):h.labels.align==="center"?(v.forEach(function(b,g){b.setAttribute("text-anchor","middle")}),u.setAttribute("transform","translate(".concat(m.width/2*(h.opposite?1:-1),", 0)"))):h.labels.align==="right"&&(v.forEach(function(b,g){b.setAttribute("text-anchor","end")}),h.opposite&&u.setAttribute("transform","translate(".concat(m.width,", 0)")))}})}}]),F}(),u1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.documentEvent=_.bind(this.documentEvent,this)}return p(F,[{key:"addEventListener",value:function(l,t){var o=this.w;o.globals.events.hasOwnProperty(l)?o.globals.events[l].push(t):o.globals.events[l]=[t]}},{key:"removeEventListener",value:function(l,t){var o=this.w;if(o.globals.events.hasOwnProperty(l)){var n=o.globals.events[l].indexOf(t);n!==-1&&o.globals.events[l].splice(n,1)}}},{key:"fireEvent",value:function(l,t){var o=this.w;if(o.globals.events.hasOwnProperty(l)){t&&t.length||(t=[]);for(var n=o.globals.events[l],h=n.length,u=0;u0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var o=t.filter(function(h){return h.name===l})[0];if(!o)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var n=_.extend(e1,o);this.w.globals.locale=n.options}}]),F}(),M1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"drawAxis",value:function(l,t){var o,n,h=this.w.globals,u=this.w.config,v=new o2(this.ctx),m=new i1(this.ctx);h.axisCharts&&l!=="radar"&&(h.isBarHorizontal?(n=m.drawYaxisInversed(0),o=v.drawXaxisInversed(0),h.dom.elGraphical.add(o),h.dom.elGraphical.add(n)):(o=v.drawXaxis(),h.dom.elGraphical.add(o),u.yaxis.map(function(b,g){h.ignoreYAxisIndexes.indexOf(g)===-1&&(n=m.drawYaxis(g),h.dom.Paper.add(n))})))}}]),F}(),S1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"drawXCrosshairs",value:function(){var l=this.w,t=new S(this.ctx),o=new A(this.ctx),n=l.config.xaxis.crosshairs.fill.gradient,h=l.config.xaxis.crosshairs.dropShadow,u=l.config.xaxis.crosshairs.fill.type,v=n.colorFrom,m=n.colorTo,b=n.opacityFrom,g=n.opacityTo,H=n.stops,M=h.enabled,Z=h.left,z=h.top,T=h.blur,I=h.color,D=h.opacity,B=l.config.xaxis.crosshairs.fill.color;if(l.config.xaxis.crosshairs.show){u==="gradient"&&(B=t.drawGradient("vertical",v,m,b,g,null,H,null));var X=t.drawRect();l.config.xaxis.crosshairs.width===1&&(X=t.drawLine());var f=l.globals.gridHeight;(!_.isNumber(f)||f<0)&&(f=0);var L=l.config.xaxis.crosshairs.width;(!_.isNumber(L)||L<0)&&(L=0),X.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:f,width:L,height:f,fill:B,filter:"none","fill-opacity":l.config.xaxis.crosshairs.opacity,stroke:l.config.xaxis.crosshairs.stroke.color,"stroke-width":l.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":l.config.xaxis.crosshairs.stroke.dashArray}),M&&(X=o.dropShadow(X,{left:Z,top:z,blur:T,color:I,opacity:D})),l.globals.dom.elGraphical.add(X)}}},{key:"drawYCrosshairs",value:function(){var l=this.w,t=new S(this.ctx),o=l.config.yaxis[0].crosshairs,n=l.globals.barPadForNumericAxis;if(l.config.yaxis[0].crosshairs.show){var h=t.drawLine(-n,0,l.globals.gridWidth+n,0,o.stroke.color,o.stroke.dashArray,o.stroke.width);h.attr({class:"apexcharts-ycrosshairs"}),l.globals.dom.elGraphical.add(h)}var u=t.drawLine(-n,0,l.globals.gridWidth+n,0,o.stroke.color,0,0);u.attr({class:"apexcharts-ycrosshairs-hidden"}),l.globals.dom.elGraphical.add(u)}}]),F}(),V1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"checkResponsiveConfig",value:function(l){var t=this,o=this.w,n=o.config;if(n.responsive.length!==0){var h=n.responsive.slice();h.sort(function(b,g){return b.breakpoint>g.breakpoint?1:g.breakpoint>b.breakpoint?-1:0}).reverse();var u=new r2({}),v=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=h[0].breakpoint,H=window.innerWidth>0?window.innerWidth:screen.width;if(H>g){var M=j.extendArrayProps(u,o.globals.initialConfig,o);b=_.extend(M,b),b=_.extend(o.config,b),t.overrideResponsiveOptions(b)}else for(var Z=0;Z0&&typeof t.config.colors[0]=="function"&&(t.globals.colors=t.config.series.map(function(Z,z){var T=t.config.colors[z];return T||(T=t.config.colors[0]),typeof T=="function"?(l.isColorFn=!0,T({value:t.globals.axisCharts?t.globals.series[z][0]?t.globals.series[z][0]:0:t.globals.series[z],seriesIndex:z,dataPointIndex:z,w:t})):T}))),t.globals.seriesColors.map(function(Z,z){Z&&(t.globals.colors[z]=Z)}),t.config.theme.monochrome.enabled){var n=[],h=t.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(h=t.globals.series[0].length*t.globals.series.length);for(var u=t.config.theme.monochrome.color,v=1/(h/t.config.theme.monochrome.shadeIntensity),m=t.config.theme.monochrome.shadeTo,b=0,g=0;g2&&arguments[2]!==void 0?arguments[2]:null,n=this.w,h=t||n.globals.series.length;if(o===null&&(o=this.isBarDistributed||this.isHeatmapDistributed||n.config.chart.type==="heatmap"&&n.config.plotOptions.heatmap.colorScale.inverse),o&&n.globals.series.length&&(h=n.globals.series[n.globals.maxValsInArrayIndex].length*n.globals.series.length),l.lengthl.globals.svgWidth&&(this.dCtx.lgRect.width=l.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(l,t){var o=l;if(this.w.globals.isMultiLineX){var n=t.map(function(u,v){return Array.isArray(u)?u.length:1}),h=Math.max.apply(Math,P(n));o=t[n.indexOf(h)]}return o}}]),F}(),T1=function(){function F(l){s(this,F),this.w=l.w,this.dCtx=l}return p(F,[{key:"getxAxisLabelsCoords",value:function(){var l,t=this.w,o=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&o.length===0&&(o=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var n=this.getxAxisTimeScaleLabelsCoords();l={width:n.width,height:n.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=t.config.legend.position!=="left"&&t.config.legend.position!=="right"||t.config.legend.floating?0:this.dCtx.lgRect.width;var h=t.globals.xLabelFormatter,u=_.getLargestStringFromArr(o),v=this.dCtx.dimHelpers.getLargestStringFromMultiArr(u,o);t.globals.isBarHorizontal&&(v=u=t.globals.yAxisScale[0].result.reduce(function(z,T){return z.length>T.length?z:T},0));var m=new p1(this.dCtx.ctx),b=u;u=m.xLabelFormat(h,u,b,{i:void 0,dateFormatter:new g1(this.dCtx.ctx).formatDate,w:t}),v=m.xLabelFormat(h,v,b,{i:void 0,dateFormatter:new g1(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&u===void 0||String(u).trim()==="")&&(v=u="1");var g=new S(this.dCtx.ctx),H=g.getTextRects(u,t.config.xaxis.labels.style.fontSize),M=H;if(u!==v&&(M=g.getTextRects(v,t.config.xaxis.labels.style.fontSize)),(l={width:H.width>=M.width?H.width:M.width,height:H.height>=M.height?H.height:M.height}).width*o.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&t.config.xaxis.labels.rotate!==0||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var Z=function(z){return g.getTextRects(z,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};H=Z(u),u!==v&&(M=Z(v)),l.height=(H.height>M.height?H.height:M.height)/1.5,l.width=H.width>M.width?H.width:M.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(l={width:0,height:0}),{width:l.width,height:l.height}}},{key:"getxAxisTitleCoords",value:function(){var l=this.w,t=0,o=0;if(l.config.xaxis.title.text!==void 0){var n=new S(this.dCtx.ctx).getTextRects(l.config.xaxis.title.text,l.config.xaxis.title.style.fontSize);t=n.width,o=n.height}return{width:t,height:o}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var l,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var o=this.dCtx.timescaleLabels.map(function(h){return h.value}),n=o.reduce(function(h,u){return h===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):h.length>u.length?h:u},0);return 1.05*(l=new S(this.dCtx.ctx).getTextRects(n,t.config.xaxis.labels.style.fontSize)).width*o.length>t.globals.gridWidth&&t.config.xaxis.labels.rotate!==0&&(t.globals.overlappingXLabels=!0),l}},{key:"additionalPaddingXLabels",value:function(l){var t=this,o=this.w,n=o.globals,h=o.config,u=h.xaxis.type,v=l.width;n.skipLastTimelinelabel=!1,n.skipFirstTimelinelabel=!1;var m=o.config.yaxis[0].opposite&&o.globals.isBarHorizontal,b=function(g,H){(function(M){return n.collapsedSeriesIndices.indexOf(M)!==-1})(H)||function(M){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var Z=t.dCtx.timescaleLabels[0],z=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+v/1.75-t.dCtx.yAxisWidthRight,T=Z.position-v/1.75+t.dCtx.yAxisWidthLeft,I=o.config.legend.position==="right"&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;z>n.svgWidth-n.translateX-I&&(n.skipLastTimelinelabel=!0),T<-(M.show&&!M.floating||h.chart.type!=="bar"&&h.chart.type!=="candlestick"&&h.chart.type!=="rangeBar"&&h.chart.type!=="boxPlot"?10:v/1.75)&&(n.skipFirstTimelinelabel=!0)}else u==="datetime"?t.dCtx.gridPad.rightString(m.niceMax).length?H:m.niceMax,Z=g(M,{seriesIndex:v,dataPointIndex:-1,w:t}),z=Z;if(Z!==void 0&&Z.length!==0||(Z=M),t.globals.isBarHorizontal){n=0;var T=t.globals.labels.slice();Z=g(Z=_.getLargestStringFromArr(T),{seriesIndex:v,dataPointIndex:-1,w:t}),z=l.dCtx.dimHelpers.getLargestStringFromMultiArr(Z,T)}var I=new S(l.dCtx.ctx),D="rotate(".concat(u.labels.rotate," 0 0)"),B=I.getTextRects(Z,u.labels.style.fontSize,u.labels.style.fontFamily,D,!1),X=B;Z!==z&&(X=I.getTextRects(z,u.labels.style.fontSize,u.labels.style.fontFamily,D,!1)),o.push({width:(b>X.width||b>B.width?b:X.width>B.width?X.width:B.width)+n,height:X.height>B.height?X.height:B.height})}else o.push({width:0,height:0})}),o}},{key:"getyAxisTitleCoords",value:function(){var l=this,t=this.w,o=[];return t.config.yaxis.map(function(n,h){if(n.show&&n.title.text!==void 0){var u=new S(l.dCtx.ctx),v="rotate(".concat(n.title.rotate," 0 0)"),m=u.getTextRects(n.title.text,n.title.style.fontSize,n.title.style.fontFamily,v,!1);o.push({width:m.width,height:m.height})}else o.push({width:0,height:0})}),o}},{key:"getTotalYAxisWidth",value:function(){var l=this.w,t=0,o=0,n=0,h=l.globals.yAxisScale.length>1?10:0,u=new x1(this.dCtx.ctx),v=function(m,b){var g=l.config.yaxis[b].floating,H=0;m.width>0&&!g?(H=m.width+h,function(M){return l.globals.ignoreYAxisIndexes.indexOf(M)>-1}(b)&&(H=H-m.width-h)):H=g||u.isYAxisHidden(b)?0:5,l.config.yaxis[b].opposite?n+=H:o+=H,t+=H};return l.globals.yLabelsCoords.map(function(m,b){v(m,b)}),l.globals.yTitleCoords.map(function(m,b){v(m,b)}),l.globals.isBarHorizontal&&!l.config.yaxis[0].floating&&(t=l.globals.yLabelsCoords[0].width+l.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=o,this.dCtx.yAxisWidthRight=n,t}}]),F}(),$1=function(){function F(l){s(this,F),this.w=l.w,this.dCtx=l}return p(F,[{key:"gridPadForColumnsInNumericAxis",value:function(l){var t=this.w;if(t.globals.noData||t.globals.allSeriesCollapsed)return 0;var o=function(g){return g==="bar"||g==="rangeBar"||g==="candlestick"||g==="boxPlot"},n=t.config.chart.type,h=0,u=o(n)?t.config.series.length:1;if(t.globals.comboBarCount>0&&(u=t.globals.comboBarCount),t.globals.collapsedSeries.forEach(function(g){o(g.type)&&(u-=1)}),t.config.chart.stacked&&(u=1),(o(n)||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&u>0){var v,m,b=Math.abs(t.globals.initialMaxX-t.globals.initialMinX);b<=3&&(b=t.globals.dataPoints),v=b/l,t.globals.minXDiff&&t.globals.minXDiff/v>0&&(m=t.globals.minXDiff/v),m>l/2&&(m/=2),(h=m/u*parseInt(t.config.plotOptions.bar.columnWidth,10)/100)<1&&(h=1),h=h/(u>1?1:1.5)+5,t.globals.barPadForNumericAxis=h}return h}},{key:"gridPadFortitleSubtitle",value:function(){var l=this,t=this.w,o=t.globals,n=this.dCtx.isSparkline||!t.globals.axisCharts?0:10;["title","subtitle"].forEach(function(v){t.config[v].text!==void 0?n+=t.config[v].margin:n+=l.dCtx.isSparkline||!t.globals.axisCharts?0:5}),!t.config.legend.show||t.config.legend.position!=="bottom"||t.config.legend.floating||t.globals.axisCharts||(n+=10);var h=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),u=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");o.gridHeight=o.gridHeight-h.height-u.height-n,o.translateY=o.translateY+h.height+u.height+n}},{key:"setGridXPosForDualYAxis",value:function(l,t){var o=this.w,n=new x1(this.dCtx.ctx);o.config.yaxis.map(function(h,u){o.globals.ignoreYAxisIndexes.indexOf(u)!==-1||h.floating||n.isYAxisHidden(u)||(h.opposite&&(o.globals.translateX=o.globals.translateX-(t[u].width+l[u].width)-parseInt(o.config.yaxis[u].labels.style.fontSize,10)/1.2-12),o.globals.translateX<2&&(o.globals.translateX=2))})}}]),F}(),K1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.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 q1(this),this.dimYAxis=new R1(this),this.dimXAxis=new T1(this),this.dimGrid=new $1(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return p(F,[{key:"plotCoords",value:function(){var l=this.w.globals;this.lgRect=this.dimHelpers.getLegendsRect(),l.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),l.gridHeight=l.gridHeight-this.gridPad.top-this.gridPad.bottom,l.gridWidth=l.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var t=this.dimGrid.gridPadForColumnsInNumericAxis(l.gridWidth);l.gridWidth=l.gridWidth-2*t,l.translateX=l.translateX+this.gridPad.left+this.xPadLeft+(t>0?t+4:0),l.translateY=l.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var l=this,t=this.w,o=t.globals,n=this.dimYAxis.getyAxisLabelsCoords(),h=this.dimYAxis.getyAxisTitleCoords();t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map(function(M,Z){t.globals.yLabelsCoords.push({width:n[Z].width,index:Z}),t.globals.yTitleCoords.push({width:h[Z].width,index:Z})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var u=this.dimXAxis.getxAxisLabelsCoords(),v=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(u,v),o.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,o.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(o.rotateXLabels=!1,o.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),o.translateXAxisY=o.translateXAxisY+t.config.xaxis.labels.offsetY,o.translateXAxisX=o.translateXAxisX+t.config.xaxis.labels.offsetX;var m=this.yAxisWidth,b=this.xAxisHeight;o.xAxisLabelsHeight=this.xAxisHeight-v.height,o.xAxisLabelsWidth=this.xAxisWidth,o.xAxisHeight=this.xAxisHeight;var g=10;(t.config.chart.type==="radar"||this.isSparkline)&&(m=0,b=o.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||t.config.chart.type==="treemap")&&(m=0,b=0,g=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(u);var H=function(){o.translateX=m,o.gridHeight=o.svgHeight-l.lgRect.height-b-(l.isSparkline||t.config.chart.type==="treemap"?0:t.globals.rotateXLabels?10:15),o.gridWidth=o.svgWidth-m};switch(t.config.xaxis.position==="top"&&(g=o.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":o.translateY=g,H();break;case"top":o.translateY=this.lgRect.height+g,H();break;case"left":o.translateY=g,o.translateX=this.lgRect.width+m,o.gridHeight=o.svgHeight-b-12,o.gridWidth=o.svgWidth-this.lgRect.width-m;break;case"right":o.translateY=g,o.translateX=m,o.gridHeight=o.svgHeight-b-12,o.gridWidth=o.svgWidth-this.lgRect.width-m-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(h,n),new i1(this.ctx).setYAxisXPosition(n,h)}},{key:"setDimensionsForNonAxisCharts",value:function(){var l=this.w,t=l.globals,o=l.config,n=0;l.config.legend.show&&!l.config.legend.floating&&(n=20);var h=o.chart.type==="pie"||o.chart.type==="polarArea"||o.chart.type==="donut"?"pie":"radialBar",u=o.plotOptions[h].offsetY,v=o.plotOptions[h].offsetX;if(!o.legend.show||o.legend.floating)return t.gridHeight=t.svgHeight-o.grid.padding.left+o.grid.padding.right,t.gridWidth=t.gridHeight,t.translateY=u,void(t.translateX=v+(t.svgWidth-t.gridWidth)/2);switch(o.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=u-10,t.translateX=v+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+u+10,t.translateX=v+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-n,t.gridHeight=o.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=u,t.translateX=v+this.lgRect.width+n;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-n-5,t.gridHeight=o.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=u,t.translateX=v+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(l,t){var o=this.w;this.xAxisHeight=(l.height+t.height)*(o.globals.isMultiLineX?1.2:o.globals.LINE_HEIGHT_RATIO)+(o.globals.rotateXLabels?22:10),this.xAxisWidth=l.width,this.xAxisHeight-t.height>o.config.xaxis.labels.maxHeight&&(this.xAxisHeight=o.config.xaxis.labels.maxHeight),o.config.xaxis.labels.minHeight&&this.xAxisHeighth&&(this.yAxisWidth=h)}}]),F}(),m2=function(){function F(l){s(this,F),this.w=l.w,this.lgCtx=l}return p(F,[{key:"getLegendStyles",value:function(){var l=document.createElement("style");l.setAttribute("type","text/css");var t=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 l.appendChild(t),l}},{key:"getLegendBBox",value:function(){var l=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=l.width;return{clwh:l.height,clww:t}}},{key:"appendToForeignObject",value:function(){var l=this.w.globals;l.dom.elLegendForeign=document.createElementNS(l.SVGNS,"foreignObject");var t=l.dom.elLegendForeign;t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("width",l.svgWidth),t.setAttribute("height",l.svgHeight),l.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.appendChild(l.dom.elLegendWrap),t.appendChild(this.getLegendStyles()),l.dom.Paper.node.insertBefore(t,l.dom.elGraphical.node)}},{key:"toggleDataSeries",value:function(l,t){var o=this,n=this.w;if(n.globals.axisCharts||n.config.chart.type==="radialBar"){n.globals.resized=!0;var h=null,u=null;n.globals.risingSeries=[],n.globals.axisCharts?(h=n.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(l,"']")),u=parseInt(h.getAttribute("data:realIndex"),10)):(h=n.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(l+1,"']")),u=parseInt(h.getAttribute("rel"),10)-1),t?[{cs:n.globals.collapsedSeries,csi:n.globals.collapsedSeriesIndices},{cs:n.globals.ancillaryCollapsedSeries,csi:n.globals.ancillaryCollapsedSeriesIndices}].forEach(function(g){o.riseCollapsedSeries(g.cs,g.csi,u)}):this.hideSeries({seriesEl:h,realIndex:u})}else{var v=n.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(l+1,"'] path")),m=n.config.chart.type;if(m==="pie"||m==="polarArea"||m==="donut"){var b=n.config.plotOptions.pie.donut.labels;new S(this.lgCtx.ctx).pathMouseDown(v.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(v.members[0].node,b)}v.fire("click")}}},{key:"hideSeries",value:function(l){var t=l.seriesEl,o=l.realIndex,n=this.w,h=_.clone(n.config.series);if(n.globals.axisCharts){var u=!1;if(n.config.yaxis[o]&&n.config.yaxis[o].show&&n.config.yaxis[o].showAlways&&(u=!0,n.globals.ancillaryCollapsedSeriesIndices.indexOf(o)<0&&(n.globals.ancillaryCollapsedSeries.push({index:o,data:h[o].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),n.globals.ancillaryCollapsedSeriesIndices.push(o))),!u){n.globals.collapsedSeries.push({index:o,data:h[o].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),n.globals.collapsedSeriesIndices.push(o);var v=n.globals.risingSeries.indexOf(o);n.globals.risingSeries.splice(v,1)}}else n.globals.collapsedSeries.push({index:o,data:h[o]}),n.globals.collapsedSeriesIndices.push(o);for(var m=t.childNodes,b=0;b0){for(var u=0;u-1&&(l[n].data=[])}):l.forEach(function(o,n){t.globals.collapsedSeriesIndices.indexOf(n)>-1&&(l[n]=0)}),l}}]),F}(),i2=function(){function F(l,t){s(this,F),this.ctx=l,this.w=l.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 m2(this)}return p(F,[{key:"init",value:function(){var l=this.w,t=l.globals,o=l.config;if((o.legend.showForSingleSeries&&t.series.length===1||this.isBarsDistributed||t.series.length>1||!t.axisCharts)&&o.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),_.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),o.legend.position==="bottom"||o.legend.position==="top"?this.legendAlignHorizontal():o.legend.position!=="right"&&o.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var l=this,t=this.w,o=t.config.legend.fontFamily,n=t.globals.seriesNames,h=t.globals.colors.slice();if(t.config.chart.type==="heatmap"){var u=t.config.plotOptions.heatmap.colorScale.ranges;n=u.map(function(m1){return m1.name?m1.name:m1.from+" - "+m1.to}),h=u.map(function(m1){return m1.color})}else this.isBarsDistributed&&(n=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(n=t.config.legend.customLegendItems);for(var v=t.globals.legendFormatter,m=t.config.legend.inverseOrder,b=m?n.length-1:0;m?b>=0:b<=n.length-1;m?b--:b++){var g=v(n[b],{seriesIndex:b,w:t}),H=!1,M=!1;if(t.globals.collapsedSeries.length>0)for(var Z=0;Z0)for(var z=0;z0?b-10:0)+(g>0?g-10:0)}n.style.position="absolute",u=u+l+o.config.legend.offsetX,v=v+t+o.config.legend.offsetY,n.style.left=u+"px",n.style.top=v+"px",o.config.legend.position==="bottom"?(n.style.top="auto",n.style.bottom=5-o.config.legend.offsetY+"px"):o.config.legend.position==="right"&&(n.style.left="auto",n.style.right=25+o.config.legend.offsetX+"px"),["width","height"].forEach(function(H){n.style[H]&&(n.style[H]=parseInt(o.config.legend[H],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var l=this.w;l.globals.dom.baseEl.querySelector(".apexcharts-legend").style.right=0;var t=this.legendHelpers.getLegendBBox(),o=new K1(this.ctx),n=o.dimHelpers.getTitleSubtitleCoords("title"),h=o.dimHelpers.getTitleSubtitleCoords("subtitle"),u=0;l.config.legend.position==="bottom"?u=-t.clwh/1.8:l.config.legend.position==="top"&&(u=n.height+h.height+l.config.title.margin+l.config.subtitle.margin-10),this.setLegendWrapXY(20,u)}},{key:"legendAlignVertical",value:function(){var l=this.w,t=this.legendHelpers.getLegendBBox(),o=0;l.config.legend.position==="left"&&(o=20),l.config.legend.position==="right"&&(o=l.globals.svgWidth-t.clww-10),this.setLegendWrapXY(o,20)}},{key:"onLegendHovered",value:function(l){var t=this.w,o=l.target.classList.contains("apexcharts-legend-text")||l.target.classList.contains("apexcharts-legend-marker");if(t.config.chart.type==="heatmap"||this.isBarsDistributed){if(o){var n=parseInt(l.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,n,this.w]),new A1(this.ctx).highlightRangeInSeries(l,l.target)}}else!l.target.classList.contains("apexcharts-inactive-legend")&&o&&new A1(this.ctx).toggleSeriesOnHover(l,l.target)}},{key:"onLegendClick",value:function(l){var t=this.w;if(!t.config.legend.customLegendItems.length&&(l.target.classList.contains("apexcharts-legend-text")||l.target.classList.contains("apexcharts-legend-marker"))){var o=parseInt(l.target.getAttribute("rel"),10)-1,n=l.target.getAttribute("data:collapsed")==="true",h=this.w.config.chart.events.legendClick;typeof h=="function"&&h(this.ctx,o,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,o,this.w]);var u=this.w.config.legend.markers.onClick;typeof u=="function"&&l.target.classList.contains("apexcharts-legend-marker")&&(u(this.ctx,o,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,o,this.w])),t.config.chart.type!=="treemap"&&t.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(o,n)}}}]),F}(),M2=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w;var t=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=t.globals.minX,this.maxX=t.globals.maxX}return p(F,[{key:"createToolbar",value:function(){var l=this,t=this.w,o=function(){return document.createElement("div")},n=o();if(n.setAttribute("class","apexcharts-toolbar"),n.style.top=t.config.chart.toolbar.offsetY+"px",n.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(n),this.elZoom=o(),this.elZoomIn=o(),this.elZoomOut=o(),this.elPan=o(),this.elSelection=o(),this.elZoomReset=o(),this.elMenuIcon=o(),this.elMenu=o(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var h=0;h
-
-
-
-`),v("zoomOut",this.elZoomOut,`
-`);var m=function(H){l.t[H]&&t.config.chart[H].enabled&&u.push({el:H==="zoom"?l.elZoom:l.elSelection,icon:typeof l.t[H]=="string"?l.t[H]:H==="zoom"?``:``,title:l.localeValues[H==="zoom"?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(H,"-icon")})};m("zoom"),m("selection"),this.t.pan&&t.config.chart.zoom.enabled&&u.push({el:this.elPan,icon:typeof this.t.pan=="string"?this.t.pan:``,title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),v("reset",this.elZoomReset,``),this.t.download&&u.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var b=0;b0&&n.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:o.globals.gridWidth,maxY:o.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var o=this.w,n=this.xyRatios;if(!o.globals.zoomEnabled){if(o.globals.selection!==void 0&&o.globals.selection!==null)this.drawSelectionRect(o.globals.selection);else if(o.config.chart.selection.xaxis.min!==void 0&&o.config.chart.selection.xaxis.max!==void 0){var h=(o.config.chart.selection.xaxis.min-o.globals.minX)/n.xRatio,u={x:h,y:0,width:o.globals.gridWidth-(o.globals.maxX-o.config.chart.selection.xaxis.max)/n.xRatio-h,height:o.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(u),this.makeSelectionRectDraggable(),typeof o.config.chart.events.selection=="function"&&o.config.chart.events.selection(this.ctx,{xaxis:{min:o.config.chart.selection.xaxis.min,max:o.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(o){var n=o.x,h=o.y,u=o.width,v=o.height,m=o.translateX,b=m===void 0?0:m,g=o.translateY,H=g===void 0?0:g,M=this.w,Z=this.zoomRect,z=this.selectionRect;if(this.dragged||M.globals.selection!==null){var T={transform:"translate("+b+", "+H+")"};M.globals.zoomEnabled&&this.dragged&&(u<0&&(u=1),Z.attr({x:n,y:h,width:u,height:v,fill:M.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":M.config.chart.zoom.zoomedArea.fill.opacity,stroke:M.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":M.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":M.config.chart.zoom.zoomedArea.stroke.opacity}),S.setAttrs(Z.node,T)),M.globals.selectionEnabled&&(z.attr({x:n,y:h,width:u>0?u:0,height:v>0?v:0,fill:M.config.chart.selection.fill.color,"fill-opacity":M.config.chart.selection.fill.opacity,stroke:M.config.chart.selection.stroke.color,"stroke-width":M.config.chart.selection.stroke.width,"stroke-dasharray":M.config.chart.selection.stroke.dashArray,"stroke-opacity":M.config.chart.selection.stroke.opacity}),S.setAttrs(z.node,T))}}},{key:"hideSelectionRect",value:function(o){o&&o.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(o){var n=o.context,h=o.zoomtype,u=this.w,v=n,m=this.gridRect.getBoundingClientRect(),b=v.startX-1,g=v.startY,H=!1,M=!1,Z=v.clientX-m.left-b,z=v.clientY-m.top-g,T={};return Math.abs(Z+b)>u.globals.gridWidth?Z=u.globals.gridWidth-b:v.clientX-m.left<0&&(Z=b),b>v.clientX-m.left&&(H=!0,Z=Math.abs(Z)),g>v.clientY-m.top&&(M=!0,z=Math.abs(z)),T=h==="x"?{x:H?b-Z:b,y:0,width:Z,height:u.globals.gridHeight}:h==="y"?{x:0,y:M?g-z:g,width:u.globals.gridWidth,height:z}:{x:H?b-Z:b,y:M?g-z:g,width:Z,height:z},v.drawSelectionRect(T),v.selectionDragging("resizing"),T}},{key:"selectionDragging",value:function(o,n){var h=this,u=this.w,v=this.xyRatios,m=this.selectionRect,b=0;o==="resizing"&&(b=30);var g=function(M){return parseFloat(m.node.getAttribute(M))},H={x:g("x"),y:g("y"),width:g("width"),height:g("height")};u.globals.selection=H,typeof u.config.chart.events.selection=="function"&&u.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var M=h.gridRect.getBoundingClientRect(),Z=m.node.getBoundingClientRect(),z={xaxis:{min:u.globals.xAxisScale.niceMin+(Z.left-M.left)*v.xRatio,max:u.globals.xAxisScale.niceMin+(Z.right-M.left)*v.xRatio},yaxis:{min:u.globals.yAxisScale[0].niceMin+(M.bottom-Z.bottom)*v.yRatio[0],max:u.globals.yAxisScale[0].niceMax-(Z.top-M.top)*v.yRatio[0]}};u.config.chart.events.selection(h.ctx,z),u.config.chart.brush.enabled&&u.config.chart.events.brushScrolled!==void 0&&u.config.chart.events.brushScrolled(h.ctx,z)},b))}},{key:"selectionDrawn",value:function(o){var n=o.context,h=o.zoomtype,u=this.w,v=n,m=this.xyRatios,b=this.ctx.toolbar;if(v.startX>v.endX){var g=v.startX;v.startX=v.endX,v.endX=g}if(v.startY>v.endY){var H=v.startY;v.startY=v.endY,v.endY=H}var M=void 0,Z=void 0;u.globals.isTimelineBar?(M=u.globals.yAxisScale[0].niceMin+v.startX*m.invertedYRatio,Z=u.globals.yAxisScale[0].niceMin+v.endX*m.invertedYRatio):(M=u.globals.xAxisScale.niceMin+v.startX*m.xRatio,Z=u.globals.xAxisScale.niceMin+v.endX*m.xRatio);var z=[],T=[];if(u.config.yaxis.forEach(function(N,K){z.push(u.globals.yAxisScale[K].niceMax-m.yRatio[K]*v.startY),T.push(u.globals.yAxisScale[K].niceMax-m.yRatio[K]*v.endY)}),v.dragged&&(v.dragX>10||v.dragY>10)&&M!==Z){if(u.globals.zoomEnabled){var I=_.clone(u.globals.initialConfig.yaxis),D=_.clone(u.globals.initialConfig.xaxis);if(u.globals.zoomed=!0,u.config.xaxis.convertedCatToNumeric&&(M=Math.floor(M),Z=Math.floor(Z),M<1&&(M=1,Z=u.globals.dataPoints),Z-M<2&&(Z=M+1)),h!=="xy"&&h!=="x"||(D={min:M,max:Z}),h!=="xy"&&h!=="y"||I.forEach(function(N,K){I[K].min=T[K],I[K].max=z[K]}),u.config.chart.zoom.autoScaleYaxis){var B=new $(v.ctx);I=B.autoScaleY(v.ctx,I,{xaxis:D})}if(b){var X=b.getBeforeZoomRange(D,I);X&&(D=X.xaxis?X.xaxis:D,I=X.yaxis?X.yaxis:I)}var f={xaxis:D};u.config.chart.group||(f.yaxis=I),v.ctx.updateHelpers._updateOptions(f,!1,v.w.config.chart.animations.dynamicAnimation.enabled),typeof u.config.chart.events.zoomed=="function"&&b.zoomCallback(D,I)}else if(u.globals.selectionEnabled){var L,O=null;L={min:M,max:Z},h!=="xy"&&h!=="y"||(O=_.clone(u.config.yaxis)).forEach(function(N,K){O[K].min=T[K],O[K].max=z[K]}),u.globals.selection=v.selection,typeof u.config.chart.events.selection=="function"&&u.config.chart.events.selection(v.ctx,{xaxis:L,yaxis:O})}}}},{key:"panDragging",value:function(o){var n=o.context,h=this.w,u=n;if(h.globals.lastClientPosition.x!==void 0){var v=h.globals.lastClientPosition.x-u.clientX,m=h.globals.lastClientPosition.y-u.clientY;Math.abs(v)>Math.abs(m)&&v>0?this.moveDirection="left":Math.abs(v)>Math.abs(m)&&v<0?this.moveDirection="right":Math.abs(m)>Math.abs(v)&&m>0?this.moveDirection="up":Math.abs(m)>Math.abs(v)&&m<0&&(this.moveDirection="down")}h.globals.lastClientPosition={x:u.clientX,y:u.clientY};var b=h.globals.isTimelineBar?h.globals.minY:h.globals.minX,g=h.globals.isTimelineBar?h.globals.maxY:h.globals.maxX;h.config.xaxis.convertedCatToNumeric||u.panScrolled(b,g)}},{key:"delayedPanScrolled",value:function(){var o=this.w,n=o.globals.minX,h=o.globals.maxX,u=(o.globals.maxX-o.globals.minX)/2;this.moveDirection==="left"?(n=o.globals.minX+u,h=o.globals.maxX+u):this.moveDirection==="right"&&(n=o.globals.minX-u,h=o.globals.maxX-u),n=Math.floor(n),h=Math.floor(h),this.updateScrolledChart({xaxis:{min:n,max:h}},n,h)}},{key:"panScrolled",value:function(o,n){var h=this.w,u=this.xyRatios,v=_.clone(h.globals.initialConfig.yaxis),m=u.xRatio,b=h.globals.minX,g=h.globals.maxX;h.globals.isTimelineBar&&(m=u.invertedYRatio,b=h.globals.minY,g=h.globals.maxY),this.moveDirection==="left"?(o=b+h.globals.gridWidth/15*m,n=g+h.globals.gridWidth/15*m):this.moveDirection==="right"&&(o=b-h.globals.gridWidth/15*m,n=g-h.globals.gridWidth/15*m),h.globals.isTimelineBar||(oh.globals.initialMaxX)&&(o=b,n=g);var H={min:o,max:n};h.config.chart.zoom.autoScaleYaxis&&(v=new $(this.ctx).autoScaleY(this.ctx,v,{xaxis:H}));var M={xaxis:{min:o,max:n}};h.config.chart.group||(M.yaxis=v),this.updateScrolledChart(M,o,n)}},{key:"updateScrolledChart",value:function(o,n,h){var u=this.w;this.ctx.updateHelpers._updateOptions(o,!1,!1),typeof u.config.chart.events.scrolled=="function"&&u.config.chart.events.scrolled(this.ctx,{xaxis:{min:n,max:h}})}}]),t}(),U0=function(){function F(l){s(this,F),this.w=l.w,this.ttCtx=l,this.ctx=l.ctx}return p(F,[{key:"getNearestValues",value:function(l){var t=l.hoverArea,o=l.elGrid,n=l.clientX,h=l.clientY,u=this.w,v=u.globals.gridWidth,m=u.globals.gridHeight,b=v/(u.globals.dataPoints-1),g=m/u.globals.dataPoints,H=o.getBoundingClientRect(),M=this.hasBars();!u.globals.comboCharts&&!M||u.config.xaxis.convertedCatToNumeric||(b=v/u.globals.dataPoints);var Z=n-H.left-u.globals.barPadForNumericAxis,z=h-H.top;Z<0||z<0||Z>u.globals.gridWidth||z>u.globals.gridHeight?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):u.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):u.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var T=Math.round(Z/b),I=Math.floor(z/g);M&&!u.config.xaxis.convertedCatToNumeric&&(T=Math.ceil(Z/b),T-=1);for(var D,B=null,X=null,f=[],L=0;L1?u=this.getFirstActiveXArray(o):v=0;var b=n[u][0],g=o[u][0],H=Math.abs(l-g),M=Math.abs(t-b),Z=M+H;return n.map(function(z,T){z.map(function(I,D){var B=Math.abs(t-n[T][D]),X=Math.abs(l-o[T][D]),f=X+B;f0?u:-1}),n=0;n0)for(var n=0;n0}},{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(l){var t=this.w,o=t.config.markers.hover.size;return o===void 0&&(o=t.globals.markers.size[l]+t.config.markers.hover.sizeOffset),o}},{key:"toggleAllTooltipSeriesGroups",value:function(l){var t=this.w,o=this.ttCtx;o.allTooltipSeriesGroups.length===0&&(o.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var n=o.allTooltipSeriesGroups,h=0;h";M.forEach(function(K,n1){O+=' ').concat(K.attrs.name,"
"),N+="".concat(K.val,"
")}),X.innerHTML=O+"",f.innerHTML=N+""};v?b.globals.seriesGoals[t][o]&&Array.isArray(b.globals.seriesGoals[t][o])?L():(X.innerHTML="",f.innerHTML=""):L()}else X.innerHTML="",f.innerHTML="";T!==null&&(n[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=b.config.tooltip.z.title,n[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=T!==void 0?T:""),v&&I[0]&&(H==null||b.globals.collapsedSeriesIndices.indexOf(t)>-1?I[0].parentNode.style.display="none":I[0].parentNode.style.display=b.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(l){var t=this.w;if(l)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var o=t.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");o&&(o.classList.add("apexcharts-active"),o.style.display=t.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(l){var t=l.i,o=l.j,n=this.w,h=this.ctx.series.filteredSeriesX(),u="",v="",m=null,b=null,g={series:n.globals.series,seriesIndex:t,dataPointIndex:o,w:n},H=n.globals.ttZFormatter;o===null?b=n.globals.series[t]:n.globals.isXNumeric&&n.config.chart.type!=="treemap"?(u=h[t][o],h[t].length===0&&(u=h[this.tooltipUtil.getFirstActiveXArray(h)][o])):u=n.globals.labels[o]!==void 0?n.globals.labels[o]:"";var M=u;return n.globals.isXNumeric&&n.config.xaxis.type==="datetime"?u=new p1(this.ctx).xLabelFormat(n.globals.ttKeyFormatter,M,M,{i:void 0,dateFormatter:new g1(this.ctx).formatDate,w:this.w}):u=n.globals.isBarHorizontal?n.globals.yLabelFormatters[0](M,g):n.globals.xLabelFormatter(M,g),n.config.tooltip.x.formatter!==void 0&&(u=n.globals.ttKeyFormatter(M,g)),n.globals.seriesZ.length>0&&n.globals.seriesZ[t].length>0&&(m=H(n.globals.seriesZ[t][o],n)),v=typeof n.config.xaxis.tooltip.formatter=="function"?n.globals.xaxisTooltipFormatter(M,g):u,{val:Array.isArray(b)?b.join(" "):b,xVal:Array.isArray(u)?u.join(" "):u,xAxisTTVal:Array.isArray(v)?v.join(" "):v,zVal:m}}},{key:"handleCustomTooltip",value:function(l){var t=l.i,o=l.j,n=l.y1,h=l.y2,u=l.w,v=this.ttCtx.getElTooltip(),m=u.config.tooltip.custom;Array.isArray(m)&&m[t]&&(m=m[t]),v.innerHTML=m({ctx:this.ctx,series:u.globals.series,seriesIndex:t,dataPointIndex:o,y1:n,y2:h,w:u})}}]),F}(),v5=function(){function F(l){s(this,F),this.ttCtx=l,this.ctx=l.ctx,this.w=l.w}return p(F,[{key:"moveXCrosshairs",value:function(l){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=this.ttCtx,n=this.w,h=o.getElXCrosshairs(),u=l-o.xcrosshairsWidth/2,v=n.globals.labels.slice().length;if(t!==null&&(u=n.globals.gridWidth/v*t),h!==null&&(h.setAttribute("x",u),h.setAttribute("x1",u),h.setAttribute("x2",u),h.setAttribute("y2",n.globals.gridHeight),h.classList.add("apexcharts-active")),u<0&&(u=0),u>n.globals.gridWidth&&(u=n.globals.gridWidth),o.blxaxisTooltip){var m=u;n.config.xaxis.crosshairs.width!=="tickWidth"&&n.config.xaxis.crosshairs.width!=="barWidth"||(m=u+o.xcrosshairsWidth/2),this.moveXAxisTooltip(m)}}},{key:"moveYCrosshairs",value:function(l){var t=this.ttCtx;t.ycrosshairs!==null&&S.setAttrs(t.ycrosshairs,{y1:l,y2:l}),t.ycrosshairsHidden!==null&&S.setAttrs(t.ycrosshairsHidden,{y1:l,y2:l})}},{key:"moveXAxisTooltip",value:function(l){var t=this.w,o=this.ttCtx;if(o.xaxisTooltip!==null){o.xaxisTooltip.classList.add("apexcharts-active");var n=o.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;if(l-=o.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(l)){l+=t.globals.translateX;var h;h=new S(this.ctx).getTextRects(o.xaxisTooltipText.innerHTML),o.xaxisTooltipText.style.minWidth=h.width+"px",o.xaxisTooltip.style.left=l+"px",o.xaxisTooltip.style.top=n+"px"}}}},{key:"moveYAxisTooltip",value:function(l){var t=this.w,o=this.ttCtx;o.yaxisTTEls===null&&(o.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var n=parseInt(o.ycrosshairsHidden.getAttribute("y1"),10),h=t.globals.translateY+n,u=o.yaxisTTEls[l].getBoundingClientRect().height,v=t.globals.translateYAxisX[l]-2;t.config.yaxis[l].opposite&&(v-=26),h-=u/2,t.globals.ignoreYAxisIndexes.indexOf(l)===-1?(o.yaxisTTEls[l].classList.add("apexcharts-active"),o.yaxisTTEls[l].style.top=h+"px",o.yaxisTTEls[l].style.left=v+t.config.yaxis[l].tooltip.offsetX+"px"):o.yaxisTTEls[l].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(l,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=this.w,h=this.ttCtx,u=h.getElTooltip(),v=h.tooltipRect,m=o!==null?parseFloat(o):1,b=parseFloat(l)+m+5,g=parseFloat(t)+m/2;if(b>n.globals.gridWidth/2&&(b=b-v.ttWidth-m-15),b>n.globals.gridWidth-v.ttWidth-10&&(b=n.globals.gridWidth-v.ttWidth),b<-20&&(b=-20),n.config.tooltip.followCursor){var H=h.getElGrid(),M=H.getBoundingClientRect();g=h.e.clientY+n.globals.translateY-M.top-v.ttHeight/2}else n.globals.isBarHorizontal?g-=v.ttHeight:(v.ttHeight/2+g>n.globals.gridHeight&&(g=n.globals.gridHeight-v.ttHeight+n.globals.translateY),g<0&&(g=0));isNaN(b)||(b+=n.globals.translateX,u.style.left=b+"px",u.style.top=g+"px")}},{key:"moveMarkers",value:function(l,t){var o=this.w,n=this.ttCtx;if(o.globals.markers.size[l]>0)for(var h=o.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(l,"'] .apexcharts-marker")),u=0;u0&&(g.setAttribute("r",m),g.setAttribute("cx",o),g.setAttribute("cy",n)),this.moveXCrosshairs(o),u.fixedTooltip||this.moveTooltip(o,n,m)}}},{key:"moveDynamicPointsOnHover",value:function(l){var t,o=this.ttCtx,n=o.w,h=0,u=0,v=n.globals.pointsArray;t=new A1(this.ctx).getActiveConfigSeriesIndex(!0);var m=o.tooltipUtil.getHoverMarkerSize(t);v[t]&&(h=v[t][l][0],u=v[t][l][1]);var b=o.tooltipUtil.getAllMarkers();if(b!==null)for(var g=0;g0?(b[g]&&b[g].setAttribute("r",m),b[g]&&b[g].setAttribute("cy",M)):b[g]&&b[g].setAttribute("r",0)}}if(this.moveXCrosshairs(h),!o.fixedTooltip){var Z=u||n.globals.gridHeight;this.moveTooltip(h,Z,m)}}},{key:"moveStickyTooltipOverBars",value:function(l){var t=this.w,o=this.ttCtx,n=t.globals.columnSeries?t.globals.columnSeries.length:t.globals.series.length,h=n>=2&&n%2==0?Math.floor(n/2):Math.floor(n/2)+1;t.globals.isBarHorizontal&&(h=new A1(this.ctx).getActiveConfigSeriesIndex(!1,"desc")+1);var u=t.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(h,"'] path[j='").concat(l,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(h,"'] path[j='").concat(l,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(h,"'] path[j='").concat(l,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(h,"'] path[j='").concat(l,"']")),v=u?parseFloat(u.getAttribute("cx")):0,m=u?parseFloat(u.getAttribute("cy")):0,b=u?parseFloat(u.getAttribute("barWidth")):0,g=u?parseFloat(u.getAttribute("barHeight")):0,H=o.getElGrid().getBoundingClientRect();if(t.globals.isXNumeric?(v-=n%2!=0?b/2:0,u&&(u.classList.contains("apexcharts-candlestick-area")||u.classList.contains("apexcharts-boxPlot-area"))&&t.globals.comboCharts&&(v-=b/2)):t.globals.isBarHorizontal||(v=o.xAxisTicksPositions[l-1]+o.dataPointsDividedWidth/2,isNaN(v)&&(v=o.xAxisTicksPositions[l]-o.dataPointsDividedWidth/2)),t.globals.isBarHorizontal?m+=g/3:m=o.e.clientY-H.top-o.tooltipRect.ttHeight/2,t.globals.isBarHorizontal||this.moveXCrosshairs(v),!o.fixedTooltip){var M=m||t.globals.gridHeight;this.moveTooltip(v,M)}}}]),F}(),bl=function(){function F(l){s(this,F),this.w=l.w,this.ttCtx=l,this.ctx=l.ctx,this.tooltipPosition=new v5(l)}return p(F,[{key:"drawDynamicPoints",value:function(){var l=this.w,t=new S(this.ctx),o=new c1(this.ctx),n=l.globals.dom.baseEl.querySelectorAll(".apexcharts-series");n=P(n),l.config.chart.stacked&&n.sort(function(H,M){return parseFloat(H.getAttribute("data:realIndex"))-parseFloat(M.getAttribute("data:realIndex"))});for(var h=0;h2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,h=this.w;h.config.chart.type!=="bubble"&&this.newPointSize(l,t);var u=t.getAttribute("cx"),v=t.getAttribute("cy");if(o!==null&&n!==null&&(u=o,v=n),this.tooltipPosition.moveXCrosshairs(u),!this.fixedTooltip){if(h.config.chart.type==="radar"){var m=this.ttCtx.getElGrid(),b=m.getBoundingClientRect();u=this.ttCtx.e.clientX-b.left}this.tooltipPosition.moveTooltip(u,v,h.config.markers.hover.size)}}},{key:"enlargePoints",value:function(l){for(var t=this.w,o=this,n=this.ttCtx,h=l,u=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),v=t.config.markers.hover.size,m=0;m=0?l[t].setAttribute("r",o):l[t].setAttribute("r",0)}}}]),F}(),W2=function(){function F(l){s(this,F),this.w=l.w,this.ttCtx=l}return p(F,[{key:"getAttr",value:function(l,t){return parseFloat(l.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(l){var t=l.e,o=l.opt,n=l.x,h=l.y,u=l.type,v=this.ttCtx,m=this.w;if(t.target.classList.contains("apexcharts-".concat(u,"-rect"))){var b=this.getAttr(t,"i"),g=this.getAttr(t,"j"),H=this.getAttr(t,"cx"),M=this.getAttr(t,"cy"),Z=this.getAttr(t,"width"),z=this.getAttr(t,"height");if(v.tooltipLabels.drawSeriesTexts({ttItems:o.ttItems,i:b,j:g,shared:!1,e:t}),m.globals.capturedSeriesIndex=b,m.globals.capturedDataPointIndex=g,n=H+v.tooltipRect.ttWidth/2+Z,h=M+v.tooltipRect.ttHeight/2-z/2,v.tooltipPosition.moveXCrosshairs(H+Z/2),n>m.globals.gridWidth/2&&(n=H-v.tooltipRect.ttWidth/2+Z),v.w.config.tooltip.followCursor){var T=m.globals.dom.elWrap.getBoundingClientRect();n=m.globals.clientX-T.left-v.tooltipRect.ttWidth/2,h=m.globals.clientY-T.top-v.tooltipRect.ttHeight-5}}return{x:n,y:h}}},{key:"handleMarkerTooltip",value:function(l){var t,o,n=l.e,h=l.opt,u=l.x,v=l.y,m=this.w,b=this.ttCtx;if(n.target.classList.contains("apexcharts-marker")){var g=parseInt(h.paths.getAttribute("cx"),10),H=parseInt(h.paths.getAttribute("cy"),10),M=parseFloat(h.paths.getAttribute("val"));if(o=parseInt(h.paths.getAttribute("rel"),10),t=parseInt(h.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,b.intersect){var Z=_.findAncestor(h.paths,"apexcharts-series");Z&&(t=parseInt(Z.getAttribute("data:realIndex"),10))}if(b.tooltipLabels.drawSeriesTexts({ttItems:h.ttItems,i:t,j:o,shared:!b.showOnIntersect&&m.config.tooltip.shared,e:n}),n.type==="mouseup"&&b.markerClick(n,t,o),m.globals.capturedSeriesIndex=t,m.globals.capturedDataPointIndex=o,u=g,v=H+m.globals.translateY-1.4*b.tooltipRect.ttHeight,b.w.config.tooltip.followCursor){var z=b.getElGrid().getBoundingClientRect();v=b.e.clientY+m.globals.translateY-z.top}M<0&&(v=H),b.marker.enlargeCurrentPoint(o,h.paths,u,v)}return{x:u,y:v}}},{key:"handleBarTooltip",value:function(l){var t,o,n=l.e,h=l.opt,u=this.w,v=this.ttCtx,m=v.getElTooltip(),b=0,g=0,H=0,M=this.getBarTooltipXY({e:n,opt:h});t=M.i;var Z=M.barHeight,z=M.j;u.globals.capturedSeriesIndex=t,u.globals.capturedDataPointIndex=z,u.globals.isBarHorizontal&&v.tooltipUtil.hasBars()||!u.config.tooltip.shared?(g=M.x,H=M.y,o=Array.isArray(u.config.stroke.width)?u.config.stroke.width[t]:u.config.stroke.width,b=g):u.globals.comboCharts||u.config.tooltip.shared||(b/=2),isNaN(H)?H=u.globals.svgHeight-v.tooltipRect.ttHeight:H<0&&(H=0);var T=parseInt(h.paths.parentNode.getAttribute("data:realIndex"),10),I=u.globals.isMultipleYAxis?u.config.yaxis[T]&&u.config.yaxis[T].reversed:u.config.yaxis[0].reversed;if(g+v.tooltipRect.ttWidth>u.globals.gridWidth&&!I?g-=v.tooltipRect.ttWidth:g<0&&(g=0),v.w.config.tooltip.followCursor){var D=v.getElGrid().getBoundingClientRect();H=v.e.clientY-D.top}v.tooltip===null&&(v.tooltip=u.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),u.config.tooltip.shared||(u.globals.comboBarCount>0?v.tooltipPosition.moveXCrosshairs(b+o/2):v.tooltipPosition.moveXCrosshairs(b)),!v.fixedTooltip&&(!u.config.tooltip.shared||u.globals.isBarHorizontal&&v.tooltipUtil.hasBars())&&(I&&(g-=v.tooltipRect.ttWidth)<0&&(g=0),m.style.left=g+u.globals.translateX+"px",!I||u.globals.isBarHorizontal&&v.tooltipUtil.hasBars()||(H=H+Z-2*(u.globals.series[t][z]<0?Z:0)),v.tooltipRect.ttHeight+H>u.globals.gridHeight?(H=u.globals.gridHeight-v.tooltipRect.ttHeight+u.globals.translateY,m.style.top=H+"px"):m.style.top=H+u.globals.translateY-v.tooltipRect.ttHeight/2+"px")}},{key:"getBarTooltipXY",value:function(l){var t=l.e,o=l.opt,n=this.w,h=null,u=this.ttCtx,v=0,m=0,b=0,g=0,H=0,M=t.target.classList;if(M.contains("apexcharts-bar-area")||M.contains("apexcharts-candlestick-area")||M.contains("apexcharts-boxPlot-area")||M.contains("apexcharts-rangebar-area")){var Z=t.target,z=Z.getBoundingClientRect(),T=o.elGrid.getBoundingClientRect(),I=z.height;H=z.height;var D=z.width,B=parseInt(Z.getAttribute("cx"),10),X=parseInt(Z.getAttribute("cy"),10);g=parseFloat(Z.getAttribute("barWidth"));var f=t.type==="touchmove"?t.touches[0].clientX:t.clientX;h=parseInt(Z.getAttribute("j"),10),v=parseInt(Z.parentNode.getAttribute("rel"),10)-1;var L=Z.getAttribute("data-range-y1"),O=Z.getAttribute("data-range-y2");n.globals.comboCharts&&(v=parseInt(Z.parentNode.getAttribute("data:realIndex"),10)),u.tooltipLabels.drawSeriesTexts({ttItems:o.ttItems,i:v,j:h,y1:L?parseInt(L,10):null,y2:O?parseInt(O,10):null,shared:!u.showOnIntersect&&n.config.tooltip.shared,e:t}),n.config.tooltip.followCursor?n.globals.isBarHorizontal?(m=f-T.left+15,b=X-u.dataPointsDividedHeight+I/2-u.tooltipRect.ttHeight/2):(m=n.globals.isXNumeric?B-D/2:B-u.dataPointsDividedWidth+D/2,b=t.clientY-T.top-u.tooltipRect.ttHeight/2-15):n.globals.isBarHorizontal?((m=B)0&&o.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var l=this.w,t=this.ttCtx;t.ycrosshairs=l.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=l.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(l,t,o){var n=this.ttCtx,h=this.w,u=h.globals.yLabelFormatters[l];if(n.yaxisTooltips[l]){var v=n.getElGrid().getBoundingClientRect(),m=(t-v.top)*o.yRatio[l],b=h.globals.maxYArr[l]-h.globals.minYArr[l],g=h.globals.minYArr[l]+(b-m);n.tooltipPosition.moveYCrosshairs(t-v.top),n.yaxisTooltipText[l].innerHTML=u(g),n.tooltipPosition.moveYAxisTooltip(l)}}}]),F}(),yl=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w;var t=this.w;this.tConfig=t.config.tooltip,this.tooltipUtil=new U0(this),this.tooltipLabels=new fl(this),this.tooltipPosition=new v5(this),this.marker=new bl(this),this.intersect=new W2(this),this.axesTooltip=new b0(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=!t.globals.isBarHorizontal&&this.tConfig.shared}return p(F,[{key:"getElTooltip",value:function(l){return l||(l=this),l.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip")}},{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(l){var t=this.w;this.xyRatios=l,this.blxaxisTooltip=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map(function(u,v){return!!(u.show&&u.tooltip.enabled&&t.globals.axisCharts)}),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var o=document.createElement("div");if(o.classList.add("apexcharts-tooltip"),o.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(o),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var n=new o2(this.ctx);this.xAxisTicksPositions=n.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&t.config.chart.type!=="rangeBar"||this.tConfig.shared||(this.showOnIntersect=!0),t.config.markers.size!==0&&t.globals.markers.largestSize!==0||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,o.appendChild(this.tooltipTitle));var h=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(h=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(h),this.addSVGEvents()}}},{key:"createTTElements",value:function(l){for(var t=this,o=this.w,n=[],h=this.getElTooltip(),u=function(m){var b=document.createElement("div");b.classList.add("apexcharts-tooltip-series-group"),b.style.order=o.config.tooltip.inverseOrder?l-m:m+1,t.tConfig.shared&&t.tConfig.enabledOnSeries&&Array.isArray(t.tConfig.enabledOnSeries)&&t.tConfig.enabledOnSeries.indexOf(m)<0&&b.classList.add("apexcharts-tooltip-series-group-hidden");var g=document.createElement("span");g.classList.add("apexcharts-tooltip-marker"),g.style.backgroundColor=o.globals.colors[m],b.appendChild(g);var H=document.createElement("div");H.classList.add("apexcharts-tooltip-text"),H.style.fontFamily=t.tConfig.style.fontFamily||o.config.chart.fontFamily,H.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach(function(M){var Z=document.createElement("div");Z.classList.add("apexcharts-tooltip-".concat(M,"-group"));var z=document.createElement("span");z.classList.add("apexcharts-tooltip-text-".concat(M,"-label")),Z.appendChild(z);var T=document.createElement("span");T.classList.add("apexcharts-tooltip-text-".concat(M,"-value")),Z.appendChild(T),H.appendChild(Z)}),b.appendChild(H),h.appendChild(b),n.push(b)},v=0;v0&&this.addPathsEventListeners(z,H),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(H)}}},{key:"drawFixedTooltipRect",value:function(){var l=this.w,t=this.getElTooltip(),o=t.getBoundingClientRect(),n=o.width+10,h=o.height+10,u=this.tConfig.fixed.offsetX,v=this.tConfig.fixed.offsetY,m=this.tConfig.fixed.position.toLowerCase();return m.indexOf("right")>-1&&(u=u+l.globals.svgWidth-n+10),m.indexOf("bottom")>-1&&(v=v+l.globals.svgHeight-h-10),t.style.left=u+"px",t.style.top=v+"px",{x:u,y:v,ttWidth:n,ttHeight:h}}},{key:"addDatapointEventsListeners",value:function(l){var t=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(t,l)}},{key:"addPathsEventListeners",value:function(l,t){for(var o=this,n=function(u){var v={paths:l[u],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(m){return l[u].addEventListener(m,o.seriesHover.bind(o,v),{capture:!1,passive:!0})})},h=0;hv.top+v.height)this.handleMouseOut(h);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!u.config.tooltip.shared){var g=parseInt(h.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(g)<0)return void this.handleMouseOut(h)}var H=this.getElTooltip(),M=this.getElXCrosshairs(),Z=u.globals.xyCharts||u.config.chart.type==="bar"&&!u.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||u.globals.comboCharts&&this.tooltipUtil.hasBars();if(n.type==="mousemove"||n.type==="touchmove"||n.type==="mouseup"){M!==null&&M.classList.add("apexcharts-active");var z=this.yaxisTooltips.filter(function(D){return D===!0});if(this.ycrosshairs!==null&&z.length&&this.ycrosshairs.classList.add("apexcharts-active"),Z&&!this.showOnIntersect)this.handleStickyTooltip(n,m,b,h);else if(u.config.chart.type==="heatmap"||u.config.chart.type==="treemap"){var T=this.intersect.handleHeatTreeTooltip({e:n,opt:h,x:t,y:o,type:u.config.chart.type});t=T.x,o=T.y,H.style.left=t+"px",H.style.top=o+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:n,opt:h}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:n,opt:h,x:t,y:o});if(this.yaxisTooltips.length)for(var I=0;Ih.globals.gridWidth?this.handleMouseOut(n):m!==null?this.handleStickyCapturedSeries(l,m,n,v):(this.tooltipUtil.isXoverlap(v)||h.globals.isBarHorizontal)&&this.create(l,this,0,v,n.ttItems)}},{key:"handleStickyCapturedSeries",value:function(l,t,o,n){var h=this.w;h.globals.series[t][n]===null?this.handleMouseOut(o):h.globals.series[t][n]!==void 0?this.tConfig.shared&&this.tooltipUtil.isXoverlap(n)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(l,this,t,n,o.ttItems):this.create(l,this,t,n,o.ttItems,!1):this.tooltipUtil.isXoverlap(n)&&this.create(l,this,0,n,o.ttItems)}},{key:"deactivateHoverFilter",value:function(){for(var l=this.w,t=new S(this.ctx),o=l.globals.dom.Paper.select(".apexcharts-bar-area"),n=0;n5&&arguments[5]!==void 0?arguments[5]:null,v=this.w,m=t;l.type==="mouseup"&&this.markerClick(l,o,n),u===null&&(u=this.tConfig.shared);var b=this.tooltipUtil.hasMarkers(),g=this.tooltipUtil.getElBars();if(v.config.legend.tooltipHoverFormatter){var H=v.config.legend.tooltipHoverFormatter,M=Array.from(this.legendLabels);M.forEach(function(L){var O=L.getAttribute("data:default-text");L.innerHTML=decodeURIComponent(O)});for(var Z=0;Z0?m.marker.enlargePoints(n):m.tooltipPosition.moveDynamicPointsOnHover(n)),this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(g),this.barSeriesHeight>0)){var B=new S(this.ctx),X=v.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(n,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(n);for(var f=0;f0&&(this.totalItems+=o[m].length);for(var b=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),g=0,H=0,M=function(T,I){var D=void 0,B=void 0,X=void 0,f=void 0,L=[],O=[],N=u.globals.comboCharts?n[T]:T;h.yRatio.length>1&&(h.yaxisIndex=N),h.isReversed=u.config.yaxis[h.yaxisIndex]&&u.config.yaxis[h.yaxisIndex].reversed;var K=h.graphics.group({class:"apexcharts-series",seriesName:_.escapeString(u.globals.seriesNames[N]),rel:T+1,"data:realIndex":N});h.ctx.series.addCollapsedClassToSeries(K,N);var n1=h.graphics.group({class:"apexcharts-datalabels","data:realIndex":N}),l1=0,b1=0,m1=h.initialPositions(g,H,D,B,X,f);H=m1.y,l1=m1.barHeight,B=m1.yDivision,f=m1.zeroW,g=m1.x,b1=m1.barWidth,D=m1.xDivision,X=m1.zeroH,h.yArrj=[],h.yArrjF=[],h.yArrjVal=[],h.xArrj=[],h.xArrjF=[],h.xArrjVal=[],h.prevY.length===1&&h.prevY[0].every(function(J2){return isNaN(J2)})&&(h.prevY[0]=h.prevY[0].map(function(J2){return X}),h.prevYF[0]=h.prevYF[0].map(function(J2){return 0}));for(var C1=0;C11?(h=H.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:g*parseInt(H.config.plotOptions.bar.columnWidth,10)/100,v=this.baseLineY[this.yaxisIndex]+(this.isReversed?H.globals.gridHeight:0)-(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),o=H.globals.padHorizontal+(h-g)/2),{x:o,y:n,yDivision:u,xDivision:h,barHeight:b,barWidth:g,zeroH:v,zeroW:m}}},{key:"drawStackedBarPaths",value:function(o){for(var n,h=o.indexes,u=o.barHeight,v=o.strokeWidth,m=o.zeroW,b=o.x,g=o.y,H=o.yDivision,M=o.elSeries,Z=this.w,z=g,T=h.i,I=h.j,D=0,B=0;B0){var X=m;this.prevXVal[T-1][I]<0?X=this.series[T][I]>=0?this.prevX[T-1][I]+D-2*(this.isReversed?D:0):this.prevX[T-1][I]:this.prevXVal[T-1][I]>=0&&(X=this.series[T][I]>=0?this.prevX[T-1][I]:this.prevX[T-1][I]-D+2*(this.isReversed?D:0)),n=X}else n=m;b=this.series[T][I]===null?n:n+this.series[T][I]/this.invertedYRatio-2*(this.isReversed?this.series[T][I]/this.invertedYRatio:0);var f=this.barHelpers.getBarpaths({barYPosition:z,barHeight:u,x1:n,x2:b,strokeWidth:v,series:this.series,realIndex:h.realIndex,i:T,j:I,w:Z});return this.barHelpers.barBackground({j:I,i:T,y1:z,y2:u,elSeries:M}),g+=H,{pathTo:f.pathTo,pathFrom:f.pathFrom,x:b,y:g}}},{key:"drawStackedColumnPaths",value:function(o){var n=o.indexes,h=o.x,u=o.y,v=o.xDivision,m=o.barWidth,b=o.zeroH;o.strokeWidth;var g=o.elSeries,H=this.w,M=n.i,Z=n.j,z=n.bc;if(H.globals.isXNumeric){var T=H.globals.seriesX[M][Z];T||(T=0),h=(T-H.globals.minX)/this.xRatio-m/2}for(var I,D=h,B=0,X=0;X0&&!H.globals.isXNumeric||M>0&&H.globals.isXNumeric&&H.globals.seriesX[M-1][Z]===H.globals.seriesX[M][Z]){var f,L,O=Math.min(this.yRatio.length+1,M+1);if(this.prevY[M-1]!==void 0){for(var N=1;N=0?L-B+2*(this.isReversed?B:0):L;break}if(this.prevYVal[M-K][Z]>=0){f=this.series[M][Z]>=0?L:L+B-2*(this.isReversed?B:0);break}}f===void 0&&(f=H.globals.gridHeight),I=this.prevYF[0].every(function(l1){return l1===0})&&this.prevYF.slice(1,M).every(function(l1){return l1.every(function(b1){return isNaN(b1)})})?H.globals.gridHeight-b:f}else I=H.globals.gridHeight-b;u=I-this.series[M][Z]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[M][Z]/this.yRatio[this.yaxisIndex]:0);var n1=this.barHelpers.getColumnPaths({barXPosition:D,barWidth:m,y1:I,y2:u,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,realIndex:n.realIndex,i:M,j:Z,w:H});return this.barHelpers.barBackground({bc:z,j:Z,i:M,x1:D,x2:m,elSeries:g}),h+=v,{pathTo:n1.pathTo,pathFrom:n1.pathFrom,x:H.globals.isXNumeric?h-v:h,y:u}}}]),t}(),d4=function(F){V(t,L1);var l=k(t);function t(){return s(this,t),l.apply(this,arguments)}return p(t,[{key:"draw",value:function(o,n){var h=this,u=this.w,v=new S(this.ctx),m=new a1(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot;var b=new j(this.ctx,u);o=b.getLogSeries(o),this.series=o,this.yRatio=b.getLogYRatios(this.yRatio),this.barHelpers.initVariables(o);for(var g=v.group({class:"apexcharts-".concat(u.config.chart.type,"-series apexcharts-plot-series")}),H=function(Z){h.isBoxPlot=u.config.chart.type==="boxPlot"||u.config.series[Z].type==="boxPlot";var z,T,I=void 0,D=void 0,B=[],X=[],f=u.globals.comboCharts?n[Z]:Z,L=v.group({class:"apexcharts-series",seriesName:_.escapeString(u.globals.seriesNames[f]),rel:Z+1,"data:realIndex":f});o[Z].length>0&&(h.visibleI=h.visibleI+1);var O,N;h.yRatio.length>1&&(h.yaxisIndex=f);var K=h.barHelpers.initialPositions();D=K.y,O=K.barHeight,I=K.x,N=K.barWidth,z=K.xDivision,T=K.zeroH,X.push(I+N/2);for(var n1=v.group({class:"apexcharts-datalabels","data:realIndex":f}),l1=function(m1){var C1=h.barHelpers.getStrokeWidth(Z,m1,f),F1=h.drawBoxPaths({indexes:{i:Z,j:m1,realIndex:f},x:I,y:D,xDivision:z,barWidth:N,zeroH:T,strokeWidth:C1,elSeries:L});D=F1.y,I=F1.x,m1>0&&X.push(I+N/2),B.push(D),F1.pathTo.forEach(function(g2,f2){var $2=!h.isBoxPlot&&h.candlestickOptions.wick.useFillColor?F1.color[f2]:u.globals.stroke.colors[Z],J2=m.fillPath({seriesNumber:f,dataPointIndex:m1,color:F1.color[f2],value:o[Z][m1]});h.renderSeries({realIndex:f,pathFill:J2,lineFill:$2,j:m1,i:Z,pathFrom:F1.pathFrom,pathTo:g2,strokeWidth:C1,elSeries:L,x:I,y:D,series:o,barHeight:O,barWidth:N,elDataLabelsWrap:n1,visibleSeries:h.visibleI,type:u.config.chart.type})})},b1=0;b1f.c&&(z=!1);var N=Math.min(f.o,f.c),K=Math.max(f.o,f.c),n1=f.m;g.globals.isXNumeric&&(h=(g.globals.seriesX[X][Z]-g.globals.minX)/this.xRatio-v/2);var l1=h+v*this.visibleI;this.series[M][Z]===void 0||this.series[M][Z]===null?(N=m,K=m):(N=m-N/B,K=m-K/B,L=m-f.h/B,O=m-f.l/B,n1=m-f.m/B);var b1=H.move(l1,m),m1=H.move(l1+v/2,N);return g.globals.previousPaths.length>0&&(m1=this.getPreviousPath(X,Z,!0)),b1=this.isBoxPlot?[H.move(l1,N)+H.line(l1+v/2,N)+H.line(l1+v/2,L)+H.line(l1+v/4,L)+H.line(l1+v-v/4,L)+H.line(l1+v/2,L)+H.line(l1+v/2,N)+H.line(l1+v,N)+H.line(l1+v,n1)+H.line(l1,n1)+H.line(l1,N+b/2),H.move(l1,n1)+H.line(l1+v,n1)+H.line(l1+v,K)+H.line(l1+v/2,K)+H.line(l1+v/2,O)+H.line(l1+v-v/4,O)+H.line(l1+v/4,O)+H.line(l1+v/2,O)+H.line(l1+v/2,K)+H.line(l1,K)+H.line(l1,n1)+"z"]:[H.move(l1,K)+H.line(l1+v/2,K)+H.line(l1+v/2,L)+H.line(l1+v/2,K)+H.line(l1+v,K)+H.line(l1+v,N)+H.line(l1+v/2,N)+H.line(l1+v/2,O)+H.line(l1+v/2,N)+H.line(l1,N)+H.line(l1,K-b/2)],m1+=H.move(l1,N),g.globals.isXNumeric||(h+=u),{pathTo:b1,pathFrom:m1,x:h,y:K,barXPosition:l1,color:this.isBoxPlot?D:z?[T]:[I]}}},{key:"getOHLCValue",value:function(o,n){var h=this.w;return{o:this.isBoxPlot?h.globals.seriesCandleH[o][n]:h.globals.seriesCandleO[o][n],h:this.isBoxPlot?h.globals.seriesCandleO[o][n]:h.globals.seriesCandleH[o][n],m:h.globals.seriesCandleM[o][n],l:this.isBoxPlot?h.globals.seriesCandleC[o][n]:h.globals.seriesCandleL[o][n],c:this.isBoxPlot?h.globals.seriesCandleL[o][n]:h.globals.seriesCandleC[o][n]}}}]),t}(),To=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"checkColorRange",value:function(){var l=this.w,t=!1,o=l.config.plotOptions[l.config.chart.type];return o.colorScale.ranges.length>0&&o.colorScale.ranges.map(function(n,h){n.from<=0&&(t=!0)}),t}},{key:"getShadeColor",value:function(l,t,o,n){var h=this.w,u=1,v=h.config.plotOptions[l].shadeIntensity,m=this.determineColor(l,t,o);h.globals.hasNegs||n?u=h.config.plotOptions[l].reverseNegativeShade?m.percent<0?m.percent/100*(1.25*v):(1-m.percent/100)*(1.25*v):m.percent<=0?1-(1+m.percent/100)*v:(1-m.percent/100)*v:(u=1-m.percent/100,l==="treemap"&&(u=(1-m.percent/100)*(1.25*v)));var b=m.color,g=new _;return h.config.plotOptions[l].enableShades&&(b=this.w.config.theme.mode==="dark"?_.hexToRgba(g.shadeColor(-1*u,m.color),h.config.fill.opacity):_.hexToRgba(g.shadeColor(u,m.color),h.config.fill.opacity)),{color:b,colorProps:m}}},{key:"determineColor",value:function(l,t,o){var n=this.w,h=n.globals.series[t][o],u=n.config.plotOptions[l],v=u.colorScale.inverse?o:t;n.config.plotOptions[l].distributed&&(v=o);var m=n.globals.colors[v],b=null,g=Math.min.apply(Math,P(n.globals.series[t])),H=Math.max.apply(Math,P(n.globals.series[t]));u.distributed||l!=="heatmap"||(g=n.globals.minY,H=n.globals.maxY),u.colorScale.min!==void 0&&(g=u.colorScale.minn.globals.maxY?u.colorScale.max:n.globals.maxY);var M=Math.abs(H)+Math.abs(g),Z=100*h/(M===0?M-1e-6:M);return u.colorScale.ranges.length>0&&u.colorScale.ranges.map(function(z,T){if(h>=z.from&&h<=z.to){m=z.color,b=z.foreColor?z.foreColor:null,g=z.from,H=z.to;var I=Math.abs(H)+Math.abs(g);Z=100*h/(I===0?I-1e-6:I)}}),{color:m,foreColor:b,percent:Z}}},{key:"calculateDataLabels",value:function(l){var t=l.text,o=l.x,n=l.y,h=l.i,u=l.j,v=l.colorProps,m=l.fontSize,b=this.w.config.dataLabels,g=new S(this.ctx),H=new k1(this.ctx),M=null;if(b.enabled){M=g.group({class:"apexcharts-data-labels"});var Z=b.offsetX,z=b.offsetY,T=o+Z,I=n+parseFloat(b.style.fontSize)/3+z;H.plotDataLabelsText({x:T,y:I,text:t,i:h,j:u,color:v.foreColor,parent:M,fontSize:m,dataLabelsConfig:b})}return M}},{key:"addListeners",value:function(l){var t=new S(this.ctx);l.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,l)),l.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,l)),l.node.addEventListener("mousedown",t.pathMouseDown.bind(this,l))}}]),F}(),ph=function(){function F(l,t){s(this,F),this.ctx=l,this.w=l.w,this.xRatio=t.xRatio,this.yRatio=t.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new To(l),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return p(F,[{key:"draw",value:function(l){var t=this.w,o=new S(this.ctx),n=o.group({class:"apexcharts-heatmap"});n.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var h=t.globals.gridWidth/t.globals.dataPoints,u=t.globals.gridHeight/t.globals.series.length,v=0,m=!1;this.negRange=this.helpers.checkColorRange();var b=l.slice();t.config.yaxis[0].reversed&&(m=!0,b.reverse());for(var g=m?0:b.length-1;m?g=0;m?g++:g--){var H=o.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:_.escapeString(t.globals.seriesNames[g]),rel:g+1,"data:realIndex":g});if(this.ctx.series.addCollapsedClassToSeries(H,g),t.config.chart.dropShadow.enabled){var M=t.config.chart.dropShadow;new A(this.ctx).dropShadow(H,M,g)}for(var Z=0,z=t.config.plotOptions.heatmap.shadeIntensity,T=0;T-1&&this.pieClicked(M),o.config.dataLabels.enabled){var L=X.x,O=X.y,N=100*z/this.fullAngle+"%";if(z!==0&&o.config.plotOptions.pie.dataLabels.minAngleToShowLabelthis.fullAngle?t.endAngle=t.endAngle-(n+v):n+v=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(m=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(m)>this.fullAngle&&(m-=this.fullAngle);var b=Math.PI*(m-90)/180,g=t.centerX+h*Math.cos(v),H=t.centerY+h*Math.sin(v),M=t.centerX+h*Math.cos(b),Z=t.centerY+h*Math.sin(b),z=_.polarToCartesian(t.centerX,t.centerY,t.donutSize,m),T=_.polarToCartesian(t.centerX,t.centerY,t.donutSize,u),I=n>180?1:0,D=["M",g,H,"A",h,h,0,I,1,M,Z];return t.chartType==="donut"?[].concat(D,["L",z.x,z.y,"A",t.donutSize,t.donutSize,0,I,0,T.x,T.y,"L",g,H,"z"]).join(" "):t.chartType==="pie"||t.chartType==="polarArea"?[].concat(D,["L",t.centerX,t.centerY,"L",g,H]).join(" "):[].concat(D).join(" ")}},{key:"drawPolarElements",value:function(l){var t=this.w,o=new $(this.ctx),n=new S(this.ctx),h=new Po(this.ctx),u=n.group(),v=n.group(),m=o.niceScale(0,Math.ceil(this.maxY),t.config.yaxis[0].tickAmount,0,!0),b=m.result.reverse(),g=m.result.length;this.maxY=m.niceMax;for(var H=t.globals.radialSize,M=H/(g-1),Z=0;Z1&&l.total.show&&(h=l.total.color);var v=u.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),m=u.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");o=(0,l.value.formatter)(o,u),n||typeof l.total.formatter!="function"||(o=l.total.formatter(u));var b=t===l.total.label;t=l.name.formatter(t,b,u),v!==null&&(v.textContent=t),m!==null&&(m.textContent=o),v!==null&&(v.style.fill=h)}},{key:"printDataLabelsInner",value:function(l,t){var o=this.w,n=l.getAttribute("data:value"),h=o.globals.seriesNames[parseInt(l.parentNode.getAttribute("rel"),10)-1];o.globals.series.length>1&&this.printInnerLabels(t,h,n,l);var u=o.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");u!==null&&(u.style.opacity=1)}},{key:"drawSpokes",value:function(l){var t=this,o=this.w,n=new S(this.ctx),h=o.config.plotOptions.polarArea.spokes;if(h.strokeWidth!==0){for(var u=[],v=360/o.globals.series.length,m=0;m1)v&&!t.total.showAlways?b({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(t,t.total.label,t.total.formatter(h));else if(b({makeSliceOut:!1,printLabel:!0}),!v)if(h.globals.selectedDataPoints.length&&h.globals.series.length>1)if(h.globals.selectedDataPoints[0].length>0){var g=h.globals.selectedDataPoints[0],H=h.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(g));this.printDataLabelsInner(H,t)}else u&&h.globals.selectedDataPoints.length&&h.globals.selectedDataPoints[0].length===0&&(u.style.opacity=0);else u&&h.globals.series.length>1&&(u.style.opacity=0)}}]),F}(),fh=function(){function F(l){s(this,F),this.ctx=l,this.w=l.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 t=this.w;this.graphics=new S(this.ctx),this.lineColorArr=t.globals.stroke.colors!==void 0?t.globals.stroke.colors:t.globals.colors,this.defaultSize=t.globals.svgHeight0&&(O=t.getPreviousPath(D));for(var N=0;N=10?l.x>0?(o="start",n+=10):l.x<0&&(o="end",n-=10):o="middle",Math.abs(l.y)>=t-10&&(l.y<0?h-=10:l.y>0&&(h+=10)),{textAnchor:o,newX:n,newY:h}}},{key:"getPreviousPath",value:function(l){for(var t=this.w,o=null,n=0;n0&&parseInt(h.realIndex,10)===parseInt(l,10)&&t.globals.previousPaths[n].paths[0]!==void 0&&(o=t.globals.previousPaths[n].paths[0].d)}return o}},{key:"getDataPointsPos",value:function(l,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;l=l||[],t=t||[];for(var n=[],h=0;h=360&&(T=360-Math.abs(this.startAngle)-.1);var I=h.drawPath({d:"",stroke:Z,strokeWidth:b*parseInt(M.strokeWidth,10)/100,fill:"none",strokeOpacity:M.opacity,classes:"apexcharts-radialbar-area"});if(M.dropShadow.enabled){var D=M.dropShadow;v.dropShadow(I,D)}H.add(I),I.attr("id","apexcharts-radialbarTrack-"+g),this.animatePaths(I,{centerX:o.centerX,centerY:o.centerY,endAngle:T,startAngle:z,size:o.size,i:g,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:n.globals.easing})}return u}},{key:"drawArcs",value:function(o){var n=this.w,h=new S(this.ctx),u=new a1(this.ctx),v=new A(this.ctx),m=h.group(),b=this.getStrokeWidth(o);o.size=o.size-b/2;var g=n.config.plotOptions.radialBar.hollow.background,H=o.size-b*o.series.length-this.margin*o.series.length-b*parseInt(n.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,M=H-n.config.plotOptions.radialBar.hollow.margin;n.config.plotOptions.radialBar.hollow.image!==void 0&&(g=this.drawHollowImage(o,m,H,g));var Z=this.drawHollow({size:M,centerX:o.centerX,centerY:o.centerY,fill:g||"transparent"});if(n.config.plotOptions.radialBar.hollow.dropShadow.enabled){var z=n.config.plotOptions.radialBar.hollow.dropShadow;v.dropShadow(Z,z)}var T=1;!this.radialDataLabels.total.show&&n.globals.series.length>1&&(T=0);var I=null;this.radialDataLabels.show&&(I=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:H,centerX:o.centerX,centerY:o.centerY,opacity:T})),n.config.plotOptions.radialBar.hollow.position==="back"&&(m.add(Z),I&&m.add(I));var D=!1;n.config.plotOptions.radialBar.inverseOrder&&(D=!0);for(var B=D?o.series.length-1:0;D?B>=0:B100?100:o.series[B])/100,K=Math.round(this.totalAngle*N)+this.startAngle,n1=void 0;n.globals.dataChanged&&(O=this.startAngle,n1=Math.round(this.totalAngle*_.negToZero(n.globals.previousPaths[B])/100)+O),Math.abs(K)+Math.abs(L)>=360&&(K-=.01),Math.abs(n1)+Math.abs(O)>=360&&(n1-=.01);var l1=K-L,b1=Array.isArray(n.config.stroke.dashArray)?n.config.stroke.dashArray[B]:n.config.stroke.dashArray,m1=h.drawPath({d:"",stroke:f,strokeWidth:b,fill:"none",fillOpacity:n.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+B,strokeDashArray:b1});if(S.setAttrs(m1.node,{"data:angle":l1,"data:value":o.series[B]}),n.config.chart.dropShadow.enabled){var C1=n.config.chart.dropShadow;v.dropShadow(m1,C1,B)}v.setSelectionFilter(m1,0,B),this.addListeners(m1,this.radialDataLabels),X.add(m1),m1.attr({index:0,j:B});var F1=0;!this.initialAnim||n.globals.resized||n.globals.dataChanged||(F1=(K-L)/360*n.config.chart.animations.speed,this.animDur=F1/(1.2*o.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),n.globals.dataChanged&&(F1=(K-L)/360*n.config.chart.animations.dynamicAnimation.speed,this.animDur=F1/(1.2*o.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),this.animatePaths(m1,{centerX:o.centerX,centerY:o.centerY,endAngle:K,startAngle:L,prevEndAngle:n1,prevStartAngle:O,size:o.size,i:B,totalItems:2,animBeginArr:this.animBeginArr,dur:F1,shouldSetPrevPaths:!0,easing:n.globals.easing})}return{g:m,elHollow:Z,dataLabels:I}}},{key:"drawHollow",value:function(o){var n=new S(this.ctx).drawCircle(2*o.size);return n.attr({class:"apexcharts-radialbar-hollow",cx:o.centerX,cy:o.centerY,r:o.size,fill:o.fill}),n}},{key:"drawHollowImage",value:function(o,n,h,u){var v=this.w,m=new a1(this.ctx),b=_.randomId(),g=v.config.plotOptions.radialBar.hollow.image;if(v.config.plotOptions.radialBar.hollow.imageClipped)m.clippedImgArea({width:h,height:h,image:g,patternID:"pattern".concat(v.globals.cuid).concat(b)}),u="url(#pattern".concat(v.globals.cuid).concat(b,")");else{var H=v.config.plotOptions.radialBar.hollow.imageWidth,M=v.config.plotOptions.radialBar.hollow.imageHeight;if(H===void 0&&M===void 0){var Z=v.globals.dom.Paper.image(g).loaded(function(T){this.move(o.centerX-T.width/2+v.config.plotOptions.radialBar.hollow.imageOffsetX,o.centerY-T.height/2+v.config.plotOptions.radialBar.hollow.imageOffsetY)});n.add(Z)}else{var z=v.globals.dom.Paper.image(g).loaded(function(T){this.move(o.centerX-H/2+v.config.plotOptions.radialBar.hollow.imageOffsetX,o.centerY-M/2+v.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(H,M)});n.add(z)}}return u}},{key:"getStrokeWidth",value:function(o){var n=this.w;return o.size*(100-parseInt(n.config.plotOptions.radialBar.hollow.size,10))/100/(o.series.length+1)-this.margin}}]),t}(),yh=function(){function F(l){s(this,F),this.w=l.w,this.lineCtx=l}return p(F,[{key:"sameValueSeriesFix",value:function(l,t){var o=this.w;if(o.config.chart.type==="line"&&(o.config.fill.type==="gradient"||o.config.fill.type[l]==="gradient")&&new j(this.lineCtx.ctx,o).seriesHaveSameValues(l)){var n=t[l].slice();n[n.length-1]=n[n.length-1]+1e-6,t[l]=n}return t}},{key:"calculatePoints",value:function(l){var t=l.series,o=l.realIndex,n=l.x,h=l.y,u=l.i,v=l.j,m=l.prevY,b=this.w,g=[],H=[];if(v===0){var M=this.lineCtx.categoryAxisCorrection+b.config.markers.offsetX;b.globals.isXNumeric&&(M=(b.globals.seriesX[o][0]-b.globals.minX)/this.lineCtx.xRatio+b.config.markers.offsetX),g.push(M),H.push(_.isNumber(t[u][0])?m+b.config.markers.offsetY:null),g.push(n+b.config.markers.offsetX),H.push(_.isNumber(t[u][v+1])?h+b.config.markers.offsetY:null)}else g.push(n+b.config.markers.offsetX),H.push(_.isNumber(t[u][v+1])?h+b.config.markers.offsetY:null);return{x:g,y:H}}},{key:"checkPreviousPaths",value:function(l){for(var t=l.pathFromLine,o=l.pathFromArea,n=l.realIndex,h=this.w,u=0;u0&&parseInt(v.realIndex,10)===parseInt(n,10)&&(v.type==="line"?(this.lineCtx.appendPathFrom=!1,t=h.globals.previousPaths[u].paths[0].d):v.type==="area"&&(this.lineCtx.appendPathFrom=!1,o=h.globals.previousPaths[u].paths[0].d,h.config.stroke.show&&h.globals.previousPaths[u].paths[1]&&(t=h.globals.previousPaths[u].paths[1].d)))}return{pathFromLine:t,pathFromArea:o}}},{key:"determineFirstPrevY",value:function(l){var t=l.i,o=l.series,n=l.prevY,h=l.lineYPosition,u=this.w;if(o[t][0]!==void 0)n=(h=u.config.chart.stacked&&t>0?this.lineCtx.prevSeriesY[t-1][0]:this.lineCtx.zeroY)-o[t][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?o[t][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(u.config.chart.stacked&&t>0&&o[t][0]===void 0){for(var v=t-1;v>=0;v--)if(o[v][0]!==null&&o[v][0]!==void 0){n=h=this.lineCtx.prevSeriesY[v][0];break}}return{prevY:n,lineYPosition:h}}}]),F}(),m4=function(){function F(l,t,o){s(this,F),this.ctx=l,this.w=l.w,this.xyRatios=t,this.pointsChart=!(this.w.config.chart.type!=="bubble"&&this.w.config.chart.type!=="scatter")||o,this.scatter=new o1(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new yh(this),this.markers=new c1(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return p(F,[{key:"draw",value:function(l,t,o){var n=this.w,h=new S(this.ctx),u=n.globals.comboCharts?t:n.config.chart.type,v=h.group({class:"apexcharts-".concat(u,"-series apexcharts-plot-series")}),m=new j(this.ctx,n);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,l=m.getLogSeries(l),this.yRatio=m.getLogYRatios(this.yRatio);for(var b=[],g=0;g0&&(z=(n.globals.seriesX[H][0]-n.globals.minX)/this.xRatio),Z.push(z);var T,I=z,D=I,B=this.zeroY;B=this.lineHelpers.determineFirstPrevY({i:g,series:l,prevY:B,lineYPosition:0}).prevY,M.push(B),T=B;var X=this._calculatePathsFrom({series:l,i:g,realIndex:H,prevX:D,prevY:B}),f=this._iterateOverDataPoints({series:l,realIndex:H,i:g,x:z,y:1,pX:I,pY:T,pathsFrom:X,linePaths:[],areaPaths:[],seriesIndex:o,lineYPosition:0,xArrj:Z,yArrj:M});this._handlePaths({type:u,realIndex:H,i:g,paths:f}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),b.push(this.elSeries)}if(n.config.chart.stacked)for(var L=b.length;L>0;L--)v.add(b[L-1]);else for(var O=0;O1&&(this.yaxisIndex=o),this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed,this.zeroY=n.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?n.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>n.globals.gridHeight||n.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=n.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=h.group({class:"apexcharts-series",seriesName:_.escapeString(n.globals.seriesNames[o])}),this.elPointsMain=h.group({class:"apexcharts-series-markers-wrap","data:realIndex":o}),this.elDataLabelsWrap=h.group({class:"apexcharts-datalabels","data:realIndex":o});var u=l[t].length===n.globals.dataPoints;this.elSeries.attr({"data:longestSeries":u,rel:t+1,"data:realIndex":o}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(l){var t,o,n,h,u=l.series,v=l.i,m=l.realIndex,b=l.prevX,g=l.prevY,H=this.w,M=new S(this.ctx);if(u[v][0]===null){for(var Z=0;Z0){var z=this.lineHelpers.checkPreviousPaths({pathFromLine:n,pathFromArea:h,realIndex:m});n=z.pathFromLine,h=z.pathFromArea}return{prevX:b,prevY:g,linePath:t,areaPath:o,pathFromLine:n,pathFromArea:h}}},{key:"_handlePaths",value:function(l){var t=l.type,o=l.realIndex,n=l.i,h=l.paths,u=this.w,v=new S(this.ctx),m=new a1(this.ctx);this.prevSeriesY.push(h.yArrj),u.globals.seriesXvalues[o]=h.xArrj,u.globals.seriesYvalues[o]=h.yArrj;var b=u.config.forecastDataPoints;if(b.count>0){var g=u.globals.seriesXvalues[o][u.globals.seriesXvalues[o].length-b.count-1],H=v.drawRect(g,0,u.globals.gridWidth,u.globals.gridHeight,0);u.globals.dom.elForecastMask.appendChild(H.node);var M=v.drawRect(0,0,g,u.globals.gridHeight,0);u.globals.dom.elNonForecastMask.appendChild(M.node)}this.pointsChart||u.globals.delayedElements.push({el:this.elPointsMain.node,index:o});var Z={i:n,realIndex:o,animationDelay:n,initialSpeed:u.config.chart.animations.speed,dataChangeSpeed:u.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if(t==="area")for(var z=m.fillPath({seriesNumber:o}),T=0;T0){var L=v.renderPaths(X);L.node.setAttribute("stroke-dasharray",b.dashArray),b.strokeWidth&&L.node.setAttribute("stroke-width",b.strokeWidth),this.elSeries.add(L),L.attr("clip-path","url(#forecastMask".concat(u.globals.cuid,")")),f.attr("clip-path","url(#nonForecastMask".concat(u.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(l){for(var t=l.series,o=l.realIndex,n=l.i,h=l.x,u=l.y,v=l.pX,m=l.pY,b=l.pathsFrom,g=l.linePaths,H=l.areaPaths,M=l.seriesIndex,Z=l.lineYPosition,z=l.xArrj,T=l.yArrj,I=this.w,D=new S(this.ctx),B=this.yRatio,X=b.prevY,f=b.linePath,L=b.areaPath,O=b.pathFromLine,N=b.pathFromArea,K=_.isNumber(I.globals.minYArr[o])?I.globals.minYArr[o]:I.globals.minY,n1=I.globals.dataPoints>1?I.globals.dataPoints-1:I.globals.dataPoints,l1=0;l10&&I.globals.collapsedSeries.length-1){f2--;break}return f2>=0?f2:0}(n-1)][l1+1]:Z=this.zeroY:Z=this.zeroY,u=b1?Z-K/B[this.yaxisIndex]+2*(this.isReversed?K/B[this.yaxisIndex]:0):Z-t[n][l1+1]/B[this.yaxisIndex]+2*(this.isReversed?t[n][l1+1]/B[this.yaxisIndex]:0),z.push(h),T.push(u);var C1=this.lineHelpers.calculatePoints({series:t,x:h,y:u,realIndex:o,i:n,j:l1,prevY:X}),F1=this._createPaths({series:t,i:n,realIndex:o,j:l1,x:h,y:u,pX:v,pY:m,linePath:f,areaPath:L,linePaths:g,areaPaths:H,seriesIndex:M});H=F1.areaPaths,g=F1.linePaths,v=F1.pX,m=F1.pY,L=F1.areaPath,f=F1.linePath,this.appendPathFrom&&(O+=D.line(h,this.zeroY),N+=D.line(h,this.zeroY)),this.handleNullDataPoints(t,C1,n,l1,o),this._handleMarkersAndLabels({pointsPos:C1,series:t,x:h,y:u,prevY:X,i:n,j:l1,realIndex:o})}return{yArrj:T,xArrj:z,pathFromArea:N,areaPaths:H,pathFromLine:O,linePaths:g}}},{key:"_handleMarkersAndLabels",value:function(l){var t=l.pointsPos;l.series,l.x,l.y,l.prevY;var o=l.i,n=l.j,h=l.realIndex,u=this.w,v=new k1(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,n,{realIndex:h,pointsPos:t,zRatio:this.zRatio,elParent:this.elPointsMain});else{u.globals.series[o].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var m=this.markers.plotChartMarkers(t,h,n+1);m!==null&&this.elPointsMain.add(m)}var b=v.drawDataLabel(t,h,n+1,null);b!==null&&this.elDataLabelsWrap.add(b)}},{key:"_createPaths",value:function(l){var t=l.series,o=l.i,n=l.realIndex,h=l.j,u=l.x,v=l.y,m=l.pX,b=l.pY,g=l.linePath,H=l.areaPath,M=l.linePaths,Z=l.areaPaths,z=l.seriesIndex,T=this.w,I=new S(this.ctx),D=T.config.stroke.curve,B=this.areaBottomY;if(Array.isArray(T.config.stroke.curve)&&(D=Array.isArray(z)?T.config.stroke.curve[z[o]]:T.config.stroke.curve[o]),D==="smooth"){var X=.35*(u-m);T.globals.hasNullValues?(t[o][h]!==null&&(t[o][h+1]!==null?(g=I.move(m,b)+I.curve(m+X,b,u-X,v,u+1,v),H=I.move(m+1,b)+I.curve(m+X,b,u-X,v,u+1,v)+I.line(u,B)+I.line(m,B)+"z"):(g=I.move(m,b),H=I.move(m,b)+"z")),M.push(g),Z.push(H)):(g+=I.curve(m+X,b,u-X,v,u,v),H+=I.curve(m+X,b,u-X,v,u,v)),m=u,b=v,h===t[o].length-2&&(H=H+I.curve(m,b,u,v,u,B)+I.move(u,v)+"z",T.globals.hasNullValues||(M.push(g),Z.push(H)))}else{if(t[o][h+1]===null){g+=I.move(u,v);var f=T.globals.isXNumeric?(T.globals.seriesX[n][h]-T.globals.minX)/this.xRatio:u-this.xDivision;H=H+I.line(f,B)+I.move(u,v)+"z"}t[o][h]===null&&(g+=I.move(u,v),H+=I.move(u,B)),D==="stepline"?(g=g+I.line(u,null,"H")+I.line(null,v,"V"),H=H+I.line(u,null,"H")+I.line(null,v,"V")):D==="straight"&&(g+=I.line(u,v),H+=I.line(u,v)),h===t[o].length-2&&(H=H+I.line(u,B)+I.move(u,v)+"z",M.push(g),Z.push(H))}return{linePaths:M,areaPaths:Z,pX:m,pY:b,linePath:g,areaPath:H}}},{key:"handleNullDataPoints",value:function(l,t,o,n,h){var u=this.w;if(l[o][n]===null&&u.config.markers.showNullDataPoints||l[o].length===1){var v=this.markers.plotChartMarkers(t,h,n+1,this.strokeWidth-u.config.markers.strokeWidth/2,!0);v!==null&&this.elPointsMain.add(v)}}}]),F}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function F(v,m,b,g){this.xoffset=v,this.yoffset=m,this.height=g,this.width=b,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(H){var M,Z=[],z=this.xoffset,T=this.yoffset,I=h(H)/this.height,D=h(H)/this.width;if(this.width>=this.height)for(M=0;M=this.height){var Z=H/this.height,z=this.width-Z;M=new F(this.xoffset+Z,this.yoffset,z,this.height)}else{var T=H/this.width,I=this.height-T;M=new F(this.xoffset,this.yoffset+T,this.width,I)}return M}}function l(v,m,b,g,H){return g=g===void 0?0:g,H=H===void 0?0:H,function(M){var Z,z,T=[];for(Z=0;Z=X}(m,M=v[0],H)?(m.push(M),t(v.slice(1),m,b,g)):(Z=b.cutArea(h(m),g),g.push(b.getCoordinates(m)),t(v,[],Z,g)),g;g.push(b.getCoordinates(m))}function o(v,m){var b=Math.min.apply(Math,v),g=Math.max.apply(Math,v),H=h(v);return Math.max(Math.pow(m,2)*g/Math.pow(H,2),Math.pow(H,2)/(Math.pow(m,2)*b))}function n(v){return v&&v.constructor===Array}function h(v){var m,b=0;for(m=0;mh-o&&m.width<=u-n){var b=v.rotateAroundCenter(l.node);l.node.setAttribute("transform","rotate(-90 ".concat(b.x," ").concat(b.y,")"))}}},{key:"animateTreemap",value:function(l,t,o,n){var h=new E(this.ctx);h.animateRect(l,{x:t.x,y:t.y,width:t.width,height:t.height},{x:o.x,y:o.y,width:o.width,height:o.height},n,function(){h.animationCompleted(l)})}}]),F}(),Hh=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return p(F,[{key:"calculateTimeScaleTicks",value:function(l,t){var o=this,n=this.w;if(n.globals.allSeriesCollapsed)return n.globals.labels=[],n.globals.timescaleLabels=[],[];var h=new g1(this.ctx),u=(t-l)/864e5;this.determineInterval(u),n.globals.disableZoomIn=!1,n.globals.disableZoomOut=!1,u<.00011574074074074075?n.globals.disableZoomIn=!0:u>5e4&&(n.globals.disableZoomOut=!0);var v=h.getTimeUnitsfromTimestamp(l,t,this.utc),m=n.globals.gridWidth/u,b=m/24,g=b/60,H=g/60,M=Math.floor(24*u),Z=Math.floor(1440*u),z=Math.floor(86400*u),T=Math.floor(u),I=Math.floor(u/30),D=Math.floor(u/365),B={minMillisecond:v.minMillisecond,minSecond:v.minSecond,minMinute:v.minMinute,minHour:v.minHour,minDate:v.minDate,minMonth:v.minMonth,minYear:v.minYear},X={firstVal:B,currentMillisecond:B.minMillisecond,currentSecond:B.minSecond,currentMinute:B.minMinute,currentHour:B.minHour,currentMonthDate:B.minDate,currentDate:B.minDate,currentMonth:B.minMonth,currentYear:B.minYear,daysWidthOnXAxis:m,hoursWidthOnXAxis:b,minutesWidthOnXAxis:g,secondsWidthOnXAxis:H,numberOfSeconds:z,numberOfMinutes:Z,numberOfHours:M,numberOfDays:T,numberOfMonths:I,numberOfYears:D};switch(this.tickInterval){case"years":this.generateYearScale(X);break;case"months":case"half_year":this.generateMonthScale(X);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(X);break;case"hours":this.generateHourScale(X);break;case"minutes_fives":case"minutes":this.generateMinuteScale(X);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(X)}var f=this.timeScaleArray.map(function(L){var O={position:L.position,unit:L.unit,year:L.year,day:L.day?L.day:1,hour:L.hour?L.hour:0,month:L.month+1};return L.unit==="month"?c(c({},O),{},{day:1,value:L.value+1}):L.unit==="day"||L.unit==="hour"?c(c({},O),{},{value:L.value}):L.unit==="minute"?c(c({},O),{},{value:L.value,minute:L.value}):L.unit==="second"?c(c({},O),{},{value:L.value,minute:L.minute,second:L.second}):L});return f.filter(function(L){var O=1,N=Math.ceil(n.globals.gridWidth/120),K=L.value;n.config.xaxis.tickAmount!==void 0&&(N=n.config.xaxis.tickAmount),f.length>N&&(O=Math.floor(f.length/N));var n1=!1,l1=!1;switch(o.tickInterval){case"years":L.unit==="year"&&(n1=!0);break;case"half_year":O=7,L.unit==="year"&&(n1=!0);break;case"months":O=1,L.unit==="year"&&(n1=!0);break;case"months_fortnight":O=15,L.unit!=="year"&&L.unit!=="month"||(n1=!0),K===30&&(l1=!0);break;case"months_days":O=10,L.unit==="month"&&(n1=!0),K===30&&(l1=!0);break;case"week_days":O=8,L.unit==="month"&&(n1=!0);break;case"days":O=1,L.unit==="month"&&(n1=!0);break;case"hours":L.unit==="day"&&(n1=!0);break;case"minutes_fives":K%5!=0&&(l1=!0);break;case"seconds_tens":K%10!=0&&(l1=!0);break;case"seconds_fives":K%5!=0&&(l1=!0)}if(o.tickInterval==="hours"||o.tickInterval==="minutes_fives"||o.tickInterval==="seconds_tens"||o.tickInterval==="seconds_fives"){if(!l1)return!0}else if((K%O==0||n1)&&!l1)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(l,t){var o=this.w,n=this.formatDates(l),h=this.removeOverlappingTS(n);o.globals.timescaleLabels=h.slice(),new K1(this.ctx).plotCoords()}},{key:"determineInterval",value:function(l){var t=24*l,o=60*t;switch(!0){case l/365>5:this.tickInterval="years";break;case l>800:this.tickInterval="half_year";break;case l>180:this.tickInterval="months";break;case l>90:this.tickInterval="months_fortnight";break;case l>60:this.tickInterval="months_days";break;case l>30:this.tickInterval="week_days";break;case l>2:this.tickInterval="days";break;case t>2.4:this.tickInterval="hours";break;case o>15:this.tickInterval="minutes_fives";break;case o>5:this.tickInterval="minutes";break;case o>1:this.tickInterval="seconds_tens";break;case 60*o>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(l){var t=l.firstVal,o=l.currentMonth,n=l.currentYear,h=l.daysWidthOnXAxis,u=l.numberOfYears,v=t.minYear,m=0,b=new g1(this.ctx),g="year";if(t.minDate>1||t.minMonth>0){var H=b.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);m=(b.determineDaysOfYear(t.minYear)-H+1)*h,v=t.minYear+1,this.timeScaleArray.push({position:m,value:v,unit:g,year:v,month:_.monthMod(o+1)})}else t.minDate===1&&t.minMonth===0&&this.timeScaleArray.push({position:m,value:v,unit:g,year:n,month:_.monthMod(o+1)});for(var M=v,Z=m,z=0;z1){b=(g.determineDaysOfMonths(n+1,t.minYear)-o+1)*u,m=_.monthMod(n+1);var Z=h+M,z=_.monthMod(m),T=m;m===0&&(H="year",T=Z,z=1,Z+=M+=1),this.timeScaleArray.push({position:b,value:T,unit:H,year:Z,month:z})}else this.timeScaleArray.push({position:b,value:m,unit:H,year:h,month:_.monthMod(n)});for(var I=m+1,D=b,B=0,X=1;Bv.determineDaysOfMonths(f+1,L)&&(g=1,m="month",Z=f+=1),f},M=(24-t.minHour)*h,Z=b,z=H(g,o,n);t.minHour===0&&t.minDate===1?(M=0,Z=_.monthMod(t.minMonth),m="month",g=t.minDate,u++):t.minDate!==1&&t.minHour===0&&t.minMinute===0&&(M=0,b=t.minDate,Z=b,z=H(g=b,o,n)),this.timeScaleArray.push({position:M,value:Z,unit:m,year:this._getYear(n,z,0),month:_.monthMod(z),day:g});for(var T=M,I=0;Im.determineDaysOfMonths(N+1,h)&&(I=1,N+=1),{month:N,date:I}},H=function(O,N){return O>m.determineDaysOfMonths(N+1,h)?N+=1:N},M=60-(t.minMinute+t.minSecond/60),Z=M*u,z=t.minHour+1,T=z+1;M===60&&(Z=0,T=(z=t.minHour)+1);var I=o,D=H(I,n);this.timeScaleArray.push({position:Z,value:z,unit:b,day:I,hour:T,year:h,month:_.monthMod(D)});for(var B=Z,X=0;X=24&&(T=0,b="day",D=g(I+=1,D).month,D=H(I,D));var f=this._getYear(h,D,0);B=T===0&&X===0?M*u:60*u+B;var L=T===0?I:T;this.timeScaleArray.push({position:B,value:L,unit:b,hour:T,day:I,year:f,month:_.monthMod(D)}),T++}}},{key:"generateMinuteScale",value:function(l){for(var t=l.currentMillisecond,o=l.currentSecond,n=l.currentMinute,h=l.currentHour,u=l.currentDate,v=l.currentMonth,m=l.currentYear,b=l.minutesWidthOnXAxis,g=l.secondsWidthOnXAxis,H=l.numberOfMinutes,M=n+1,Z=u,z=v,T=m,I=h,D=(60-o-t/1e3)*g,B=0;B=60&&(M=0,(I+=1)===24&&(I=0)),this.timeScaleArray.push({position:D,value:M,unit:"minute",hour:I,minute:M,day:Z,year:this._getYear(T,z,0),month:_.monthMod(z)}),D+=b,M++}},{key:"generateSecondScale",value:function(l){for(var t=l.currentMillisecond,o=l.currentSecond,n=l.currentMinute,h=l.currentHour,u=l.currentDate,v=l.currentMonth,m=l.currentYear,b=l.secondsWidthOnXAxis,g=l.numberOfSeconds,H=o+1,M=n,Z=u,z=v,T=m,I=h,D=(1e3-t)/1e3*b,B=0;B=60&&(H=0,++M>=60&&(M=0,++I===24&&(I=0))),this.timeScaleArray.push({position:D,value:H,unit:"second",hour:I,minute:M,second:H,day:Z,year:this._getYear(T,z,0),month:_.monthMod(z)}),D+=b,H++}},{key:"createRawDateString",value:function(l,t){var o=l.year;return l.month===0&&(l.month=1),o+="-"+("0"+l.month.toString()).slice(-2),l.unit==="day"?o+=l.unit==="day"?"-"+("0"+t).slice(-2):"-01":o+="-"+("0"+(l.day?l.day:"1")).slice(-2),l.unit==="hour"?o+=l.unit==="hour"?"T"+("0"+t).slice(-2):"T00":o+="T"+("0"+(l.hour?l.hour:"0")).slice(-2),l.unit==="minute"?o+=":"+("0"+t).slice(-2):o+=":"+(l.minute?("0"+l.minute).slice(-2):"00"),l.unit==="second"?o+=":"+("0"+t).slice(-2):o+=":00",this.utc&&(o+=".000Z"),o}},{key:"formatDates",value:function(l){var t=this,o=this.w;return l.map(function(n){var h=n.value.toString(),u=new g1(t.ctx),v=t.createRawDateString(n,h),m=u.getDate(u.parseDate(v));if(t.utc||(m=u.getDate(u.parseDateWithTimezone(v))),o.config.xaxis.labels.format===void 0){var b="dd MMM",g=o.config.xaxis.labels.datetimeFormatter;n.unit==="year"&&(b=g.year),n.unit==="month"&&(b=g.month),n.unit==="day"&&(b=g.day),n.unit==="hour"&&(b=g.hour),n.unit==="minute"&&(b=g.minute),n.unit==="second"&&(b=g.second),h=u.formatDate(m,b)}else h=u.formatDate(m,o.config.xaxis.labels.format);return{dateString:v,position:n.position,value:h,unit:n.unit,year:n.year,month:n.month}})}},{key:"removeOverlappingTS",value:function(l){var t,o=this,n=new S(this.ctx),h=!1;l.length>0&&l[0].value&&l.every(function(m){return m.value.length===l[0].value.length})&&(h=!0,t=n.getTextRects(l[0].value).width);var u=0,v=l.map(function(m,b){if(b>0&&o.w.config.xaxis.labels.hideOverlappingLabels){var g=h?t:n.getTextRects(l[u].value).width,H=l[u].position;return m.position>H+g+10?(u=b,m):null}return m});return v=v.filter(function(m){return m!==null})}},{key:"_getYear",value:function(l,t,o){return l+Math.floor(t/12)+o}}]),F}(),Vh=function(){function F(l,t){s(this,F),this.ctx=t,this.w=t.w,this.el=l}return p(F,[{key:"setupElements",value:function(){var l=this.w.globals,t=this.w.config,o=t.chart.type;l.axisCharts=["line","area","bar","rangeBar","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(o)>-1,l.xyCharts=["line","area","bar","rangeBar","candlestick","boxPlot","scatter","bubble"].indexOf(o)>-1,l.isBarHorizontal=(t.chart.type==="bar"||t.chart.type==="rangeBar")&&t.plotOptions.bar.horizontal,l.chartClass=".apexcharts"+l.chartID,l.dom.baseEl=this.el,l.dom.elWrap=document.createElement("div"),S.setAttrs(l.dom.elWrap,{id:l.chartClass.substring(1),class:"apexcharts-canvas "+l.chartClass.substring(1)}),this.el.appendChild(l.dom.elWrap),l.dom.Paper=new window.SVG.Doc(l.dom.elWrap),l.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(t.chart.offsetX,", ").concat(t.chart.offsetY,")")}),l.dom.Paper.node.style.background=t.chart.background,this.setSVGDimensions(),l.dom.elGraphical=l.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),l.dom.elAnnotations=l.dom.Paper.group().attr({class:"apexcharts-annotations"}),l.dom.elDefs=l.dom.Paper.defs(),l.dom.elLegendWrap=document.createElement("div"),l.dom.elLegendWrap.classList.add("apexcharts-legend"),l.dom.elWrap.appendChild(l.dom.elLegendWrap),l.dom.Paper.add(l.dom.elGraphical),l.dom.elGraphical.add(l.dom.elDefs)}},{key:"plotChartType",value:function(l,t){var o=this.w,n=o.config,h=o.globals,u={series:[],i:[]},v={series:[],i:[]},m={series:[],i:[]},b={series:[],i:[]},g={series:[],i:[]},H={series:[],i:[]},M={series:[],i:[]};h.series.map(function(L,O){var N=0;l[O].type!==void 0?(l[O].type==="column"||l[O].type==="bar"?(h.series.length>1&&n.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),g.series.push(L),g.i.push(O),N++,o.globals.columnSeries=g.series):l[O].type==="area"?(v.series.push(L),v.i.push(O),N++):l[O].type==="line"?(u.series.push(L),u.i.push(O),N++):l[O].type==="scatter"?(m.series.push(L),m.i.push(O)):l[O].type==="bubble"?(b.series.push(L),b.i.push(O),N++):l[O].type==="candlestick"?(H.series.push(L),H.i.push(O),N++):l[O].type==="boxPlot"?(M.series.push(L),M.i.push(O),N++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble"),N>1&&(h.comboCharts=!0)):(u.series.push(L),u.i.push(O))});var Z=new m4(this.ctx,t),z=new d4(this.ctx,t);this.ctx.pie=new Io(this.ctx);var T=new bh(this.ctx);this.ctx.rangeBar=new _1(this.ctx,t);var I=new fh(this.ctx),D=[];if(h.comboCharts){if(v.series.length>0&&D.push(Z.draw(v.series,"area",v.i)),g.series.length>0)if(o.config.chart.stacked){var B=new zo(this.ctx,t);D.push(B.draw(g.series,g.i))}else this.ctx.bar=new L1(this.ctx,t),D.push(this.ctx.bar.draw(g.series,g.i));if(u.series.length>0&&D.push(Z.draw(u.series,"line",u.i)),H.series.length>0&&D.push(z.draw(H.series,H.i)),M.series.length>0&&D.push(z.draw(M.series,M.i)),m.series.length>0){var X=new m4(this.ctx,t,!0);D.push(X.draw(m.series,"scatter",m.i))}if(b.series.length>0){var f=new m4(this.ctx,t,!0);D.push(f.draw(b.series,"bubble",b.i))}}else switch(n.chart.type){case"line":D=Z.draw(h.series,"line");break;case"area":D=Z.draw(h.series,"area");break;case"bar":n.chart.stacked?D=new zo(this.ctx,t).draw(h.series):(this.ctx.bar=new L1(this.ctx,t),D=this.ctx.bar.draw(h.series));break;case"candlestick":D=new d4(this.ctx,t).draw(h.series);break;case"boxPlot":D=new d4(this.ctx,t).draw(h.series);break;case"rangeBar":D=this.ctx.rangeBar.draw(h.series);break;case"heatmap":D=new ph(this.ctx,t).draw(h.series);break;case"treemap":D=new gh(this.ctx,t).draw(h.series);break;case"pie":case"donut":case"polarArea":D=this.ctx.pie.draw(h.series);break;case"radialBar":D=T.draw(h.series);break;case"radar":D=I.draw(h.series);break;default:D=Z.draw(h.series)}return D}},{key:"setSVGDimensions",value:function(){var l=this.w.globals,t=this.w.config;l.svgWidth=t.chart.width,l.svgHeight=t.chart.height;var o=_.getDimensions(this.el),n=t.chart.width.toString().split(/[0-9]+/g).pop();n==="%"?_.isNumber(o[0])&&(o[0].width===0&&(o=_.getDimensions(this.el.parentNode)),l.svgWidth=o[0]*parseInt(t.chart.width,10)/100):n!=="px"&&n!==""||(l.svgWidth=parseInt(t.chart.width,10));var h=t.chart.height.toString().split(/[0-9]+/g).pop();if(l.svgHeight!=="auto"&&l.svgHeight!=="")if(h==="%"){var u=_.getDimensions(this.el.parentNode);l.svgHeight=u[1]*parseInt(t.chart.height,10)/100}else l.svgHeight=parseInt(t.chart.height,10);else l.axisCharts?l.svgHeight=l.svgWidth/1.61:l.svgHeight=l.svgWidth/1.2;if(l.svgWidth<0&&(l.svgWidth=0),l.svgHeight<0&&(l.svgHeight=0),S.setAttrs(l.dom.Paper.node,{width:l.svgWidth,height:l.svgHeight}),h!=="%"){var v=t.chart.sparkline.enabled?0:l.axisCharts?t.chart.parentHeightOffset:0;l.dom.Paper.node.parentNode.parentNode.style.minHeight=l.svgHeight+v+"px"}l.dom.elWrap.style.width=l.svgWidth+"px",l.dom.elWrap.style.height=l.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var l=this.w.globals,t=l.translateY,o={transform:"translate("+l.translateX+", "+t+")"};S.setAttrs(l.dom.elGraphical.node,o)}},{key:"resizeNonAxisCharts",value:function(){var l=this.w,t=l.globals,o=0,n=l.config.chart.sparkline.enabled?1:15;n+=l.config.grid.padding.bottom,l.config.legend.position!=="top"&&l.config.legend.position!=="bottom"||!l.config.legend.show||l.config.legend.floating||(o=new i2(this.ctx).legendHelpers.getLegendBBox().clwh+10);var h=l.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),u=2.05*l.globals.radialSize;if(h&&!l.config.chart.sparkline.enabled){var v=_.getBoundingClientRect(h);u=v.bottom;var m=v.bottom-v.top;u=Math.max(2.05*l.globals.radialSize,m)}var b=u+t.translateY+o+n;t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",b),t.dom.elWrap.style.height=b+"px",S.setAttrs(t.dom.Paper.node,{height:b}),t.dom.Paper.node.parentNode.parentNode.style.minHeight=b+"px"}},{key:"coreCalculations",value:function(){new J(this.ctx).init()}},{key:"resetGlobals",value:function(){var l=this,t=function(){return l.w.config.series.map(function(h){return[]})},o=new p2,n=this.w.globals;o.initGlobalVars(n),n.seriesXvalues=t(),n.seriesYvalues=t()}},{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 l=null,t=this.w;if(t.globals.axisCharts){if(t.config.xaxis.crosshairs.position==="back"&&new S1(this.ctx).drawXCrosshairs(),t.config.yaxis[0].crosshairs.position==="back"&&new S1(this.ctx).drawYCrosshairs(),t.config.xaxis.type==="datetime"&&t.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new Hh(this.ctx);var o=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?o=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(o=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(o)}l=new j(this.ctx).getCalculatedRatios()}return l}},{key:"updateSourceChart",value:function(l){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:l.w.globals.minX,max:l.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var l=this,t=this.w;if(t.config.chart.brush.enabled&&typeof t.config.chart.events.selection!="function"){var o=t.config.chart.brush.targets||[t.config.chart.brush.target];o.forEach(function(n){var h=ApexCharts.getChartByID(n);h.w.globals.brushSource=l.ctx,typeof h.w.config.chart.events.zoomed!="function"&&(h.w.config.chart.events.zoomed=function(){l.updateSourceChart(h)}),typeof h.w.config.chart.events.scrolled!="function"&&(h.w.config.chart.events.scrolled=function(){l.updateSourceChart(h)})}),t.config.chart.events.selection=function(n,h){o.forEach(function(u){var v=ApexCharts.getChartByID(u),m=_.clone(t.config.yaxis);if(t.config.chart.brush.autoScaleYaxis&&v.w.globals.series.length===1){var b=new $(v);m=b.autoScaleY(v,m,h)}var g=v.w.config.yaxis.reduce(function(H,M,Z){return[].concat(P(H),[c(c({},v.w.config.yaxis[Z]),{},{min:m[0].min,max:m[0].max})])},[]);v.ctx.updateHelpers._updateOptions({xaxis:{min:h.xaxis.min,max:h.xaxis.max},yaxis:g},!1,!1,!1,!1)})}}}}]),F}(),Mh=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"_updateOptions",value:function(l){var t=this,o=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],h=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],u=arguments.length>4&&arguments[4]!==void 0&&arguments[4],v=[this.ctx];h&&(v=this.ctx.getSyncedCharts()),this.ctx.w.globals.isExecCalled&&(v=[this.ctx],this.ctx.w.globals.isExecCalled=!1),v.forEach(function(m){var b=m.w;return b.globals.shouldAnimate=n,o||(b.globals.resized=!0,b.globals.dataChanged=!0,n&&m.series.getPreviousPaths()),l&&i(l)==="object"&&(m.config=new r2(l),l=j.extendArrayProps(m.config,l,b),m.w.globals.chartID!==t.ctx.w.globals.chartID&&delete l.series,b.config=_.extend(b.config,l),u&&(b.globals.lastXAxis=l.xaxis?_.clone(l.xaxis):[],b.globals.lastYAxis=l.yaxis?_.clone(l.yaxis):[],b.globals.initialConfig=_.extend({},b.config),b.globals.initialSeries=_.clone(b.config.series))),m.update(l)})}},{key:"_updateSeries",value:function(l,t){var o,n=this,h=arguments.length>2&&arguments[2]!==void 0&&arguments[2],u=this.w;return u.globals.shouldAnimate=t,u.globals.dataChanged=!0,t&&this.ctx.series.getPreviousPaths(),u.globals.axisCharts?((o=l.map(function(v,m){return n._extendSeries(v,m)})).length===0&&(o=[{data:[]}]),u.config.series=o):u.config.series=l.slice(),h&&(u.globals.initialSeries=_.clone(u.config.series)),this.ctx.update()}},{key:"_extendSeries",value:function(l,t){var o=this.w,n=o.config.series[t];return c(c({},o.config.series[t]),{},{name:l.name?l.name:n&&n.name,color:l.color?l.color:n&&n.color,type:l.type?l.type:n&&n.type,data:l.data?l.data:n&&n.data})}},{key:"toggleDataPointSelection",value:function(l,t){var o=this.w,n=null,h=".apexcharts-series[data\\:realIndex='".concat(l,"']");return o.globals.axisCharts?n=o.globals.dom.Paper.select("".concat(h," path[j='").concat(t,"'], ").concat(h," circle[j='").concat(t,"'], ").concat(h," rect[j='").concat(t,"']")).members[0]:t===void 0&&(n=o.globals.dom.Paper.select("".concat(h," path[j='").concat(l,"']")).members[0],o.config.chart.type!=="pie"&&o.config.chart.type!=="polarArea"&&o.config.chart.type!=="donut"||this.ctx.pie.pieClicked(l)),n?(new S(this.ctx).pathMouseDown(n,null),n.node?n.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(l){var t=this.w;if(["min","max"].forEach(function(n){l.xaxis[n]!==void 0&&(t.config.xaxis[n]=l.xaxis[n],t.globals.lastXAxis[n]=l.xaxis[n])}),l.xaxis.categories&&l.xaxis.categories.length&&(t.config.xaxis.categories=l.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var o=new B1(l);l=o.convertCatToNumericXaxis(l,this.ctx)}return l}},{key:"forceYAxisUpdate",value:function(l){var t=this.w;return t.config.chart.stacked&&t.config.chart.stackType==="100%"&&(Array.isArray(l.yaxis)?l.yaxis.forEach(function(o,n){l.yaxis[n].min=0,l.yaxis[n].max=100}):(l.yaxis.min=0,l.yaxis.max=100)),l}},{key:"revertDefaultAxisMinMax",value:function(l){var t=this,o=this.w,n=o.globals.lastXAxis,h=o.globals.lastYAxis;l&&l.xaxis&&(n=l.xaxis),l&&l.yaxis&&(h=l.yaxis),o.config.xaxis.min=n.min,o.config.xaxis.max=n.max;var u=function(v){h[v]!==void 0&&(o.config.yaxis[v].min=h[v].min,o.config.yaxis[v].max=h[v].max)};o.config.yaxis.map(function(v,m){o.globals.zoomed||h[m]!==void 0?u(m):t.ctx.opts.yaxis[m]!==void 0&&(v.min=t.ctx.opts.yaxis[m].min,v.max=t.ctx.opts.yaxis[m].max)})}}]),F}();P5=typeof window<"u"?window:void 0,gl=function(F,l){var t=(this!==void 0?this:F).SVG=function(f){if(t.supported)return f=new t.Doc(f),t.parser.draw||t.prepare(),f};if(t.ns="http://www.w3.org/2000/svg",t.xmlns="http://www.w3.org/2000/xmlns/",t.xlink="http://www.w3.org/1999/xlink",t.svgjs="http://svgjs.dev",t.supported=!0,!t.supported)return!1;t.did=1e3,t.eid=function(f){return"Svgjs"+g(f)+t.did++},t.create=function(f){var L=l.createElementNS(this.ns,f);return L.setAttribute("id",this.eid(f)),L},t.extend=function(){var f,L;L=(f=[].slice.call(arguments)).pop();for(var O=f.length-1;O>=0;O--)if(f[O])for(var N in L)f[O].prototype[N]=L[N];t.Set&&t.Set.inherit&&t.Set.inherit()},t.invent=function(f){var L=typeof f.create=="function"?f.create:function(){this.constructor.call(this,t.create(f.create))};return f.inherit&&(L.prototype=new f.inherit),f.extend&&t.extend(L,f.extend),f.construct&&t.extend(f.parent||t.Container,f.construct),L},t.adopt=function(f){return f?f.instance?f.instance:((L=f.nodeName=="svg"?f.parentNode instanceof F.SVGElement?new t.Nested:new t.Doc:f.nodeName=="linearGradient"?new t.Gradient("linear"):f.nodeName=="radialGradient"?new t.Gradient("radial"):t[g(f.nodeName)]?new t[g(f.nodeName)]:new t.Element(f)).type=f.nodeName,L.node=f,f.instance=L,L instanceof t.Doc&&L.namespace().defs(),L.setData(JSON.parse(f.getAttribute("svgjs:data"))||{}),L):null;var L},t.prepare=function(){var f=l.getElementsByTagName("body")[0],L=(f?new t.Doc(f):t.adopt(l.documentElement).nested()).size(2,0);t.parser={body:f||l.documentElement,draw:L.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:L.polyline().node,path:L.path().node,native:t.create("svg")}},t.parser={native:t.create("svg")},l.addEventListener("DOMContentLoaded",function(){t.parser.draw||t.prepare()},!1),t.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},t.utils={map:function(f,L){for(var O=f.length,N=[],K=0;K1?1:f,new t.Color({r:~~(this.r+(this.destination.r-this.r)*f),g:~~(this.g+(this.destination.g-this.g)*f),b:~~(this.b+(this.destination.b-this.b)*f)})):this}}),t.Color.test=function(f){return f+="",t.regex.isHex.test(f)||t.regex.isRgb.test(f)},t.Color.isRgb=function(f){return f&&typeof f.r=="number"&&typeof f.g=="number"&&typeof f.b=="number"},t.Color.isColor=function(f){return t.Color.isRgb(f)||t.Color.test(f)},t.Array=function(f,L){(f=(f||[]).valueOf()).length==0&&L&&(f=L.valueOf()),this.value=this.parse(f)},t.extend(t.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(f){return f=f.valueOf(),Array.isArray(f)?f:this.split(f)}}),t.PointArray=function(f,L){t.Array.call(this,f,L||[[0,0]])},t.PointArray.prototype=new t.Array,t.PointArray.prototype.constructor=t.PointArray;for(var o={M:function(f,L,O){return L.x=O.x=f[0],L.y=O.y=f[1],["M",L.x,L.y]},L:function(f,L){return L.x=f[0],L.y=f[1],["L",f[0],f[1]]},H:function(f,L){return L.x=f[0],["H",f[0]]},V:function(f,L){return L.y=f[0],["V",f[0]]},C:function(f,L){return L.x=f[4],L.y=f[5],["C",f[0],f[1],f[2],f[3],f[4],f[5]]},Q:function(f,L){return L.x=f[2],L.y=f[3],["Q",f[0],f[1],f[2],f[3]]},Z:function(f,L,O){return L.x=O.x,L.y=O.y,["Z"]}},n="mlhvqtcsaz".split(""),h=0,u=n.length;hl1);return N},bbox:function(){return t.parser.draw||t.prepare(),t.parser.path.setAttribute("d",this.toString()),t.parser.path.getBBox()}}),t.Number=t.invent({create:function(f,L){this.value=0,this.unit=L||"",typeof f=="number"?this.value=isNaN(f)?0:isFinite(f)?f:f<0?-34e37:34e37:typeof f=="string"?(L=f.match(t.regex.numberAndUnit))&&(this.value=parseFloat(L[1]),L[5]=="%"?this.value/=100:L[5]=="s"&&(this.value*=1e3),this.unit=L[5]):f instanceof t.Number&&(this.value=f.valueOf(),this.unit=f.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(f){return f=new t.Number(f),new t.Number(this+f,this.unit||f.unit)},minus:function(f){return f=new t.Number(f),new t.Number(this-f,this.unit||f.unit)},times:function(f){return f=new t.Number(f),new t.Number(this*f,this.unit||f.unit)},divide:function(f){return f=new t.Number(f),new t.Number(this/f,this.unit||f.unit)},to:function(f){var L=new t.Number(this);return typeof f=="string"&&(L.unit=f),L},morph:function(f){return this.destination=new t.Number(f),f.relative&&(this.destination.value+=this.value),this},at:function(f){return this.destination?new t.Number(this.destination).minus(this).times(f).plus(this):this}}}),t.Element=t.invent({create:function(f){this._stroke=t.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=f)&&(this.type=f.nodeName,this.node.instance=this,this._stroke=f.getAttribute("stroke")||this._stroke)},extend:{x:function(f){return this.attr("x",f)},y:function(f){return this.attr("y",f)},cx:function(f){return f==null?this.x()+this.width()/2:this.x(f-this.width()/2)},cy:function(f){return f==null?this.y()+this.height()/2:this.y(f-this.height()/2)},move:function(f,L){return this.x(f).y(L)},center:function(f,L){return this.cx(f).cy(L)},width:function(f){return this.attr("width",f)},height:function(f){return this.attr("height",f)},size:function(f,L){var O=M(this,f,L);return this.width(new t.Number(O.width)).height(new t.Number(O.height))},clone:function(f){this.writeDataToDom();var L=T(this.node.cloneNode(!0));return f?f.add(L):this.after(L),L},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(f){return this.after(f).remove(),f},addTo:function(f){return f.put(this)},putIn:function(f){return f.add(this)},id:function(f){return this.attr("id",f)},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 f=this.attr("class");return f==null?[]:f.trim().split(t.regex.delimiter)},hasClass:function(f){return this.classes().indexOf(f)!=-1},addClass:function(f){if(!this.hasClass(f)){var L=this.classes();L.push(f),this.attr("class",L.join(" "))}return this},removeClass:function(f){return this.hasClass(f)&&this.attr("class",this.classes().filter(function(L){return L!=f}).join(" ")),this},toggleClass:function(f){return this.hasClass(f)?this.removeClass(f):this.addClass(f)},reference:function(f){return t.get(this.attr(f))},parent:function(f){var L=this;if(!L.node.parentNode)return null;if(L=t.adopt(L.node.parentNode),!f)return L;for(;L&&L.node instanceof F.SVGElement;){if(typeof f=="string"?L.matches(f):L instanceof f)return L;if(!L.node.parentNode||L.node.parentNode.nodeName=="#document")return null;L=t.adopt(L.node.parentNode)}},doc:function(){return this instanceof t.Doc?this:this.parent(t.Doc)},parents:function(f){var L=[],O=this;do{if(!(O=O.parent(f))||!O.node)break;L.push(O)}while(O.parent);return L},matches:function(f){return function(L,O){return(L.matches||L.matchesSelector||L.msMatchesSelector||L.mozMatchesSelector||L.webkitMatchesSelector||L.oMatchesSelector).call(L,O)}(this.node,f)},native:function(){return this.node},svg:function(f){var L=l.createElement("svg");if(!(f&&this instanceof t.Parent))return L.appendChild(f=l.createElement("svg")),this.writeDataToDom(),f.appendChild(this.node.cloneNode(!0)),L.innerHTML.replace(/^