| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573 |
- import{c as Zt,_ as de,I as ge}from"./icon-code-C9O2Kmuv.js";import{ae as $t,aa as Jt,d as Kt,u as Qt,b as ei,s as ue,e as pe,c as ti,a as X,f as $,j as B,g as fe,M as xe,w as me,k as be,o as le}from"./index-B9UwUtN4.js";import{I as ii}from"./icon-bell-DVZM0OOl.js";var wt={exports:{}},Ke={exports:{}};/*!
- * ApexCharts v3.35.5
- * (c) 2018-2022 ApexCharts
- * Released under the MIT License.
- */var yt;function ai(){return yt||(yt=1,function(_e,W){function U(v,e){var t=Object.keys(v);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(v);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(v,a).enumerable})),t.push.apply(t,i)}return t}function D(v){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?U(Object(t),!0).forEach(function(i){ie(v,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(t)):U(Object(t)).forEach(function(i){Object.defineProperty(v,i,Object.getOwnPropertyDescriptor(t,i))})}return v}function R(v){return(R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(v)}function I(v,e){if(!(v instanceof e))throw new TypeError("Cannot call a class as a function")}function Q(v,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(v,i.key,i)}}function E(v,e,t){return e&&Q(v.prototype,e),t&&Q(v,t),v}function ie(v,e,t){return e in v?Object.defineProperty(v,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):v[e]=t,v}function he(v,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(e&&e.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),e&&Te(v,e)}function Me(v){return(Me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(v)}function Te(v,e){return(Te=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t})(v,e)}function ce(v,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(v)}function ye(v){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var t,i=Me(v);if(e){var a=Me(this).constructor;t=Reflect.construct(i,arguments,a)}else t=i.apply(this,arguments);return ce(this,t)}}function De(v,e){return function(t){if(Array.isArray(t))return t}(v)||function(t,i){var a=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a!=null){var s,o,r=[],n=!0,l=!1;try{for(a=a.call(t);!(n=(s=a.next()).done)&&(r.push(s.value),!i||r.length!==i);n=!0);}catch(c){l=!0,o=c}finally{try{n||a.return==null||a.return()}finally{if(l)throw o}}return r}}(v,e)||Ee(v,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function V(v){return function(e){if(Array.isArray(e))return we(e)}(v)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(v)||Ee(v)||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 Ee(v,e){if(v){if(typeof v=="string")return we(v,e);var t=Object.prototype.toString.call(v).slice(8,-1);return t==="Object"&&v.constructor&&(t=v.constructor.name),t==="Map"||t==="Set"?Array.from(v):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?we(v,e):void 0}}function we(v,e){(e==null||e>v.length)&&(e=v.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=v[t];return i}var C=function(){function v(){I(this,v)}return E(v,[{key:"shadeRGBColor",value:function(e,t){var i=t.split(","),a=e<0?0:255,s=e<0?-1*e:e,o=parseInt(i[0].slice(4),10),r=parseInt(i[1],10),n=parseInt(i[2],10);return"rgb("+(Math.round((a-o)*s)+o)+","+(Math.round((a-r)*s)+r)+","+(Math.round((a-n)*s)+n)+")"}},{key:"shadeHexColor",value:function(e,t){var i=parseInt(t.slice(1),16),a=e<0?0:255,s=e<0?-1*e:e,o=i>>16,r=i>>8&255,n=255&i;return"#"+(16777216+65536*(Math.round((a-o)*s)+o)+256*(Math.round((a-r)*s)+r)+(Math.round((a-n)*s)+n)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,t){return v.isColorHex(t)?this.shadeHexColor(e,t):this.shadeRGBColor(e,t)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(e){return e&&R(e)==="object"&&!Array.isArray(e)&&e!=null}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"listToArray",value:function(e){var t,i=[];for(t=0;t<e.length;t++)i[t]=e[t];return i}},{key:"extend",value:function(e,t){var i=this;typeof Object.assign!="function"&&(Object.assign=function(s){if(s==null)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(s),r=1;r<arguments.length;r++){var n=arguments[r];if(n!=null)for(var l in n)n.hasOwnProperty(l)&&(o[l]=n[l])}return o});var a=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach(function(s){i.isObject(t[s])&&s in e?a[s]=i.extend(e[s],t[s]):Object.assign(a,ie({},s,t[s]))}),a}},{key:"extendArray",value:function(e,t){var i=[];return e.map(function(a){i.push(v.extend(t,a))}),e=i}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(e){if(v.is("Array",e)){for(var t=[],i=0;i<e.length;i++)t[i]=this.clone(e[i]);return t}if(v.is("Null",e))return null;if(v.is("Date",e))return e;if(R(e)==="object"){var a={};for(var s in e)e.hasOwnProperty(s)&&(a[s]=this.clone(e[s]));return a}return e}},{key:"log10",value:function(e){return Math.log(e)/Math.LN10}},{key:"roundToBase10",value:function(e){return Math.pow(10,Math.floor(Math.log10(e)))}},{key:"roundToBase",value:function(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}},{key:"parseNumber",value:function(e){return e===null?e:parseFloat(e)}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(e){var t=String(e).split(/[eE]/);if(t.length===1)return t[0];var i="",a=e<0?"-":"",s=t[0].replace(".",""),o=Number(t[1])+1;if(o<0){for(i=a+"0.";o++;)i+="0";return i+s.replace(/^-/,"")}for(o-=s.length;o--;)i+="0";return s+i}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),i=e.clientHeight,a=e.clientWidth;return i-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[a-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),i]}},{key:"getBoundingClientRect",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}},{key:"getLargestStringFromArr",value:function(e){return e.reduce(function(t,i){return Array.isArray(i)&&(i=i.reduce(function(a,s){return a.length>s.length?a:s})),t.length>i.length?t:i},0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;e.substring(0,1)!=="#"&&(e="#999999");var i=e.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var a=0;a<i.length;a++)i[a]=parseInt(i[a].length===1?i[a]+i[a]:i[a],16);return t!==void 0&&i.push(t),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&e.length===4?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}},{key:"getPolygonPos",value:function(e,t){for(var i=[],a=2*Math.PI/t,s=0;s<t;s++){var o={};o.x=e*Math.sin(s*a),o.y=-e*Math.cos(s*a),i.push(o)}return i}},{key:"polarToCartesian",value:function(e,t,i,a){var s=(a-90)*Math.PI/180;return{x:e+i*Math.cos(s),y:t+i*Math.sin(s)}}},{key:"escapeString",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",i=e.toString().slice();return i=i.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,i){if(i>=e.length)for(var a=i-e.length+1;a--;)e.push(void 0);return e.splice(i,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e.style.key=t[i])}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%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 e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var a=e.indexOf("Edge/");return a>0&&parseInt(e.substring(a+5,e.indexOf(".",a)),10)}}]),v}(),K=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w,this.setEasingFunctions()}return E(v,[{key:"setEasingFunctions",value:function(){var e;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":e="-";break;case"easein":e="<";break;case"easeout":e=">";break;case"easeinout":e="<>";break;case"swing":e=function(t){var i=1.70158;return(t-=1)*t*((i+1)*t+i)+1};break;case"bounce":e=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":e=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1};break;default:e="<>"}this.w.globals.easing=e}}},{key:"animateLine",value:function(e,t,i,a){e.attr(t).animate(a).attr(i)}},{key:"animateMarker",value:function(e,t,i,a,s,o){t||(t=0),e.attr({r:t,width:t,height:t}).animate(a,s).attr({r:i,width:i.width,height:i.height}).afterAll(function(){o()})}},{key:"animateCircle",value:function(e,t,i,a,s){e.attr({r:t.r,cx:t.cx,cy:t.cy}).animate(a,s).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(e,t,i,a,s){e.attr(t).animate(a).attr(i).afterAll(function(){return s()})}},{key:"animatePathsGradually",value:function(e){var t=e.el,i=e.realIndex,a=e.j,s=e.fill,o=e.pathFrom,r=e.pathTo,n=e.speed,l=e.delay,c=this.w,d=0;c.config.chart.animations.animateGradually.enabled&&(d=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&c.config.chart.type!=="bar"&&(d=0),this.morphSVG(t,i,a,c.config.chart.type!=="line"||c.globals.comboCharts?s:"stroke",o,r,n,l*d)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(e){e.el.classList.remove("apexcharts-element-hidden")})}},{key:"animationCompleted",value:function(e){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:e,w:t}))}},{key:"morphSVG",value:function(e,t,i,a,s,o,r,n){var l=this,c=this.w;s||(s=e.attr("pathFrom")),o||(o=e.attr("pathTo"));var d=function(g){return c.config.chart.type==="radar"&&(r=1),"M 0 ".concat(c.globals.gridHeight)};(!s||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=d()),(!o||o.indexOf("undefined")>-1||o.indexOf("NaN")>-1)&&(o=d()),c.globals.shouldAnimate||(r=1),e.plot(s).animate(1,c.globals.easing,n).plot(s).animate(r,c.globals.easing,n).plot(o).afterAll(function(){C.isNumber(i)?i===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(e):a!=="none"&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&t===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(e),l.showDelayedElements()})}}]),v}(),J=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"getDefaultFilter",value:function(e,t){var i=this.w;e.unfilter(!0),new window.SVG.Filter().size("120%","180%","-5%","-40%"),i.config.states.normal.filter!=="none"?this.applyFilter(e,t,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(e,i.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var i=this.w;i.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,i.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,i){var a=this,s=this.w,o=i.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter(function(r){var n=s.config.chart.dropShadow;(n.enabled?a.addShadow(r,t,n):r).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:o}})}),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"addDarkenFilter",value:function(e,t,i){var a=this,s=this.w,o=i.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter(function(r){var n=s.config.chart.dropShadow;(n.enabled?a.addShadow(r,t,n):r).componentTransfer({rgb:{type:"linear",slope:o}})}),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(e,t);break;case"lighten":this.addLightenFilter(e,t,{intensity:a});break;case"darken":this.addDarkenFilter(e,t,{intensity:a})}}},{key:"addShadow",value:function(e,t,i){var a=i.blur,s=i.top,o=i.left,r=i.color,n=i.opacity,l=e.flood(Array.isArray(r)?r[t]:r,n).composite(e.sourceAlpha,"in").offset(o,s).gaussianBlur(a).merge(e.source);return e.blend(e.source,l)}},{key:"dropShadow",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=t.top,s=t.left,o=t.blur,r=t.color,n=t.opacity,l=t.noUserSpaceOnUse,c=this.w;return e.unfilter(!0),C.isIE()&&c.config.chart.type==="radialBar"||(r=Array.isArray(r)?r[i]:r,e.filter(function(d){var g=null;g=C.isSafari()||C.isFirefox()||C.isIE()?d.flood(r,n).composite(d.sourceAlpha,"in").offset(s,a).gaussianBlur(o):d.flood(r,n).composite(d.sourceAlpha,"in").offset(s,a).gaussianBlur(o).merge(d.source),d.blend(d.source,g)}),l||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,i){var a=this.w;if(a.globals.selectedDataPoints[t]!==void 0&&a.globals.selectedDataPoints[t].indexOf(i)>-1){e.node.setAttribute("selected",!0);var s=a.config.states.active.filter;s!=="none"&&this.applyFilter(e,t,s.type,s.value)}}},{key:"_scaleFilterSize",value:function(e){(function(t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),v}(),M=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"drawLine",value:function(e,t,i,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,r=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,n=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt",l=this.w,c=l.globals.dom.Paper.line().attr({x1:e,y1:t,x2:i,y2:a,stroke:s,"stroke-dasharray":o,"stroke-width":r,"stroke-linecap":n});return c}},{key:"drawRect",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",r=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,n=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,d=this.w,g=d.globals.dom.Paper.rect();return g.attr({x:e,y:t,width:i>0?i:0,height:a>0?a:0,rx:s,ry:s,opacity:r,"stroke-width":n!==null?n:0,stroke:l!==null?l:"none","stroke-dasharray":c}),g.node.setAttribute("fill",o),g}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none",s=this.w,o=s.globals.dom.Paper.polygon(e).attr({fill:a,stroke:t,"stroke-width":i});return o}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.w;e<0&&(e=0);var a=i.globals.dom.Paper.circle(2*e);return t!==null&&a.attr(t),a}},{key:"drawPath",value:function(e){var t=e.d,i=t===void 0?"":t,a=e.stroke,s=a===void 0?"#a8a8a8":a,o=e.strokeWidth,r=o===void 0?1:o,n=e.fill,l=e.fillOpacity,c=l===void 0?1:l,d=e.strokeOpacity,g=d===void 0?1:d,p=e.classes,x=e.strokeLinecap,f=x===void 0?null:x,b=e.strokeDashArray,w=b===void 0?0:b,k=this.w;return f===null&&(f=k.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(k.globals.gridHeight)),k.globals.dom.Paper.path(i).attr({fill:n,"fill-opacity":c,stroke:s,"stroke-opacity":g,"stroke-linecap":f,"stroke-width":r,"stroke-dasharray":w,class:p})}},{key:"group",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w,i=t.globals.dom.Paper.group();return e!==null&&i.attr(e),i}},{key:"move",value:function(e,t){var i=["M",e,t].join(" ");return i}},{key:"line",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=null;return i===null?a=["L",e,t].join(" "):i==="H"?a=["H",e].join(" "):i==="V"&&(a=["V",t].join(" ")),a}},{key:"curve",value:function(e,t,i,a,s,o){var r=["C",e,t,i,a,s,o].join(" ");return r}},{key:"quadraticCurve",value:function(e,t,i,a){return["Q",e,t,i,a].join(" ")}},{key:"arc",value:function(e,t,i,a,s,o,r){var n=arguments.length>7&&arguments[7]!==void 0&&arguments[7],l="A";n&&(l="a");var c=[l,e,t,i,a,s,o,r].join(" ");return c}},{key:"renderPaths",value:function(e){var t,i=e.j,a=e.realIndex,s=e.pathFrom,o=e.pathTo,r=e.stroke,n=e.strokeWidth,l=e.strokeLinecap,c=e.fill,d=e.animationDelay,g=e.initialSpeed,p=e.dataChangeSpeed,x=e.className,f=e.shouldClipToGrid,b=f===void 0||f,w=e.bindEventsOnPaths,k=w===void 0||w,A=e.drawShadow,h=A===void 0||A,u=this.w,m=new J(this.ctx),y=new K(this.ctx),S=this.w.config.chart.animations.enabled,P=S&&this.w.config.chart.animations.dynamicAnimation.enabled,L=!!(S&&!u.globals.resized||P&&u.globals.dataChanged&&u.globals.shouldAnimate);L?t=s:(t=o,u.globals.animationEnded=!0);var z=u.config.stroke.dashArray,T=0;T=Array.isArray(z)?z[a]:u.config.stroke.dashArray;var Y=this.drawPath({d:t,stroke:r,strokeWidth:n,fill:c,fillOpacity:1,classes:x,strokeLinecap:l,strokeDashArray:T});if(Y.attr("index",a),b&&Y.attr({"clip-path":"url(#gridRectMask".concat(u.globals.cuid,")")}),u.config.states.normal.filter.type!=="none")m.getDefaultFilter(Y,a);else if(u.config.chart.dropShadow.enabled&&h&&(!u.config.chart.dropShadow.enabledOnSeries||u.config.chart.dropShadow.enabledOnSeries&&u.config.chart.dropShadow.enabledOnSeries.indexOf(a)!==-1)){var H=u.config.chart.dropShadow;m.dropShadow(Y,H,a)}k&&(Y.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,Y)),Y.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,Y)),Y.node.addEventListener("mousedown",this.pathMouseDown.bind(this,Y))),Y.attr({pathTo:o,pathFrom:s});var q={el:Y,j:i,realIndex:a,pathFrom:s,pathTo:o,fill:c,strokeWidth:n,delay:d};return!S||u.globals.resized||u.globals.dataChanged?!u.globals.resized&&u.globals.dataChanged||y.showDelayedElements():y.animatePathsGradually(D(D({},q),{},{speed:g})),u.globals.dataChanged&&P&&L&&y.animatePathsGradually(D(D({},q),{},{speed:p})),Y}},{key:"drawPattern",value:function(e,t,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=this.w,r=o.globals.dom.Paper.pattern(t,i,function(n){e==="horizontalLines"?n.line(0,0,i,0).stroke({color:a,width:s+1}):e==="verticalLines"?n.line(0,0,0,t).stroke({color:a,width:s+1}):e==="slantedLines"?n.line(0,0,t,i).stroke({color:a,width:s}):e==="squares"?n.rect(t,i).fill("none").stroke({color:a,width:s}):e==="circles"&&n.circle(t).fill("none").stroke({color:a,width:s})});return r}},{key:"drawGradient",value:function(e,t,i,a,s){var o,r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,n=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,d=this.w;t.length<9&&t.indexOf("#")===0&&(t=C.hexToRgba(t,a)),i.length<9&&i.indexOf("#")===0&&(i=C.hexToRgba(i,s));var g=0,p=1,x=1,f=null;n!==null&&(g=n[0]!==void 0?n[0]/100:0,p=n[1]!==void 0?n[1]/100:1,x=n[2]!==void 0?n[2]/100:1,f=n[3]!==void 0?n[3]/100:null);var b=!(d.config.chart.type!=="donut"&&d.config.chart.type!=="pie"&&d.config.chart.type!=="polarArea"&&d.config.chart.type!=="bubble");if(o=l===null||l.length===0?d.globals.dom.Paper.gradient(b?"radial":"linear",function(A){A.at(g,t,a),A.at(p,i,s),A.at(x,i,s),f!==null&&A.at(f,t,a)}):d.globals.dom.Paper.gradient(b?"radial":"linear",function(A){(Array.isArray(l[c])?l[c]:l).forEach(function(h){A.at(h.offset/100,h.color,h.opacity)})}),b){var w=d.globals.gridWidth/2,k=d.globals.gridHeight/2;d.config.chart.type!=="bubble"?o.attr({gradientUnits:"userSpaceOnUse",cx:w,cy:k,r}):o.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else e==="vertical"?o.from(0,0).to(0,1):e==="diagonal"?o.from(0,0).to(1,1):e==="horizontal"?o.from(0,1).to(1,1):e==="diagonal2"&&o.from(1,0).to(0,1);return o}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,i=e.maxWidth,a=e.fontSize,s=e.fontFamily,o=this.getTextRects(t,a,s),r=o.width/t.length,n=Math.floor(i/r);return i<o.width?t.slice(0,n-3)+"...":t}},{key:"drawText",value:function(e){var t=this,i=e.x,a=e.y,s=e.text,o=e.textAnchor,r=e.fontSize,n=e.fontFamily,l=e.fontWeight,c=e.foreColor,d=e.opacity,g=e.maxWidth,p=e.cssClass,x=p===void 0?"":p,f=e.isPlainText,b=f===void 0||f,w=this.w;s===void 0&&(s="");var k=s;o||(o="start"),c&&c.length||(c=w.config.chart.foreColor),n=n||w.config.chart.fontFamily,l=l||"regular";var A,h={maxWidth:g,fontSize:r=r||"11px",fontFamily:n};return Array.isArray(s)?A=w.globals.dom.Paper.text(function(u){for(var m=0;m<s.length;m++)k=s[m],g&&(k=t.getTextBasedOnMaxWidth(D({text:s[m]},h))),m===0?u.tspan(k):u.tspan(k).newLine()}):(g&&(k=this.getTextBasedOnMaxWidth(D({text:s},h))),A=b?w.globals.dom.Paper.plain(s):w.globals.dom.Paper.text(function(u){return u.tspan(k)})),A.attr({x:i,y:a,"text-anchor":o,"dominant-baseline":"auto","font-size":r,"font-family":n,"font-weight":l,fill:c,class:"apexcharts-text "+x}),A.node.style.fontFamily=n,A.node.style.opacity=d,A}},{key:"drawMarker",value:function(e,t,i){e=e||0;var a=i.pSize||0,s=null;if(i.shape==="square"||i.shape==="rect"){var o=i.pRadius===void 0?a/2:i.pRadius;t!==null&&a||(a=0,o=0);var r=1.2*a+o,n=this.drawRect(r,r,r,r,o);n.attr({x:e-r/2,y:t-r/2,cx:e,cy:t,class:i.class?i.class:"",fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,stroke:i.pointStrokeColor,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}),s=n}else i.shape!=="circle"&&i.shape||(C.isNumber(t)||(a=0,t=0),s=this.drawCircle(a,{cx:e,cy:t,class:i.class?i.class:"",stroke:i.pointStrokeColor,fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}));return s}},{key:"pathMouseEnter",value:function(e,t){var i=this.w,a=new J(this.ctx),s=parseInt(e.node.getAttribute("index"),10),o=parseInt(e.node.getAttribute("j"),10);if(typeof i.config.chart.events.dataPointMouseEnter=="function"&&i.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:s,dataPointIndex:o,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:s,dataPointIndex:o,w:i}]),(i.config.states.active.filter.type==="none"||e.node.getAttribute("selected")!=="true")&&i.config.states.hover.filter.type!=="none"&&!i.globals.isTouchDevice){var r=i.config.states.hover.filter;a.applyFilter(e,s,r.type,r.value)}}},{key:"pathMouseLeave",value:function(e,t){var i=this.w,a=new J(this.ctx),s=parseInt(e.node.getAttribute("index"),10),o=parseInt(e.node.getAttribute("j"),10);typeof i.config.chart.events.dataPointMouseLeave=="function"&&i.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:s,dataPointIndex:o,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:s,dataPointIndex:o,w:i}]),i.config.states.active.filter.type!=="none"&&e.node.getAttribute("selected")==="true"||i.config.states.hover.filter.type!=="none"&&a.getDefaultFilter(e,s)}},{key:"pathMouseDown",value:function(e,t){var i=this.w,a=new J(this.ctx),s=parseInt(e.node.getAttribute("index"),10),o=parseInt(e.node.getAttribute("j"),10),r="false";if(e.node.getAttribute("selected")==="true"){if(e.node.setAttribute("selected","false"),i.globals.selectedDataPoints[s].indexOf(o)>-1){var n=i.globals.selectedDataPoints[s].indexOf(o);i.globals.selectedDataPoints[s].splice(n,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.select(".apexcharts-series path").members,c=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,d=function(x){Array.prototype.forEach.call(x,function(f){f.node.setAttribute("selected","false"),a.getDefaultFilter(f,s)})};d(l),d(c)}e.node.setAttribute("selected","true"),r="true",i.globals.selectedDataPoints[s]===void 0&&(i.globals.selectedDataPoints[s]=[]),i.globals.selectedDataPoints[s].push(o)}if(r==="true"){var g=i.config.states.active.filter;if(g!=="none")a.applyFilter(e,s,g.type,g.value);else if(i.config.states.hover.filter!=="none"&&!i.globals.isTouchDevice){var p=i.config.states.hover.filter;a.applyFilter(e,s,p.type,p.value)}}else i.config.states.active.filter.type!=="none"&&(i.config.states.hover.filter.type==="none"||i.globals.isTouchDevice?a.getDefaultFilter(e,s):(p=i.config.states.hover.filter,a.applyFilter(e,s,p.type,p.value)));typeof i.config.chart.events.dataPointSelection=="function"&&i.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:o,w:i}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:o,w:i}])}},{key:"rotateAroundCenter",value:function(e){var t={};return e&&typeof e.getBBox=="function"&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,i,a){var s=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],o=this.w,r=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:i,foreColor:"#fff",opacity:0});a&&r.attr("transform",a),o.globals.dom.Paper.add(r);var n=r.bbox();return s||(n=r.node.getBoundingClientRect()),r.remove(),{width:n.width,height:n.height}}},{key:"placeTextWithEllipsis",value:function(e,t,i){if(typeof e.getComputedTextLength=="function"&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=i/1.1)){for(var a=t.length-3;a>0;a-=3)if(e.getSubStringLength(0,a)<=i/1.1)return void(e.textContent=t.substring(0,a)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])}}]),v}(),Z=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"getStackedSeriesTotals",value:function(){var e=this.w,t=[];if(e.globals.series.length===0)return t;for(var i=0;i<e.globals.series[e.globals.maxValsInArrayIndex].length;i++){for(var a=0,s=0;s<e.globals.series.length;s++)e.globals.series[s][i]!==void 0&&(a+=e.globals.series[s][i]);t.push(a)}return e.globals.stackedSeriesTotals=t,t}},{key:"getSeriesTotalByIndex",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return e===null?this.w.config.series.reduce(function(t,i){return t+i},0):this.w.globals.series[e].reduce(function(t,i){return t+i},0)}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(e===null?this.w.config.series.filter(function(t){return t!==null}):this.w.config.series[e].data.filter(function(t){return t!==null})).length===0}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every(function(t,i,a){return t===a[0]})}},{key:"getCategoryLabels",value:function(e){var t=this.w,i=e.slice();return t.config.xaxis.convertedCatToNumeric&&(i=e.map(function(a,s){return t.config.xaxis.labels.formatter(a-t.globals.minX+1)})),i}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map(function(t){return t.length}).indexOf(Math.max.apply(Math,e.globals.series.map(function(t){return t.length})))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach(function(i){t=Math.max(t,i)}),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach(function(i){t=Math.max(t,i.size)}),t>0&&(t+=e.config.markers.hover.sizeOffset+1),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map(function(t,i){var a=0;if(Array.isArray(t))for(var s=0;s<t.length;s++)a+=t[s];else a+=t;return a})}},{key:"getSeriesTotalsXRange",value:function(e,t){var i=this.w;return i.globals.series.map(function(a,s){for(var o=0,r=0;r<a.length;r++)i.globals.seriesX[s][r]>e&&i.globals.seriesX[s][r]<t&&(o+=a[r]);return o})}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map(function(t,i){var a=[];if(Array.isArray(t))for(var s=0;s<t.length;s++){var o=e.globals.stackedSeriesTotals[s],r=0;o&&(r=100*t[s]/o),a.push(r)}else{var n=100*t/e.globals.seriesTotals.reduce(function(l,c){return l+c},0);a.push(n)}return a})}},{key:"getCalculatedRatios",value:function(){var e,t,i,a,s=this.w.globals,o=[],r=0,n=[],l=.1,c=0;if(s.yRange=[],s.isMultipleYAxis)for(var d=0;d<s.minYArr.length;d++)s.yRange.push(Math.abs(s.minYArr[d]-s.maxYArr[d])),n.push(0);else s.yRange.push(Math.abs(s.minY-s.maxY));s.xRange=Math.abs(s.maxX-s.minX),s.zRange=Math.abs(s.maxZ-s.minZ);for(var g=0;g<s.yRange.length;g++)o.push(s.yRange[g]/s.gridHeight);if(t=s.xRange/s.gridWidth,i=Math.abs(s.initialMaxX-s.initialMinX)/s.gridWidth,e=s.yRange/s.gridWidth,a=s.xRange/s.gridHeight,(r=s.zRange/s.gridHeight*16)||(r=1),s.minY!==Number.MIN_VALUE&&Math.abs(s.minY)!==0&&(s.hasNegs=!0),s.isMultipleYAxis){n=[];for(var p=0;p<o.length;p++)n.push(-s.minYArr[p]/o[p])}else n.push(-s.minY/o[0]),s.minY!==Number.MIN_VALUE&&Math.abs(s.minY)!==0&&(l=-s.minY/e,c=s.minX/t);return{yRatio:o,invertedYRatio:e,zRatio:r,xRatio:t,initialXRatio:i,invertedXRatio:a,baseLineInvertedY:l,baseLineY:n,baseLineX:c}}},{key:"getLogSeries",value:function(e){var t=this,i=this.w;return i.globals.seriesLog=e.map(function(a,s){return i.config.yaxis[s]&&i.config.yaxis[s].logarithmic?a.map(function(o){return o===null?null:t.getLogVal(i.config.yaxis[s].logBase,o,s)}):a}),i.globals.invalidLogScale?e:i.globals.seriesLog}},{key:"getBaseLog",value:function(e,t){return Math.log(t)/Math.log(e)}},{key:"getLogVal",value:function(e,t,i){if(t===0)return 0;var a=this.w,s=a.globals.minYArr[i]===0?-1:this.getBaseLog(e,a.globals.minYArr[i]),o=(a.globals.maxYArr[i]===0?0:this.getBaseLog(e,a.globals.maxYArr[i]))-s;return t<1?t/o:(this.getBaseLog(e,t)-s)/o}},{key:"getLogYRatios",value:function(e){var t=this,i=this.w,a=this.w.globals;return a.yLogRatio=e.slice(),a.logYRange=a.yRange.map(function(s,o){if(i.config.yaxis[o]&&t.w.config.yaxis[o].logarithmic){var r,n=-Number.MAX_VALUE,l=Number.MIN_VALUE;return a.seriesLog.forEach(function(c,d){c.forEach(function(g){i.config.yaxis[d]&&i.config.yaxis[d].logarithmic&&(n=Math.max(g,n),l=Math.min(g,l))})}),r=Math.pow(a.yRange[o],Math.abs(l-n)/a.yRange[o]),a.yLogRatio[o]=r/a.gridHeight,r}}),a.invalidLogScale?e.slice():a.yLogRatio}}],[{key:"checkComboSeries",value:function(e){var t=!1,i=0,a=0;return e.length&&e[0].type!==void 0&&e.forEach(function(s){s.type!=="bar"&&s.type!=="column"&&s.type!=="candlestick"&&s.type!=="boxPlot"||i++,s.type!==void 0&&a++}),a>0&&(t=!0),{comboBarCount:i,comboCharts:t}}},{key:"extendArrayProps",value:function(e,t,i){return t.yaxis&&(t=e.extendYAxis(t,i)),t.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),t.annotations.xaxis&&(t=e.extendXAxisAnnotations(t)),t.annotations.points&&(t=e.extendPointAnnotations(t))),t}}]),v}(),ze=function(){function v(e){I(this,v),this.w=e.w,this.annoCtx=e}return E(v,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.w;if(e.label.orientation==="vertical"){var a=t!==null?t:0,s=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(a,"']"));if(s!==null){var o=s.getBoundingClientRect();s.setAttribute("x",parseFloat(s.getAttribute("x"))-o.height+4),e.label.position==="top"?s.setAttribute("y",parseFloat(s.getAttribute("y"))+o.width):s.setAttribute("y",parseFloat(s.getAttribute("y"))-o.width);var r=this.annoCtx.graphics.rotateAroundCenter(s),n=r.x,l=r.y;s.setAttribute("transform","rotate(-90 ".concat(n," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var i=this.w;if(!e||t.label.text===void 0||t.label.text!==void 0&&!String(t.label.text).trim())return null;var a=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),s=e.getBoundingClientRect(),o=t.label.style.padding.left,r=t.label.style.padding.right,n=t.label.style.padding.top,l=t.label.style.padding.bottom;t.label.orientation==="vertical"&&(n=t.label.style.padding.left,l=t.label.style.padding.right,o=t.label.style.padding.top,r=t.label.style.padding.bottom);var c=s.left-a.left-o,d=s.top-a.top-n,g=this.annoCtx.graphics.drawRect(c-i.globals.barPadForNumericAxis,d,s.width+o+r,s.height+n+l,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&g.node.classList.add(t.id),g}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,i=function(a,s,o){var r=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(o,"-annotations .apexcharts-").concat(o,"-annotation-label[rel='").concat(s,"']"));if(r){var n=r.parentNode,l=e.addBackgroundToAnno(r,a);l&&(n.insertBefore(l.node,r),a.label.mouseEnter&&l.node.addEventListener("mouseenter",a.label.mouseEnter.bind(e,a)),a.label.mouseLeave&&l.node.addEventListener("mouseleave",a.label.mouseLeave.bind(e,a)),a.label.click&&l.node.addEventListener("click",a.label.click.bind(e,a)))}};t.config.annotations.xaxis.map(function(a,s){i(a,s,"xaxis")}),t.config.annotations.yaxis.map(function(a,s){i(a,s,"yaxis")}),t.config.annotations.points.map(function(a,s){i(a,s,"point")})}},{key:"getY1Y2",value:function(e,t){var i,a=e==="y1"?t.y:t.y2,s=this.w;if(this.annoCtx.invertAxis){var o=s.globals.labels.indexOf(a);s.config.xaxis.convertedCatToNumeric&&(o=s.globals.categoryLabels.indexOf(a));var r=s.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(o+1)+")");r&&(i=parseFloat(r.getAttribute("y")))}else{var n;s.config.yaxis[t.yAxisIndex].logarithmic?n=(a=new Z(this.annoCtx.ctx).getLogVal(a,t.yAxisIndex))/s.globals.yLogRatio[t.yAxisIndex]:n=(a-s.globals.minYArr[t.yAxisIndex])/(s.globals.yRange[t.yAxisIndex]/s.globals.gridHeight),i=s.globals.gridHeight-n,!t.marker||t.y!==void 0&&t.y!==null||(i=0),s.config.yaxis[t.yAxisIndex]&&s.config.yaxis[t.yAxisIndex].reversed&&(i=n)}return i}},{key:"getX1X2",value:function(e,t){var i=this.w,a=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,s=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,o=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,r=(t.x-a)/(o/i.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(r=(s-t.x)/(o/i.globals.gridWidth)),i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(r=this.getStringX(t.x));var n=(t.x2-a)/(o/i.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(n=(s-t.x2)/(o/i.globals.gridWidth)),i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(n=this.getStringX(t.x2)),t.x!==void 0&&t.x!==null||!t.marker||(r=i.globals.gridWidth),e==="x1"?r:n}},{key:"getStringX",value:function(e){var t=this.w,i=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var a=t.globals.labels.indexOf(e),s=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(a+1)+")");return s&&(i=parseFloat(s.getAttribute("x"))),i}}]),v}(),Ge=function(){function v(e){I(this,v),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new ze(this.annoCtx)}return E(v,[{key:"addXaxisAnnotation",value:function(e,t,i){var a,s=this.w,o=this.helpers.getX1X2("x1",e),r=e.label.text,n=e.strokeDashArray;if(C.isNumber(o)){if(e.x2===null||e.x2===void 0){var l=this.annoCtx.graphics.drawLine(o+e.offsetX,0+e.offsetY,o+e.offsetX,s.globals.gridHeight+e.offsetY,e.borderColor,n,e.borderWidth);t.appendChild(l.node),e.id&&l.node.classList.add(e.id)}else{if((a=this.helpers.getX1X2("x2",e))<o){var c=o;o=a,a=c}var d=this.annoCtx.graphics.drawRect(o+e.offsetX,0+e.offsetY,a-o,s.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,n);d.node.classList.add("apexcharts-annotation-rect"),d.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),t.appendChild(d.node),e.id&&d.node.classList.add(e.id)}var g=e.label.position==="top"?4:s.globals.gridHeight,p=this.annoCtx.graphics.getTextRects(r,parseFloat(e.label.style.fontSize)),x=this.annoCtx.graphics.drawText({x:o+e.label.offsetX,y:g+e.label.offsetY-(e.label.orientation==="vertical"?e.label.position==="top"?p.width/2-12:-p.width/2:0),text:r,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});x.attr({rel:i}),t.appendChild(x.node),this.annoCtx.helpers.setOrientations(e,i)}}},{key:"drawXAxisAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map(function(a,s){e.addXaxisAnnotation(a,i.node,s)}),i}}]),v}(),Ve=function(){function v(e){I(this,v),this.w=e.w,this.annoCtx=e,this.helpers=new ze(this.annoCtx)}return E(v,[{key:"addYaxisAnnotation",value:function(e,t,i){var a,s=this.w,o=e.strokeDashArray,r=this.helpers.getY1Y2("y1",e),n=e.label.text;if(e.y2===null||e.y2===void 0){var l=this.annoCtx.graphics.drawLine(0+e.offsetX,r+e.offsetY,this._getYAxisAnnotationWidth(e),r+e.offsetY,e.borderColor,o,e.borderWidth);t.appendChild(l.node),e.id&&l.node.classList.add(e.id)}else{if((a=this.helpers.getY1Y2("y2",e))>r){var c=r;r=a,a=c}var d=this.annoCtx.graphics.drawRect(0+e.offsetX,a+e.offsetY,this._getYAxisAnnotationWidth(e),r-a,0,e.fillColor,e.opacity,1,e.borderColor,o);d.node.classList.add("apexcharts-annotation-rect"),d.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),t.appendChild(d.node),e.id&&d.node.classList.add(e.id)}var g=e.label.position==="right"?s.globals.gridWidth:0,p=this.annoCtx.graphics.drawText({x:g+e.label.offsetX,y:(a??r)+e.label.offsetY-3,text:n,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});p.attr({rel:i}),t.appendChild(p.node)}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.map(function(a,s){e.addYaxisAnnotation(a,i.node,s)}),i}}]),v}(),je=function(){function v(e){I(this,v),this.w=e.w,this.annoCtx=e,this.helpers=new ze(this.annoCtx)}return E(v,[{key:"addPointAnnotation",value:function(e,t,i){this.w;var a=this.helpers.getX1X2("x1",e),s=this.helpers.getY1Y2("y1",e);if(C.isNumber(a)){var o={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},r=this.annoCtx.graphics.drawMarker(a+e.marker.offsetX,s+e.marker.offsetY,o);t.appendChild(r.node);var n=e.label.text?e.label.text:"",l=this.annoCtx.graphics.drawText({x:a+e.label.offsetX,y:s+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:n,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(l.attr({rel:i}),t.appendChild(l.node),e.customSVG.SVG){var c=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});c.attr({transform:"translate(".concat(a+e.customSVG.offsetX,", ").concat(s+e.customSVG.offsetY,")")}),c.node.innerHTML=e.customSVG.SVG,t.appendChild(c.node)}if(e.image.path){var d=e.image.width?e.image.width:20,g=e.image.height?e.image.height:20;r=this.annoCtx.addImage({x:a+e.image.offsetX-d/2,y:s+e.image.offsetY-g/2,width:d,height:g,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&r.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&r.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&r.node.addEventListener("click",e.click.bind(this,e))}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map(function(a,s){e.addPointAnnotation(a,i.node,s)}),i}}]),v}(),We={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"}}},ke=function(){function v(){I(this,v),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,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={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return E(v,[{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:[We],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(e){return new Date(e).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,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(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(t,i){return t+i},0)/e.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(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(t,i){return t+i},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(e){return e!==null?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},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}}}}}]),v}(),N=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w,this.graphics=new M(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new ze(this),this.xAxisAnnotations=new Ge(this),this.yAxisAnnotations=new Ve(this),this.pointsAnnotations=new je(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 E(v,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),a=this.pointsAnnotations.drawPointAnnotations(),s=e.config.chart.animations.enabled,o=[t,i,a],r=[i.node,t.node,a.node],n=0;n<3;n++)e.globals.dom.elGraphical.add(o[n]),!s||e.globals.resized||e.globals.dataChanged||e.config.chart.type!=="scatter"&&e.config.chart.type!=="bubble"&&e.globals.dataPoints>1&&r[n].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:r[n],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map(function(t,i){e.addImage(t,i)})}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map(function(t,i){e.addText(t,i)})}},{key:"addXaxisAnnotation",value:function(e,t,i){this.xAxisAnnotations.addXaxisAnnotation(e,t,i)}},{key:"addYaxisAnnotation",value:function(e,t,i){this.yAxisAnnotations.addYaxisAnnotation(e,t,i)}},{key:"addPointAnnotation",value:function(e,t,i){this.pointsAnnotations.addPointAnnotation(e,t,i)}},{key:"addText",value:function(e,t){var i=e.x,a=e.y,s=e.text,o=e.textAnchor,r=e.foreColor,n=e.fontSize,l=e.fontFamily,c=e.fontWeight,d=e.cssClass,g=e.backgroundColor,p=e.borderWidth,x=e.strokeDashArray,f=e.borderRadius,b=e.borderColor,w=e.appendTo,k=w===void 0?".apexcharts-annotations":w,A=e.paddingLeft,h=A===void 0?4:A,u=e.paddingRight,m=u===void 0?4:u,y=e.paddingBottom,S=y===void 0?2:y,P=e.paddingTop,L=P===void 0?2:P,z=this.w,T=this.graphics.drawText({x:i,y:a,text:s,textAnchor:o||"start",fontSize:n||"12px",fontWeight:c||"regular",fontFamily:l||z.config.chart.fontFamily,foreColor:r||z.config.chart.foreColor,cssClass:d}),Y=z.globals.dom.baseEl.querySelector(k);Y&&Y.appendChild(T.node);var H=T.bbox();if(s){var q=this.graphics.drawRect(H.x-h,H.y-L,H.width+h+m,H.height+S+L,f,g||"transparent",1,p,b,x);Y.insertBefore(q.node,T.node)}}},{key:"addImage",value:function(e,t){var i=this.w,a=e.path,s=e.x,o=s===void 0?0:s,r=e.y,n=r===void 0?0:r,l=e.width,c=l===void 0?20:l,d=e.height,g=d===void 0?20:d,p=e.appendTo,x=p===void 0?".apexcharts-annotations":p,f=i.globals.dom.Paper.image(a);f.size(c,g).move(o,n);var b=i.globals.dom.baseEl.querySelector(x);return b&&b.appendChild(f.node),f}},{key:"addXaxisAnnotationExternal",value:function(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(e,t,i){return this.invertAxis===void 0&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(e){var t=e.params,i=e.pushToMemory,a=e.context,s=e.type,o=e.contextMethod,r=a,n=r.w,l=n.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations")),c=l.childNodes.length+1,d=new ke,g=Object.assign({},s==="xaxis"?d.xAxisAnnotation:s==="yaxis"?d.yAxisAnnotation:d.pointAnnotation),p=C.extend(g,t);switch(s){case"xaxis":this.addXaxisAnnotation(p,l,c);break;case"yaxis":this.addYaxisAnnotation(p,l,c);break;case"point":this.addPointAnnotation(p,l,c)}var x=n.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(c,"']")),f=this.helpers.addBackgroundToAnno(x,p);return f&&l.insertBefore(f.node,x),i&&n.globals.memory.methodsToExec.push({context:r,id:p.id?p.id:C.randomId(),method:o,label:"addAnnotation",params:t}),a}},{key:"clearAnnotations",value:function(e){var t=e.w,i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");t.globals.memory.methodsToExec.map(function(a,s){a.label!=="addText"&&a.label!=="addAnnotation"||t.globals.memory.methodsToExec.splice(s,1)}),i=C.listToArray(i),Array.prototype.forEach.call(i,function(a){for(;a.firstChild;)a.removeChild(a.firstChild)})}},{key:"removeAnnotation",value:function(e,t){var i=e.w,a=i.globals.dom.baseEl.querySelectorAll(".".concat(t));a&&(i.globals.memory.methodsToExec.map(function(s,o){s.id===t&&i.globals.memory.methodsToExec.splice(o,1)}),Array.prototype.forEach.call(a,function(s){s.parentElement.removeChild(s)}))}}]),v}(),F=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0}return E(v,[{key:"clippedImgArea",value:function(e){var t=this.w,i=t.config,a=parseInt(t.globals.gridWidth,10),s=parseInt(t.globals.gridHeight,10),o=a>s?a:s,r=e.image,n=0,l=0;e.width===void 0&&e.height===void 0?i.fill.image.width!==void 0&&i.fill.image.height!==void 0?(n=i.fill.image.width+1,l=i.fill.image.height):(n=o+1,l=o):(n=e.width,l=e.height);var c=document.createElementNS(t.globals.SVGNS,"pattern");M.setAttrs(c,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:n+"px",height:l+"px"});var d=document.createElementNS(t.globals.SVGNS,"image");c.appendChild(d),d.setAttributeNS(window.SVG.xlink,"href",r),M.setAttrs(d,{x:0,y:0,preserveAspectRatio:"none",width:n+"px",height:l+"px"}),d.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(e){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=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(e){var t=this.w;this.opts=e;var i,a,s,o=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var r=this.getFillColors()[this.seriesIndex];t.globals.seriesColors[this.seriesIndex]!==void 0&&(r=t.globals.seriesColors[this.seriesIndex]),typeof r=="function"&&(r=r({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var n=this.getFillType(this.seriesIndex),l=Array.isArray(o.fill.opacity)?o.fill.opacity[this.seriesIndex]:o.fill.opacity;e.color&&(r=e.color);var c=r;if(r.indexOf("rgb")===-1?r.length<9&&(c=C.hexToRgba(r,l)):r.indexOf("rgba")>-1&&(l=C.getOpacityFromRGBA(r)),e.opacity&&(l=e.opacity),n==="pattern"&&(a=this.handlePatternFill(a,r,l,c)),n==="gradient"&&(s=this.handleGradientFill(r,l,this.seriesIndex)),n==="image"){var d=o.fill.image.src,g=e.patternID?e.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(d)?e.seriesNumber<d.length?d[e.seriesNumber]:d[0]:d,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:"pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(g)}),i="url(#pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(g,")")}else i=n==="gradient"?s:n==="pattern"?a:c;return e.solid&&(i=c),i}},{key:"getFillType",value:function(e){var t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}},{key:"getFillColors",value:function(){var e=this.w,t=e.config,i=this.opts,a=[];return e.globals.comboCharts?e.config.series[this.seriesIndex].type==="line"?Array.isArray(e.globals.stroke.colors)?a=e.globals.stroke.colors:a.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?a=e.globals.fill.colors:a.push(e.globals.fill.colors):t.chart.type==="line"?Array.isArray(e.globals.stroke.colors)?a=e.globals.stroke.colors:a.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?a=e.globals.fill.colors:a.push(e.globals.fill.colors),i.fillColors!==void 0&&(a=[],Array.isArray(i.fillColors)?a=i.fillColors.slice():a.push(i.fillColors)),a}},{key:"handlePatternFill",value:function(e,t,i,a){var s=this.w.config,o=this.opts,r=new M(this.ctx),n=s.fill.pattern.strokeWidth===void 0?Array.isArray(s.stroke.width)?s.stroke.width[this.seriesIndex]:s.stroke.width:Array.isArray(s.fill.pattern.strokeWidth)?s.fill.pattern.strokeWidth[this.seriesIndex]:s.fill.pattern.strokeWidth,l=t;return Array.isArray(s.fill.pattern.style)?e=s.fill.pattern.style[o.seriesNumber]!==void 0?r.drawPattern(s.fill.pattern.style[o.seriesNumber],s.fill.pattern.width,s.fill.pattern.height,l,n,i):a:e=r.drawPattern(s.fill.pattern.style,s.fill.pattern.width,s.fill.pattern.height,l,n,i),e}},{key:"handleGradientFill",value:function(e,t,i){var a,s=this.w.config,o=this.opts,r=new M(this.ctx),n=new C,l=s.fill.gradient.type,c=e,d=s.fill.gradient.opacityFrom===void 0?t:Array.isArray(s.fill.gradient.opacityFrom)?s.fill.gradient.opacityFrom[i]:s.fill.gradient.opacityFrom;c.indexOf("rgba")>-1&&(d=C.getOpacityFromRGBA(c));var g=s.fill.gradient.opacityTo===void 0?t:Array.isArray(s.fill.gradient.opacityTo)?s.fill.gradient.opacityTo[i]:s.fill.gradient.opacityTo;if(s.fill.gradient.gradientToColors===void 0||s.fill.gradient.gradientToColors.length===0)a=s.fill.gradient.shade==="dark"?n.shadeColor(-1*parseFloat(s.fill.gradient.shadeIntensity),e.indexOf("rgb")>-1?C.rgb2hex(e):e):n.shadeColor(parseFloat(s.fill.gradient.shadeIntensity),e.indexOf("rgb")>-1?C.rgb2hex(e):e);else if(s.fill.gradient.gradientToColors[o.seriesNumber]){var p=s.fill.gradient.gradientToColors[o.seriesNumber];a=p,p.indexOf("rgba")>-1&&(g=C.getOpacityFromRGBA(p))}else a=e;if(s.fill.gradient.inverseColors){var x=c;c=a,a=x}return c.indexOf("rgb")>-1&&(c=C.rgb2hex(c)),a.indexOf("rgb")>-1&&(a=C.rgb2hex(a)),r.drawGradient(l,c,a,d,g,o.size,s.fill.gradient.stops,s.fill.gradient.colorStops,i)}}]),v}(),G=function(){function v(e,t){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.globals.series.length+1)for(var t=0;t<=e.globals.series.length;t++)e.globals.markers.size[t]===void 0&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map(function(i){return e.config.markers.size})}},{key:"plotChartMarkers",value:function(e,t,i,a){var s,o=arguments.length>4&&arguments[4]!==void 0&&arguments[4],r=this.w,n=t,l=e,c=null,d=new M(this.ctx),g=r.config.markers.discrete&&r.config.markers.discrete.length;if((r.globals.markers.size[t]>0||o||g)&&(c=d.group({class:o||g?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(r.globals.cuid,")")),Array.isArray(l.x))for(var p=0;p<l.x.length;p++){var x=i;i===1&&p===0&&(x=0),i===1&&p===1&&(x=1);var f="apexcharts-marker";r.config.chart.type!=="line"&&r.config.chart.type!=="area"||r.globals.comboCharts||r.config.tooltip.intersect||(f+=" no-pointer-events");var b=Array.isArray(r.config.markers.size)?r.globals.markers.size[t]>0:r.config.markers.size>0;if(b||o||g){C.isNumber(l.y[p])?f+=" w".concat(C.randomId()):f="apexcharts-nullpoint";var w=this.getMarkerConfig({cssClass:f,seriesIndex:t,dataPointIndex:x});r.config.series[n].data[x]&&(r.config.series[n].data[x].fillColor&&(w.pointFillColor=r.config.series[n].data[x].fillColor),r.config.series[n].data[x].strokeColor&&(w.pointStrokeColor=r.config.series[n].data[x].strokeColor)),a&&(w.pSize=a),(s=d.drawMarker(l.x[p],l.y[p],w)).attr("rel",x),s.attr("j",x),s.attr("index",t),s.node.setAttribute("default-marker-size",w.pSize);var k=new J(this.ctx);k.setSelectionFilter(s,t,x),this.addEvents(s),c&&c.add(s)}else r.globals.pointsArray[t]===void 0&&(r.globals.pointsArray[t]=[]),r.globals.pointsArray[t].push([l.x[p],l.y[p]])}return c}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,i=e.seriesIndex,a=e.dataPointIndex,s=a===void 0?null:a,o=e.finishRadius,r=o===void 0?null:o,n=this.w,l=this.getMarkerStyle(i),c=n.globals.markers.size[i],d=n.config.markers;return s!==null&&d.discrete.length&&d.discrete.map(function(g){g.seriesIndex===i&&g.dataPointIndex===s&&(l.pointStrokeColor=g.strokeColor,l.pointFillColor=g.fillColor,c=g.size,l.pointShape=g.shape)}),{pSize:r===null?c:r,pRadius:d.radius,width:Array.isArray(d.width)?d.width[i]:d.width,height:Array.isArray(d.height)?d.height[i]:d.height,pointStrokeWidth:Array.isArray(d.strokeWidth)?d.strokeWidth[i]:d.strokeWidth,pointStrokeColor:l.pointStrokeColor,pointFillColor:l.pointFillColor,shape:l.pointShape||(Array.isArray(d.shape)?d.shape[i]:d.shape),class:t,pointStrokeOpacity:Array.isArray(d.strokeOpacity)?d.strokeOpacity[i]:d.strokeOpacity,pointStrokeDashArray:Array.isArray(d.strokeDashArray)?d.strokeDashArray[i]:d.strokeDashArray,pointFillOpacity:Array.isArray(d.fillOpacity)?d.fillOpacity[i]:d.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(e){var t=this.w,i=new M(this.ctx);e.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,i=t.globals.markers.colors,a=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(a)?a[e]:a,pointFillColor:Array.isArray(i)?i[e]:i}}}]),v}(),He=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return E(v,[{key:"draw",value:function(e,t,i){var a=this.w,s=new M(this.ctx),o=i.realIndex,r=i.pointsPos,n=i.zRatio,l=i.elParent,c=s.group({class:"apexcharts-series-markers apexcharts-series-".concat(a.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(r.x))for(var d=0;d<r.x.length;d++){var g=t+1,p=!0;t===0&&d===0&&(g=0),t===0&&d===1&&(g=1);var x=0,f=a.globals.markers.size[o];if(n!==1/0){f=a.globals.seriesZ[o][g]/n;var b=a.config.plotOptions.bubble;b.minBubbleRadius&&f<b.minBubbleRadius&&(f=b.minBubbleRadius),b.maxBubbleRadius&&f>b.maxBubbleRadius&&(f=b.maxBubbleRadius)}a.config.chart.animations.enabled||(x=f);var w=r.x[d],k=r.y[d];if(x=x||0,k!==null&&a.globals.series[o][g]!==void 0||(p=!1),p){var A=this.drawPoint(w,k,x,f,o,g,t);c.add(A)}l.add(c)}}},{key:"drawPoint",value:function(e,t,i,a,s,o,r){var n=this.w,l=s,c=new K(this.ctx),d=new J(this.ctx),g=new F(this.ctx),p=new G(this.ctx),x=new M(this.ctx),f=p.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:o,finishRadius:n.config.chart.type==="bubble"||n.globals.comboCharts&&n.config.series[s]&&n.config.series[s].type==="bubble"?a:null});a=f.pSize;var b,w=g.fillPath({seriesNumber:s,dataPointIndex:o,color:f.pointFillColor,patternUnits:"objectBoundingBox",value:n.globals.series[s][r]});if(f.shape==="circle"?b=x.drawCircle(i):f.shape!=="square"&&f.shape!=="rect"||(b=x.drawRect(0,0,f.width-f.pointStrokeWidth/2,f.height-f.pointStrokeWidth/2,f.pRadius)),n.config.series[l].data[o]&&n.config.series[l].data[o].fillColor&&(w=n.config.series[l].data[o].fillColor),b.attr({x:e-f.width/2-f.pointStrokeWidth/2,y:t-f.height/2-f.pointStrokeWidth/2,cx:e,cy:t,fill:w,"fill-opacity":f.pointFillOpacity,stroke:f.pointStrokeColor,r:a,"stroke-width":f.pointStrokeWidth,"stroke-dasharray":f.pointStrokeDashArray,"stroke-opacity":f.pointStrokeOpacity}),n.config.chart.dropShadow.enabled){var k=n.config.chart.dropShadow;d.dropShadow(b,k,s)}if(!this.initialAnim||n.globals.dataChanged||n.globals.resized)n.globals.animationEnded=!0;else{var A=n.config.chart.animations.speed;c.animateMarker(b,0,f.shape==="circle"?a:{width:f.width,height:f.height},A,n.globals.easing,function(){window.setTimeout(function(){c.animationCompleted(b)},100)})}if(n.globals.dataChanged&&f.shape==="circle")if(this.dynamicAnim){var h,u,m,y,S=n.config.chart.animations.dynamicAnimation.speed;(y=n.globals.previousPaths[s]&&n.globals.previousPaths[s][r])!=null&&(h=y.x,u=y.y,m=y.r!==void 0?y.r:a);for(var P=0;P<n.globals.collapsedSeries.length;P++)n.globals.collapsedSeries[P].index===s&&(S=1,a=0);e===0&&t===0&&(a=0),c.animateCircle(b,{cx:h,cy:u,r:m},{cx:e,cy:t,r:a},S,n.globals.easing)}else b.attr({r:a});return b.attr({rel:o,j:o,index:s,"default-marker-size":a}),d.setSelectionFilter(b,s,o),p.addEvents(b),b.node.classList.add("apexcharts-marker"),b}},{key:"centerTextInBubble",value:function(e){var t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}]),v}(),Ae=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"dataLabelsCorrection",value:function(e,t,i,a,s,o,r){var n=this.w,l=!1,c=new M(this.ctx).getTextRects(i,r),d=c.width,g=c.height;t<0&&(t=0),t>n.globals.gridHeight+g&&(t=n.globals.gridHeight+g/2),n.globals.dataLabelsRects[a]===void 0&&(n.globals.dataLabelsRects[a]=[]),n.globals.dataLabelsRects[a].push({x:e,y:t,width:d,height:g});var p=n.globals.dataLabelsRects[a].length-2,x=n.globals.lastDrawnDataLabelsIndexes[a]!==void 0?n.globals.lastDrawnDataLabelsIndexes[a][n.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;if(n.globals.dataLabelsRects[a][p]!==void 0){var f=n.globals.dataLabelsRects[a][x];(e>f.x+f.width+2||t>f.y+f.height+2||e+d<f.x)&&(l=!0)}return(s===0||o)&&(l=!0),{x:e,y:t,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(e,t,i){var a=this,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:2,o=this.w,r=new M(this.ctx),n=o.config.dataLabels,l=0,c=0,d=i,g=null;if(!n.enabled||!Array.isArray(e.x))return g;g=r.group({class:"apexcharts-data-labels"});for(var p=0;p<e.x.length;p++)if(l=e.x[p]+n.offsetX,c=e.y[p]+n.offsetY+s,!isNaN(l)){i===1&&p===0&&(d=0),i===1&&p===1&&(d=1);var x=o.globals.series[t][d],f="",b=function(A){return o.config.dataLabels.formatter(A,{ctx:a.ctx,seriesIndex:t,dataPointIndex:d,w:o})};if(o.config.chart.type==="bubble"){f=b(x=o.globals.seriesZ[t][d]),c=e.y[p];var w=new He(this.ctx),k=w.centerTextInBubble(c,t,d);c=k.y}else x!==void 0&&(f=b(x));this.plotDataLabelsText({x:l,y:c,text:f,i:t,j:d,parent:g,offsetCorrection:!0,dataLabelsConfig:o.config.dataLabels})}return g}},{key:"plotDataLabelsText",value:function(e){var t=this.w,i=new M(this.ctx),a=e.x,s=e.y,o=e.i,r=e.j,n=e.text,l=e.textAnchor,c=e.fontSize,d=e.parent,g=e.dataLabelsConfig,p=e.color,x=e.alwaysDrawDataLabel,f=e.offsetCorrection;if(!(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(o)<0)){var b={x:a,y:s,drawnextLabel:!0,textRects:null};f&&(b=this.dataLabelsCorrection(a,s,n,o,r,x,parseInt(g.style.fontSize,10))),t.globals.zoomed||(a=b.x,s=b.y),b.textRects&&(a<-10-b.textRects.width||a>t.globals.gridWidth+b.textRects.width+10)&&(n="");var w=t.globals.dataLabels.style.colors[o];((t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(w=t.globals.dataLabels.style.colors[r]),typeof w=="function"&&(w=w({series:t.globals.series,seriesIndex:o,dataPointIndex:r,w:t})),p&&(w=p);var k=g.offsetX,A=g.offsetY;if(t.config.chart.type!=="bar"&&t.config.chart.type!=="rangeBar"||(k=0,A=0),b.drawnextLabel){var h=i.drawText({width:100,height:parseInt(g.style.fontSize,10),x:a+k,y:s+A,foreColor:w,textAnchor:l||g.textAnchor,text:n,fontSize:c||g.style.fontSize,fontFamily:g.style.fontFamily,fontWeight:g.style.fontWeight||"normal"});if(h.attr({class:"apexcharts-datalabel",cx:a,cy:s}),g.dropShadow.enabled){var u=g.dropShadow;new J(this.ctx).dropShadow(h,u)}d.add(h),t.globals.lastDrawnDataLabelsIndexes[o]===void 0&&(t.globals.lastDrawnDataLabelsIndexes[o]=[]),t.globals.lastDrawnDataLabelsIndexes[o].push(r)}}}},{key:"addBackgroundToDataLabel",value:function(e,t){var i=this.w,a=i.config.dataLabels.background,s=a.padding,o=a.padding/2,r=t.width,n=t.height,l=new M(this.ctx).drawRect(t.x-s,t.y-o/2,r+2*s,n+o,a.borderRadius,i.config.chart.background==="transparent"?"#fff":i.config.chart.background,a.opacity,a.borderWidth,a.borderColor);return a.dropShadow.enabled&&new J(this.ctx).dropShadow(l,a.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var e=this.w;if(e.config.chart.type!=="bubble")for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<t.length;i++){var a=t[i],s=a.getBBox(),o=null;if(s.width&&s.height&&(o=this.addBackgroundToDataLabel(a,s)),o){a.parentNode.insertBefore(o.node,a);var r=a.getAttribute("fill");e.config.chart.animations.enabled&&!e.globals.resized&&!e.globals.dataChanged?o.animate().attr({fill:r}):o.attr({fill:r}),a.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var e=this.w,t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),a=0;a<t.length;a++)i&&i.insertBefore(t[a],i.nextSibling)}}]),v}(),Ue=function(){function v(e){I(this,v),this.w=e.w,this.barCtx=e}return E(v,[{key:"handleBarDataLabels",value:function(e){var t=e.x,i=e.y,a=e.y1,s=e.y2,o=e.i,r=e.j,n=e.realIndex,l=e.series,c=e.barHeight,d=e.barWidth,g=e.barYPosition,p=e.visibleSeries,x=e.renderedPath,f=this.w,b=new M(this.barCtx.ctx),w=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[n]:this.barCtx.strokeWidth,k=t+parseFloat(d*p),A=i+parseFloat(c*p);f.globals.isXNumeric&&!f.globals.isBarHorizontal&&(k=t+parseFloat(d*(p+1)),A=i+parseFloat(c*(p+1))-w);var h=t,u=i,m={},y=f.config.dataLabels,S=this.barCtx.barOptions.dataLabels;g!==void 0&&this.barCtx.isRangeBar&&(A=g,u=g);var P=y.offsetX,L=y.offsetY,z={width:0,height:0};if(f.config.dataLabels.enabled){var T=this.barCtx.series[o][r];z=b.getTextRects(f.globals.yLabelFormatters[0](T),parseFloat(y.style.fontSize))}var Y={x:t,y:i,i:o,j:r,renderedPath:x,bcx:k,bcy:A,barHeight:c,barWidth:d,textRects:z,strokeWidth:w,dataLabelsX:h,dataLabelsY:u,barDataLabelsConfig:S,offX:P,offY:L};return m=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(Y):this.calculateColumnsDataLabelsPosition(Y),x.attr({cy:m.bcy,cx:m.bcx,j:r,val:l[o][r],barHeight:c,barWidth:d}),this.drawCalculatedDataLabels({x:m.dataLabelsX,y:m.dataLabelsY,val:this.barCtx.isRangeBar?[a,s]:l[o][r],i:n,j:r,barWidth:d,barHeight:c,textRects:z,dataLabelsConfig:y})}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var t,i=this.w,a=e.i,s=e.j,o=e.y,r=e.bcx,n=e.barWidth,l=e.barHeight,c=e.textRects,d=e.dataLabelsY,g=e.barDataLabelsConfig,p=e.strokeWidth,x=e.offX,f=e.offY;l=Math.abs(l);var b=i.config.plotOptions.bar.dataLabels.orientation==="vertical";r-=p/2;var w=i.globals.gridWidth/i.globals.dataPoints;t=i.globals.isXNumeric?r-n/2+x:r-w+n/2+x,b&&(t=t+c.height/2-p/2-2);var k=this.barCtx.series[a][s]<0,A=o;switch(this.barCtx.isReversed&&(A=o-l+(k?2*l:0),o-=l),g.position){case"center":d=b?k?A+l/2+f:A+l/2-f:k?A-l/2+c.height/2+f:A+l/2+c.height/2-f;break;case"bottom":d=b?k?A+l+f:A+l-f:k?A-l+c.height+p+f:A+l-c.height/2+p-f;break;case"top":d=b?k?A+f:A-f:k?A-c.height/2-f:A+c.height+f}return i.config.chart.stacked||(d<0?d=0+p:d+c.height/3>i.globals.gridHeight&&(d=i.globals.gridHeight-p)),{bcx:r,bcy:o,dataLabelsX:t,dataLabelsY:d}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,i=e.x,a=e.i,s=e.j,o=e.bcy,r=e.barHeight,n=e.barWidth,l=e.textRects,c=e.dataLabelsX,d=e.strokeWidth,g=e.barDataLabelsConfig,p=e.offX,x=e.offY,f=t.globals.gridHeight/t.globals.dataPoints;n=Math.abs(n);var b=o-(this.barCtx.isRangeBar?0:f)+r/2+l.height/2+x-3,w=this.barCtx.series[a][s]<0,k=i;switch(this.barCtx.isReversed&&(k=i+n-(w?2*n:0),i=t.globals.gridWidth-n),g.position){case"center":c=w?k+n/2-p:Math.max(l.width/2,k-n/2)+p;break;case"bottom":c=w?k+n-d-Math.round(l.width/2)-p:k-n+d+Math.round(l.width/2)+p;break;case"top":c=w?k-d+Math.round(l.width/2)-p:k-d-Math.round(l.width/2)+p}return t.config.chart.stacked||(c<0?c=c+l.width+d:c+l.width/2>t.globals.gridWidth&&(c=t.globals.gridWidth-l.width-d)),{bcx:i,bcy:o,dataLabelsX:c,dataLabelsY:b}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,i=e.y,a=e.val,s=e.i,o=e.j,r=e.textRects,n=e.barHeight,l=e.barWidth,c=e.dataLabelsConfig,d=this.w,g="rotate(0)";d.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(g="rotate(-90, ".concat(t,", ").concat(i,")"));var p=new Ae(this.barCtx.ctx),x=new M(this.barCtx.ctx),f=c.formatter,b=null,w=d.globals.collapsedSeriesIndices.indexOf(s)>-1;if(c.enabled&&!w){b=x.group({class:"apexcharts-data-labels",transform:g});var k="";a!==void 0&&(k=f(a,{seriesIndex:s,dataPointIndex:o,w:d}));var A=d.globals.series[s][o]<0,h=d.config.plotOptions.bar.dataLabels.position;d.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(h==="top"&&(c.textAnchor=A?"end":"start"),h==="center"&&(c.textAnchor="middle"),h==="bottom"&&(c.textAnchor=A?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&l<x.getTextRects(k,parseFloat(c.style.fontSize)).width&&(k=""),d.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?r.width/1.6>Math.abs(l)&&(k=""):r.height/1.6>Math.abs(n)&&(k=""));var u=D({},c);this.barCtx.isHorizontal&&a<0&&(c.textAnchor==="start"?u.textAnchor="end":c.textAnchor==="end"&&(u.textAnchor="start")),p.plotDataLabelsText({x:t,y:i,text:k,i:s,j:o,parent:b,dataLabelsConfig:u,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return b}}]),v}(),ae=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w,this.legendInactiveClass="legend-mouseover-inactive"}return E(v,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(e){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(C.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var t=this.getSeriesByName(e),i=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(e,t){var i=this.w;function a(s){for(var o=0;o<s.length;o++)s[o].index===t&&e.node.classList.add("apexcharts-series-collapsed")}a(i.globals.collapsedSeries),a(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(e){var t=this.isSeriesHidden(e);return this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:"showSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:"hideSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=this.w,s=C.clone(a.globals.initialSeries);a.globals.previousPaths=[],i?(a.globals.collapsedSeries=[],a.globals.ancillaryCollapsedSeries=[],a.globals.collapsedSeriesIndices=[],a.globals.ancillaryCollapsedSeriesIndices=[]):s=this.emptyCollapsedSeries(s),a.config.series=s,e&&(t&&(a.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,i=0;i<e.length;i++)t.globals.collapsedSeriesIndices.indexOf(i)>-1&&(e[i].data=[]);return e}},{key:"toggleSeriesOnHover",value:function(e,t){var i=this.w;t||(t=e.target);var a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if(e.type==="mousemove"){var s=parseInt(t.getAttribute("rel"),10)-1,o=null,r=null;i.globals.axisCharts||i.config.chart.type==="radialBar"?i.globals.axisCharts?(o=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(s,"']")),r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(s,"']"))):o=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"']")):o=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"'] path"));for(var n=0;n<a.length;n++)a[n].classList.add(this.legendInactiveClass);o!==null&&(i.globals.axisCharts||o.parentNode.classList.remove(this.legendInactiveClass),o.classList.remove(this.legendInactiveClass),r!==null&&r.classList.remove(this.legendInactiveClass))}else if(e.type==="mouseout")for(var l=0;l<a.length;l++)a[l].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var i=this,a=this.w,s=a.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),o=function(n){for(var l=0;l<s.length;l++)s[l].classList[n](i.legendInactiveClass)};if(e.type==="mousemove"){var r=parseInt(t.getAttribute("rel"),10)-1;o("add"),function(n){for(var l=0;l<s.length;l++){var c=parseInt(s[l].getAttribute("val"),10);c>=n.from&&c<=n.to&&s[l].classList.remove(i.legendInactiveClass)}}(a.config.plotOptions.heatmap.colorScale.ranges[r])}else e.type==="mouseout"&&o("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"asc",i=this.w,a=0;if(i.config.series.length>1){for(var s=i.config.series.map(function(r,n){var l=!1;return e&&(l=i.config.series[n].type==="bar"||i.config.series[n].type==="column"),r.data&&r.data.length>0&&!l?n:-1}),o=t==="asc"?0:s.length-1;t==="asc"?o<s.length:o>=0;t==="asc"?o++:o--)if(s[o]!==-1){a=s[o];break}}return a}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(o,r,n){for(var l=o[r].childNodes,c={type:n,paths:[],realIndex:o[r].getAttribute("data:realIndex")},d=0;d<l.length;d++)if(l[d].hasAttribute("pathTo")){var g=l[d].getAttribute("pathTo");c.paths.push({d:g})}e.globals.previousPaths.push(c)}e.globals.previousPaths=[],["line","area","bar","rangebar","candlestick","radar"].forEach(function(o){for(var r,n=(r=o,e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(r,"-series .apexcharts-series"))),l=0;l<n.length;l++)t(n,l,o)}),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(i.length>0)for(var a=function(o){for(var r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(o,"'] rect")),n=[],l=function(d){var g=function(x){return r[d].getAttribute(x)},p={x:parseFloat(g("x")),y:parseFloat(g("y")),width:parseFloat(g("width")),height:parseFloat(g("height"))};n.push({rect:p,color:r[d].getAttribute("color")})},c=0;c<r.length;c++)l(c);e.globals.previousPaths.push(n)},s=0;s<i.length;s++)a(s);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(e){var t=this.w,i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series"));if(i.length>0)for(var a=0;a<i.length;a++){for(var s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series[data\\:realIndex='").concat(a,"'] circle")),o=[],r=0;r<s.length;r++)o.push({x:s[r].getAttribute("cx"),y:s[r].getAttribute("cy"),r:s[r].getAttribute("r")});t.globals.previousPaths.push(o)}}},{key:"clearPreviousPaths",value:function(){var e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var e=this.w,t=e.config.noData,i=new M(this.ctx),a=e.globals.svgWidth/2,s=e.globals.svgHeight/2,o="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,t.align==="left"?(a=10,o="start"):t.align==="right"&&(a=e.globals.svgWidth-10,o="end"),t.verticalAlign==="top"?s=50:t.verticalAlign==="bottom"&&(s=e.globals.svgHeight-50),a+=t.offsetX,s=s+parseInt(t.style.fontSize,10)+2+t.offsetY,t.text!==void 0&&t.text!==""){var r=i.drawText({x:a,y:s,text:t.text,textAnchor:o,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,class:"apexcharts-text-nodata"});e.globals.dom.Paper.add(r)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var t=this.w,i=0;i<e.length;i++)if(e[i].length===0)for(var a=0;a<e[t.globals.maxValsInArrayIndex].length;a++)e[i].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,t=this.w,i=this.filteredSeriesX(),a=0;a<i.length-1;a++)if(i[a][0]!==i[a+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}},{key:"filteredSeriesX",value:function(){var e=this.w.globals.seriesX.map(function(t){return t.length>0?t:[]});return e}}]),v}(),qe=function(){function v(e){I(this,v),this.w=e.w,this.barCtx=e}return E(v,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<e.length;i++)if(e[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[i].length),t.globals.isXNumeric)for(var a=0;a<e[i].length;a++)t.globals.seriesX[i][a]>t.globals.minX&&t.globals.seriesX[i][a]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;this.barCtx.seriesLen===0&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],this.barCtx.radiusOnSeriesNumber=e.length-1,t.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(){var e,t,i,a,s,o,r,n,l=this.w,c=l.globals.dataPoints;this.barCtx.isRangeBar&&(c=l.globals.labels.length);var d=this.barCtx.seriesLen;if(l.config.plotOptions.bar.rangeBarGroupRows&&(d=1),this.barCtx.isHorizontal)s=(i=l.globals.gridHeight/c)/d,l.globals.isXNumeric&&(s=(i=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),s=s*parseInt(this.barCtx.barOptions.barHeight,10)/100,n=this.barCtx.baseLineInvertedY+l.globals.padHorizontal+(this.barCtx.isReversed?l.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),t=(i-s*this.barCtx.seriesLen)/2;else{if(a=l.globals.gridWidth/this.barCtx.visibleItems,l.config.xaxis.convertedCatToNumeric&&(a=l.globals.gridWidth/l.globals.dataPoints),o=a/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l.globals.isXNumeric){var g=this.barCtx.xRatio;l.config.xaxis.convertedCatToNumeric&&(g=this.barCtx.initialXRatio),l.globals.minXDiff&&l.globals.minXDiff!==.5&&l.globals.minXDiff/g>0&&(a=l.globals.minXDiff/g),(o=a/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(o=1)}r=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),e=l.globals.padHorizontal+(a-o*this.barCtx.seriesLen)/2}return{x:e,y:t,yDivision:i,xDivision:a,barHeight:s,barWidth:o,zeroH:r,zeroW:n}}},{key:"getPathFillColor",value:function(e,t,i,a){var s=this.w,o=new F(this.barCtx.ctx),r=null,n=this.barCtx.barOptions.distributed?i:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(l){e[t][i]>=l.from&&e[t][i]<=l.to&&(r=l.color)}),s.config.series[t].data[i]&&s.config.series[t].data[i].fillColor&&(r=s.config.series[t].data[i].fillColor),o.fillPath({seriesNumber:this.barCtx.barOptions.distributed?n:a,dataPointIndex:i,color:r,value:e[t][i]})}},{key:"getStrokeWidth",value:function(e,t,i){var a=0,s=this.w;return this.barCtx.series[e][t]===void 0||this.barCtx.series[e][t]===null?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,s.config.stroke.show&&(this.barCtx.isNullValue||(a=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),a}},{key:"barBackground",value:function(e){var t=e.j,i=e.i,a=e.x1,s=e.x2,o=e.y1,r=e.y2,n=e.elSeries,l=this.w,c=new M(this.barCtx.ctx),d=new ae(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&d===i){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var g=this.barCtx.barOptions.colors.backgroundBarColors[t],p=c.drawRect(a!==void 0?a:0,o!==void 0?o:0,s!==void 0?s:l.globals.gridWidth,r!==void 0?r:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,g,this.barCtx.barOptions.colors.backgroundBarOpacity);n.add(p),p.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t=e.barWidth,i=e.barXPosition,a=e.yRatio,s=e.y1,o=e.y2,r=e.strokeWidth,n=e.series,l=e.realIndex,c=e.i,d=e.j,g=e.w,p=new M(this.barCtx.ctx);(r=Array.isArray(r)?r[l]:r)||(r=0);var x={barWidth:t,strokeWidth:r,yRatio:a,barXPosition:i,y1:s,y2:o},f=this.getRoundedBars(g,x,n,c,d),b=i,w=i+t,k=p.move(b,s),A=p.move(b,s),h=p.line(w-r,s);return g.globals.previousPaths.length>0&&(A=this.barCtx.getPreviousPath(l,d,!1)),k=k+p.line(b,f.y2)+f.pathWithRadius+p.line(w-r,f.y2)+h+h+"z",A=A+p.line(b,s)+h+h+h+h+h+p.line(b,s),g.config.chart.stacked&&(this.barCtx.yArrj.push(f.y2WithRadius),this.barCtx.yArrjF.push(Math.abs(s-f.y2WithRadius)),this.barCtx.yArrjVal.push(this.barCtx.series[c][d])),{pathTo:k,pathFrom:A}}},{key:"getBarpaths",value:function(e){var t=e.barYPosition,i=e.barHeight,a=e.x1,s=e.x2,o=e.strokeWidth,r=e.series,n=e.realIndex,l=e.i,c=e.j,d=e.w,g=new M(this.barCtx.ctx);(o=Array.isArray(o)?o[n]:o)||(o=0);var p={barHeight:i,strokeWidth:o,barYPosition:t,x2:s,x1:a},x=this.getRoundedBars(d,p,r,l,c),f=g.move(a,t),b=g.move(a,t);d.globals.previousPaths.length>0&&(b=this.barCtx.getPreviousPath(n,c,!1));var w=t,k=t+i,A=g.line(a,k-o);return f=f+g.line(x.x2,w)+x.pathWithRadius+g.line(x.x2,k-o)+A+A+"z",b=b+g.line(a,w)+A+A+A+A+A+g.line(a,w),d.config.chart.stacked&&(this.barCtx.xArrj.push(x.x2WithRadius),this.barCtx.xArrjF.push(Math.abs(a-x.x2WithRadius)),this.barCtx.xArrjVal.push(this.barCtx.series[l][c])),{pathTo:f,pathFrom:b}}},{key:"getRoundedBars",value:function(e,t,i,a,s){var o=new M(this.barCtx.ctx),r=0,n=e.config.plotOptions.bar.borderRadius,l=Array.isArray(n);if(l?r=n[a>n.length-1?n.length-1:a]:r=n,e.config.chart.stacked&&i.length>1&&a!==this.barCtx.radiusOnSeriesNumber&&!l&&(r=0),this.barCtx.isHorizontal){var c="",d=t.x2;if(Math.abs(t.x1-t.x2)<r&&(r=Math.abs(t.x1-t.x2)),i[a][s]!==void 0||i[a][s]!==null){var g=this.barCtx.isReversed?i[a][s]>0:i[a][s]<0;g&&(r*=-1),d-=r,c=o.quadraticCurve(d+r,t.barYPosition,d+r,t.barYPosition+(g?-1*r:r))+o.line(d+r,t.barYPosition+t.barHeight-t.strokeWidth-(g?-1*r:r))+o.quadraticCurve(d+r,t.barYPosition+t.barHeight-t.strokeWidth,d,t.barYPosition+t.barHeight-t.strokeWidth)}return{pathWithRadius:c,x2WithRadius:d+r,x2:d}}var p="",x=t.y2;if(Math.abs(t.y1-t.y2)<r&&(r=Math.abs(t.y1-t.y2)),i[a][s]!==void 0||i[a][s]!==null){var f=i[a][s]<0;f&&(r*=-1),x+=r,p=o.quadraticCurve(t.barXPosition,x-r,t.barXPosition+(f?-1*r:r),x-r)+o.line(t.barXPosition+t.barWidth-t.strokeWidth-(f?-1*r:r),x-r)+o.quadraticCurve(t.barXPosition+t.barWidth-t.strokeWidth,x-r,t.barXPosition+t.barWidth-t.strokeWidth,x)}return{pathWithRadius:p,y2WithRadius:x-r,y2:x}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,i=this.w,a=0;a<t.length;a++){for(var s=0,o=0;o<t[i.globals.maxValsInArrayIndex].length;o++)s+=t[a][o];s===0&&this.barCtx.zeroSerieses.push(a)}for(var r=t.length-1;r>=0;r--)this.barCtx.zeroSerieses.indexOf(r)>-1&&r===this.radiusOnSeriesNumber&&(this.barCtx.radiusOnSeriesNumber-=1);for(var n=t.length-1;n>=0;n--)i.globals.collapsedSeriesIndices.indexOf(this.barCtx.radiusOnSeriesNumber)>-1&&(this.barCtx.radiusOnSeriesNumber-=1)}},{key:"getXForValue",value:function(e,t){var i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=i?t:null;return e!=null&&(a=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),a}},{key:"getYForValue",value:function(e,t){var i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=i?t:null;return e!=null&&(a=t-e/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),a}},{key:"getGoalValues",value:function(e,t,i,a,s){var o=this,r=this.w,n=[];return r.globals.seriesGoals[a]&&r.globals.seriesGoals[a][s]&&Array.isArray(r.globals.seriesGoals[a][s])&&r.globals.seriesGoals[a][s].forEach(function(l){var c;n.push((ie(c={},e,e==="x"?o.getXForValue(l.value,t,!1):o.getYForValue(l.value,i,!1)),ie(c,"attrs",l),c))}),n}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,i=e.barYPosition,a=e.goalX,s=e.goalY,o=e.barWidth,r=e.barHeight,n=new M(this.barCtx.ctx),l=n.group({className:"apexcharts-bar-goals-groups"}),c=null;return this.barCtx.isHorizontal?Array.isArray(a)&&a.forEach(function(d){var g=d.attrs.strokeHeight!==void 0?d.attrs.strokeHeight:r/2,p=i+g+r/2;c=n.drawLine(d.x,p-2*g,d.x,p,d.attrs.strokeColor?d.attrs.strokeColor:void 0,d.attrs.strokeDashArray,d.attrs.strokeWidth?d.attrs.strokeWidth:2,d.attrs.strokeLineCap),l.add(c)}):Array.isArray(s)&&s.forEach(function(d){var g=d.attrs.strokeWidth!==void 0?d.attrs.strokeWidth:o/2,p=t+g+o/2;c=n.drawLine(p-2*g,d.y,p,d.y,d.attrs.strokeColor?d.attrs.strokeColor:void 0,d.attrs.strokeDashArray,d.attrs.strokeHeight?d.attrs.strokeHeight:2,d.attrs.strokeLineCap),l.add(c)}),l}}]),v}(),Fe=function(){function v(e,t){I(this,v),this.ctx=e,this.w=e.w;var i=this.w;this.barOptions=i.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=i.config.stroke.width,this.isNullValue=!1,this.isRangeBar=i.globals.seriesRangeBar.length&&this.isHorizontal,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 qe(this)}return E(v,[{key:"draw",value:function(e,t){var i=this.w,a=new M(this.ctx),s=new Z(this.ctx,i);e=s.getLogSeries(e),this.series=e,this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var o=a.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.");for(var r=0,n=0;r<e.length;r++,n++){var l,c,d,g,p=void 0,x=void 0,f=[],b=[],w=i.globals.comboCharts?t[r]:r,k=a.group({class:"apexcharts-series",rel:r+1,seriesName:C.escapeString(i.globals.seriesNames[w]),"data:realIndex":w});this.ctx.series.addCollapsedClassToSeries(k,w),e[r].length>0&&(this.visibleI=this.visibleI+1);var A=0,h=0;this.yRatio.length>1&&(this.yaxisIndex=w),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var u=this.barHelpers.initialPositions();x=u.y,A=u.barHeight,c=u.yDivision,g=u.zeroW,p=u.x,h=u.barWidth,l=u.xDivision,d=u.zeroH,this.horizontal||b.push(p+h/2);for(var m=a.group({class:"apexcharts-datalabels","data:realIndex":w}),y=a.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),S=0;S<i.globals.dataPoints;S++){var P=this.barHelpers.getStrokeWidth(r,S,w),L=null,z={indexes:{i:r,j:S,realIndex:w,bc:n},x:p,y:x,strokeWidth:P,elSeries:k};this.isHorizontal?(L=this.drawBarPaths(D(D({},z),{},{barHeight:A,zeroW:g,yDivision:c})),h=this.series[r][S]/this.invertedYRatio):(L=this.drawColumnPaths(D(D({},z),{},{xDivision:l,barWidth:h,zeroH:d})),A=this.series[r][S]/this.yRatio[this.yaxisIndex]);var T=this.barHelpers.drawGoalLine({barXPosition:L.barXPosition,barYPosition:L.barYPosition,goalX:L.goalX,goalY:L.goalY,barHeight:A,barWidth:h});T&&y.add(T),x=L.y,p=L.x,S>0&&b.push(p+h/2),f.push(x);var Y=this.barHelpers.getPathFillColor(e,r,S,w);this.renderSeries({realIndex:w,pathFill:Y,j:S,i:r,pathFrom:L.pathFrom,pathTo:L.pathTo,strokeWidth:P,elSeries:k,x:p,y:x,series:e,barHeight:A,barWidth:h,elDataLabelsWrap:m,elGoalsMarkers:y,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[w]=b,i.globals.seriesYvalues[w]=f,o.add(k)}return o}},{key:"renderSeries",value:function(e){var t=e.realIndex,i=e.pathFill,a=e.lineFill,s=e.j,o=e.i,r=e.pathFrom,n=e.pathTo,l=e.strokeWidth,c=e.elSeries,d=e.x,g=e.y,p=e.y1,x=e.y2,f=e.series,b=e.barHeight,w=e.barWidth,k=e.barYPosition,A=e.elDataLabelsWrap,h=e.elGoalsMarkers,u=e.visibleSeries,m=e.type,y=this.w,S=new M(this.ctx);a||(a=this.barOptions.distributed?y.globals.stroke.colors[s]:y.globals.stroke.colors[t]),y.config.series[o].data[s]&&y.config.series[o].data[s].strokeColor&&(a=y.config.series[o].data[s].strokeColor),this.isNullValue&&(i="none");var P=s/y.config.chart.animations.animateGradually.delay*(y.config.chart.animations.speed/y.globals.dataPoints)/2.4,L=S.renderPaths({i:o,j:s,realIndex:t,pathFrom:r,pathTo:n,stroke:a,strokeWidth:l,strokeLineCap:y.config.stroke.lineCap,fill:i,animationDelay:P,initialSpeed:y.config.chart.animations.speed,dataChangeSpeed:y.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(m,"-area")});L.attr("clip-path","url(#gridRectMask".concat(y.globals.cuid,")"));var z=y.config.forecastDataPoints;z.count>0&&s>=y.globals.dataPoints-z.count&&(L.node.setAttribute("stroke-dasharray",z.dashArray),L.node.setAttribute("stroke-width",z.strokeWidth),L.node.setAttribute("fill-opacity",z.fillOpacity)),p!==void 0&&x!==void 0&&(L.attr("data-range-y1",p),L.attr("data-range-y2",x)),new J(this.ctx).setSelectionFilter(L,t,s),c.add(L);var T=new Ue(this).handleBarDataLabels({x:d,y:g,y1:p,y2:x,i:o,j:s,series:f,realIndex:t,barHeight:b,barWidth:w,barYPosition:k,renderedPath:L,visibleSeries:u});return T!==null&&A.add(T),c.add(A),h&&c.add(h),c}},{key:"drawBarPaths",value:function(e){var t=e.indexes,i=e.barHeight,a=e.strokeWidth,s=e.zeroW,o=e.x,r=e.y,n=e.yDivision,l=e.elSeries,c=this.w,d=t.i,g=t.j;c.globals.isXNumeric&&(r=(c.globals.seriesX[d][g]-c.globals.minX)/this.invertedXRatio-i);var p=r+i*this.visibleI;o=this.barHelpers.getXForValue(this.series[d][g],s);var x=this.barHelpers.getBarpaths({barYPosition:p,barHeight:i,x1:s,x2:o,strokeWidth:a,series:this.series,realIndex:t.realIndex,i:d,j:g,w:c});return c.globals.isXNumeric||(r+=n),this.barHelpers.barBackground({j:g,i:d,y1:p-i*this.visibleI,y2:i*this.seriesLen,elSeries:l}),{pathTo:x.pathTo,pathFrom:x.pathFrom,x:o,y:r,goalX:this.barHelpers.getGoalValues("x",s,null,d,g),barYPosition:p}}},{key:"drawColumnPaths",value:function(e){var t=e.indexes,i=e.x,a=e.y,s=e.xDivision,o=e.barWidth,r=e.zeroH,n=e.strokeWidth,l=e.elSeries,c=this.w,d=t.realIndex,g=t.i,p=t.j,x=t.bc;if(c.globals.isXNumeric){var f=d;c.globals.seriesX[d].length||(f=c.globals.maxValsInArrayIndex),i=(c.globals.seriesX[f][p]-c.globals.minX)/this.xRatio-o*this.seriesLen/2}var b=i+o*this.visibleI;a=this.barHelpers.getYForValue(this.series[g][p],r);var w=this.barHelpers.getColumnPaths({barXPosition:b,barWidth:o,y1:r,y2:a,strokeWidth:n,series:this.series,realIndex:t.realIndex,i:g,j:p,w:c});return c.globals.isXNumeric||(i+=s),this.barHelpers.barBackground({bc:x,j:p,i:g,x1:b-n/2-o*this.visibleI,x2:o*this.seriesLen+n/2,elSeries:l}),{pathTo:w.pathTo,pathFrom:w.pathFrom,x:i,y:a,goalY:this.barHelpers.getGoalValues("y",null,r,g,p),barXPosition:b}}},{key:"getPreviousPath",value:function(e,t){for(var i,a=this.w,s=0;s<a.globals.previousPaths.length;s++){var o=a.globals.previousPaths[s];o.paths&&o.paths.length>0&&parseInt(o.realIndex,10)===parseInt(e,10)&&a.globals.previousPaths[s].paths[t]!==void 0&&(i=a.globals.previousPaths[s].paths[t].d)}return i}}]),v}(),te=function(){function v(e){I(this,v),this.ctx=e,this.w=e.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 E(v,[{key:"isValidDate",value:function(e){return!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);var i=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return i=this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var i=this.w.globals.locale,a=this.w.config.xaxis.labels.datetimeUTC,s=["\0"].concat(V(i.months)),o=[""].concat(V(i.shortMonths)),r=[""].concat(V(i.days)),n=[""].concat(V(i.shortDays));function l(S,P){var L=S+"";for(P=P||2;L.length<P;)L="0"+L;return L}var c=a?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var d=(a?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+s[0])).replace(/(^|[^\\])MMM/g,"$1"+o[0])).replace(/(^|[^\\])MM/g,"$1"+l(d))).replace(/(^|[^\\])M/g,"$1"+d);var g=a?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+r[0])).replace(/(^|[^\\])ddd/g,"$1"+n[0])).replace(/(^|[^\\])dd/g,"$1"+l(g))).replace(/(^|[^\\])d/g,"$1"+g);var p=a?e.getUTCHours():e.getHours(),x=p>12?p-12:p===0?12:p;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+l(p))).replace(/(^|[^\\])H/g,"$1"+p)).replace(/(^|[^\\])hh+/g,"$1"+l(x))).replace(/(^|[^\\])h/g,"$1"+x);var f=a?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+l(f))).replace(/(^|[^\\])m/g,"$1"+f);var b=a?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+l(b))).replace(/(^|[^\\])s/g,"$1"+b);var w=a?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+l(w,3)),w=Math.round(w/10),t=t.replace(/(^|[^\\])ff/g,"$1"+l(w)),w=Math.round(w/10);var k=p<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+w)).replace(/(^|[^\\])TT+/g,"$1"+k)).replace(/(^|[^\\])T/g,"$1"+k.charAt(0));var A=k.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+A)).replace(/(^|[^\\])t/g,"$1"+A.charAt(0));var h=-e.getTimezoneOffset(),u=a||!h?"Z":h>0?"+":"-";if(!a){var m=(h=Math.abs(h))%60;u+=l(Math.floor(h/60))+":"+l(m)}t=t.replace(/(^|[^\\])K/g,"$1"+u);var y=(a?e.getUTCDay():e.getDay())+1;return t=(t=(t=(t=(t=t.replace(new RegExp(r[0],"g"),r[y])).replace(new RegExp(n[0],"g"),n[y])).replace(new RegExp(s[0],"g"),s[d])).replace(new RegExp(o[0],"g"),o[d])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,i){var a=this.w;a.config.xaxis.min!==void 0&&(e=a.config.xaxis.min),a.config.xaxis.max!==void 0&&(t=a.config.xaxis.max);var s=this.getDate(e),o=this.getDate(t),r=this.formatDate(s,"yyyy MM dd HH mm ss fff").split(" "),n=this.formatDate(o,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(r[6],10),maxMillisecond:parseInt(n[6],10),minSecond:parseInt(r[5],10),maxSecond:parseInt(n[5],10),minMinute:parseInt(r[4],10),maxMinute:parseInt(n[4],10),minHour:parseInt(r[3],10),maxHour:parseInt(n[3],10),minDate:parseInt(r[2],10),maxDate:parseInt(n[2],10),minMonth:parseInt(r[1],10)-1,maxMonth:parseInt(n[1],10)-1,minYear:parseInt(r[0],10),maxYear:parseInt(n[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,i){return this.determineDaysOfMonths(e,t)-i}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,i){var a=this.daysCntOfYear[t]+i;return t>1&&this.isLeapYear()&&a++,a}},{key:"determineDaysOfMonths",value:function(e,t){var i=30;switch(e=C.monthMod(e),!0){case this.months30.indexOf(e)>-1:e===2&&(i=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:i=31}return i}}]),v}(),Ze=function(v){he(t,Fe);var e=ye(t);function t(){return I(this,t),e.apply(this,arguments)}return E(t,[{key:"draw",value:function(i,a){var s=this.w,o=new M(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=i,this.seriesRangeStart=s.globals.seriesRangeStart,this.seriesRangeEnd=s.globals.seriesRangeEnd,this.barHelpers.initVariables(i);for(var r=o.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),n=0;n<i.length;n++){var l,c,d,g=void 0,p=void 0,x=void 0,f=s.globals.comboCharts?a[n]:n,b=o.group({class:"apexcharts-series",seriesName:C.escapeString(s.globals.seriesNames[f]),rel:n+1,"data:realIndex":f});this.ctx.series.addCollapsedClassToSeries(b,f),i[n].length>0&&(this.visibleI=this.visibleI+1);var w=0,k=0;this.yRatio.length>1&&(this.yaxisIndex=f);var A=this.barHelpers.initialPositions();p=A.y,d=A.zeroW,g=A.x,k=A.barWidth,l=A.xDivision,c=A.zeroH;for(var h=o.group({class:"apexcharts-datalabels","data:realIndex":f}),u=o.group({class:"apexcharts-rangebar-goals-markers",style:"pointer-events: none"}),m=0;m<s.globals.dataPoints;m++){var y=this.barHelpers.getStrokeWidth(n,m,f),S=this.seriesRangeStart[n][m],P=this.seriesRangeEnd[n][m],L=null,z=null,T={x:g,y:p,strokeWidth:y,elSeries:b};if(x=A.yDivision,w=A.barHeight,this.isHorizontal){z=p+w*this.visibleI;var Y=this.seriesLen;s.config.plotOptions.bar.rangeBarGroupRows&&(Y=1);var H=(x-w*Y)/2;if(s.config.series[n].data[m]===void 0)break;if(s.config.series[n].data[m].x){var q=this.detectOverlappingBars({i:n,j:m,barYPosition:z,srty:H,barHeight:w,yDivision:x,initPositions:A});w=q.barHeight,z=q.barYPosition}k=(L=this.drawRangeBarPaths(D({indexes:{i:n,j:m,realIndex:f},barHeight:w,barYPosition:z,zeroW:d,yDivision:x,y1:S,y2:P},T))).barWidth}else w=(L=this.drawRangeColumnPaths(D({indexes:{i:n,j:m,realIndex:f},zeroH:c,barWidth:k,xDivision:l},T))).barHeight;var _=this.barHelpers.drawGoalLine({barXPosition:L.barXPosition,barYPosition:z,goalX:L.goalX,goalY:L.goalY,barHeight:w,barWidth:k});_&&u.add(_),p=L.y,g=L.x;var se=this.barHelpers.getPathFillColor(i,n,m,f),oe=s.globals.stroke.colors[f];this.renderSeries({realIndex:f,pathFill:se,lineFill:oe,j:m,i:n,x:g,y:p,y1:S,y2:P,pathFrom:L.pathFrom,pathTo:L.pathTo,strokeWidth:y,elSeries:b,series:i,barHeight:w,barYPosition:z,barWidth:k,elDataLabelsWrap:h,elGoalsMarkers:u,visibleSeries:this.visibleI,type:"rangebar"})}r.add(b)}return r}},{key:"detectOverlappingBars",value:function(i){var a=i.i,s=i.j,o=i.barYPosition,r=i.srty,n=i.barHeight,l=i.yDivision,c=i.initPositions,d=this.w,g=[],p=d.config.series[a].data[s].rangeName,x=d.config.series[a].data[s].x,f=d.globals.labels.indexOf(x),b=d.globals.seriesRangeBar[a].findIndex(function(w){return w.x===x&&w.overlaps.length>0});return o=d.config.plotOptions.bar.rangeBarGroupRows?r+l*f:r+n*this.visibleI+l*f,b>-1&&!d.config.plotOptions.bar.rangeBarOverlap&&(g=d.globals.seriesRangeBar[a][b].overlaps).indexOf(p)>-1&&(o=(n=c.barHeight/g.length)*this.visibleI+l*(100-parseInt(this.barOptions.barHeight,10))/100/2+n*(this.visibleI+g.indexOf(p))+l*f),{barYPosition:o,barHeight:n}}},{key:"drawRangeColumnPaths",value:function(i){var a=i.indexes,s=i.x;i.strokeWidth;var o=i.xDivision,r=i.barWidth,n=i.zeroH,l=this.w,c=a.i,d=a.j,g=this.yRatio[this.yaxisIndex],p=a.realIndex,x=this.getRangeValue(p,d),f=Math.min(x.start,x.end),b=Math.max(x.start,x.end);l.globals.isXNumeric&&(s=(l.globals.seriesX[c][d]-l.globals.minX)/this.xRatio-r/2);var w=s+r*this.visibleI;this.series[c][d]===void 0||this.series[c][d]===null?f=n:(f=n-f/g,b=n-b/g);var k=Math.abs(b-f),A=this.barHelpers.getColumnPaths({barXPosition:w,barWidth:r,y1:f,y2:b,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:a.realIndex,i:p,j:d,w:l});return l.globals.isXNumeric||(s+=o),{pathTo:A.pathTo,pathFrom:A.pathFrom,barHeight:k,x:s,y:b,goalY:this.barHelpers.getGoalValues("y",null,n,c,d),barXPosition:w}}},{key:"drawRangeBarPaths",value:function(i){var a=i.indexes,s=i.y,o=i.y1,r=i.y2,n=i.yDivision,l=i.barHeight,c=i.barYPosition,d=i.zeroW,g=this.w,p=d+o/this.invertedYRatio,x=d+r/this.invertedYRatio,f=Math.abs(x-p),b=this.barHelpers.getBarpaths({barYPosition:c,barHeight:l,x1:p,x2:x,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:a.realIndex,realIndex:a.realIndex,j:a.j,w:g});return g.globals.isXNumeric||(s+=n),{pathTo:b.pathTo,pathFrom:b.pathFrom,barWidth:f,x,goalX:this.barHelpers.getGoalValues("x",d,null,a.realIndex,a.j),y:s}}},{key:"getRangeValue",value:function(i,a){var s=this.w;return{start:s.globals.seriesRangeStart[i][a],end:s.globals.seriesRangeEnd[i][a]}}},{key:"getTooltipValues",value:function(i){var a=i.ctx,s=i.seriesIndex,o=i.dataPointIndex,r=i.y1,n=i.y2,l=i.w,c=l.globals.seriesRangeStart[s][o],d=l.globals.seriesRangeEnd[s][o],g=l.globals.labels[o],p=l.config.series[s].name?l.config.series[s].name:"",x=l.config.tooltip.y.formatter,f=l.config.tooltip.y.title.formatter,b={w:l,seriesIndex:s,dataPointIndex:o,start:c,end:d};typeof f=="function"&&(p=f(p,b)),Number.isFinite(r)&&Number.isFinite(n)&&(c=r,d=n,l.config.series[s].data[o].x&&(g=l.config.series[s].data[o].x+":"),typeof x=="function"&&(g=x(g,b)));var w="",k="",A=l.globals.colors[s];if(l.config.tooltip.x.formatter===void 0)if(l.config.xaxis.type==="datetime"){var h=new te(a);w=h.formatDate(h.getDate(c),l.config.tooltip.x.format),k=h.formatDate(h.getDate(d),l.config.tooltip.x.format)}else w=c,k=d;else w=l.config.tooltip.x.formatter(c),k=l.config.tooltip.x.formatter(d);return{start:c,end:d,startVal:w,endVal:k,ylabel:g,color:A,seriesName:p}}},{key:"buildCustomTooltipHTML",value:function(i){var a=i.color,s=i.seriesName;return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+a+'">'+(s||"")+'</span></div><div> <span class="category">'+i.ylabel+' </span> <span class="value start-value">'+i.start+'</span> <span class="separator">-</span> <span class="value end-value">'+i.end+"</span></div></div>"}}]),t}(),Se=function(){function v(e){I(this,v),this.opts=e}return E(v,[{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(e){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,C.extend(e,{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 e=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,a=t.dataPointIndex,s=t.w;return e._getBoxTooltip(s,i,a,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,a=t.dataPointIndex,s=t.w;return e._getBoxTooltip(s,i,a,["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(e,t){t.ctx;var i=t.seriesIndex,a=t.dataPointIndex,s=t.w,o=s.globals.seriesRangeStart[i][a];return s.globals.seriesRangeEnd[i][a]-o},background:{enabled:!1},style:{colors:["#fff"]}},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?function(t){var i=new Ze(t.ctx,null),a=i.getTooltipValues(t),s=a.color,o=a.seriesName,r=a.ylabel,n=a.startVal,l=a.endVal;return i.buildCustomTooltipHTML({color:s,seriesName:o,ylabel:r,start:n,end:l})}(e):function(t){var i=new Ze(t.ctx,null),a=i.getTooltipValues(t),s=a.color,o=a.seriesName,r=a.ylabel,n=a.start,l=a.end;return i.buildCustomTooltipHTML({color:s,seriesName:o,ylabel:r,start:n,end:l})}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"brush",value:function(e){return C.extend(e,{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(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach(function(i,a){e.yaxis[a].min=0,e.yaxis[a].max=100}),e.chart.type==="bar"&&(e.dataLabels.formatter=t||function(i){return typeof i=="number"&&i?i.toFixed(0)+"%":i}),e}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,i){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(o){return C.isNumber(o)?Math.floor(o):o};var a=e.xaxis.labels.formatter,s=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return i&&i.length&&(s=i.map(function(o){return Array.isArray(o)?o:String(o)})),s&&s.length&&(e.xaxis.labels.formatter=function(o){return C.isNumber(o)?a(s[Math.floor(o)-1]):a(o)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{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(e){return e.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(e){return e.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(e){return e.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(e){return e},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(e,t,i,a,s){var o=e.globals.seriesCandleO[t][i],r=e.globals.seriesCandleH[t][i],n=e.globals.seriesCandleM[t][i],l=e.globals.seriesCandleL[t][i],c=e.globals.seriesCandleC[t][i];return e.config.series[t].type&&e.config.series[t].type!==s?`<div class="apexcharts-custom-tooltip">
- `.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": <strong>").concat(e.globals.series[t][i],`</strong>
- </div>`):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(a[0],': <span class="value">')+o+"</span></div>"+"<div>".concat(a[1],': <span class="value">')+r+"</span></div>"+(n?"<div>".concat(a[2],': <span class="value">')+n+"</span></div>":"")+"<div>".concat(a[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(a[4],': <span class="value">')+c+"</span></div></div>"}}]),v}(),O=function(){function v(e){I(this,v),this.opts=e}return E(v,[{key:"init",value:function(e){var t=e.responsiveOverride,i=this.opts,a=new ke,s=new Se(i);this.chartType=i.chart.type,this.chartType==="histogram"&&(i.chart.type="bar",i=C.extend({plotOptions:{bar:{columnWidth:"99.99%"}}},i)),i=this.extendYAxis(i),i=this.extendAnnotations(i);var o=a.init(),r={};if(i&&R(i)==="object"){var n={};n=["line","area","bar","candlestick","boxPlot","rangeBar","histogram","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)!==-1?s[i.chart.type]():s.line(),i.chart.brush&&i.chart.brush.enabled&&(n=s.brush(n)),i.chart.stacked&&i.chart.stackType==="100%"&&(i=s.stacked100(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},t||(i.xaxis.convertedCatToNumeric=!1),((i=this.checkForCatToNumericXAxis(this.chartType,n,i)).chart.sparkline&&i.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(n=s.sparkline(n)),r=C.extend(o,n)}var l=C.extend(r,window.Apex);return o=C.extend(l,i),o=this.handleUserInputErrors(o)}},{key:"checkForCatToNumericXAxis",value:function(e,t,i){var a=new Se(i),s=(e==="bar"||e==="boxPlot")&&i.plotOptions&&i.plotOptions.bar&&i.plotOptions.bar.horizontal,o=e==="pie"||e==="polarArea"||e==="donut"||e==="radar"||e==="radialBar"||e==="heatmap",r=i.xaxis.type!=="datetime"&&i.xaxis.type!=="numeric",n=i.xaxis.tickPlacement?i.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return s||o||!r||n==="between"||(i=a.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(e,t){var i=new ke;(e.yaxis===void 0||!e.yaxis||Array.isArray(e.yaxis)&&e.yaxis.length===0)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=C.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[C.extend(i.yAxis,e.yaxis)]:e.yaxis=C.extendArray(e.yaxis,i.yAxis);var a=!1;e.yaxis.forEach(function(o){o.logarithmic&&(a=!0)});var s=e.series;return t&&!s&&(s=t.config.series),a&&s.length!==e.yaxis.length&&s.length&&(e.yaxis=s.map(function(o,r){if(o.name||(s[r].name="series-".concat(r+1)),e.yaxis[r])return e.yaxis[r].seriesName=s[r].name,e.yaxis[r];var n=C.extend(i.yAxis,e.yaxis[0]);return n.show=!1,n})),a&&s.length>1&&s.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."),e}},{key:"extendAnnotations",value:function(e){return e.annotations===void 0&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),e=this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new ke;return e.annotations.yaxis=C.extendArray(e.annotations.yaxis!==void 0?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new ke;return e.annotations.xaxis=C.extendArray(e.annotations.xaxis!==void 0?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new ke;return e.annotations.points=C.extendArray(e.annotations.points!==void 0?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&e.theme.mode==="dark"&&(e.tooltip||(e.tooltip={}),e.tooltip.theme!=="light"&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.chart.background||(e.chart.background="#424242"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var t=e;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}}]),v}(),j=function(){function v(){I(this,v)}return E(v,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRangeBar=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.labels=[],e.hasGroups=!1,e.groups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.xaxisLabelsCount=0,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0}},{key:"globalVars",value:function(e){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:e.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:e.chart.toolbar.autoSelected==="zoom"&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:e.chart.toolbar.autoSelected==="pan"&&e.chart.toolbar.tools.pan,selectionEnabled:e.chart.toolbar.autoSelected==="selection"&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=C.extend({},e),t.initialSeries=C.clone(e.series),t.lastXAxis=C.clone(t.initialConfig.xaxis),t.lastYAxis=C.clone(t.initialConfig.yaxis),t}}]),v}(),Ce=function(){function v(e){I(this,v),this.opts=e}return E(v,[{key:"init",value:function(){var e=new O(this.opts).init({responsiveOverride:!1});return{config:e,globals:new j().init(e)}}}]),v}(),ee=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new Z(this.ctx)}return E(v,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new ae(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),e[this.activeSeriesIndex].data!==void 0&&e[this.activeSeriesIndex].data.length>0&&e[this.activeSeriesIndex].data[0]!==null&&e[this.activeSeriesIndex].data[0].x!==void 0&&e[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new ae(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),e[this.activeSeriesIndex].data!==void 0&&e[this.activeSeriesIndex].data.length>0&&e[this.activeSeriesIndex].data[0]!==void 0&&e[this.activeSeriesIndex].data[0]!==null&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var i=this.w.config,a=this.w.globals,s=i.chart.type==="boxPlot"||i.series[t].type==="boxPlot",o=0;o<e[t].data.length;o++)if(e[t].data[o][1]!==void 0&&(Array.isArray(e[t].data[o][1])&&e[t].data[o][1].length===4&&!s?this.twoDSeries.push(C.parseNumber(e[t].data[o][1][3])):e[t].data[o].length>=5?this.twoDSeries.push(C.parseNumber(e[t].data[o][4])):this.twoDSeries.push(C.parseNumber(e[t].data[o][1])),a.dataFormatXNumeric=!0),i.xaxis.type==="datetime"){var r=new Date(e[t].data[o][0]);r=new Date(r).getTime(),this.twoDSeriesX.push(r)}else this.twoDSeriesX.push(e[t].data[o][0]);for(var n=0;n<e[t].data.length;n++)e[t].data[n][2]!==void 0&&(this.threeDSeries.push(e[t].data[n][2]),a.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var i=this.w.config,a=this.w.globals,s=new te(this.ctx),o=t;a.collapsedSeriesIndices.indexOf(t)>-1&&(o=this.activeSeriesIndex);for(var r=0;r<e[t].data.length;r++)e[t].data[r].y!==void 0&&(Array.isArray(e[t].data[r].y)?this.twoDSeries.push(C.parseNumber(e[t].data[r].y[e[t].data[r].y.length-1])):this.twoDSeries.push(C.parseNumber(e[t].data[r].y))),e[t].data[r].goals!==void 0&&Array.isArray(e[t].data[r].goals)?(this.seriesGoals[t]===void 0&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[r].goals)):(this.seriesGoals[t]===void 0&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var n=0;n<e[o].data.length;n++){var l=typeof e[o].data[n].x=="string",c=Array.isArray(e[o].data[n].x),d=!c&&!!s.isValidDate(e[o].data[n].x.toString());if(l||d)if(l||i.xaxis.convertedCatToNumeric){var g=a.isBarHorizontal&&a.isRangeData;i.xaxis.type!=="datetime"||g?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[o].data[n].x)):this.twoDSeriesX.push(s.parseDate(e[o].data[n].x))}else i.xaxis.type==="datetime"?this.twoDSeriesX.push(s.parseDate(e[o].data[n].x.toString())):(a.dataFormatXNumeric=!0,a.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[o].data[n].x)));else c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[o].data[n].x)):(a.isXNumeric=!0,a.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[o].data[n].x))}if(e[t].data[0]&&e[t].data[0].z!==void 0){for(var p=0;p<e[t].data.length;p++)this.threeDSeries.push(e[t].data[p].z);a.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,t){var i=this.w.globals,a={};return this.isFormat2DArray()?a=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(a=this.handleRangeDataFormat("xy",e,t)),i.seriesRangeStart.push(a.start),i.seriesRangeEnd.push(a.end),i.seriesRangeBar.push(a.rangeUniques),i.seriesRangeBar.forEach(function(s,o){s&&s.forEach(function(r,n){r.y.forEach(function(l,c){for(var d=0;d<r.y.length;d++)if(c!==d){var g=l.y1,p=l.y2,x=r.y[d].y1;g<=r.y[d].y2&&x<=p&&(r.overlaps.indexOf(l.rangeName)<0&&r.overlaps.push(l.rangeName),r.overlaps.indexOf(r.y[d].rangeName)<0&&r.overlaps.push(r.y[d].rangeName))}})})}),a}},{key:"handleCandleStickBoxData",value:function(e,t){var i=this.w.globals,a={};return this.isFormat2DArray()?a=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(a=this.handleCandleStickBoxDataFormat("xy",e,t)),i.seriesCandleO[t]=a.o,i.seriesCandleH[t]=a.h,i.seriesCandleM[t]=a.m,i.seriesCandleL[t]=a.l,i.seriesCandleC[t]=a.c,a}},{key:"handleRangeDataFormat",value:function(e,t,i){var a=[],s=[],o=t[i].data.filter(function(g,p,x){return p===x.findIndex(function(f){return f.x===g.x})}).map(function(g,p){return{x:g.x,overlaps:[],y:[]}}),r="Please provide [Start, End] values in valid format. Read more https://apexcharts.com/docs/series/#rangecharts",n=new ae(this.ctx).getActiveConfigSeriesIndex();if(e==="array"){if(t[n].data[0][1].length!==2)throw new Error(r);for(var l=0;l<t[i].data.length;l++)a.push(t[i].data[l][1][0]),s.push(t[i].data[l][1][1])}else if(e==="xy"){if(t[n].data[0].y.length!==2)throw new Error(r);for(var c=function(g){var p=C.randomId(),x=t[i].data[g].x,f={y1:t[i].data[g].y[0],y2:t[i].data[g].y[1],rangeName:p};t[i].data[g].rangeName=p;var b=o.findIndex(function(w){return w.x===x});o[b].y.push(f),a.push(f.y1),s.push(f.y2)},d=0;d<t[i].data.length;d++)c(d)}return{start:a,end:s,rangeUniques:o}}},{key:"handleCandleStickBoxDataFormat",value:function(e,t,i){var a=this.w,s=a.config.chart.type==="boxPlot"||a.config.series[i].type==="boxPlot",o=[],r=[],n=[],l=[],c=[];if(e==="array")if(s&&t[i].data[0].length===6||!s&&t[i].data[0].length===5)for(var d=0;d<t[i].data.length;d++)o.push(t[i].data[d][1]),r.push(t[i].data[d][2]),s?(n.push(t[i].data[d][3]),l.push(t[i].data[d][4]),c.push(t[i].data[d][5])):(l.push(t[i].data[d][3]),c.push(t[i].data[d][4]));else for(var g=0;g<t[i].data.length;g++)Array.isArray(t[i].data[g][1])&&(o.push(t[i].data[g][1][0]),r.push(t[i].data[g][1][1]),s?(n.push(t[i].data[g][1][2]),l.push(t[i].data[g][1][3]),c.push(t[i].data[g][1][4])):(l.push(t[i].data[g][1][2]),c.push(t[i].data[g][1][3])));else if(e==="xy")for(var p=0;p<t[i].data.length;p++)Array.isArray(t[i].data[p].y)&&(o.push(t[i].data[p].y[0]),r.push(t[i].data[p].y[1]),s?(n.push(t[i].data[p].y[2]),l.push(t[i].data[p].y[3]),c.push(t[i].data[p].y[4])):(l.push(t[i].data[p].y[2]),c.push(t[i].data[p].y[3])));return{o,h:r,m:n,l,c}}},{key:"parseDataAxisCharts",value:function(e){var t=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.ctx,a=this.w.config,s=this.w.globals,o=new te(i),r=a.labels.length>0?a.labels.slice():a.xaxis.categories.slice();s.isRangeBar=a.chart.type==="rangeBar"&&s.isBarHorizontal,s.hasGroups=a.xaxis.type==="category"&&a.xaxis.group.groups.length>0,s.hasGroups&&(s.groups=a.xaxis.group.groups);for(var n=function(){for(var d=0;d<r.length;d++)if(typeof r[d]=="string"){if(!o.isValidDate(r[d]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");t.twoDSeriesX.push(o.parseDate(r[d]))}else t.twoDSeriesX.push(r[d])},l=0;l<e.length;l++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],e[l].data===void 0)return void console.error("It is a possibility that you may have not included 'data' property in series.");if(a.chart.type!=="rangeBar"&&a.chart.type!=="rangeArea"&&e[l].type!=="rangeBar"&&e[l].type!=="rangeArea"||(s.isRangeData=!0,this.handleRangeData(e,l)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,l):this.isFormatXY()&&this.handleFormatXY(e,l),a.chart.type!=="candlestick"&&e[l].type!=="candlestick"&&a.chart.type!=="boxPlot"&&e[l].type!=="boxPlot"||this.handleCandleStickBoxData(e,l),s.series.push(this.twoDSeries),s.labels.push(this.twoDSeriesX),s.seriesX.push(this.twoDSeriesX),s.seriesGoals=this.seriesGoals,l!==this.activeSeriesIndex||this.fallbackToCategory||(s.isXNumeric=!0);else{a.xaxis.type==="datetime"?(s.isXNumeric=!0,n(),s.seriesX.push(this.twoDSeriesX)):a.xaxis.type==="numeric"&&(s.isXNumeric=!0,r.length>0&&(this.twoDSeriesX=r,s.seriesX.push(this.twoDSeriesX))),s.labels.push(this.twoDSeriesX);var c=e[l].data.map(function(d){return C.parseNumber(d)});s.series.push(c)}s.seriesZ.push(this.threeDSeries),e[l].name!==void 0?s.seriesNames.push(e[l].name):s.seriesNames.push("series-"+parseInt(l+1,10)),e[l].color!==void 0?s.seriesColors.push(e[l].color):s.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,i=this.w.config;t.series=e.slice(),t.seriesNames=i.labels.slice();for(var a=0;a<t.series.length;a++)t.seriesNames[a]===void 0&&t.seriesNames.push("series-"+(a+1));return this.w}},{key:"handleExternalLabelsData",value:function(e){var t=this.w.config,i=this.w.globals;t.xaxis.categories.length>0?i.labels=t.xaxis.categories:t.labels.length>0?i.labels=t.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRangeBar.length&&(i.seriesRangeBar.map(function(a){a.forEach(function(s){i.labels.indexOf(s.x)<0&&s.x&&i.labels.push(s.x)})}),i.labels=i.labels.filter(function(a,s,o){return o.indexOf(a)===s})),t.xaxis.convertedCatToNumeric&&(new Se(t).convertCatToNumericXaxis(t,this.ctx,i.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,i=this.w.config,a=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var s=i.series.map(function(d,g){return d.data.filter(function(p,x,f){return f.findIndex(function(b){return b.x===p.x})===x})}),o=s.reduce(function(d,g,p,x){return x[d].length>g.length?d:p},0),r=0;r<s[o].length;r++)a.push(r+1);else for(var n=0;n<t.series[t.maxValsInArrayIndex].length;n++)a.push(n+1);t.seriesX=[];for(var l=0;l<e.length;l++)t.seriesX.push(a);t.isXNumeric=!0}if(a.length===0){a=t.axisCharts?[]:t.series.map(function(d,g){return g+1});for(var c=0;c<e.length;c++)t.seriesX.push(a)}t.labels=a,i.xaxis.convertedCatToNumeric&&(t.categoryLabels=a.map(function(d){return i.xaxis.labels.formatter(d)})),t.noLabelsProvided=!0}},{key:"parseData",value:function(e){var t=this.w,i=t.config,a=t.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),a.axisCharts?this.parseDataAxisCharts(e):this.parseDataNonAxisCharts(e),this.coreUtils.getLargestSeries(),i.chart.type==="bar"&&i.chart.stacked){var s=new ae(this.ctx);a.series=s.setNullSeriesToZeroValues(a.series)}this.coreUtils.getSeriesTotals(),a.axisCharts&&this.coreUtils.getStackedSeriesTotals(),this.coreUtils.getPercentSeries(),a.dataFormatXNumeric||a.isXNumeric&&(i.xaxis.type!=="numeric"||i.labels.length!==0||i.xaxis.categories.length!==0)||this.handleExternalLabelsData(e);for(var o=this.coreUtils.getCategoryLabels(a.labels),r=0;r<o.length;r++)if(Array.isArray(o[r])){a.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this,t=this.w;t.globals.ignoreYAxisIndexes=t.globals.collapsedSeries.map(function(i,a){if(e.w.globals.isMultipleYAxis&&!t.config.chart.stacked)return i.index})}}]),v}(),Xe=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return E(v,[{key:"xLabelFormat",value:function(e,t,i,a){var s=this.w;if(s.config.xaxis.type==="datetime"&&s.config.xaxis.labels.formatter===void 0&&s.config.tooltip.x.formatter===void 0){var o=new te(this.ctx);return o.formatDate(o.getDate(t),s.config.tooltip.x.format)}return e(t,i,a)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map(function(t){return t}):e}},{key:"defaultYFormatter",value:function(e,t,i){var a=this.w;return C.isNumber(e)&&(e=a.globals.yValueDecimal!==0?e.toFixed(t.decimalsInFloat!==void 0?t.decimalsInFloat:a.globals.yValueDecimal):a.globals.maxYArr[i]-a.globals.minYArr[i]<5?e.toFixed(1):e.toFixed(0)),e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(i){return e.defaultGeneralFormatter(i)},t.globals.ttKeyFormatter=function(i){return e.defaultGeneralFormatter(i)},t.globals.ttZFormatter=function(i){return i},t.globals.legendFormatter=function(i){return e.defaultGeneralFormatter(i)},t.config.xaxis.labels.formatter!==void 0?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(i){if(C.isNumber(i)){if(!t.config.xaxis.convertedCatToNumeric&&t.config.xaxis.type==="numeric"){if(C.isNumber(t.config.xaxis.decimalsInFloat))return i.toFixed(t.config.xaxis.decimalsInFloat);var a=t.globals.maxX-t.globals.minX;return a>0&&a<100?i.toFixed(1):i.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?i.toFixed(1):i.toFixed(0)}return i},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(i,a){i.labels.formatter!==void 0?t.globals.yLabelFormatters[a]=i.labels.formatter:t.globals.yLabelFormatters[a]=function(s){return t.globals.xyCharts?Array.isArray(s)?s.map(function(o){return e.defaultYFormatter(o,i,a)}):e.defaultYFormatter(s,i,a):s}}),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if(e.config.chart.type==="heatmap"){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce(function(i,a){return i.length>a.length?i:a},0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),v}(),Le=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"getLabel",value:function(e,t,i,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",r=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],n=this.w,l=e[a]===void 0?"":e[a],c=l,d=n.globals.xLabelFormatter,g=n.config.xaxis.labels.formatter,p=!1,x=new Xe(this.ctx),f=l;r&&(c=x.xLabelFormat(d,l,f,{i:a,dateFormatter:new te(this.ctx).formatDate,w:n}),g!==void 0&&(c=g(l,e[a],{i:a,dateFormatter:new te(this.ctx).formatDate,w:n})));var b=function(h){var u=null;return t.forEach(function(m){m.unit==="month"?u="year":m.unit==="day"?u="month":m.unit==="hour"?u="day":m.unit==="minute"&&(u="hour")}),u===h};t.length>0?(p=b(t[a].unit),i=t[a].position,c=t[a].value):n.config.xaxis.type==="datetime"&&g===void 0&&(c=""),c===void 0&&(c=""),c=Array.isArray(c)?c:c.toString();var w=new M(this.ctx),k={};k=n.globals.rotateXLabels&&r?w.getTextRects(c,parseInt(o,10),null,"rotate(".concat(n.config.xaxis.labels.rotate," 0 0)"),!1):w.getTextRects(c,parseInt(o,10));var A=!n.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(c)&&(c.indexOf("NaN")===0||c.toLowerCase().indexOf("invalid")===0||c.toLowerCase().indexOf("infinity")>=0||s.indexOf(c)>=0&&A)&&(c=""),{x:i,text:c,textRect:k,isBold:p}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,i){var a=this.w,s=a.config.xaxis.tickAmount;return s==="dataPoints"&&(s=Math.round(a.globals.gridWidth/120)),s>i||e%Math.round(i/(s+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,i,a,s){var o=this.w;if(e===0&&o.globals.skipFirstTimelinelabel&&(t.text=""),e===i-1&&o.globals.skipLastTimelinelabel&&(t.text=""),o.config.xaxis.labels.hideOverlappingLabels&&a.length>0){var r=s[s.length-1];t.x<r.textRect.width/(o.globals.rotateXLabels?Math.abs(o.config.xaxis.labels.rotate)/12:1.01)+r.x&&(t.text="")}return t}},{key:"checkForReversedLabels",value:function(e,t){var i=this.w;return i.config.yaxis[e]&&i.config.yaxis[e].reversed&&t.reverse(),t}},{key:"isYAxisHidden",value:function(e){var t=this.w,i=new Z(this.ctx);return!t.config.yaxis[e].show||!t.config.yaxis[e].showForNullSeries&&i.isSeriesNull(e)&&t.globals.collapsedSeriesIndices.indexOf(e)===-1}},{key:"getYAxisForeColor",value:function(e,t){var i=this.w;return Array.isArray(e)&&i.globals.yAxisScale[t]&&this.ctx.theme.pushExtraColors(e,i.globals.yAxisScale[t].result.length,!1),e}},{key:"drawYAxisTicks",value:function(e,t,i,a,s,o,r){var n=this.w,l=new M(this.ctx),c=n.globals.translateY;if(a.show&&t>0){n.config.yaxis[s].opposite===!0&&(e+=a.width);for(var d=t;d>=0;d--){var g=c+t/10+n.config.yaxis[s].labels.offsetY-1;n.globals.isBarHorizontal&&(g=o*d),n.config.chart.type==="heatmap"&&(g+=o/2);var p=l.drawLine(e+i.offsetX-a.width+a.offsetX,g+a.offsetY,e+i.offsetX+a.offsetX,g+a.offsetY,a.color);r.add(p),c+=o}}}}]),v}(),Ie=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"scaleSvgNode",value:function(e,t){var i=parseFloat(e.getAttributeNS(null,"width")),a=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",i*t),e.setAttributeNS(null,"height",a*t),e.setAttributeNS(null,"viewBox","0 0 "+i+" "+a)}},{key:"fixSvgStringForIe11",value:function(e){if(!C.isIE11())return e.replace(/ /g," ");var t=0,i=e.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(a){return++t===2?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':a});return i=(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(e){e==null&&(e=1);var t=this.w.globals.dom.Paper.svg();if(e!==1){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,e),t=new XMLSerializer().serializeToString(i)}return this.fixSvgStringForIe11(t)}},{key:"cleanup",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=e.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(a,function(s){s.setAttribute("width",0)}),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var e=this.getSvgString(),t=new Blob([e],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(t)}},{key:"dataURI",value:function(e){var t=this;return new Promise(function(i){var a=t.w,s=e?e.scale||e.width/a.globals.svgWidth:1;t.cleanup();var o=document.createElement("canvas");o.width=a.globals.svgWidth*s,o.height=parseInt(a.globals.dom.elWrap.style.height,10)*s;var r=a.config.chart.background==="transparent"?"#fff":a.config.chart.background,n=o.getContext("2d");n.fillStyle=r,n.fillRect(0,0,o.width*s,o.height*s);var l=t.getSvgString(s);if(window.canvg&&C.isIE11()){var c=window.canvg.Canvg.fromString(n,l,{ignoreClear:!0,ignoreDimensions:!0});c.start();var d=o.msToBlob();c.stop(),i({blob:d})}else{var g="data:image/svg+xml,"+encodeURIComponent(l),p=new Image;p.crossOrigin="anonymous",p.onload=function(){if(n.drawImage(p,0,0),o.msToBlob){var x=o.msToBlob();i({blob:x})}else{var f=o.toDataURL("image/png");i({imgURI:f})}},p.src=g}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var e=this;this.dataURI().then(function(t){var i=t.imgURI,a=t.blob;a?navigator.msSaveOrOpenBlob(a,e.w.globals.chartID+".png"):e.triggerDownload(i,e.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(e){var t=this,i=e.series,a=e.fileName,s=e.columnDelimiter,o=s===void 0?",":s,r=e.lineDelimiter,n=r===void 0?`
- `:r,l=this.w;i||(i=l.config.series);var c=[],d=[],g="",p=new ee(this.ctx),x=new Le(this.ctx),f=function(b){var w="";if(l.globals.axisCharts){if(l.config.xaxis.type==="category"||l.config.xaxis.convertedCatToNumeric)if(l.globals.isBarHorizontal){var k=l.globals.yLabelFormatters[0],A=new ae(t.ctx).getActiveConfigSeriesIndex();w=k(l.globals.labels[b],{seriesIndex:A,dataPointIndex:b,w:l})}else w=x.getLabel(l.globals.labels,l.globals.timescaleLabels,0,b).text;l.config.xaxis.type==="datetime"&&(l.config.xaxis.categories.length?w=l.config.xaxis.categories[b]:l.config.labels.length&&(w=l.config.labels[b]))}else w=l.config.labels[b];return Array.isArray(w)&&(w=w.join(" ")),C.isNumber(w)?w:w.split(o).join("")};c.push(l.config.chart.toolbar.export.csv.headerCategory),l.config.chart.type==="boxPlot"?(c.push("minimum"),c.push("q1"),c.push("median"),c.push("q3"),c.push("maximum")):l.config.chart.type==="candlestick"?(c.push("open"),c.push("high"),c.push("low"),c.push("close")):l.config.chart.type==="rangeBar"?(c.push("minimum"),c.push("maximum")):i.map(function(b,w){var k=b.name?b.name:"series-".concat(w);l.globals.axisCharts&&c.push(k.split(o).join("")?k.split(o).join(""):"series-".concat(w))}),l.globals.axisCharts||(c.push(l.config.chart.toolbar.export.csv.headerValue),d.push(c.join(o))),i.map(function(b,w){l.globals.axisCharts?function(k,A){if(c.length&&A===0&&d.push(c.join(o)),k.data&&k.data.length)for(var h=0;h<k.data.length;h++){c=[];var u=f(h);if(u||(p.isFormatXY()?u=i[A].data[h].x:p.isFormat2DArray()&&(u=i[A].data[h]?i[A].data[h][0]:"")),A===0){c.push((y=u,l.config.xaxis.type==="datetime"&&String(y).length>=10?l.config.chart.toolbar.export.csv.dateFormatter(u):C.isNumber(u)?u:u.split(o).join("")));for(var m=0;m<l.globals.series.length;m++)p.isFormatXY()?c.push(i[m].data[h].y):c.push(l.globals.series[m][h])}(l.config.chart.type==="candlestick"||k.type&&k.type==="candlestick")&&(c.pop(),c.push(l.globals.seriesCandleO[A][h]),c.push(l.globals.seriesCandleH[A][h]),c.push(l.globals.seriesCandleL[A][h]),c.push(l.globals.seriesCandleC[A][h])),(l.config.chart.type==="boxPlot"||k.type&&k.type==="boxPlot")&&(c.pop(),c.push(l.globals.seriesCandleO[A][h]),c.push(l.globals.seriesCandleH[A][h]),c.push(l.globals.seriesCandleM[A][h]),c.push(l.globals.seriesCandleL[A][h]),c.push(l.globals.seriesCandleC[A][h])),l.config.chart.type==="rangeBar"&&(c.pop(),c.push(l.globals.seriesRangeStart[A][h]),c.push(l.globals.seriesRangeEnd[A][h])),c.length&&d.push(c.join(o))}var y}(b,w):((c=[]).push(l.globals.labels[w].split(o).join("")),c.push(l.globals.series[w]),d.push(c.join(o)))}),g+=d.join(n),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+g),a||l.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(e,t,i){var a=document.createElement("a");a.href=e,a.download=(t||this.w.globals.chartID)+i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}}]),v}(),Ye=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w;var t=this.w;this.axesUtils=new Le(e),this.xaxisLabels=t.globals.labels.slice(),t.globals.timescaleLabels.length>0&&!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 E(v,[{key:"drawXaxis",value:function(){var e=this.w,t=new M(this.ctx),i=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),a=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});i.add(a);for(var s=[],o=0;o<this.xaxisLabels.length;o++)s.push(this.xaxisLabels[o]);if(this.drawXAxisLabelAndGroup(!0,t,a,s,e.globals.isXNumeric,function(x,f){return f}),e.globals.hasGroups){var r=e.globals.groups;s=[];for(var n=0;n<r.length;n++)s.push(r[n].title);var l={};e.config.xaxis.group.style&&(l.xaxisFontSize=e.config.xaxis.group.style.fontSize,l.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,l.xaxisForeColors=e.config.xaxis.group.style.colors,l.fontWeight=e.config.xaxis.group.style.fontWeight,l.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,a,s,!1,function(x,f){return r[x].cols*f},l)}if(e.config.xaxis.title.text!==void 0){var c=t.group({class:"apexcharts-xaxis-title"}),d=t.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+e.globals.xAxisLabelsHeight+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});c.add(d),i.add(c)}if(e.config.xaxis.axisBorder.show){var g=e.globals.barPadForNumericAxis,p=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-g,this.offY,this.xaxisBorderWidth+g,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);i.add(p)}return i}},{key:"drawXAxisLabelAndGroup",value:function(e,t,i,a,s,o){var r,n=this,l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},c=[],d=[],g=this.w,p=l.xaxisFontSize||this.xaxisFontSize,x=l.xaxisFontFamily||this.xaxisFontFamily,f=l.xaxisForeColors||this.xaxisForeColors,b=l.fontWeight||g.config.xaxis.labels.style.fontWeight,w=l.cssClass||g.config.xaxis.labels.style.cssClass,k=g.globals.padHorizontal,A=a.length,h=g.config.xaxis.type==="category"?g.globals.dataPoints:A;if(s){var u=h>1?h-1:h;r=g.globals.gridWidth/u,k=k+o(0,r)/2+g.config.xaxis.labels.offsetX}else r=g.globals.gridWidth/h,k=k+o(0,r)+g.config.xaxis.labels.offsetX;for(var m=function(S){var P=k-o(S,r)/2+g.config.xaxis.labels.offsetX;S===0&&A===1&&r/2===k&&h===1&&(P=g.globals.gridWidth/2);var L=n.axesUtils.getLabel(a,g.globals.timescaleLabels,P,S,c,p,e),z=28;if(g.globals.rotateXLabels&&e&&(z=22),e||(z=z+parseFloat(p)+(g.globals.xAxisLabelsHeight-g.globals.xAxisGroupLabelsHeight)+(g.globals.rotateXLabels?10:0)),L=g.config.xaxis.tickAmount!==void 0&&g.config.xaxis.tickAmount!=="dataPoints"&&g.config.xaxis.type!=="datetime"?n.axesUtils.checkLabelBasedOnTickamount(S,L,A):n.axesUtils.checkForOverflowingLabels(S,L,A,c,d),e&&L.text&&g.globals.xaxisLabelsCount++,g.config.xaxis.labels.show){var T=t.drawText({x:L.x,y:n.offY+g.config.xaxis.labels.offsetY+z-(g.config.xaxis.position==="top"?g.globals.xAxisHeight+g.config.xaxis.axisTicks.height-2:0),text:L.text,textAnchor:"middle",fontWeight:L.isBold?600:b,fontSize:p,fontFamily:x,foreColor:Array.isArray(f)?e&&g.config.xaxis.convertedCatToNumeric?f[g.globals.minX+S-1]:f[S]:f,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+w});if(i.add(T),e){var Y=document.createElementNS(g.globals.SVGNS,"title");Y.textContent=Array.isArray(L.text)?L.text.join(" "):L.text,T.node.appendChild(Y),L.text!==""&&(c.push(L.text),d.push(L))}}S<A-1&&(k+=o(S+1,r))},y=0;y<=A-1;y++)m(y)}},{key:"drawXaxisInversed",value:function(e){var t,i,a=this,s=this.w,o=new M(this.ctx),r=s.config.yaxis[0].opposite?s.globals.translateYAxisX[e]:0,n=o.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),l=o.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+r+", 0)"});n.add(l);var c=[];if(s.config.yaxis[e].show)for(var d=0;d<this.xaxisLabels.length;d++)c.push(this.xaxisLabels[d]);t=s.globals.gridHeight/c.length,i=-t/2.2;var g=s.globals.yLabelFormatters[0],p=s.config.yaxis[0].labels;if(p.show)for(var x=function(u){var m=c[u]===void 0?"":c[u];m=g(m,{seriesIndex:e,dataPointIndex:u,w:s});var y=a.axesUtils.getYAxisForeColor(p.style.colors,e),S=0;Array.isArray(m)&&(S=m.length/2*parseInt(p.style.fontSize,10));var P=o.drawText({x:p.offsetX-15,y:i+t+p.offsetY-S,text:m,textAnchor:a.yaxis.opposite?"start":"end",foreColor:Array.isArray(y)?y[u]:y,fontSize:p.style.fontSize,fontFamily:p.style.fontFamily,fontWeight:p.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+p.style.cssClass,maxWidth:p.maxWidth});l.add(P);var L=document.createElementNS(s.globals.SVGNS,"title");if(L.textContent=Array.isArray(m)?m.join(" "):m,P.node.appendChild(L),s.config.yaxis[e].labels.rotate!==0){var z=o.rotateAroundCenter(P.node);P.node.setAttribute("transform","rotate(".concat(s.config.yaxis[e].labels.rotate," 0 ").concat(z.y,")"))}i+=t},f=0;f<=c.length-1;f++)x(f);if(s.config.yaxis[0].title.text!==void 0){var b=o.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+r+", 0)"}),w=o.drawText({x:0,y:s.globals.gridHeight/2,text:s.config.yaxis[0].title.text,textAnchor:"middle",foreColor:s.config.yaxis[0].title.style.color,fontSize:s.config.yaxis[0].title.style.fontSize,fontWeight:s.config.yaxis[0].title.style.fontWeight,fontFamily:s.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+s.config.yaxis[0].title.style.cssClass});b.add(w),n.add(b)}var k=0;this.isCategoryBarHorizontal&&s.config.yaxis[0].opposite&&(k=s.globals.gridWidth);var A=s.config.xaxis.axisBorder;if(A.show){var h=o.drawLine(s.globals.padHorizontal+A.offsetX+k,1+A.offsetY,s.globals.padHorizontal+A.offsetX+k,s.globals.gridHeight+A.offsetY,A.color,0);n.add(h)}return s.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(k,c.length,s.config.yaxis[0].axisBorder,s.config.yaxis[0].axisTicks,0,t,n),n}},{key:"drawXaxisTicks",value:function(e,t,i){var a=this.w,s=e;if(!(e<0||e-2>a.globals.gridWidth)){var o=this.offY+a.config.xaxis.axisTicks.offsetY;if(t=t+o+a.config.xaxis.axisTicks.height,a.config.xaxis.position==="top"&&(t=o-a.config.xaxis.axisTicks.height),a.config.xaxis.axisTicks.show){var r=new M(this.ctx).drawLine(e+a.config.xaxis.axisTicks.offsetX,o+a.config.xaxis.offsetY,s+a.config.xaxis.axisTicks.offsetX,t+a.config.xaxis.offsetY,a.config.xaxis.axisTicks.color);i.add(r),r.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],i=this.xaxisLabels.length,a=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var s=0;s<i;s++)a=this.xaxisLabels[s].position,t.push(a);else for(var o=i,r=0;r<o;r++){var n=o;e.globals.isXNumeric&&e.config.chart.type!=="bar"&&(n-=1),a+=e.globals.gridWidth/n,t.push(a)}return t}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,t=new M(this.ctx),i=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(e.globals.rotateXLabels||e.config.xaxis.labels.rotateAlways)for(var r=0;r<a.length;r++){var n=t.rotateAroundCenter(a[r]);n.y=n.y-1,n.x=n.x+1,a[r].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(n.x," ").concat(n.y,")")),a[r].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var l=a[r].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(l,function(p){t.placeTextWithEllipsis(p,p.textContent,e.globals.xAxisLabelsHeight-(e.config.legend.position==="bottom"?20:10))})}else(function(){for(var p=e.globals.gridWidth/(e.globals.labels.length+1),x=0;x<a.length;x++){var f=a[x].childNodes;e.config.xaxis.labels.trim&&e.config.xaxis.type!=="datetime"&&Array.prototype.forEach.call(f,function(b){t.placeTextWithEllipsis(b,b.textContent,p)})}})();if(s.length>0){var c=s[s.length-1].getBBox(),d=s[0].getBBox();c.x<-20&&s[s.length-1].parentNode.removeChild(s[s.length-1]),d.x+d.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&s[0].parentNode.removeChild(s[0]);for(var g=0;g<o.length;g++)t.placeTextWithEllipsis(o[g],o[g].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),v}(),lt=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w;var t=this.w;this.xaxisLabels=t.globals.labels.slice(),this.axesUtils=new Le(e),this.isRangeBar=t.globals.seriesRangeBar.length,t.globals.timescaleLabels.length>0&&(this.xaxisLabels=t.globals.timescaleLabels.slice())}return E(v,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w,i=new M(this.ctx);e===null&&(e=i.group({class:"apexcharts-grid"}));var a=i.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),s=i.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(s),e.add(a),e}},{key:"drawGrid",value:function(){var e=null;return this.w.globals.axisCharts&&(e=this.renderGrid(),this.drawGridArea(e.el)),e}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,i=new M(this.ctx),a=Array.isArray(e.config.stroke.width)?0:e.config.stroke.width;if(Array.isArray(e.config.stroke.width)){var s=0;e.config.stroke.width.forEach(function(d){s=Math.max(s,d)}),a=s}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 o=e.config.chart.type,r=0,n=0;(o==="bar"||o==="rangeBar"||o==="candlestick"||o==="boxPlot"||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(r=e.config.grid.padding.left,n=e.config.grid.padding.right,t.barPadForNumericAxis>r&&(r=t.barPadForNumericAxis,n=t.barPadForNumericAxis)),t.dom.elGridRect=i.drawRect(-a/2-r-2,-a/2,t.gridWidth+a+n+r+4,t.gridHeight+a,0,"#fff");var l=e.globals.markers.largestSize+1;t.dom.elGridRectMarker=i.drawRect(2*-l,2*-l,t.gridWidth+4*l,t.gridHeight+4*l,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var c=t.dom.baseEl.querySelector("defs");c.appendChild(t.dom.elGridRectMask),c.appendChild(t.dom.elForecastMask),c.appendChild(t.dom.elNonForecastMask),c.appendChild(t.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,i=e.x1,a=e.y1,s=e.x2,o=e.y2,r=e.xCount,n=e.parent,l=this.w;if(!(t===0&&l.globals.skipFirstTimelinelabel||t===r-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||l.config.chart.type==="radar")){l.config.grid.xaxis.lines.show&&this._drawGridLine({x1:i,y1:a,x2:s,y2:o,parent:n});var c=0;if(l.globals.hasGroups&&l.config.xaxis.tickPlacement==="between"){var d=l.globals.groups;if(d){for(var g=0,p=0;g<t&&p<d.length;p++)g+=d[p].cols;g===t&&(c=.6*l.globals.xAxisLabelsHeight)}}new Ye(this.ctx).drawXaxisTicks(i,c,this.elg)}}},{key:"_drawGridLine",value:function(e){var t=e.x1,i=e.y1,a=e.x2,s=e.y2,o=e.parent,r=this.w,n=o.node.classList.contains("apexcharts-gridlines-horizontal"),l=r.config.grid.strokeDashArray,c=r.globals.barPadForNumericAxis,d=new M(this).drawLine(t-(n?c:0),i,a+(n?c:0),s,r.config.grid.borderColor,l);d.node.classList.add("apexcharts-gridline"),o.add(d)}},{key:"_drawGridBandRect",value:function(e){var t=e.c,i=e.x1,a=e.y1,s=e.x2,o=e.y2,r=e.type,n=this.w,l=new M(this.ctx),c=n.globals.barPadForNumericAxis;if(r!=="column"||n.config.xaxis.type!=="datetime"){var d=n.config.grid[r].colors[t],g=l.drawRect(i-(r==="row"?c:0),a,s+(r==="row"?2*c:0),o,0,d,n.config.grid[r].opacity);this.elg.add(g),g.attr("clip-path","url(#gridRectMask".concat(n.globals.cuid,")")),g.node.classList.add("apexcharts-grid-".concat(r))}}},{key:"_drawXYLines",value:function(e){var t=this,i=e.xCount,a=e.tickAmount,s=this.w;if(s.config.grid.xaxis.lines.show||s.config.xaxis.axisTicks.show){var o,r=s.globals.padHorizontal,n=s.globals.gridHeight;s.globals.timescaleLabels.length?function(x){for(var f=x.xC,b=x.x1,w=x.y1,k=x.x2,A=x.y2,h=0;h<f;h++)b=t.xaxisLabels[h].position,k=t.xaxisLabels[h].position,t._drawGridLines({i:h,x1:b,y1:w,x2:k,y2:A,xCount:i,parent:t.elgridLinesV})}({xC:i,x1:r,y1:0,x2:o,y2:n}):(s.globals.isXNumeric&&(i=s.globals.xAxisScale.result.length),s.config.xaxis.convertedCatToNumeric&&(i=s.globals.xaxisLabelsCount),function(x){var f=x.xC,b=x.x1,w=x.y1,k=x.x2,A=x.y2;if(s.config.xaxis.tickAmount!==void 0&&s.config.xaxis.tickAmount!=="dataPoints"&&s.config.xaxis.tickPlacement==="on")s.globals.dom.baseEl.querySelectorAll(".apexcharts-text.apexcharts-xaxis-label tspan:not(:empty)").forEach(function(u,m){var y=u.getBBox();t._drawGridLines({i:m,x1:y.x+y.width/2,y1:w,x2:y.x+y.width/2,y2:A,xCount:i,parent:t.elgridLinesV})});else for(var h=0;h<f+(s.globals.isXNumeric?0:1);h++)h===0&&f===1&&s.globals.dataPoints===1&&(k=b=s.globals.gridWidth/2),t._drawGridLines({i:h,x1:b,y1:w,x2:k,y2:A,xCount:i,parent:t.elgridLinesV}),k=b+=s.globals.gridWidth/(s.globals.isXNumeric?f-1:f)}({xC:i,x1:r,y1:0,x2:o,y2:n}))}if(s.config.grid.yaxis.lines.show){var l=0,c=0,d=s.globals.gridWidth,g=a+1;this.isRangeBar&&(g=s.globals.labels.length);for(var p=0;p<g+(this.isRangeBar?1:0);p++)this._drawGridLine({x1:0,y1:l,x2:d,y2:c,parent:this.elgridLinesH}),c=l+=s.globals.gridHeight/(this.isRangeBar?g:a)}}},{key:"_drawInvertedXYLines",value:function(e){var t=e.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var a,s=i.globals.padHorizontal,o=i.globals.gridHeight,r=0;r<t+1;r++)i.config.grid.xaxis.lines.show&&this._drawGridLine({x1:s,y1:0,x2:a,y2:o,parent:this.elgridLinesV}),new Ye(this.ctx).drawXaxisTicks(s,0,this.elg),a=s=s+i.globals.gridWidth/t+.3;if(i.config.grid.yaxis.lines.show)for(var n=0,l=0,c=i.globals.gridWidth,d=0;d<i.globals.dataPoints+1;d++)this._drawGridLine({x1:0,y1:n,x2:c,y2:l,parent:this.elgridLinesH}),l=n+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var e=this.w,t=new M(this.ctx);this.elg=t.group({class:"apexcharts-grid"}),this.elgridLinesH=t.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=t.group({class:"apexcharts-gridlines-vertical"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),e.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide());for(var i,a=e.globals.yAxisScale.length?e.globals.yAxisScale[0].result.length-1:5,s=0;s<e.globals.series.length&&(e.globals.yAxisScale[s]!==void 0&&(a=e.globals.yAxisScale[s].result.length-1),!(a>2));s++);return!e.globals.isBarHorizontal||this.isRangeBar?(i=this.xaxisLabels.length,this.isRangeBar&&(a=e.globals.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(i=e.config.xaxis.tickAmount)),this._drawXYLines({xCount:i,tickAmount:a})):(i=a,a=e.globals.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:a})),this.drawGridBands(i,a),{el:this.elg,xAxisTickWidth:e.globals.gridWidth/i}}},{key:"drawGridBands",value:function(e,t){var i=this.w;if(i.config.grid.row.colors!==void 0&&i.config.grid.row.colors.length>0)for(var a=0,s=i.globals.gridHeight/t,o=i.globals.gridWidth,r=0,n=0;r<t;r++,n++)n>=i.config.grid.row.colors.length&&(n=0),this._drawGridBandRect({c:n,x1:0,y1:a,x2:o,y2:s,type:"row"}),a+=i.globals.gridHeight/t;if(i.config.grid.column.colors!==void 0&&i.config.grid.column.colors.length>0)for(var l=i.globals.isBarHorizontal||i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric?e:e-1,c=i.globals.padHorizontal,d=i.globals.padHorizontal+i.globals.gridWidth/l,g=i.globals.gridHeight,p=0,x=0;p<e;p++,x++)x>=i.config.grid.column.colors.length&&(x=0),this._drawGridBandRect({c:x,x1:c,y1:0,x2:d,y2:g,type:"column"}),c+=i.globals.gridWidth/l}}]),v}(),Be=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"niceScale",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,o=this.w,r=Math.abs(t-e);if((i=this._adjustTicksForSmallRange(i,a,r))==="dataPoints"&&(i=o.globals.dataPoints-1),e===Number.MIN_VALUE&&t===0||!C.isNumber(e)&&!C.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE){e=0,t=i;var n=this.linearScale(e,t,i);return n}e>t?(console.warn("axis.min cannot be greater than axis.max"),t=e+.1):e===t&&(e=e===0?0:e-.5,t=t===0?2:t+.5);var l=[];r<1&&s&&(o.config.chart.type==="candlestick"||o.config.series[a].type==="candlestick"||o.config.chart.type==="boxPlot"||o.config.series[a].type==="boxPlot"||o.globals.isRangeData)&&(t*=1.01);var c=i+1;c<2?c=2:c>2&&(c-=2);var d=r/c,g=Math.floor(C.log10(d)),p=Math.pow(10,g),x=Math.round(d/p);x<1&&(x=1);var f=x*p,b=f*Math.floor(e/f),w=f*Math.ceil(t/f),k=b;if(s&&r>2){for(;l.push(k),!((k+=f)>w););return{result:l,niceMin:l[0],niceMax:l[l.length-1]}}var A=e;(l=[]).push(A);for(var h=Math.abs(t-e)/i,u=0;u<=i;u++)A+=h,l.push(A);return l[l.length-2]>=t&&l.pop(),{result:l,niceMin:l[0],niceMax:l[l.length-1]}}},{key:"linearScale",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,a=arguments.length>3?arguments[3]:void 0,s=Math.abs(t-e);(i=this._adjustTicksForSmallRange(i,a,s))==="dataPoints"&&(i=this.w.globals.dataPoints-1);var o=s/i;i===Number.MAX_VALUE&&(i=10,o=1);for(var r=[],n=e;i>=0;)r.push(n),n+=o,i-=1;return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,i){t<=0&&(t=Math.max(e,i)),e<=0&&(e=Math.min(t,i));for(var a=[],s=Math.ceil(Math.log(t)/Math.log(i)+1),o=Math.floor(Math.log(e)/Math.log(i));o<s;o++)a.push(Math.pow(i,o));return{result:a,niceMin:a[0],niceMax:a[a.length-1]}}},{key:"logarithmicScale",value:function(e,t,i){t<=0&&(t=Math.max(e,i)),e<=0&&(e=Math.min(t,i));for(var a=[],s=Math.log(t)/Math.log(i),o=Math.log(e)/Math.log(i),r=s-o,n=Math.round(r),l=r/n,c=0,d=o;c<n;c++,d+=l)a.push(Math.pow(i,d));return a.push(Math.pow(i,s)),{result:a,niceMin:e,niceMax:t}}},{key:"_adjustTicksForSmallRange",value:function(e,t,i){var a=e;if(t!==void 0&&this.w.config.yaxis[t].labels.formatter&&this.w.config.yaxis[t].tickAmount===void 0){var s=this.w.config.yaxis[t].labels.formatter(1);C.isNumber(Number(s))&&!C.isFloat(s)&&(a=Math.ceil(i))}return a<e?a:e}},{key:"setYScaleForIndex",value:function(e,t,i){var a=this.w.globals,s=this.w.config,o=a.isBarHorizontal?s.xaxis:s.yaxis[e];a.yAxisScale[e]===void 0&&(a.yAxisScale[e]=[]);var r=Math.abs(i-t);if(o.logarithmic&&r<=5&&(a.invalidLogScale=!0),o.logarithmic&&r>5)a.allSeriesCollapsed=!1,a.yAxisScale[e]=this.logarithmicScale(t,i,o.logBase),a.yAxisScale[e]=o.forceNiceScale?this.logarithmicScaleNice(t,i,o.logBase):this.logarithmicScale(t,i,o.logBase);else if(i!==-Number.MAX_VALUE&&C.isNumber(i))if(a.allSeriesCollapsed=!1,o.min===void 0&&o.max===void 0||o.forceNiceScale){var n=s.yaxis[e].max===void 0&&s.yaxis[e].min===void 0||s.yaxis[e].forceNiceScale;a.yAxisScale[e]=this.niceScale(t,i,o.tickAmount?o.tickAmount:r<5&&r>1?r+1:5,e,n)}else a.yAxisScale[e]=this.linearScale(t,i,o.tickAmount,e);else a.yAxisScale[e]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(e,t){var i=this.w,a=i.globals,s=i.config.xaxis,o=Math.abs(t-e);return t!==-Number.MAX_VALUE&&C.isNumber(t)?a.xAxisScale=this.linearScale(e,t,s.tickAmount?s.tickAmount:o<5&&o>1?o+1:5,0):a.xAxisScale=this.linearScale(0,5,5),a.xAxisScale}},{key:"setMultipleYScales",value:function(){var e=this,t=this.w.globals,i=this.w.config,a=t.minYArr.concat([]),s=t.maxYArr.concat([]),o=[];i.yaxis.forEach(function(r,n){var l=n;i.series.forEach(function(g,p){g.name===r.seriesName&&(l=p,n!==p?o.push({index:p,similarIndex:n,alreadyExists:!0}):o.push({index:p}))});var c=a[l],d=s[l];e.setYScaleForIndex(n,c,d)}),this.sameScaleInMultipleAxes(a,s,o)}},{key:"sameScaleInMultipleAxes",value:function(e,t,i){var a=this,s=this.w.config,o=this.w.globals,r=[];i.forEach(function(f){f.alreadyExists&&(r[f.index]===void 0&&(r[f.index]=[]),r[f.index].push(f.index),r[f.index].push(f.similarIndex))}),o.yAxisSameScaleIndices=r,r.forEach(function(f,b){r.forEach(function(w,k){var A,h;b!==k&&(A=f,h=w,A.filter(function(u){return h.indexOf(u)!==-1})).length>0&&(r[b]=r[b].concat(r[k]))})});var n=r.map(function(f){return f.filter(function(b,w){return f.indexOf(b)===w})}).map(function(f){return f.sort()});r=r.filter(function(f){return!!f});var l=n.slice(),c=l.map(function(f){return JSON.stringify(f)});l=l.filter(function(f,b){return c.indexOf(JSON.stringify(f))===b});var d=[],g=[];e.forEach(function(f,b){l.forEach(function(w,k){w.indexOf(b)>-1&&(d[k]===void 0&&(d[k]=[],g[k]=[]),d[k].push({key:b,value:f}),g[k].push({key:b,value:t[b]}))})});var p=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),x=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);d.forEach(function(f,b){f.forEach(function(w,k){p[b]=Math.min(w.value,p[b])})}),g.forEach(function(f,b){f.forEach(function(w,k){x[b]=Math.max(w.value,x[b])})}),e.forEach(function(f,b){g.forEach(function(w,k){var A=p[k],h=x[k];s.chart.stacked&&(h=0,w.forEach(function(u,m){u.value!==-Number.MAX_VALUE&&(h+=u.value),A!==Number.MIN_VALUE&&(A+=d[k][m].value)})),w.forEach(function(u,m){w[m].key===b&&(s.yaxis[b].min!==void 0&&(A=typeof s.yaxis[b].min=="function"?s.yaxis[b].min(o.minY):s.yaxis[b].min),s.yaxis[b].max!==void 0&&(h=typeof s.yaxis[b].max=="function"?s.yaxis[b].max(o.maxY):s.yaxis[b].max),a.setYScaleForIndex(b,A,h))})})})}},{key:"autoScaleY",value:function(e,t,i){e||(e=this);var a=e.w;if(a.globals.isMultipleYAxis||a.globals.collapsedSeries.length)return console.warn("autoScaleYaxis is not supported in a multi-yaxis chart."),t;var s=a.globals.seriesX[0],o=a.config.chart.stacked;return t.forEach(function(r,n){for(var l=0,c=0;c<s.length;c++)if(s[c]>=i.xaxis.min){l=c;break}var d,g,p=a.globals.minYArr[n],x=a.globals.maxYArr[n],f=a.globals.stackedSeriesTotals;a.globals.series.forEach(function(b,w){var k=b[l];o?(k=f[l],d=g=k,f.forEach(function(A,h){s[h]<=i.xaxis.max&&s[h]>=i.xaxis.min&&(A>g&&A!==null&&(g=A),b[h]<d&&b[h]!==null&&(d=b[h]))})):(d=g=k,b.forEach(function(A,h){if(s[h]<=i.xaxis.max&&s[h]>=i.xaxis.min){var u=A,m=A;a.globals.series.forEach(function(y,S){A!==null&&(u=Math.min(y[h],u),m=Math.max(y[h],m))}),m>g&&m!==null&&(g=m),u<d&&u!==null&&(d=u)}})),d===void 0&&g===void 0&&(d=p,g=x),g*=g<0?.9:1.1,(d*=d<0?1.1:.9)===0&&g===0&&(d=-1,g=1),g<0&&g<x&&(g=x),d<0&&d>p&&(d=p),t.length>1?(t[w].min=r.min===void 0?d:r.min,t[w].max=r.max===void 0?g:r.max):(t[0].min=r.min===void 0?d:r.min,t[0].max=r.max===void 0?g:r.max)})}),t}}]),v}(),Qe=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w,this.scales=new Be(e)}return E(v,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=this.w.config,o=this.w.globals,r=-Number.MAX_VALUE,n=Number.MIN_VALUE;a===null&&(a=e+1);var l=o.series,c=l,d=l;s.chart.type==="candlestick"?(c=o.seriesCandleL,d=o.seriesCandleH):s.chart.type==="boxPlot"?(c=o.seriesCandleO,d=o.seriesCandleC):o.isRangeData&&(c=o.seriesRangeStart,d=o.seriesRangeEnd);for(var g=e;g<a;g++){o.dataPoints=Math.max(o.dataPoints,l[g].length),o.categoryLabels.length&&(o.dataPoints=o.categoryLabels.filter(function(f){return f!==void 0}).length);for(var p=0;p<o.series[g].length;p++){var x=l[g][p];x!==null&&C.isNumber(x)?(d[g][p]!==void 0&&(r=Math.max(r,d[g][p]),t=Math.min(t,d[g][p])),c[g][p]!==void 0&&(t=Math.min(t,c[g][p]),i=Math.max(i,c[g][p])),this.w.config.chart.type!=="candlestick"&&this.w.config.chart.type!=="boxPlot"||(o.seriesCandleC[g][p]!==void 0&&(r=Math.max(r,o.seriesCandleO[g][p]),r=Math.max(r,o.seriesCandleH[g][p]),r=Math.max(r,o.seriesCandleL[g][p]),r=Math.max(r,o.seriesCandleC[g][p]),this.w.config.chart.type==="boxPlot"&&(r=Math.max(r,o.seriesCandleM[g][p]))),!s.series[g].type||s.series[g].type==="candlestick"&&s.series[g].type==="boxPlot"||(r=Math.max(r,o.series[g][p]),t=Math.min(t,o.series[g][p])),i=r),o.seriesGoals[g]&&o.seriesGoals[g][p]&&Array.isArray(o.seriesGoals[g][p])&&o.seriesGoals[g][p].forEach(function(f){n!==Number.MIN_VALUE&&(n=Math.min(n,f.value),t=n),r=Math.max(r,f.value),i=r}),C.isFloat(x)&&(x=C.noExponents(x),o.yValueDecimal=Math.max(o.yValueDecimal,x.toString().split(".")[1].length)),n>c[g][p]&&c[g][p]<0&&(n=c[g][p])):o.hasNullValues=!0}}return s.chart.type==="rangeBar"&&o.seriesRangeStart.length&&o.isBarHorizontal&&(n=t),s.chart.type==="bar"&&(n<0&&r<0&&(r=0),n===Number.MIN_VALUE&&(n=0)),{minY:n,maxY:r,lowestY:t,highestY:i}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(e.isMultipleYAxis)for(var a=0;a<e.series.length;a++){var s=this.getMinYMaxY(a,i,null,a+1);e.minYArr.push(s.minY),e.maxYArr.push(s.maxY),i=s.lowestY}var o=this.getMinYMaxY(0,i,null,e.series.length);if(e.minY=o.minY,e.maxY=o.maxY,i=o.lowestY,t.chart.stacked&&this._setStackedMinMax(),(t.chart.type==="line"||t.chart.type==="area"||t.chart.type==="candlestick"||t.chart.type==="boxPlot"||t.chart.type==="rangeBar"&&!e.isBarHorizontal)&&e.minY===Number.MIN_VALUE&&i!==-Number.MAX_VALUE&&i!==e.maxY){var r=e.maxY-i;(i>=0&&i<=10||t.yaxis[0].min!==void 0||t.yaxis[0].max!==void 0)&&(r=0),e.minY=i-5*r/100,i>0&&e.minY<0&&(e.minY=0),e.maxY=e.maxY+5*r/100}return t.yaxis.forEach(function(n,l){n.max!==void 0&&(typeof n.max=="number"?e.maxYArr[l]=n.max:typeof n.max=="function"&&(e.maxYArr[l]=n.max(e.isMultipleYAxis?e.maxYArr[l]:e.maxY)),e.maxY=e.maxYArr[l]),n.min!==void 0&&(typeof n.min=="number"?e.minYArr[l]=n.min:typeof n.min=="function"&&(e.minYArr[l]=n.min(e.isMultipleYAxis?e.minYArr[l]===Number.MIN_VALUE?0:e.minYArr[l]:e.minY)),e.minY=e.minYArr[l])}),e.isBarHorizontal&&["min","max"].forEach(function(n){t.xaxis[n]!==void 0&&typeof t.xaxis[n]=="number"&&(n==="min"?e.minY=t.xaxis[n]:e.maxY=t.xaxis[n])}),e.isMultipleYAxis?(this.scales.setMultipleYScales(),e.minY=i,e.yAxisScale.forEach(function(n,l){e.minYArr[l]=n.niceMin,e.maxYArr[l]=n.niceMax})):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.yAxisScale[0].niceMin,e.maxYArr[0]=e.yAxisScale[0].niceMax),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,t=this.w.config,i=t.xaxis.type==="numeric"||t.xaxis.type==="datetime"||t.xaxis.type==="category"&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var r=0;r<e.series.length;r++)if(e.labels[r])for(var n=0;n<e.labels[r].length;n++)e.labels[r][n]!==null&&C.isNumber(e.labels[r][n])&&(e.maxX=Math.max(e.maxX,e.labels[r][n]),e.initialMaxX=Math.max(e.maxX,e.labels[r][n]),e.minX=Math.min(e.minX,e.labels[r][n]),e.initialMinX=Math.min(e.minX,e.labels[r][n]))}(),e.noLabelsProvided&&t.xaxis.categories.length===0&&(e.maxX=e.labels[e.labels.length-1],e.initialMaxX=e.labels[e.labels.length-1],e.minX=1,e.initialMinX=1),e.isXNumeric||e.noLabelsProvided||e.dataFormatXNumeric){var a;if(t.xaxis.tickAmount===void 0?(a=Math.round(e.svgWidth/150),t.xaxis.type==="numeric"&&e.dataPoints<30&&(a=e.dataPoints-1),a>e.dataPoints&&e.dataPoints!==0&&(a=e.dataPoints-1)):t.xaxis.tickAmount==="dataPoints"?(e.series.length>1&&(a=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric&&(a=e.maxX-e.minX-1)):a=t.xaxis.tickAmount,e.xTickAmount=a,t.xaxis.max!==void 0&&typeof t.xaxis.max=="number"&&(e.maxX=t.xaxis.max),t.xaxis.min!==void 0&&typeof t.xaxis.min=="number"&&(e.minX=t.xaxis.min),t.xaxis.range!==void 0&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var s=[],o=e.minX-1;o<e.maxX;o++)s.push(o+1);e.xAxisScale={result:s,niceMin:s[0],niceMax:s[s.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(1,a,a),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,a-1),e.seriesX=e.labels.slice());i&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ){for(var t=0;t<e.series.length;t++)if(e.seriesZ[t]!==void 0)for(var i=0;i<e.seriesZ[t].length;i++)e.seriesZ[t][i]!==null&&C.isNumber(e.seriesZ[t][i])&&(e.maxZ=Math.max(e.maxZ,e.seriesZ[t][i]),e.minZ=Math.min(e.minZ,e.seriesZ[t][i]))}}},{key:"_handleSingleDataPoint",value:function(){var e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){var i=new te(this.ctx);if(t.xaxis.type==="datetime"){var a=i.getDate(e.minX);t.xaxis.labels.datetimeUTC?a.setUTCDate(a.getUTCDate()-2):a.setDate(a.getDate()-2),e.minX=new Date(a).getTime();var s=i.getDate(e.maxX);t.xaxis.labels.datetimeUTC?s.setUTCDate(s.getUTCDate()+2):s.setDate(s.getDate()+2),e.maxX=new Date(s).getTime()}else(t.xaxis.type==="numeric"||t.xaxis.type==="category"&&!e.noLabelsProvided)&&(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}},{key:"_getMinXDiff",value:function(){var e=this.w.globals;e.isXNumeric&&e.seriesX.forEach(function(t,i){t.length===1&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var a=t.slice();a.sort(function(s,o){return s-o}),a.forEach(function(s,o){if(o>0){var r=s-a[o-1];r>0&&(e.minXDiff=Math.min(r,e.minXDiff))}}),e.dataPoints!==1&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var e=this.w.globals,t=[],i=[];if(e.series.length)for(var a=0;a<e.series[e.maxValsInArrayIndex].length;a++)for(var s=0,o=0,r=0;r<e.series.length;r++)e.series[r][a]!==null&&C.isNumber(e.series[r][a])&&(e.series[r][a]>0?s=s+parseFloat(e.series[r][a])+1e-4:o+=parseFloat(e.series[r][a])),r===e.series.length-1&&(t.push(s),i.push(o));for(var n=0;n<t.length;n++)e.maxY=Math.max(e.maxY,t[n]),e.minY=Math.min(e.minY,i[n])}}]),v}(),et=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w;var t=this.w;this.xaxisFontSize=t.config.xaxis.labels.style.fontSize,this.axisFontFamily=t.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=t.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=t.config.chart.type==="bar"&&t.config.plotOptions.bar.horizontal,this.xAxisoffX=0,t.config.xaxis.position==="bottom"&&(this.xAxisoffX=t.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new Le(e)}return E(v,[{key:"drawYaxis",value:function(e){var t=this,i=this.w,a=new M(this.ctx),s=i.config.yaxis[e].labels.style,o=s.fontSize,r=s.fontFamily,n=s.fontWeight,l=a.group({class:"apexcharts-yaxis",rel:e,transform:"translate("+i.globals.translateYAxisX[e]+", 0)"});if(this.axesUtils.isYAxisHidden(e))return l;var c=a.group({class:"apexcharts-yaxis-texts-g"});l.add(c);var d=i.globals.yAxisScale[e].result.length-1,g=i.globals.gridHeight/d,p=i.globals.translateY,x=i.globals.yLabelFormatters[e],f=i.globals.yAxisScale[e].result.slice();f=this.axesUtils.checkForReversedLabels(e,f);var b="";if(i.config.yaxis[e].labels.show)for(var w=function(P){var L=f[P];L=x(L,P,i);var z=i.config.yaxis[e].labels.padding;i.config.yaxis[e].opposite&&i.config.yaxis.length!==0&&(z*=-1);var T=t.axesUtils.getYAxisForeColor(s.colors,e),Y=a.drawText({x:z,y:p+d/10+i.config.yaxis[e].labels.offsetY+1,text:L,textAnchor:i.config.yaxis[e].opposite?"start":"end",fontSize:o,fontFamily:r,fontWeight:n,maxWidth:i.config.yaxis[e].labels.maxWidth,foreColor:Array.isArray(T)?T[P]:T,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+s.cssClass});P===d&&(b=Y),c.add(Y);var H=document.createElementNS(i.globals.SVGNS,"title");if(H.textContent=Array.isArray(L)?L.join(" "):L,Y.node.appendChild(H),i.config.yaxis[e].labels.rotate!==0){var q=a.rotateAroundCenter(b.node),_=a.rotateAroundCenter(Y.node);Y.node.setAttribute("transform","rotate(".concat(i.config.yaxis[e].labels.rotate," ").concat(q.x," ").concat(_.y,")"))}p+=g},k=d;k>=0;k--)w(k);if(i.config.yaxis[e].title.text!==void 0){var A=a.group({class:"apexcharts-yaxis-title"}),h=0;i.config.yaxis[e].opposite&&(h=i.globals.translateYAxisX[e]);var u=a.drawText({x:h,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[e].title.offsetY,text:i.config.yaxis[e].title.text,textAnchor:"end",foreColor:i.config.yaxis[e].title.style.color,fontSize:i.config.yaxis[e].title.style.fontSize,fontWeight:i.config.yaxis[e].title.style.fontWeight,fontFamily:i.config.yaxis[e].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[e].title.style.cssClass});A.add(u),l.add(A)}var m=i.config.yaxis[e].axisBorder,y=31+m.offsetX;if(i.config.yaxis[e].opposite&&(y=-31-m.offsetX),m.show){var S=a.drawLine(y,i.globals.translateY+m.offsetY-2,y,i.globals.gridHeight+i.globals.translateY+m.offsetY+2,m.color,0,m.width);l.add(S)}return i.config.yaxis[e].axisTicks.show&&this.axesUtils.drawYAxisTicks(y,d,m,i.config.yaxis[e].axisTicks,e,g,l),l}},{key:"drawYaxisInversed",value:function(e){var t=this.w,i=new M(this.ctx),a=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),s=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});a.add(s);var o=t.globals.yAxisScale[e].result.length-1,r=t.globals.gridWidth/o+.1,n=r+t.config.xaxis.labels.offsetX,l=t.globals.xLabelFormatter,c=t.globals.yAxisScale[e].result.slice(),d=t.globals.timescaleLabels;d.length>0&&(this.xaxisLabels=d.slice(),o=(c=d.slice()).length),c=this.axesUtils.checkForReversedLabels(e,c);var g=d.length;if(t.config.xaxis.labels.show)for(var p=g?0:o;g?p<g:p>=0;g?p++:p--){var x=c[p];x=l(x,p,t);var f=t.globals.gridWidth+t.globals.padHorizontal-(n-r+t.config.xaxis.labels.offsetX);if(d.length){var b=this.axesUtils.getLabel(c,d,f,p,this.drawnLabels,this.xaxisFontSize);f=b.x,x=b.text,this.drawnLabels.push(b.text),p===0&&t.globals.skipFirstTimelinelabel&&(x=""),p===c.length-1&&t.globals.skipLastTimelinelabel&&(x="")}var w=i.drawText({x:f,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:x,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]: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});s.add(w),w.tspan(x);var k=document.createElementNS(t.globals.SVGNS,"title");k.textContent=x,w.node.appendChild(k),n+=r}return this.inversedYAxisTitleText(a),this.inversedYAxisBorder(a),a}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,i=new M(this.ctx),a=t.config.xaxis.axisBorder;if(a.show){var s=0;t.config.chart.type==="bar"&&t.globals.isXNumeric&&(s-=15);var o=i.drawLine(t.globals.padHorizontal+s+a.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,a.color,0,a.height);e.add(o)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,i=new M(this.ctx);if(t.config.xaxis.title.text!==void 0){var a=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),s=i.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});a.add(s),e.add(a)}}},{key:"yAxisTitleRotate",value:function(e,t){var i=this.w,a=new M(this.ctx),s={width:0,height:0},o={width:0,height:0},r=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g"));r!==null&&(s=r.getBoundingClientRect());var n=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text"));if(n!==null&&(o=n.getBoundingClientRect()),n!==null){var l=this.xPaddingForYAxisTitle(e,s,o,t);n.setAttribute("x",l.xPos-(t?10:0))}if(n!==null){var c=a.rotateAroundCenter(n);n.setAttribute("transform","rotate(".concat(t?-1*i.config.yaxis[e].title.rotate:i.config.yaxis[e].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,i,a){var s=this.w,o=0,r=0,n=10;return s.config.yaxis[e].title.text===void 0||e<0?{xPos:r,padd:0}:(a?(r=t.width+s.config.yaxis[e].title.offsetX+i.width/2+n/2,(o+=1)===0&&(r-=n/2)):(r=-1*t.width+s.config.yaxis[e].title.offsetX+n/2+i.width/2,s.globals.isBarHorizontal&&(n=25,r=-1*t.width-s.config.yaxis[e].title.offsetX-n)),{xPos:r,padd:n})}},{key:"setYAxisXPosition",value:function(e,t){var i=this.w,a=0,s=0,o=18,r=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map(function(n,l){var c=i.globals.ignoreYAxisIndexes.indexOf(l)>-1||!n.show||n.floating||e[l].width===0,d=e[l].width+t[l].width;n.opposite?i.globals.isBarHorizontal?(s=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[l]=s-n.labels.offsetX):(s=i.globals.gridWidth+i.globals.translateX+r,c||(r=r+d+20),i.globals.translateYAxisX[l]=s-n.labels.offsetX+20):(a=i.globals.translateX-o,c||(o=o+d+20),i.globals.translateYAxisX[l]=a+n.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(t=C.listToArray(t)).forEach(function(i,a){var s=e.config.yaxis[a];if(s&&s.labels.align!==void 0){var o=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(a,"'] .apexcharts-yaxis-texts-g")),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(a,"'] .apexcharts-yaxis-label"));r=C.listToArray(r);var n=o.getBoundingClientRect();s.labels.align==="left"?(r.forEach(function(l,c){l.setAttribute("text-anchor","start")}),s.opposite||o.setAttribute("transform","translate(-".concat(n.width,", 0)"))):s.labels.align==="center"?(r.forEach(function(l,c){l.setAttribute("text-anchor","middle")}),o.setAttribute("transform","translate(".concat(n.width/2*(s.opposite?1:-1),", 0)"))):s.labels.align==="right"&&(r.forEach(function(l,c){l.setAttribute("text-anchor","end")}),s.opposite&&o.setAttribute("transform","translate(".concat(n.width,", 0)")))}})}}]),v}(),kt=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w,this.documentEvent=C.bind(this.documentEvent,this)}return E(v,[{key:"addEventListener",value:function(e,t){var i=this.w;i.globals.events.hasOwnProperty(e)?i.globals.events[e].push(t):i.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var i=this.w;if(i.globals.events.hasOwnProperty(e)){var a=i.globals.events[e].indexOf(t);a!==-1&&i.globals.events[e].splice(a,1)}}},{key:"fireEvent",value:function(e,t){var i=this.w;if(i.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var a=i.globals.events[e],s=a.length,o=0;o<s;o++)a[o].apply(null,t)}}},{key:"setupEventHandlers",value:function(){var e=this,t=this.w,i=this.ctx,a=t.globals.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach(function(s){a.addEventListener(s,function(o){var r=Object.assign({},t,{seriesIndex:t.globals.capturedSeriesIndex,dataPointIndex:t.globals.capturedDataPointIndex});o.type==="mousemove"||o.type==="touchmove"?typeof t.config.chart.events.mouseMove=="function"&&t.config.chart.events.mouseMove(o,i,r):o.type==="mouseleave"||o.type==="touchleave"?typeof t.config.chart.events.mouseLeave=="function"&&t.config.chart.events.mouseLeave(o,i,r):(o.type==="mouseup"&&o.which===1||o.type==="touchend")&&(typeof t.config.chart.events.click=="function"&&t.config.chart.events.click(o,i,r),i.ctx.events.fireEvent("click",[o,i,r]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(s){t.globals.dom.baseEl.addEventListener(s,e.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(e){var t=this.w,i=e.target.className;if(e.type==="click"){var a=t.globals.dom.baseEl.querySelector(".apexcharts-menu");a&&a.classList.contains("apexcharts-menu-open")&&i!=="apexcharts-menu-icon"&&a.classList.remove("apexcharts-menu-open")}t.globals.clientX=e.type==="touchmove"?e.touches[0].clientX:e.clientX,t.globals.clientY=e.type==="touchmove"?e.touches[0].clientY:e.clientY}}]),v}(),At=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"setCurrentLocaleValues",value:function(e){var t=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=t.filter(function(s){return s.name===e})[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var a=C.extend(We,i);this.w.globals.locale=a.options}}]),v}(),St=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"drawAxis",value:function(e,t){var i,a,s=this.w.globals,o=this.w.config,r=new Ye(this.ctx),n=new et(this.ctx);s.axisCharts&&e!=="radar"&&(s.isBarHorizontal?(a=n.drawYaxisInversed(0),i=r.drawXaxisInversed(0),s.dom.elGraphical.add(i),s.dom.elGraphical.add(a)):(i=r.drawXaxis(),s.dom.elGraphical.add(i),o.yaxis.map(function(l,c){s.ignoreYAxisIndexes.indexOf(c)===-1&&(a=n.drawYaxis(c),s.dom.Paper.add(a))})))}}]),v}(),tt=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new M(this.ctx),i=new J(this.ctx),a=e.config.xaxis.crosshairs.fill.gradient,s=e.config.xaxis.crosshairs.dropShadow,o=e.config.xaxis.crosshairs.fill.type,r=a.colorFrom,n=a.colorTo,l=a.opacityFrom,c=a.opacityTo,d=a.stops,g=s.enabled,p=s.left,x=s.top,f=s.blur,b=s.color,w=s.opacity,k=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){o==="gradient"&&(k=t.drawGradient("vertical",r,n,l,c,null,d,null));var A=t.drawRect();e.config.xaxis.crosshairs.width===1&&(A=t.drawLine());var h=e.globals.gridHeight;(!C.isNumber(h)||h<0)&&(h=0);var u=e.config.xaxis.crosshairs.width;(!C.isNumber(u)||u<0)&&(u=0),A.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:h,width:u,height:h,fill:k,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),g&&(A=i.dropShadow(A,{left:p,top:x,blur:f,color:b,opacity:w})),e.globals.dom.elGraphical.add(A)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new M(this.ctx),i=e.config.yaxis[0].crosshairs,a=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var s=t.drawLine(-a,0,e.globals.gridWidth+a,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);s.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(s)}var o=t.drawLine(-a,0,e.globals.gridWidth+a,0,i.stroke.color,0,0);o.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(o)}}]),v}(),Ct=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"checkResponsiveConfig",value:function(e){var t=this,i=this.w,a=i.config;if(a.responsive.length!==0){var s=a.responsive.slice();s.sort(function(l,c){return l.breakpoint>c.breakpoint?1:c.breakpoint>l.breakpoint?-1:0}).reverse();var o=new O({}),r=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=s[0].breakpoint,d=window.innerWidth>0?window.innerWidth:screen.width;if(d>c){var g=Z.extendArrayProps(o,i.globals.initialConfig,i);l=C.extend(g,l),l=C.extend(i.config,l),t.overrideResponsiveOptions(l)}else for(var p=0;p<s.length;p++)d<s[p].breakpoint&&(l=Z.extendArrayProps(o,s[p].options,i),l=C.extend(i.config,l),t.overrideResponsiveOptions(l))};if(e){var n=Z.extendArrayProps(o,e,i);n=C.extend(i.config,n),r(n=C.extend(n,e))}else r({})}}},{key:"overrideResponsiveOptions",value:function(e){var t=new O(e).init({responsiveOverride:!0});this.w.config=t}}]),v}(),Lt=function(){function v(e){I(this,v),this.ctx=e,this.colors=[],this.w=e.w;var t=this.w;this.isColorFn=!1,this.isHeatmapDistributed=t.config.chart.type==="treemap"&&t.config.plotOptions.treemap.distributed||t.config.chart.type==="heatmap"&&t.config.plotOptions.heatmap.distributed,this.isBarDistributed=t.config.plotOptions.bar.distributed&&(t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")}return E(v,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e=this,t=this.w,i=new C;if(t.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(t.config.theme.mode)),t.config.colors===void 0?t.globals.colors=this.predefined():(t.globals.colors=t.config.colors,Array.isArray(t.config.colors)&&t.config.colors.length>0&&typeof t.config.colors[0]=="function"&&(t.globals.colors=t.config.series.map(function(p,x){var f=t.config.colors[x];return f||(f=t.config.colors[0]),typeof f=="function"?(e.isColorFn=!0,f({value:t.globals.axisCharts?t.globals.series[x][0]?t.globals.series[x][0]:0:t.globals.series[x],seriesIndex:x,dataPointIndex:x,w:t})):f}))),t.globals.seriesColors.map(function(p,x){p&&(t.globals.colors[x]=p)}),t.config.theme.monochrome.enabled){var a=[],s=t.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(s=t.globals.series[0].length*t.globals.series.length);for(var o=t.config.theme.monochrome.color,r=1/(s/t.config.theme.monochrome.shadeIntensity),n=t.config.theme.monochrome.shadeTo,l=0,c=0;c<s;c++){var d=void 0;n==="dark"?(d=i.shadeColor(-1*l,o),l+=r):(d=i.shadeColor(l,o),l+=r),a.push(d)}t.globals.colors=a.slice()}var g=t.globals.colors.slice();this.pushExtraColors(t.globals.colors),["fill","stroke"].forEach(function(p){t.config[p].colors===void 0?t.globals[p].colors=e.isColorFn?t.config.colors:g:t.globals[p].colors=t.config[p].colors.slice(),e.pushExtraColors(t.globals[p].colors)}),t.config.dataLabels.style.colors===void 0?t.globals.dataLabels.style.colors=g:t.globals.dataLabels.style.colors=t.config.dataLabels.style.colors.slice(),this.pushExtraColors(t.globals.dataLabels.style.colors,50),t.config.plotOptions.radar.polygons.fill.colors===void 0?t.globals.radarPolygons.fill.colors=[t.config.theme.mode==="dark"?"#424242":"none"]:t.globals.radarPolygons.fill.colors=t.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(t.globals.radarPolygons.fill.colors,20),t.config.markers.colors===void 0?t.globals.markers.colors=g:t.globals.markers.colors=t.config.markers.colors.slice(),this.pushExtraColors(t.globals.markers.colors)}},{key:"pushExtraColors",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=this.w,s=t||a.globals.series.length;if(i===null&&(i=this.isBarDistributed||this.isHeatmapDistributed||a.config.chart.type==="heatmap"&&a.config.plotOptions.heatmap.colorScale.inverse),i&&a.globals.series.length&&(s=a.globals.series[a.globals.maxValsInArrayIndex].length*a.globals.series.length),e.length<s)for(var o=s-e.length,r=0;r<o;r++)e.push(e[r])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var t=e.theme.mode||"light",i=e.theme.palette?e.theme.palette:t==="dark"?"palette4":"palette1",a=e.chart.foreColor?e.chart.foreColor:t==="dark"?"#f6f7f8":"#373d3f";return e.tooltip.theme=t,e.chart.foreColor=a,e.theme.palette=i,e}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"];break;default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"]}return this.colors}}]),v}(),Pt=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(e){var t=this.w,i=e==="title"?t.config.title:t.config.subtitle,a=t.globals.svgWidth/2,s=i.offsetY,o="middle";if(i.align==="left"?(a=10,o="start"):i.align==="right"&&(a=t.globals.svgWidth-10,o="end"),a+=i.offsetX,s=s+parseInt(i.style.fontSize,10)+i.margin/2,i.text!==void 0){var r=new M(this.ctx).drawText({x:a,y:s,text:i.text,textAnchor:o,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});r.node.setAttribute("class","apexcharts-".concat(e,"-text")),t.globals.dom.Paper.add(r)}}}]),v}(),Mt=function(){function v(e){I(this,v),this.w=e.w,this.dCtx=e}return E(v,[{key:"getTitleSubtitleCoords",value:function(e){var t=this.w,i=0,a=0,s=e==="title"?t.config.title.floating:t.config.subtitle.floating,o=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(o!==null&&!s){var r=o.getBoundingClientRect();i=r.width,a=t.globals.axisCharts?r.height+5:r.height}return{width:i,height:a}}},{key:"getLegendsRect",value:function(){var e=this.w,t=e.globals.dom.baseEl.querySelector(".apexcharts-legend");e.config.legend.height||e.config.legend.position!=="top"&&e.config.legend.position!=="bottom"||(t.style.maxHeight=e.globals.svgHeight/2+"px");var i=Object.assign({},C.getBoundingClientRect(t));return t!==null&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:i.x,y:i.y,height:i.height,width:i.height===0?0:i.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},e.config.legend.position!=="left"&&e.config.legend.position!=="right"||1.5*this.dCtx.lgRect.width>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(e,t){var i=e;if(this.w.globals.isMultiLineX){var a=t.map(function(o,r){return Array.isArray(o)?o.length:1}),s=Math.max.apply(Math,V(a));i=t[a.indexOf(s)]}return i}}]),v}(),Tt=function(){function v(e){I(this,v),this.w=e.w,this.dCtx=e}return E(v,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,i=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&i.length===0&&(i=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var a=this.getxAxisTimeScaleLabelsCoords();e={width:a.width,height:a.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 s=t.globals.xLabelFormatter,o=C.getLargestStringFromArr(i),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,i);t.globals.isBarHorizontal&&(r=o=t.globals.yAxisScale[0].result.reduce(function(x,f){return x.length>f.length?x:f},0));var n=new Xe(this.dCtx.ctx),l=o;o=n.xLabelFormat(s,o,l,{i:void 0,dateFormatter:new te(this.dCtx.ctx).formatDate,w:t}),r=n.xLabelFormat(s,r,l,{i:void 0,dateFormatter:new te(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&o===void 0||String(o).trim()==="")&&(r=o="1");var c=new M(this.dCtx.ctx),d=c.getTextRects(o,t.config.xaxis.labels.style.fontSize),g=d;if(o!==r&&(g=c.getTextRects(r,t.config.xaxis.labels.style.fontSize)),(e={width:d.width>=g.width?d.width:g.width,height:d.height>=g.height?d.height:g.height}).width*i.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 p=function(x){return c.getTextRects(x,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};d=p(o),o!==r&&(g=p(r)),e.height=(d.height>g.height?d.height:g.height)/1.5,e.width=d.width>g.width?d.width:g.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var e,t=this.w;if(!t.globals.hasGroups)return{width:0,height:0};var i,a=((e=t.config.xaxis.group.style)===null||e===void 0?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,s=t.globals.groups.map(function(d){return d.title}),o=C.getLargestStringFromArr(s),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,s),n=new M(this.dCtx.ctx),l=n.getTextRects(o,a),c=l;return o!==r&&(c=n.getTextRects(r,a)),i={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},t.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,i=0;if(e.config.xaxis.title.text!==void 0){var a=new M(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=a.width,i=a.height}return{width:t,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map(function(s){return s.value}),a=i.reduce(function(s,o){return s===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):s.length>o.length?s:o},0);return 1.05*(e=new M(this.dCtx.ctx).getTextRects(a,t.config.xaxis.labels.style.fontSize)).width*i.length>t.globals.gridWidth&&t.config.xaxis.labels.rotate!==0&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,i=this.w,a=i.globals,s=i.config,o=s.xaxis.type,r=e.width;a.skipLastTimelinelabel=!1,a.skipFirstTimelinelabel=!1;var n=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,l=function(c,d){(function(g){return a.collapsedSeriesIndices.indexOf(g)!==-1})(d)||function(g){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var p=t.dCtx.timescaleLabels[0],x=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+r/1.75-t.dCtx.yAxisWidthRight,f=p.position-r/1.75+t.dCtx.yAxisWidthLeft,b=i.config.legend.position==="right"&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;x>a.svgWidth-a.translateX-b&&(a.skipLastTimelinelabel=!0),f<-(g.show&&!g.floating||s.chart.type!=="bar"&&s.chart.type!=="candlestick"&&s.chart.type!=="rangeBar"&&s.chart.type!=="boxPlot"?10:r/1.75)&&(a.skipFirstTimelinelabel=!0)}else o==="datetime"?t.dCtx.gridPad.right<r&&!a.rotateXLabels&&(a.skipLastTimelinelabel=!0):o!=="datetime"&&t.dCtx.gridPad.right<r/2-t.dCtx.yAxisWidthRight&&!a.rotateXLabels&&!i.config.xaxis.labels.trim&&(i.config.xaxis.tickPlacement!=="between"||i.globals.isBarHorizontal)&&(t.dCtx.xPadRight=r/2+1)}(c)};s.yaxis.forEach(function(c,d){n?(t.dCtx.gridPad.left<r&&(t.dCtx.xPadLeft=r/2+1),t.dCtx.xPadRight=r/2+1):l(c,d)})}}]),v}(),zt=function(){function v(e){I(this,v),this.w=e.w,this.dCtx=e}return E(v,[{key:"getyAxisLabelsCoords",value:function(){var e=this,t=this.w,i=[],a=10,s=new Le(this.dCtx.ctx);return t.config.yaxis.map(function(o,r){var n=t.globals.yAxisScale[r],l=0;if(!s.isYAxisHidden(r)&&o.labels.show&&o.labels.minWidth!==void 0&&(l=o.labels.minWidth),!s.isYAxisHidden(r)&&o.labels.show&&n.result.length){var c=t.globals.yLabelFormatters[r],d=n.niceMin===Number.MIN_VALUE?0:n.niceMin,g=String(d).length>String(n.niceMax).length?d:n.niceMax,p=c(g,{seriesIndex:r,dataPointIndex:-1,w:t}),x=p;if(p!==void 0&&p.length!==0||(p=g),t.globals.isBarHorizontal){a=0;var f=t.globals.labels.slice();p=c(p=C.getLargestStringFromArr(f),{seriesIndex:r,dataPointIndex:-1,w:t}),x=e.dCtx.dimHelpers.getLargestStringFromMultiArr(p,f)}var b=new M(e.dCtx.ctx),w="rotate(".concat(o.labels.rotate," 0 0)"),k=b.getTextRects(p,o.labels.style.fontSize,o.labels.style.fontFamily,w,!1),A=k;p!==x&&(A=b.getTextRects(x,o.labels.style.fontSize,o.labels.style.fontFamily,w,!1)),i.push({width:(l>A.width||l>k.width?l:A.width>k.width?A.width:k.width)+a,height:A.height>k.height?A.height:k.height})}else i.push({width:0,height:0})}),i}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,i=[];return t.config.yaxis.map(function(a,s){if(a.show&&a.title.text!==void 0){var o=new M(e.dCtx.ctx),r="rotate(".concat(a.title.rotate," 0 0)"),n=o.getTextRects(a.title.text,a.title.style.fontSize,a.title.style.fontFamily,r,!1);i.push({width:n.width,height:n.height})}else i.push({width:0,height:0})}),i}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,i=0,a=0,s=e.globals.yAxisScale.length>1?10:0,o=new Le(this.dCtx.ctx),r=function(n,l){var c=e.config.yaxis[l].floating,d=0;n.width>0&&!c?(d=n.width+s,function(g){return e.globals.ignoreYAxisIndexes.indexOf(g)>-1}(l)&&(d=d-n.width-s)):d=c||o.isYAxisHidden(l)?0:5,e.config.yaxis[l].opposite?a+=d:i+=d,t+=d};return e.globals.yLabelsCoords.map(function(n,l){r(n,l)}),e.globals.yTitleCoords.map(function(n,l){r(n,l)}),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=a,t}}]),v}(),It=function(){function v(e){I(this,v),this.w=e.w,this.dCtx=e}return E(v,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w;if(t.globals.noData||t.globals.allSeriesCollapsed)return 0;var i=function(c){return c==="bar"||c==="rangeBar"||c==="candlestick"||c==="boxPlot"},a=t.config.chart.type,s=0,o=i(a)?t.config.series.length:1;if(t.globals.comboBarCount>0&&(o=t.globals.comboBarCount),t.globals.collapsedSeries.forEach(function(c){i(c.type)&&(o-=1)}),t.config.chart.stacked&&(o=1),(i(a)||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&o>0){var r,n,l=Math.abs(t.globals.initialMaxX-t.globals.initialMinX);l<=3&&(l=t.globals.dataPoints),r=l/e,t.globals.minXDiff&&t.globals.minXDiff/r>0&&(n=t.globals.minXDiff/r),n>e/2&&(n/=2),(s=n/o*parseInt(t.config.plotOptions.bar.columnWidth,10)/100)<1&&(s=1),s=s/(o>1?1:1.5)+5,t.globals.barPadForNumericAxis=s}return s}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,i=t.globals,a=this.dCtx.isSparkline||!t.globals.axisCharts?0:10;["title","subtitle"].forEach(function(r){t.config[r].text!==void 0?a+=t.config[r].margin:a+=e.dCtx.isSparkline||!t.globals.axisCharts?0:5}),!t.config.legend.show||t.config.legend.position!=="bottom"||t.config.legend.floating||t.globals.axisCharts||(a+=10);var s=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),o=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-s.height-o.height-a,i.translateY=i.translateY+s.height+o.height+a}},{key:"setGridXPosForDualYAxis",value:function(e,t){var i=this.w,a=new Le(this.dCtx.ctx);i.config.yaxis.map(function(s,o){i.globals.ignoreYAxisIndexes.indexOf(o)!==-1||s.floating||a.isYAxisHidden(o)||(s.opposite&&(i.globals.translateX=i.globals.translateX-(t[o].width+e[o].width)-parseInt(i.config.yaxis[o].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))})}}]),v}(),$e=function(){function v(e){I(this,v),this.ctx=e,this.w=e.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 Mt(this),this.dimYAxis=new zt(this),this.dimXAxis=new Tt(this),this.dimGrid=new It(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return E(v,[{key:"plotCoords",value:function(){var e=this,t=this.w,i=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&(t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(s){var o=De(s,2),r=o[0],n=o[1];e.gridPad[r]=Math.max(n,e.w.globals.markers.largestSize/1.5)}),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var a=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*a,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(a>0?a+4:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,i=t.globals,a=this.dimYAxis.getyAxisLabelsCoords(),s=this.dimYAxis.getyAxisTitleCoords();t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map(function(p,x){t.globals.yLabelsCoords.push({width:a[x].width,index:x}),t.globals.yTitleCoords.push({width:s[x].width,index:x})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var o=this.dimXAxis.getxAxisLabelsCoords(),r=this.dimXAxis.getxAxisGroupLabelsCoords(),n=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(o,n,r),i.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+t.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+t.config.xaxis.labels.offsetX;var l=this.yAxisWidth,c=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-n.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-o.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var d=10;(t.config.chart.type==="radar"||this.isSparkline)&&(l=0,c=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||t.config.chart.type==="treemap")&&(l=0,c=0,d=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(o);var g=function(){i.translateX=l,i.gridHeight=i.svgHeight-e.lgRect.height-c-(e.isSparkline||t.config.chart.type==="treemap"?0:t.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-l};switch(t.config.xaxis.position==="top"&&(d=i.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":i.translateY=d,g();break;case"top":i.translateY=this.lgRect.height+d,g();break;case"left":i.translateY=d,i.translateX=this.lgRect.width+l,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-l;break;case"right":i.translateY=d,i.translateX=l,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-l-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(s,a),new et(this.ctx).setYAxisXPosition(a,s)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,i=e.config,a=0;e.config.legend.show&&!e.config.legend.floating&&(a=20);var s=i.chart.type==="pie"||i.chart.type==="polarArea"||i.chart.type==="donut"?"pie":"radialBar",o=i.plotOptions[s].offsetY,r=i.plotOptions[s].offsetX;if(!i.legend.show||i.legend.floating)return t.gridHeight=t.svgHeight-i.grid.padding.left+i.grid.padding.right,t.gridWidth=t.gridHeight,t.translateY=o,void(t.translateX=r+(t.svgWidth-t.gridWidth)/2);switch(i.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=o-10,t.translateX=r+(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+o+10,t.translateX=r+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-a,t.gridHeight=i.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=o,t.translateX=r+this.lgRect.width+a;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-a-5,t.gridHeight=i.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=o,t.translateX=r+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,i){var a=this.w,s=a.globals.hasGroups?2:1,o=i.height+e.height+t.height,r=a.globals.isMultiLineX?1.2:a.globals.LINE_HEIGHT_RATIO,n=a.globals.rotateXLabels?22:10,l=a.globals.rotateXLabels&&a.config.legend.position==="bottom"?10:0;this.xAxisHeight=o*r+s*n+l,this.xAxisWidth=e.width,this.xAxisHeight-t.height>a.config.xaxis.labels.maxHeight&&(this.xAxisHeight=a.config.xaxis.labels.maxHeight),a.config.xaxis.labels.minHeight&&this.xAxisHeight<a.config.xaxis.labels.minHeight&&(this.xAxisHeight=a.config.xaxis.labels.minHeight),a.config.xaxis.floating&&(this.xAxisHeight=0);var c=0,d=0;a.config.yaxis.forEach(function(g){c+=g.labels.minWidth,d+=g.labels.maxWidth}),this.yAxisWidth<c&&(this.yAxisWidth=c),this.yAxisWidth>d&&(this.yAxisWidth=d)}}]),v}(),Et=function(){function v(e){I(this,v),this.w=e.w,this.lgCtx=e}return E(v,[{key:"getLegendStyles",value:function(){var e=document.createElement("style");e.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 e.appendChild(t),e}},{key:"getLegendBBox",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=e.width;return{clwh:e.height,clww:t}}},{key:"appendToForeignObject",value:function(){var e=this.w.globals;e.dom.elLegendForeign=document.createElementNS(e.SVGNS,"foreignObject");var t=e.dom.elLegendForeign;t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("width",e.svgWidth),t.setAttribute("height",e.svgHeight),e.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.appendChild(e.dom.elLegendWrap),t.appendChild(this.getLegendStyles()),e.dom.Paper.node.insertBefore(t,e.dom.elGraphical.node)}},{key:"toggleDataSeries",value:function(e,t){var i=this,a=this.w;if(a.globals.axisCharts||a.config.chart.type==="radialBar"){a.globals.resized=!0;var s=null,o=null;a.globals.risingSeries=[],a.globals.axisCharts?(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),o=parseInt(s.getAttribute("data:realIndex"),10)):(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),o=parseInt(s.getAttribute("rel"),10)-1),t?[{cs:a.globals.collapsedSeries,csi:a.globals.collapsedSeriesIndices},{cs:a.globals.ancillaryCollapsedSeries,csi:a.globals.ancillaryCollapsedSeriesIndices}].forEach(function(c){i.riseCollapsedSeries(c.cs,c.csi,o)}):this.hideSeries({seriesEl:s,realIndex:o})}else{var r=a.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(e+1,"'] path")),n=a.config.chart.type;if(n==="pie"||n==="polarArea"||n==="donut"){var l=a.config.plotOptions.pie.donut.labels;new M(this.lgCtx.ctx).pathMouseDown(r.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(r.members[0].node,l)}r.fire("click")}}},{key:"hideSeries",value:function(e){var t=e.seriesEl,i=e.realIndex,a=this.w,s=C.clone(a.config.series);if(a.globals.axisCharts){var o=!1;if(a.config.yaxis[i]&&a.config.yaxis[i].show&&a.config.yaxis[i].showAlways&&(o=!0,a.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(a.globals.ancillaryCollapsedSeries.push({index:i,data:s[i].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),a.globals.ancillaryCollapsedSeriesIndices.push(i))),!o){a.globals.collapsedSeries.push({index:i,data:s[i].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),a.globals.collapsedSeriesIndices.push(i);var r=a.globals.risingSeries.indexOf(i);a.globals.risingSeries.splice(r,1)}}else a.globals.collapsedSeries.push({index:i,data:s[i]}),a.globals.collapsedSeriesIndices.push(i);for(var n=t.childNodes,l=0;l<n.length;l++)n[l].classList.contains("apexcharts-series-markers-wrap")&&(n[l].classList.contains("apexcharts-hide")?n[l].classList.remove("apexcharts-hide"):n[l].classList.add("apexcharts-hide"));a.globals.allSeriesCollapsed=a.globals.collapsedSeries.length===a.config.series.length,s=this._getSeriesBasedOnCollapsedState(s),this.lgCtx.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(e,t,i){var a=this.w,s=C.clone(a.config.series);if(e.length>0){for(var o=0;o<e.length;o++)e[o].index===i&&(a.globals.axisCharts?(s[i].data=e[o].data.slice(),e.splice(o,1),t.splice(o,1),a.globals.risingSeries.push(i)):(s[i]=e[o].data,e.splice(o,1),t.splice(o,1),a.globals.risingSeries.push(i)));s=this._getSeriesBasedOnCollapsedState(s),this.lgCtx.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(e){var t=this.w;return t.globals.axisCharts?e.forEach(function(i,a){t.globals.collapsedSeriesIndices.indexOf(a)>-1&&(e[a].data=[])}):e.forEach(function(i,a){t.globals.collapsedSeriesIndices.indexOf(a)>-1&&(e[a]=0)}),e}}]),v}(),ht=function(){function v(e,t){I(this,v),this.ctx=e,this.w=e.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new Et(this)}return E(v,[{key:"init",value:function(){var e=this.w,t=e.globals,i=e.config;if((i.legend.showForSingleSeries&&t.series.length===1||this.isBarsDistributed||t.series.length>1||!t.axisCharts)&&i.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),C.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),i.legend.position==="bottom"||i.legend.position==="top"?this.legendAlignHorizontal():i.legend.position!=="right"&&i.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var e=this,t=this.w,i=t.config.legend.fontFamily,a=t.globals.seriesNames,s=t.globals.colors.slice();if(t.config.chart.type==="heatmap"){var o=t.config.plotOptions.heatmap.colorScale.ranges;a=o.map(function(T){return T.name?T.name:T.from+" - "+T.to}),s=o.map(function(T){return T.color})}else this.isBarsDistributed&&(a=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(a=t.config.legend.customLegendItems);for(var r=t.globals.legendFormatter,n=t.config.legend.inverseOrder,l=n?a.length-1:0;n?l>=0:l<=a.length-1;n?l--:l++){var c=r(a[l],{seriesIndex:l,w:t}),d=!1,g=!1;if(t.globals.collapsedSeries.length>0)for(var p=0;p<t.globals.collapsedSeries.length;p++)t.globals.collapsedSeries[p].index===l&&(d=!0);if(t.globals.ancillaryCollapsedSeriesIndices.length>0)for(var x=0;x<t.globals.ancillaryCollapsedSeriesIndices.length;x++)t.globals.ancillaryCollapsedSeriesIndices[x]===l&&(g=!0);var f=document.createElement("span");f.classList.add("apexcharts-legend-marker");var b=t.config.legend.markers.offsetX,w=t.config.legend.markers.offsetY,k=t.config.legend.markers.height,A=t.config.legend.markers.width,h=t.config.legend.markers.strokeWidth,u=t.config.legend.markers.strokeColor,m=t.config.legend.markers.radius,y=f.style;y.background=s[l],y.color=s[l],y.setProperty("background",s[l],"important"),t.config.legend.markers.fillColors&&t.config.legend.markers.fillColors[l]&&(y.background=t.config.legend.markers.fillColors[l]),t.globals.seriesColors[l]!==void 0&&(y.background=t.globals.seriesColors[l],y.color=t.globals.seriesColors[l]),y.height=Array.isArray(k)?parseFloat(k[l])+"px":parseFloat(k)+"px",y.width=Array.isArray(A)?parseFloat(A[l])+"px":parseFloat(A)+"px",y.left=(Array.isArray(b)?parseFloat(b[l]):parseFloat(b))+"px",y.top=(Array.isArray(w)?parseFloat(w[l]):parseFloat(w))+"px",y.borderWidth=Array.isArray(h)?h[l]:h,y.borderColor=Array.isArray(u)?u[l]:u,y.borderRadius=Array.isArray(m)?parseFloat(m[l])+"px":parseFloat(m)+"px",t.config.legend.markers.customHTML&&(Array.isArray(t.config.legend.markers.customHTML)?t.config.legend.markers.customHTML[l]&&(f.innerHTML=t.config.legend.markers.customHTML[l]()):f.innerHTML=t.config.legend.markers.customHTML()),M.setAttrs(f,{rel:l+1,"data:collapsed":d||g}),(d||g)&&f.classList.add("apexcharts-inactive-legend");var S=document.createElement("div"),P=document.createElement("span");P.classList.add("apexcharts-legend-text"),P.innerHTML=Array.isArray(c)?c.join(" "):c;var L=t.config.legend.labels.useSeriesColors?t.globals.colors[l]:t.config.legend.labels.colors;L||(L=t.config.chart.foreColor),P.style.color=L,P.style.fontSize=parseFloat(t.config.legend.fontSize)+"px",P.style.fontWeight=t.config.legend.fontWeight,P.style.fontFamily=i||t.config.chart.fontFamily,M.setAttrs(P,{rel:l+1,i:l,"data:default-text":encodeURIComponent(c),"data:collapsed":d||g}),S.appendChild(f),S.appendChild(P);var z=new Z(this.ctx);t.config.legend.showForZeroSeries||z.getSeriesTotalByIndex(l)===0&&z.seriesHaveSameValues(l)&&!z.isSeriesNull(l)&&t.globals.collapsedSeriesIndices.indexOf(l)===-1&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(l)===-1&&S.classList.add("apexcharts-hidden-zero-series"),t.config.legend.showForNullSeries||z.isSeriesNull(l)&&t.globals.collapsedSeriesIndices.indexOf(l)===-1&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(l)===-1&&S.classList.add("apexcharts-hidden-null-series"),t.globals.dom.elLegendWrap.appendChild(S),t.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(t.config.legend.horizontalAlign)),t.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+t.config.legend.position),S.classList.add("apexcharts-legend-series"),S.style.margin="".concat(t.config.legend.itemMargin.vertical,"px ").concat(t.config.legend.itemMargin.horizontal,"px"),t.globals.dom.elLegendWrap.style.width=t.config.legend.width?t.config.legend.width+"px":"",t.globals.dom.elLegendWrap.style.height=t.config.legend.height?t.config.legend.height+"px":"",M.setAttrs(S,{rel:l+1,seriesName:C.escapeString(a[l]),"data:collapsed":d||g}),(d||g)&&S.classList.add("apexcharts-inactive-legend"),t.config.legend.onItemClick.toggleDataSeries||S.classList.add("apexcharts-no-click")}t.globals.dom.elWrap.addEventListener("click",e.onLegendClick,!0),t.config.legend.onItemHover.highlightDataSeries&&t.config.legend.customLegendItems.length===0&&(t.globals.dom.elWrap.addEventListener("mousemove",e.onLegendHovered,!0),t.globals.dom.elWrap.addEventListener("mouseout",e.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(e,t){var i=this.w,a=i.globals.dom.baseEl.querySelector(".apexcharts-legend"),s=a.getBoundingClientRect(),o=0,r=0;if(i.config.legend.position==="bottom")r+=i.globals.svgHeight-s.height/2;else if(i.config.legend.position==="top"){var n=new $e(this.ctx),l=n.dimHelpers.getTitleSubtitleCoords("title").height,c=n.dimHelpers.getTitleSubtitleCoords("subtitle").height;r=r+(l>0?l-10:0)+(c>0?c-10:0)}a.style.position="absolute",o=o+e+i.config.legend.offsetX,r=r+t+i.config.legend.offsetY,a.style.left=o+"px",a.style.top=r+"px",i.config.legend.position==="bottom"?(a.style.top="auto",a.style.bottom=5-i.config.legend.offsetY+"px"):i.config.legend.position==="right"&&(a.style.left="auto",a.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach(function(d){a.style[d]&&(a.style[d]=parseInt(i.config.legend[d],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.baseEl.querySelector(".apexcharts-legend").style.right=0;var t=this.legendHelpers.getLegendBBox(),i=new $e(this.ctx),a=i.dimHelpers.getTitleSubtitleCoords("title"),s=i.dimHelpers.getTitleSubtitleCoords("subtitle"),o=0;e.config.legend.position==="bottom"?o=-t.clwh/1.8:e.config.legend.position==="top"&&(o=a.height+s.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,o)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendBBox(),i=0;e.config.legend.position==="left"&&(i=20),e.config.legend.position==="right"&&(i=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,i=e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if(t.config.chart.type==="heatmap"||this.isBarsDistributed){if(i){var a=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,a,this.w]),new ae(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&i&&new ae(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var t=this.w;if(!t.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(e.target.getAttribute("rel"),10)-1,a=e.target.getAttribute("data:collapsed")==="true",s=this.w.config.chart.events.legendClick;typeof s=="function"&&s(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var o=this.w.config.legend.markers.onClick;typeof o=="function"&&e.target.classList.contains("apexcharts-legend-marker")&&(o(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),t.config.chart.type!=="treemap"&&t.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,a)}}}]),v}(),ct=function(){function v(e){I(this,v),this.ctx=e,this.w=e.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 E(v,[{key:"createToolbar",value:function(){var e=this,t=this.w,i=function(){return document.createElement("div")},a=i();if(a.setAttribute("class","apexcharts-toolbar"),a.style.top=t.config.chart.toolbar.offsetY+"px",a.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(a),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var s=0;s<this.t.customIcons.length;s++)this.elCustomIcons.push(i());var o=[],r=function(d,g,p){var x=d.toLowerCase();e.t[x]&&t.config.chart.zoom.enabled&&o.push({el:g,icon:typeof e.t[x]=="string"?e.t[x]:p,title:e.localeValues[d],class:"apexcharts-".concat(x,"-icon")})};r("zoomIn",this.elZoomIn,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path d="M0 0h24v24H0z" fill="none"/>
- <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
- </svg>
- `),r("zoomOut",this.elZoomOut,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path d="M0 0h24v24H0z" fill="none"/>
- <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
- </svg>
- `);var n=function(d){e.t[d]&&t.config.chart[d].enabled&&o.push({el:d==="zoom"?e.elZoom:e.elSelection,icon:typeof e.t[d]=="string"?e.t[d]:d==="zoom"?`<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
- <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
- <path d="M0 0h24v24H0V0z" fill="none"/>
- <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>
- </svg>`:`<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
- <path d="M0 0h24v24H0z" fill="none"/>
- <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>
- </svg>`,title:e.localeValues[d==="zoom"?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(d,"-icon")})};n("zoom"),n("selection"),this.t.pan&&t.config.chart.zoom.enabled&&o.push({el:this.elPan,icon:typeof this.t.pan=="string"?this.t.pan:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
- <defs>
- <path d="M0 0h24v24H0z" id="a"/>
- </defs>
- <clipPath id="b">
- <use overflow="visible" xlink:href="#a"/>
- </clipPath>
- <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>
- </svg>`,title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),r("reset",this.elZoomReset,`<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
- <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
- <path d="M0 0h24v24H0z" fill="none"/>
- </svg>`),this.t.download&&o.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l<this.elCustomIcons.length;l++)o.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});o.forEach(function(d,g){d.index&&C.moveIndexInArray(o,g,d.index)});for(var c=0;c<o.length;c++)M.setAttrs(o[c].el,{class:o[c].class,title:o[c].title}),o[c].el.innerHTML=o[c].icon,a.appendChild(o[c].el);this._createHamburgerMenu(a),t.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):t.globals.panEnabled?this.elPan.classList.add(this.selectedClass):t.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(e){this.elMenuItems=[],e.appendChild(this.elMenu),M.setAttrs(this.elMenu,{class:"apexcharts-menu"});var t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}];this.w.globals.allSeriesHasEqualX||t.splice(2,1);for(var i=0;i<t.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=t[i].title,M.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(t[i].name),title:t[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var e=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(i){i.classList.contains("exportSVG")?i.addEventListener("click",e.handleDownload.bind(e,"svg")):i.classList.contains("exportPNG")?i.addEventListener("click",e.handleDownload.bind(e,"png")):i.classList.contains("exportCSV")&&i.addEventListener("click",e.handleDownload.bind(e,"csv"))});for(var t=0;t<this.t.customIcons.length;t++)this.elCustomIcons[t].addEventListener("click",this.t.customIcons[t].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(e){this.ctx.getSyncedCharts().forEach(function(t){t.ctx.toolbar.toggleOtherControls();var i=e==="selection"?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,a=e==="selection"?"selectionEnabled":"zoomEnabled";t.w.globals[a]=!t.w.globals[a],i.classList.contains(t.ctx.toolbar.selectedClass)?i.classList.remove(t.ctx.toolbar.selectedClass):i.classList.add(t.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var e=this.w;this.elZoom||(this.elZoom=e.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(e){this.toggleOtherControls(),e==="pan"?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var t=e==="pan"?this.elPan:this.elZoom,i=e==="pan"?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(e){e.ctx.toolbar.toggleOtherControls(),e.w.globals.panEnabled=!e.w.globals.panEnabled,e.ctx.toolbar.elPan.classList.contains(e.ctx.toolbar.selectedClass)?e.ctx.toolbar.elPan.classList.remove(e.ctx.toolbar.selectedClass):e.ctx.toolbar.elPan.classList.add(e.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var e=this,t=this.w;t.globals.panEnabled=!1,t.globals.zoomEnabled=!1,t.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(i){i&&i.classList.remove(e.selectedClass)})}},{key:"handleZoomIn",value:function(){var e=this.w;e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY);var t=(this.minX+this.maxX)/2,i=(this.minX+t)/2,a=(this.maxX+t)/2,s=this._getNewMinXMaxX(i,a);e.globals.disableZoomIn||this.zoomUpdateOptions(s.minX,s.maxX)}},{key:"handleZoomOut",value:function(){var e=this.w;if(e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY),!(e.config.xaxis.type==="datetime"&&new Date(this.minX).getUTCFullYear()<1e3)){var t=(this.minX+this.maxX)/2,i=this.minX-(t-this.minX),a=this.maxX-(t-this.maxX),s=this._getNewMinXMaxX(i,a);e.globals.disableZoomOut||this.zoomUpdateOptions(s.minX,s.maxX)}}},{key:"_getNewMinXMaxX",value:function(e,t){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(e):e,maxX:i?Math.floor(t):t}}},{key:"zoomUpdateOptions",value:function(e,t){var i=this.w;if(e!==void 0||t!==void 0){if(!(i.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=i.globals.dataPoints),t-e<2))){var a={min:e,max:t},s=this.getBeforeZoomRange(a);s&&(a=s.xaxis);var o={xaxis:a},r=C.clone(i.globals.initialConfig.yaxis);i.config.chart.zoom.autoScaleYaxis&&(r=new Be(this.ctx).autoScaleY(this.ctx,r,{xaxis:a})),i.config.chart.group||(o.yaxis=r),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(o,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(a,r)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(e,t){typeof this.ev.zoomed=="function"&&this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t})}},{key:"getBeforeZoomRange",value:function(e,t){var i=null;return typeof this.ev.beforeZoom=="function"&&(i=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),i}},{key:"toggleMenu",value:function(){var e=this;window.setTimeout(function(){e.elMenu.classList.contains("apexcharts-menu-open")?e.elMenu.classList.remove("apexcharts-menu-open"):e.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(e){var t=this.w,i=new Ie(this.ctx);switch(e){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(e){this.ctx.getSyncedCharts().forEach(function(t){var i=t.w;if(i.globals.lastXAxis.min=void 0,i.globals.lastXAxis.max=void 0,t.updateHelpers.revertDefaultAxisMinMax(),typeof i.config.chart.events.beforeResetZoom=="function"){var a=i.config.chart.events.beforeResetZoom(t,i);a&&t.updateHelpers.revertDefaultAxisMinMax(a)}typeof i.config.chart.events.zoomed=="function"&&t.ctx.toolbar.zoomCallback({min:i.config.xaxis.min,max:i.config.xaxis.max}),i.globals.zoomed=!1;var s=t.ctx.series.emptyCollapsedSeries(C.clone(i.globals.initialSeries));t.updateHelpers._updateSeries(s,i.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),v}(),Xt=function(v){he(t,ct);var e=ye(t);function t(i){var a;return I(this,t),(a=e.call(this,i)).ctx=i,a.w=i.w,a.dragged=!1,a.graphics=new M(a.ctx),a.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],a.clientX=0,a.clientY=0,a.startX=0,a.endX=0,a.dragX=0,a.startY=0,a.endY=0,a.dragY=0,a.moveDirection="none",a}return E(t,[{key:"init",value:function(i){var a=this,s=i.xyRatios,o=this.w,r=this;this.xyRatios=s,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=o.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),o.globals.dom.elGraphical.add(this.zoomRect),o.globals.dom.elGraphical.add(this.selectionRect),o.config.chart.selection.type==="x"?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:o.globals.gridWidth,maxY:o.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):o.config.chart.selection.type==="y"?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:o.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=o.globals.dom.baseEl.querySelector("".concat(o.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(n){a.hoverArea.addEventListener(n,r.svgMouseEvents.bind(r,s),{capture:!1,passive:!0})})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(i,a){var s=this.w,o=this,r=this.ctx.toolbar,n=s.globals.zoomEnabled?s.config.chart.zoom.type:s.config.chart.selection.type,l=s.config.chart.toolbar.autoSelected;if(a.shiftKey?(this.shiftWasPressed=!0,r.enableZoomPanFromToolbar(l==="pan"?"zoom":"pan")):this.shiftWasPressed&&(r.enableZoomPanFromToolbar(l),this.shiftWasPressed=!1),a.target){var c,d=a.target.classList;if(a.target.parentNode&&a.target.parentNode!==null&&(c=a.target.parentNode.classList),!(d.contains("apexcharts-selection-rect")||d.contains("apexcharts-legend-marker")||d.contains("apexcharts-legend-text")||c&&c.contains("apexcharts-toolbar"))){if(o.clientX=a.type==="touchmove"||a.type==="touchstart"?a.touches[0].clientX:a.type==="touchend"?a.changedTouches[0].clientX:a.clientX,o.clientY=a.type==="touchmove"||a.type==="touchstart"?a.touches[0].clientY:a.type==="touchend"?a.changedTouches[0].clientY:a.clientY,a.type==="mousedown"&&a.which===1){var g=o.gridRect.getBoundingClientRect();o.startX=o.clientX-g.left,o.startY=o.clientY-g.top,o.dragged=!1,o.w.globals.mousedown=!0}if((a.type==="mousemove"&&a.which===1||a.type==="touchmove")&&(o.dragged=!0,s.globals.panEnabled?(s.globals.selection=null,o.w.globals.mousedown&&o.panDragging({context:o,zoomtype:n,xyRatios:i})):(o.w.globals.mousedown&&s.globals.zoomEnabled||o.w.globals.mousedown&&s.globals.selectionEnabled)&&(o.selection=o.selectionDrawing({context:o,zoomtype:n}))),a.type==="mouseup"||a.type==="touchend"||a.type==="mouseleave"){var p=o.gridRect.getBoundingClientRect();o.w.globals.mousedown&&(o.endX=o.clientX-p.left,o.endY=o.clientY-p.top,o.dragX=Math.abs(o.endX-o.startX),o.dragY=Math.abs(o.endY-o.startY),(s.globals.zoomEnabled||s.globals.selectionEnabled)&&o.selectionDrawn({context:o,zoomtype:n}),s.globals.panEnabled&&s.config.xaxis.convertedCatToNumeric&&o.delayedPanScrolled()),s.globals.zoomEnabled&&o.hideSelectionRect(this.selectionRect),o.dragged=!1,o.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"makeSelectionRectDraggable",value:function(){var i=this.w;if(this.selectionRect){var a=this.selectionRect.node.getBoundingClientRect();a.width>0&&a.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:i.globals.gridWidth,maxY:i.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var i=this.w,a=this.xyRatios;if(!i.globals.zoomEnabled){if(i.globals.selection!==void 0&&i.globals.selection!==null)this.drawSelectionRect(i.globals.selection);else if(i.config.chart.selection.xaxis.min!==void 0&&i.config.chart.selection.xaxis.max!==void 0){var s=(i.config.chart.selection.xaxis.min-i.globals.minX)/a.xRatio,o={x:s,y:0,width:i.globals.gridWidth-(i.globals.maxX-i.config.chart.selection.xaxis.max)/a.xRatio-s,height:i.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(o),this.makeSelectionRectDraggable(),typeof i.config.chart.events.selection=="function"&&i.config.chart.events.selection(this.ctx,{xaxis:{min:i.config.chart.selection.xaxis.min,max:i.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(i){var a=i.x,s=i.y,o=i.width,r=i.height,n=i.translateX,l=n===void 0?0:n,c=i.translateY,d=c===void 0?0:c,g=this.w,p=this.zoomRect,x=this.selectionRect;if(this.dragged||g.globals.selection!==null){var f={transform:"translate("+l+", "+d+")"};g.globals.zoomEnabled&&this.dragged&&(o<0&&(o=1),p.attr({x:a,y:s,width:o,height:r,fill:g.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":g.config.chart.zoom.zoomedArea.fill.opacity,stroke:g.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":g.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":g.config.chart.zoom.zoomedArea.stroke.opacity}),M.setAttrs(p.node,f)),g.globals.selectionEnabled&&(x.attr({x:a,y:s,width:o>0?o:0,height:r>0?r:0,fill:g.config.chart.selection.fill.color,"fill-opacity":g.config.chart.selection.fill.opacity,stroke:g.config.chart.selection.stroke.color,"stroke-width":g.config.chart.selection.stroke.width,"stroke-dasharray":g.config.chart.selection.stroke.dashArray,"stroke-opacity":g.config.chart.selection.stroke.opacity}),M.setAttrs(x.node,f))}}},{key:"hideSelectionRect",value:function(i){i&&i.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(i){var a=i.context,s=i.zoomtype,o=this.w,r=a,n=this.gridRect.getBoundingClientRect(),l=r.startX-1,c=r.startY,d=!1,g=!1,p=r.clientX-n.left-l,x=r.clientY-n.top-c,f={};return Math.abs(p+l)>o.globals.gridWidth?p=o.globals.gridWidth-l:r.clientX-n.left<0&&(p=l),l>r.clientX-n.left&&(d=!0,p=Math.abs(p)),c>r.clientY-n.top&&(g=!0,x=Math.abs(x)),f=s==="x"?{x:d?l-p:l,y:0,width:p,height:o.globals.gridHeight}:s==="y"?{x:0,y:g?c-x:c,width:o.globals.gridWidth,height:x}:{x:d?l-p:l,y:g?c-x:c,width:p,height:x},r.drawSelectionRect(f),r.selectionDragging("resizing"),f}},{key:"selectionDragging",value:function(i,a){var s=this,o=this.w,r=this.xyRatios,n=this.selectionRect,l=0;i==="resizing"&&(l=30);var c=function(g){return parseFloat(n.node.getAttribute(g))},d={x:c("x"),y:c("y"),width:c("width"),height:c("height")};o.globals.selection=d,typeof o.config.chart.events.selection=="function"&&o.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var g=s.gridRect.getBoundingClientRect(),p=n.node.getBoundingClientRect(),x={xaxis:{min:o.globals.xAxisScale.niceMin+(p.left-g.left)*r.xRatio,max:o.globals.xAxisScale.niceMin+(p.right-g.left)*r.xRatio},yaxis:{min:o.globals.yAxisScale[0].niceMin+(g.bottom-p.bottom)*r.yRatio[0],max:o.globals.yAxisScale[0].niceMax-(p.top-g.top)*r.yRatio[0]}};o.config.chart.events.selection(s.ctx,x),o.config.chart.brush.enabled&&o.config.chart.events.brushScrolled!==void 0&&o.config.chart.events.brushScrolled(s.ctx,x)},l))}},{key:"selectionDrawn",value:function(i){var a=i.context,s=i.zoomtype,o=this.w,r=a,n=this.xyRatios,l=this.ctx.toolbar;if(r.startX>r.endX){var c=r.startX;r.startX=r.endX,r.endX=c}if(r.startY>r.endY){var d=r.startY;r.startY=r.endY,r.endY=d}var g=void 0,p=void 0;o.globals.isRangeBar?(g=o.globals.yAxisScale[0].niceMin+r.startX*n.invertedYRatio,p=o.globals.yAxisScale[0].niceMin+r.endX*n.invertedYRatio):(g=o.globals.xAxisScale.niceMin+r.startX*n.xRatio,p=o.globals.xAxisScale.niceMin+r.endX*n.xRatio);var x=[],f=[];if(o.config.yaxis.forEach(function(y,S){x.push(o.globals.yAxisScale[S].niceMax-n.yRatio[S]*r.startY),f.push(o.globals.yAxisScale[S].niceMax-n.yRatio[S]*r.endY)}),r.dragged&&(r.dragX>10||r.dragY>10)&&g!==p){if(o.globals.zoomEnabled){var b=C.clone(o.globals.initialConfig.yaxis),w=C.clone(o.globals.initialConfig.xaxis);if(o.globals.zoomed=!0,o.config.xaxis.convertedCatToNumeric&&(g=Math.floor(g),p=Math.floor(p),g<1&&(g=1,p=o.globals.dataPoints),p-g<2&&(p=g+1)),s!=="xy"&&s!=="x"||(w={min:g,max:p}),s!=="xy"&&s!=="y"||b.forEach(function(y,S){b[S].min=f[S],b[S].max=x[S]}),o.config.chart.zoom.autoScaleYaxis){var k=new Be(r.ctx);b=k.autoScaleY(r.ctx,b,{xaxis:w})}if(l){var A=l.getBeforeZoomRange(w,b);A&&(w=A.xaxis?A.xaxis:w,b=A.yaxis?A.yaxis:b)}var h={xaxis:w};o.config.chart.group||(h.yaxis=b),r.ctx.updateHelpers._updateOptions(h,!1,r.w.config.chart.animations.dynamicAnimation.enabled),typeof o.config.chart.events.zoomed=="function"&&l.zoomCallback(w,b)}else if(o.globals.selectionEnabled){var u,m=null;u={min:g,max:p},s!=="xy"&&s!=="y"||(m=C.clone(o.config.yaxis)).forEach(function(y,S){m[S].min=f[S],m[S].max=x[S]}),o.globals.selection=r.selection,typeof o.config.chart.events.selection=="function"&&o.config.chart.events.selection(r.ctx,{xaxis:u,yaxis:m})}}}},{key:"panDragging",value:function(i){var a=i.context,s=this.w,o=a;if(s.globals.lastClientPosition.x!==void 0){var r=s.globals.lastClientPosition.x-o.clientX,n=s.globals.lastClientPosition.y-o.clientY;Math.abs(r)>Math.abs(n)&&r>0?this.moveDirection="left":Math.abs(r)>Math.abs(n)&&r<0?this.moveDirection="right":Math.abs(n)>Math.abs(r)&&n>0?this.moveDirection="up":Math.abs(n)>Math.abs(r)&&n<0&&(this.moveDirection="down")}s.globals.lastClientPosition={x:o.clientX,y:o.clientY};var l=s.globals.isRangeBar?s.globals.minY:s.globals.minX,c=s.globals.isRangeBar?s.globals.maxY:s.globals.maxX;s.config.xaxis.convertedCatToNumeric||o.panScrolled(l,c)}},{key:"delayedPanScrolled",value:function(){var i=this.w,a=i.globals.minX,s=i.globals.maxX,o=(i.globals.maxX-i.globals.minX)/2;this.moveDirection==="left"?(a=i.globals.minX+o,s=i.globals.maxX+o):this.moveDirection==="right"&&(a=i.globals.minX-o,s=i.globals.maxX-o),a=Math.floor(a),s=Math.floor(s),this.updateScrolledChart({xaxis:{min:a,max:s}},a,s)}},{key:"panScrolled",value:function(i,a){var s=this.w,o=this.xyRatios,r=C.clone(s.globals.initialConfig.yaxis),n=o.xRatio,l=s.globals.minX,c=s.globals.maxX;s.globals.isRangeBar&&(n=o.invertedYRatio,l=s.globals.minY,c=s.globals.maxY),this.moveDirection==="left"?(i=l+s.globals.gridWidth/15*n,a=c+s.globals.gridWidth/15*n):this.moveDirection==="right"&&(i=l-s.globals.gridWidth/15*n,a=c-s.globals.gridWidth/15*n),s.globals.isRangeBar||(i<s.globals.initialMinX||a>s.globals.initialMaxX)&&(i=l,a=c);var d={min:i,max:a};s.config.chart.zoom.autoScaleYaxis&&(r=new Be(this.ctx).autoScaleY(this.ctx,r,{xaxis:d}));var g={xaxis:{min:i,max:a}};s.config.chart.group||(g.yaxis=r),this.updateScrolledChart(g,i,a)}},{key:"updateScrolledChart",value:function(i,a,s){var o=this.w;this.ctx.updateHelpers._updateOptions(i,!1,!1),typeof o.config.chart.events.scrolled=="function"&&o.config.chart.events.scrolled(this.ctx,{xaxis:{min:a,max:s}})}}]),t}(),dt=function(){function v(e){I(this,v),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return E(v,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,i=e.elGrid,a=e.clientX,s=e.clientY,o=this.w,r=i.getBoundingClientRect(),n=r.width,l=r.height,c=n/(o.globals.dataPoints-1),d=l/o.globals.dataPoints,g=this.hasBars();!o.globals.comboCharts&&!g||o.config.xaxis.convertedCatToNumeric||(c=n/o.globals.dataPoints);var p=a-r.left-o.globals.barPadForNumericAxis,x=s-r.top;p<0||x<0||p>n||x>l?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):o.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):o.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var f=Math.round(p/c),b=Math.floor(x/d);g&&!o.config.xaxis.convertedCatToNumeric&&(f=Math.ceil(p/c),f-=1);var w=null,k=null,A=[],h=[];if(o.globals.seriesXvalues.forEach(function(S){A.push([S[0]+1e-6].concat(S))}),o.globals.seriesYvalues.forEach(function(S){h.push([S[0]+1e-6].concat(S))}),A=A.map(function(S){return S.filter(function(P){return C.isNumber(P)})}),h=h.map(function(S){return S.filter(function(P){return C.isNumber(P)})}),o.globals.isXNumeric){var u=this.ttCtx.getElGrid().getBoundingClientRect(),m=p*(u.width/n),y=x*(u.height/l);w=(k=this.closestInMultiArray(m,y,A,h)).index,f=k.j,w!==null&&(A=o.globals.seriesXvalues[w],f=(k=this.closestInArray(m,A)).index)}return o.globals.capturedSeriesIndex=w===null?-1:w,(!f||f<1)&&(f=0),o.globals.isBarHorizontal?o.globals.capturedDataPointIndex=b:o.globals.capturedDataPointIndex=f,{capturedSeries:w,j:o.globals.isBarHorizontal?b:f,hoverX:p,hoverY:x}}},{key:"closestInMultiArray",value:function(e,t,i,a){var s=this.w,o=0,r=null,n=-1;s.globals.series.length>1?o=this.getFirstActiveXArray(i):r=0;var l=i[o][0],c=Math.abs(e-l);if(i.forEach(function(p){p.forEach(function(x,f){var b=Math.abs(e-x);b<c&&(c=b,n=f)})}),n!==-1){var d=a[o][n],g=Math.abs(t-d);r=o,a.forEach(function(p,x){var f=Math.abs(t-p[n]);f<g&&(g=f,r=x)})}return{index:r,j:n}}},{key:"getFirstActiveXArray",value:function(e){for(var t=this.w,i=0,a=e.map(function(o,r){return o.length>0?r:-1}),s=0;s<a.length;s++)if(a[s]!==-1&&t.globals.collapsedSeriesIndices.indexOf(s)===-1&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(s)===-1){i=a[s];break}return i}},{key:"closestInArray",value:function(e,t){for(var i=t[0],a=null,s=Math.abs(e-i),o=0;o<t.length;o++){var r=Math.abs(e-t[o]);r<s&&(s=r,a=o)}return{index:a}}},{key:"isXoverlap",value:function(e){var t=[],i=this.w.globals.seriesX.filter(function(s){return s[0]!==void 0});if(i.length>0)for(var a=0;a<i.length-1;a++)i[a][e]!==void 0&&i[a+1][e]!==void 0&&i[a][e]!==i[a+1][e]&&t.push("unEqual");return t.length===0}},{key:"isInitialSeriesSameLen",value:function(){for(var e=!0,t=this.w.globals.initialSeries,i=0;i<t.length-1;i++)if(t[i].data.length!==t[i+1].data.length){e=!1;break}return e}},{key:"getBarsHeight",value:function(e){return V(e).reduce(function(t,i){return t+i.getBBox().height},0)}},{key:"getElMarkers",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(" .apexcharts-series-markers")}},{key:"getAllMarkers",value:function(){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(e=V(e)).sort(function(i,a){var s=Number(i.getAttribute("data:realIndex")),o=Number(a.getAttribute("data:realIndex"));return o<s?1:o>s?-1:0});var t=[];return e.forEach(function(i){t.push(i.querySelector(".apexcharts-marker"))}),t}},{key:"hasMarkers",value:function(){return this.getElMarkers().length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(e){var t=this.w,i=t.config.markers.hover.size;return i===void 0&&(i=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,i=this.ttCtx;i.allTooltipSeriesGroups.length===0&&(i.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var a=i.allTooltipSeriesGroups,s=0;s<a.length;s++)e==="enable"?(a[s].classList.add("apexcharts-active"),a[s].style.display=t.config.tooltip.items.display):(a[s].classList.remove("apexcharts-active"),a[s].style.display="none")}}]),v}(),Yt=function(){function v(e){I(this,v),this.w=e.w,this.ctx=e.ctx,this.ttCtx=e,this.tooltipUtil=new dt(e)}return E(v,[{key:"drawSeriesTexts",value:function(e){var t=e.shared,i=t===void 0||t,a=e.ttItems,s=e.i,o=s===void 0?0:s,r=e.j,n=r===void 0?null:r,l=e.y1,c=e.y2,d=e.e,g=this.w;g.config.tooltip.custom!==void 0?this.handleCustomTooltip({i:o,j:n,y1:l,y2:c,w:g}):this.toggleActiveInactiveSeries(i);var p=this.getValuesToPrint({i:o,j:n});this.printLabels({i:o,j:n,values:p,ttItems:a,shared:i,e:d});var x=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=x.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=x.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var t,i=this,a=e.i,s=e.j,o=e.values,r=e.ttItems,n=e.shared,l=e.e,c=this.w,d=[],g=function(u){return c.globals.seriesGoals[u]&&c.globals.seriesGoals[u][s]&&Array.isArray(c.globals.seriesGoals[u][s])},p=o.xVal,x=o.zVal,f=o.xAxisTTVal,b="",w=c.globals.colors[a];s!==null&&c.config.plotOptions.bar.distributed&&(w=c.globals.colors[s]);for(var k=function(u,m){var y=i.getFormatters(a);b=i.getSeriesName({fn:y.yLbTitleFormatter,index:a,seriesIndex:a,j:s}),c.config.chart.type==="treemap"&&(b=y.yLbTitleFormatter(String(c.config.series[a].data[s].x),{series:c.globals.series,seriesIndex:a,dataPointIndex:s,w:c}));var S=c.config.tooltip.inverseOrder?m:u;if(c.globals.axisCharts){var P=function(T){return y.yLbFormatter(c.globals.series[T][s],{series:c.globals.series,seriesIndex:T,dataPointIndex:s,w:c})};if(n)y=i.getFormatters(S),b=i.getSeriesName({fn:y.yLbTitleFormatter,index:S,seriesIndex:a,j:s}),w=c.globals.colors[S],t=P(S),g(S)&&(d=c.globals.seriesGoals[S][s].map(function(T){return{attrs:T,val:y.yLbFormatter(T.value,{seriesIndex:S,dataPointIndex:s,w:c})}}));else{var L,z=l==null||(L=l.target)===null||L===void 0?void 0:L.getAttribute("fill");z&&(w=z.indexOf("url")!==-1?document.querySelector(z.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):z),t=P(a),g(a)&&Array.isArray(c.globals.seriesGoals[a][s])&&(d=c.globals.seriesGoals[a][s].map(function(T){return{attrs:T,val:y.yLbFormatter(T.value,{seriesIndex:a,dataPointIndex:s,w:c})}}))}}s===null&&(t=y.yLbFormatter(c.globals.series[a],D(D({},c),{},{seriesIndex:a,dataPointIndex:a}))),i.DOMHandling({i:a,t:S,j:s,ttItems:r,values:{val:t,goalVals:d,xVal:p,xAxisTTVal:f,zVal:x},seriesName:b,shared:n,pColor:w})},A=0,h=c.globals.series.length-1;A<c.globals.series.length;A++,h--)k(A,h)}},{key:"getFormatters",value:function(e){var t,i=this.w,a=i.globals.yLabelFormatters[e];return i.globals.ttVal!==void 0?Array.isArray(i.globals.ttVal)?(a=i.globals.ttVal[e]&&i.globals.ttVal[e].formatter,t=i.globals.ttVal[e]&&i.globals.ttVal[e].title&&i.globals.ttVal[e].title.formatter):(a=i.globals.ttVal.formatter,typeof i.globals.ttVal.title.formatter=="function"&&(t=i.globals.ttVal.title.formatter)):t=i.config.tooltip.y.title.formatter,typeof a!="function"&&(a=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(s){return s}),typeof t!="function"&&(t=function(s){return s}),{yLbFormatter:a,yLbTitleFormatter:t}}},{key:"getSeriesName",value:function(e){var t=e.fn,i=e.index,a=e.seriesIndex,s=e.j,o=this.w;return t(String(o.globals.seriesNames[i]),{series:o.globals.series,seriesIndex:a,dataPointIndex:s,w:o})}},{key:"DOMHandling",value:function(e){e.i;var t=e.t,i=e.j,a=e.ttItems,s=e.values,o=e.seriesName,r=e.shared,n=e.pColor,l=this.w,c=this.ttCtx,d=s.val,g=s.goalVals,p=s.xVal,x=s.xAxisTTVal,f=s.zVal,b=null;b=a[t].children,l.config.tooltip.fillSeriesColor&&(a[t].style.backgroundColor=n,b[0].style.display="none"),c.showTooltipTitle&&(c.tooltipTitle===null&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=p),c.isXAxisTooltipEnabled&&(c.xaxisTooltipText.innerHTML=x!==""?x:p);var w=a[t].querySelector(".apexcharts-tooltip-text-y-label");w&&(w.innerHTML=o||"");var k=a[t].querySelector(".apexcharts-tooltip-text-y-value");k&&(k.innerHTML=d!==void 0?d:""),b[0]&&b[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(n=l.config.tooltip.marker.fillColors[t]),b[0].style.backgroundColor=n),l.config.tooltip.marker.show||(b[0].style.display="none");var A=a[t].querySelector(".apexcharts-tooltip-text-goals-label"),h=a[t].querySelector(".apexcharts-tooltip-text-goals-value");if(g.length&&l.globals.seriesGoals[t]){var u=function(){var m="<div >",y="<div>";g.forEach(function(S,P){m+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(S.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(S.attrs.name,"</div>"),y+="<div>".concat(S.val,"</div>")}),A.innerHTML=m+"</div>",h.innerHTML=y+"</div>"};r?l.globals.seriesGoals[t][i]&&Array.isArray(l.globals.seriesGoals[t][i])?u():(A.innerHTML="",h.innerHTML=""):u()}else A.innerHTML="",h.innerHTML="";f!==null&&(a[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,a[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=f!==void 0?f:""),r&&b[0]&&(d==null||l.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||l.globals.collapsedSeriesIndices.indexOf(t)>-1?b[0].parentNode.style.display="none":b[0].parentNode.style.display=l.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(e){var t=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=t.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=t.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,i=e.j,a=this.w,s=this.ctx.series.filteredSeriesX(),o="",r="",n=null,l=null,c={series:a.globals.series,seriesIndex:t,dataPointIndex:i,w:a},d=a.globals.ttZFormatter;i===null?l=a.globals.series[t]:a.globals.isXNumeric&&a.config.chart.type!=="treemap"?(o=s[t][i],s[t].length===0&&(o=s[this.tooltipUtil.getFirstActiveXArray(s)][i])):o=a.globals.labels[i]!==void 0?a.globals.labels[i]:"";var g=o;return a.globals.isXNumeric&&a.config.xaxis.type==="datetime"?o=new Xe(this.ctx).xLabelFormat(a.globals.ttKeyFormatter,g,g,{i:void 0,dateFormatter:new te(this.ctx).formatDate,w:this.w}):o=a.globals.isBarHorizontal?a.globals.yLabelFormatters[0](g,c):a.globals.xLabelFormatter(g,c),a.config.tooltip.x.formatter!==void 0&&(o=a.globals.ttKeyFormatter(g,c)),a.globals.seriesZ.length>0&&a.globals.seriesZ[t].length>0&&(n=d(a.globals.seriesZ[t][i],a)),r=typeof a.config.xaxis.tooltip.formatter=="function"?a.globals.xaxisTooltipFormatter(g,c):o,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(o)?o.join(" "):o,xAxisTTVal:Array.isArray(r)?r.join(" "):r,zVal:n}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,i=e.j,a=e.y1,s=e.y2,o=e.w,r=this.ttCtx.getElTooltip(),n=o.config.tooltip.custom;Array.isArray(n)&&n[t]&&(n=n[t]),r.innerHTML=n({ctx:this.ctx,series:o.globals.series,seriesIndex:t,dataPointIndex:i,y1:a,y2:s,w:o})}}]),v}(),gt=function(){function v(e){I(this,v),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return E(v,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.ttCtx,a=this.w,s=i.getElXCrosshairs(),o=e-i.xcrosshairsWidth/2,r=a.globals.labels.slice().length;if(t!==null&&(o=a.globals.gridWidth/r*t),s===null||a.globals.isBarHorizontal||(s.setAttribute("x",o),s.setAttribute("x1",o),s.setAttribute("x2",o),s.setAttribute("y2",a.globals.gridHeight),s.classList.add("apexcharts-active")),o<0&&(o=0),o>a.globals.gridWidth&&(o=a.globals.gridWidth),i.isXAxisTooltipEnabled){var n=o;a.config.xaxis.crosshairs.width!=="tickWidth"&&a.config.xaxis.crosshairs.width!=="barWidth"||(n=o+i.xcrosshairsWidth/2),this.moveXAxisTooltip(n)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;t.ycrosshairs!==null&&M.setAttrs(t.ycrosshairs,{y1:e,y2:e}),t.ycrosshairsHidden!==null&&M.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,i=this.ttCtx;if(i.xaxisTooltip!==null&&i.xcrosshairsWidth!==0){i.xaxisTooltip.classList.add("apexcharts-active");var a=i.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;if(e-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e)){e+=t.globals.translateX;var s;s=new M(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=s.width+"px",i.xaxisTooltip.style.left=e+"px",i.xaxisTooltip.style.top=a+"px"}}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,i=this.ttCtx;i.yaxisTTEls===null&&(i.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var a=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),s=t.globals.translateY+a,o=i.yaxisTTEls[e].getBoundingClientRect().height,r=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(r-=26),s-=o/2,t.globals.ignoreYAxisIndexes.indexOf(e)===-1?(i.yaxisTTEls[e].classList.add("apexcharts-active"),i.yaxisTTEls[e].style.top=s+"px",i.yaxisTTEls[e].style.left=r+t.config.yaxis[e].tooltip.offsetX+"px"):i.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=this.w,s=this.ttCtx,o=s.getElTooltip(),r=s.tooltipRect,n=i!==null?parseFloat(i):1,l=parseFloat(e)+n+5,c=parseFloat(t)+n/2;if(l>a.globals.gridWidth/2&&(l=l-r.ttWidth-n-10),l>a.globals.gridWidth-r.ttWidth-10&&(l=a.globals.gridWidth-r.ttWidth),l<-20&&(l=-20),a.config.tooltip.followCursor){var d=s.getElGrid(),g=d.getBoundingClientRect();c=s.e.clientY+a.globals.translateY-g.top-r.ttHeight/2}else a.globals.isBarHorizontal||(r.ttHeight/2+c>a.globals.gridHeight&&(c=a.globals.gridHeight-r.ttHeight+a.globals.translateY),c<0&&(c=0));isNaN(l)||(l+=a.globals.translateX,o.style.left=l+"px",o.style.top=c+"px")}},{key:"moveMarkers",value:function(e,t){var i=this.w,a=this.ttCtx;if(i.globals.markers.size[e]>0)for(var s=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),o=0;o<s.length;o++)parseInt(s[o].getAttribute("rel"),10)===t&&(a.marker.resetPointsSize(),a.marker.enlargeCurrentPoint(t,s[o]));else a.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}},{key:"moveDynamicPointOnHover",value:function(e,t){var i,a,s=this.w,o=this.ttCtx,r=s.globals.pointsArray,n=o.tooltipUtil.getHoverMarkerSize(t),l=s.config.series[t].type;if(!l||l!=="column"&&l!=="candlestick"&&l!=="boxPlot"){i=r[t][e][0],a=r[t][e][1]?r[t][e][1]:0;var c=s.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers circle"));c&&a<s.globals.gridHeight&&a>0&&(c.setAttribute("r",n),c.setAttribute("cx",i),c.setAttribute("cy",a)),this.moveXCrosshairs(i),o.fixedTooltip||this.moveTooltip(i,a,n)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,i=this.ttCtx,a=i.w,s=0,o=0,r=a.globals.pointsArray;t=new ae(this.ctx).getActiveConfigSeriesIndex(!0);var n=i.tooltipUtil.getHoverMarkerSize(t);r[t]&&(s=r[t][e][0],o=r[t][e][1]);var l=i.tooltipUtil.getAllMarkers();if(l!==null)for(var c=0;c<a.globals.series.length;c++){var d=r[c];if(a.globals.comboCharts&&d===void 0&&l.splice(c,0,null),d&&d.length){var g=r[c][e][1];l[c].setAttribute("cx",s),g!==null&&!isNaN(g)&&g<a.globals.gridHeight+n&&g+n>0?(l[c]&&l[c].setAttribute("r",n),l[c]&&l[c].setAttribute("cy",g)):l[c]&&l[c].setAttribute("r",0)}}if(this.moveXCrosshairs(s),!i.fixedTooltip){var p=o||a.globals.gridHeight;this.moveTooltip(s,p,n)}}},{key:"moveStickyTooltipOverBars",value:function(e){var t=this.w,i=this.ttCtx,a=t.globals.columnSeries?t.globals.columnSeries.length:t.globals.series.length,s=a>=2&&a%2==0?Math.floor(a/2):Math.floor(a/2)+1;t.globals.isBarHorizontal&&(s=new ae(this.ctx).getActiveConfigSeriesIndex(!1,"desc")+1);var o=t.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(s,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"']")),r=o?parseFloat(o.getAttribute("cx")):0,n=o?parseFloat(o.getAttribute("cy")):0,l=o?parseFloat(o.getAttribute("barWidth")):0,c=o?parseFloat(o.getAttribute("barHeight")):0,d=i.getElGrid().getBoundingClientRect(),g=o.classList.contains("apexcharts-candlestick-area")||o.classList.contains("apexcharts-boxPlot-area");if(t.globals.isXNumeric?(o&&!g&&(r-=a%2!=0?l/2:0),o&&g&&t.globals.comboCharts&&(r-=l/2)):t.globals.isBarHorizontal||(r=i.xAxisTicksPositions[e-1]+i.dataPointsDividedWidth/2,isNaN(r)&&(r=i.xAxisTicksPositions[e]-i.dataPointsDividedWidth/2)),t.globals.isBarHorizontal?(n>t.globals.gridHeight/2&&(n-=i.tooltipRect.ttHeight),(n=n+t.config.grid.padding.top+c/3)+c>t.globals.gridHeight&&(n=t.globals.gridHeight-c)):t.config.tooltip.followCursor?n=i.e.clientY-d.top-i.tooltipRect.ttHeight/2:n+i.tooltipRect.ttHeight+15>t.globals.gridHeight&&(n=t.globals.gridHeight),n<-10&&(n=-10),t.globals.isBarHorizontal||this.moveXCrosshairs(r),!i.fixedTooltip){var p=n||t.globals.gridHeight;this.moveTooltip(r,p)}}}]),v}(),Dt=function(){function v(e){I(this,v),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new gt(e)}return E(v,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new M(this.ctx),i=new G(this.ctx),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");a=V(a),e.config.chart.stacked&&a.sort(function(d,g){return parseFloat(d.getAttribute("data:realIndex"))-parseFloat(g.getAttribute("data:realIndex"))});for(var s=0;s<a.length;s++){var o=a[s].querySelector(".apexcharts-series-markers-wrap");if(o!==null){var r=void 0,n="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));e.config.chart.type!=="line"&&e.config.chart.type!=="area"||e.globals.comboCharts||e.config.tooltip.intersect||(n+=" no-pointer-events");var l=i.getMarkerConfig({cssClass:n,seriesIndex:Number(o.getAttribute("data:realIndex"))});(r=t.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var c=document.createElementNS(e.globals.SVGNS,"g");c.classList.add("apexcharts-series-markers"),c.appendChild(r.node),o.appendChild(c)}}}},{key:"enlargeCurrentPoint",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=this.w;s.config.chart.type!=="bubble"&&this.newPointSize(e,t);var o=t.getAttribute("cx"),r=t.getAttribute("cy");if(i!==null&&a!==null&&(o=i,r=a),this.tooltipPosition.moveXCrosshairs(o),!this.fixedTooltip){if(s.config.chart.type==="radar"){var n=this.ttCtx.getElGrid(),l=n.getBoundingClientRect();o=this.ttCtx.e.clientX-l.left}this.tooltipPosition.moveTooltip(o,r,s.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,i=this,a=this.ttCtx,s=e,o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),r=t.config.markers.hover.size,n=0;n<o.length;n++){var l=o[n].getAttribute("rel"),c=o[n].getAttribute("index");if(r===void 0&&(r=t.globals.markers.size[c]+t.config.markers.hover.sizeOffset),s===parseInt(l,10)){i.newPointSize(s,o[n]);var d=o[n].getAttribute("cx"),g=o[n].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(d),a.fixedTooltip||i.tooltipPosition.moveTooltip(d,g,r)}else i.oldPointSize(o[n])}}},{key:"newPointSize",value:function(e,t){var i=this.w,a=i.config.markers.hover.size,s=e===0?t.parentNode.firstChild:t.parentNode.lastChild;if(s.getAttribute("default-marker-size")!=="0"){var o=parseInt(s.getAttribute("index"),10);a===void 0&&(a=i.globals.markers.size[o]+i.config.markers.hover.sizeOffset),a<0&&(a=0),s.setAttribute("r",a)}}},{key:"oldPointSize",value:function(e){var t=parseFloat(e.getAttribute("default-marker-size"));e.setAttribute("r",t)}},{key:"resetPointsSize",value:function(){for(var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),t=0;t<e.length;t++){var i=parseFloat(e[t].getAttribute("default-marker-size"));C.isNumber(i)&&i>=0?e[t].setAttribute("r",i):e[t].setAttribute("r",0)}}}]),v}(),Ft=function(){function v(e){I(this,v),this.w=e.w,this.ttCtx=e}return E(v,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,i=e.opt,a=e.x,s=e.y,o=e.type,r=this.ttCtx,n=this.w;if(t.target.classList.contains("apexcharts-".concat(o,"-rect"))){var l=this.getAttr(t,"i"),c=this.getAttr(t,"j"),d=this.getAttr(t,"cx"),g=this.getAttr(t,"cy"),p=this.getAttr(t,"width"),x=this.getAttr(t,"height");if(r.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:l,j:c,shared:!1,e:t}),n.globals.capturedSeriesIndex=l,n.globals.capturedDataPointIndex=c,a=d+r.tooltipRect.ttWidth/2+p,s=g+r.tooltipRect.ttHeight/2-x/2,r.tooltipPosition.moveXCrosshairs(d+p/2),a>n.globals.gridWidth/2&&(a=d-r.tooltipRect.ttWidth/2+p),r.w.config.tooltip.followCursor){var f=n.globals.dom.elWrap.getBoundingClientRect();a=n.globals.clientX-f.left-(a>n.globals.gridWidth/2?r.tooltipRect.ttWidth:0),s=n.globals.clientY-f.top-(s>n.globals.gridHeight/2?r.tooltipRect.ttHeight:0)}}return{x:a,y:s}}},{key:"handleMarkerTooltip",value:function(e){var t,i,a=e.e,s=e.opt,o=e.x,r=e.y,n=this.w,l=this.ttCtx;if(a.target.classList.contains("apexcharts-marker")){var c=parseInt(s.paths.getAttribute("cx"),10),d=parseInt(s.paths.getAttribute("cy"),10),g=parseFloat(s.paths.getAttribute("val"));if(i=parseInt(s.paths.getAttribute("rel"),10),t=parseInt(s.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var p=C.findAncestor(s.paths,"apexcharts-series");p&&(t=parseInt(p.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:t,j:i,shared:!l.showOnIntersect&&n.config.tooltip.shared,e:a}),a.type==="mouseup"&&l.markerClick(a,t,i),n.globals.capturedSeriesIndex=t,n.globals.capturedDataPointIndex=i,o=c,r=d+n.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var x=l.getElGrid().getBoundingClientRect();r=l.e.clientY+n.globals.translateY-x.top}g<0&&(r=d),l.marker.enlargeCurrentPoint(i,s.paths,o,r)}return{x:o,y:r}}},{key:"handleBarTooltip",value:function(e){var t,i,a=e.e,s=e.opt,o=this.w,r=this.ttCtx,n=r.getElTooltip(),l=0,c=0,d=0,g=this.getBarTooltipXY({e:a,opt:s});t=g.i;var p=g.barHeight,x=g.j;o.globals.capturedSeriesIndex=t,o.globals.capturedDataPointIndex=x,o.globals.isBarHorizontal&&r.tooltipUtil.hasBars()||!o.config.tooltip.shared?(c=g.x,d=g.y,i=Array.isArray(o.config.stroke.width)?o.config.stroke.width[t]:o.config.stroke.width,l=c):o.globals.comboCharts||o.config.tooltip.shared||(l/=2),isNaN(d)?d=o.globals.svgHeight-r.tooltipRect.ttHeight:d<0&&(d=0);var f=parseInt(s.paths.parentNode.getAttribute("data:realIndex"),10),b=o.globals.isMultipleYAxis?o.config.yaxis[f]&&o.config.yaxis[f].reversed:o.config.yaxis[0].reversed;if(c+r.tooltipRect.ttWidth>o.globals.gridWidth&&!b?c-=r.tooltipRect.ttWidth:c<0&&(c=0),r.w.config.tooltip.followCursor){var w=r.getElGrid().getBoundingClientRect();d=r.e.clientY-w.top}r.tooltip===null&&(r.tooltip=o.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),o.config.tooltip.shared||(o.globals.comboBarCount>0?r.tooltipPosition.moveXCrosshairs(l+i/2):r.tooltipPosition.moveXCrosshairs(l)),!r.fixedTooltip&&(!o.config.tooltip.shared||o.globals.isBarHorizontal&&r.tooltipUtil.hasBars())&&(b&&(c-=r.tooltipRect.ttWidth)<0&&(c=0),!b||o.globals.isBarHorizontal&&r.tooltipUtil.hasBars()||(d=d+p-2*(o.globals.series[t][x]<0?p:0)),r.tooltipRect.ttHeight+d>o.globals.gridHeight?d=o.globals.gridHeight-r.tooltipRect.ttHeight+o.globals.translateY:(d=d+o.globals.translateY-r.tooltipRect.ttHeight/2)<0&&(d=0),n.style.left=c+o.globals.translateX+"px",n.style.top=d+"px")}},{key:"getBarTooltipXY",value:function(e){var t=e.e,i=e.opt,a=this.w,s=null,o=this.ttCtx,r=0,n=0,l=0,c=0,d=0,g=t.target.classList;if(g.contains("apexcharts-bar-area")||g.contains("apexcharts-candlestick-area")||g.contains("apexcharts-boxPlot-area")||g.contains("apexcharts-rangebar-area")){var p=t.target,x=p.getBoundingClientRect(),f=i.elGrid.getBoundingClientRect(),b=x.height;d=x.height;var w=x.width,k=parseInt(p.getAttribute("cx"),10),A=parseInt(p.getAttribute("cy"),10);c=parseFloat(p.getAttribute("barWidth"));var h=t.type==="touchmove"?t.touches[0].clientX:t.clientX;s=parseInt(p.getAttribute("j"),10),r=parseInt(p.parentNode.getAttribute("rel"),10)-1;var u=p.getAttribute("data-range-y1"),m=p.getAttribute("data-range-y2");a.globals.comboCharts&&(r=parseInt(p.parentNode.getAttribute("data:realIndex"),10)),o.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:r,j:s,y1:u?parseInt(u,10):null,y2:m?parseInt(m,10):null,shared:!o.showOnIntersect&&a.config.tooltip.shared,e:t}),a.config.tooltip.followCursor?a.globals.isBarHorizontal?(n=h-f.left+15,l=A-o.dataPointsDividedHeight+b/2-o.tooltipRect.ttHeight/2):(n=a.globals.isXNumeric?k-w/2:k-o.dataPointsDividedWidth+w/2,l=t.clientY-f.top-o.tooltipRect.ttHeight/2-15):a.globals.isBarHorizontal?((n=k)<o.xyRatios.baseLineInvertedY&&(n=k-o.tooltipRect.ttWidth),l=A-o.dataPointsDividedHeight+b/2-o.tooltipRect.ttHeight/2):(n=a.globals.isXNumeric?k-w/2:k-o.dataPointsDividedWidth+w/2,l=A)}return{x:n,y:l,barHeight:d,barWidth:c,i:r,j:s}}}]),v}(),Rt=function(){function v(e){I(this,v),this.w=e.w,this.ttCtx=e}return E(v,[{key:"drawXaxisTooltip",value:function(){var e=this.w,t=this.ttCtx,i=e.config.xaxis.position==="bottom";t.xaxisOffY=i?e.globals.gridHeight+1:-e.globals.xAxisHeight-e.config.xaxis.axisTicks.height+3;var a=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",s=e.globals.dom.elWrap;t.isXAxisTooltipEnabled&&e.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")===null&&(t.xaxisTooltip=document.createElement("div"),t.xaxisTooltip.setAttribute("class",a+" apexcharts-theme-"+e.config.tooltip.theme),s.appendChild(t.xaxisTooltip),t.xaxisTooltipText=document.createElement("div"),t.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),t.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,t.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,t.xaxisTooltip.appendChild(t.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var e=this.w,t=this.ttCtx,i=function(s){var o=e.config.yaxis[s].opposite||e.config.yaxis[s].crosshairs.opposite;t.yaxisOffX=o?e.globals.gridWidth+1:1;var r="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(s,o?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");e.globals.yAxisSameScaleIndices.map(function(l,c){l.map(function(d,g){g===s&&(r+=e.config.yaxis[g].show?" ":" apexcharts-yaxistooltip-hidden")})});var n=e.globals.dom.elWrap;e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(s))===null&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",r+" apexcharts-theme-"+e.config.tooltip.theme),n.appendChild(t.yaxisTooltip),s===0&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[s]=document.createElement("div"),t.yaxisTooltipText[s].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[s]))},a=0;a<e.config.yaxis.length;a++)i(a)}},{key:"setXCrosshairWidth",value:function(){var e=this.w,t=this.ttCtx,i=t.getElXCrosshairs();if(t.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts){var a=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(a!==null&&e.config.xaxis.crosshairs.width==="barWidth"){var s=parseFloat(a.getAttribute("barWidth"));t.xcrosshairsWidth=s}else if(e.config.xaxis.crosshairs.width==="tickWidth"){var o=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/o}}else if(e.config.xaxis.crosshairs.width==="tickWidth"){var r=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/r}else if(e.config.xaxis.crosshairs.width==="barWidth"){var n=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(n!==null){var l=parseFloat(n.getAttribute("barWidth"));t.xcrosshairsWidth=l}else t.xcrosshairsWidth=1}e.globals.isBarHorizontal&&(t.xcrosshairsWidth=0),i!==null&&t.xcrosshairsWidth>0&&i.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,t=this.ttCtx;t.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,t,i){var a=this.ttCtx,s=this.w,o=s.globals.yLabelFormatters[e];if(a.yaxisTooltips[e]){var r=a.getElGrid().getBoundingClientRect(),n=(t-r.top)*i.yRatio[e],l=s.globals.maxYArr[e]-s.globals.minYArr[e],c=s.globals.minYArr[e]+(l-n);a.tooltipPosition.moveYCrosshairs(t-r.top),a.yaxisTooltipText[e].innerHTML=o(c),a.tooltipPosition.moveYAxisTooltip(e)}}}]),v}(),Ht=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w;var t=this.w;this.tConfig=t.config.tooltip,this.tooltipUtil=new dt(this),this.tooltipLabels=new Yt(this),this.tooltipPosition=new gt(this),this.marker=new Dt(this),this.intersect=new Ft(this),this.axesTooltip=new Rt(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,this.lastHoverTime=Date.now()}return E(v,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl?e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(e){var t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map(function(o,r){return!!(o.show&&o.tooltip.enabled&&t.globals.axisCharts)}),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&i.classList.add(t.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(i),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var a=new Ye(this.ctx);this.xAxisTicksPositions=a.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,i.appendChild(this.tooltipTitle));var s=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(s=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(s),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,i=this.w,a=[],s=this.getElTooltip(),o=function(n){var l=document.createElement("div");l.classList.add("apexcharts-tooltip-series-group"),l.style.order=i.config.tooltip.inverseOrder?e-n:n+1,t.tConfig.shared&&t.tConfig.enabledOnSeries&&Array.isArray(t.tConfig.enabledOnSeries)&&t.tConfig.enabledOnSeries.indexOf(n)<0&&l.classList.add("apexcharts-tooltip-series-group-hidden");var c=document.createElement("span");c.classList.add("apexcharts-tooltip-marker"),c.style.backgroundColor=i.globals.colors[n],l.appendChild(c);var d=document.createElement("div");d.classList.add("apexcharts-tooltip-text"),d.style.fontFamily=t.tConfig.style.fontFamily||i.config.chart.fontFamily,d.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach(function(g){var p=document.createElement("div");p.classList.add("apexcharts-tooltip-".concat(g,"-group"));var x=document.createElement("span");x.classList.add("apexcharts-tooltip-text-".concat(g,"-label")),p.appendChild(x);var f=document.createElement("span");f.classList.add("apexcharts-tooltip-text-".concat(g,"-value")),p.appendChild(f),d.appendChild(p)}),l.appendChild(d),s.appendChild(l),a.push(l)},r=0;r<e;r++)o(r);return a}},{key:"addSVGEvents",value:function(){var e=this.w,t=e.config.chart.type,i=this.getElTooltip(),a=!(t!=="bar"&&t!=="candlestick"&&t!=="boxPlot"&&t!=="rangeBar"),s=t==="area"||t==="line"||t==="scatter"||t==="bubble"||t==="radar",o=e.globals.dom.Paper.node,r=this.getElGrid();r&&(this.seriesBound=r.getBoundingClientRect());var n,l=[],c=[],d={hoverArea:o,elGrid:r,tooltipEl:i,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(e.globals.axisCharts&&(s?n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):a?n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):t!=="heatmap"&&t!=="treemap"||(n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),n&&n.length))for(var g=0;g<n.length;g++)l.push(n[g].getAttribute("cy")),c.push(n[g].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||a&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([o],d);else if(a&&!e.globals.comboCharts||s&&this.showOnIntersect)this.addDatapointEventsListeners(d);else if(!e.globals.axisCharts||t==="heatmap"||t==="treemap"){var p=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(p,d)}if(this.showOnIntersect){var x=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");x.length>0&&this.addPathsEventListeners(x,d),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(d)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),i=t.getBoundingClientRect(),a=i.width+10,s=i.height+10,o=this.tConfig.fixed.offsetX,r=this.tConfig.fixed.offsetY,n=this.tConfig.fixed.position.toLowerCase();return n.indexOf("right")>-1&&(o=o+e.globals.svgWidth-a+10),n.indexOf("bottom")>-1&&(r=r+e.globals.svgHeight-s-10),t.style.left=o+"px",t.style.top=r+"px",{x:o,y:r,ttWidth:a,ttHeight:s}}},{key:"addDatapointEventsListeners",value:function(e){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,e)}},{key:"addPathsEventListeners",value:function(e,t){for(var i=this,a=function(o){var r={paths:e[o],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(n){return e[o].addEventListener(n,i.onSeriesHover.bind(i,r),{capture:!1,passive:!0})})},s=0;s<e.length;s++)a(s)}},{key:"onSeriesHover",value:function(e,t){var i=this,a=Date.now()-this.lastHoverTime;a>=100?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){i.seriesHover(e,t)},100-a))}},{key:"seriesHover",value:function(e,t){var i=this;this.lastHoverTime=Date.now();var a=[],s=this.w;s.config.chart.group&&(a=this.ctx.getGroupedCharts()),s.globals.axisCharts&&(s.globals.minX===-1/0&&s.globals.maxX===1/0||s.globals.dataPoints===0)||(a.length?a.forEach(function(o){var r=i.getElTooltip(o),n={paths:e.paths,tooltipEl:r,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:o.w.globals.tooltip.ttItems};o.w.globals.minX===i.w.globals.minX&&o.w.globals.maxX===i.w.globals.maxX&&o.w.globals.tooltip.seriesHoverByContext({chartCtx:o,ttCtx:o.w.globals.tooltip,opt:n,e:t})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}},{key:"seriesHoverByContext",value:function(e){var t=e.chartCtx,i=e.ttCtx,a=e.opt,s=e.e,o=t.w,r=this.getElTooltip();r&&(i.tooltipRect={x:0,y:0,ttWidth:r.getBoundingClientRect().width,ttHeight:r.getBoundingClientRect().height},i.e=s,i.tooltipUtil.hasBars()&&!o.globals.comboCharts&&!i.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new ae(t).toggleSeriesOnHover(s,s.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),o.globals.axisCharts?i.axisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(e){var t,i,a=e.e,s=e.opt,o=this.w,r=s.elGrid.getBoundingClientRect(),n=a.type==="touchmove"?a.touches[0].clientX:a.clientX,l=a.type==="touchmove"?a.touches[0].clientY:a.clientY;if(this.clientY=l,this.clientX=n,o.globals.capturedSeriesIndex=-1,o.globals.capturedDataPointIndex=-1,l<r.top||l>r.top+r.height)this.handleMouseOut(s);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!o.config.tooltip.shared){var c=parseInt(s.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(s)}var d=this.getElTooltip(),g=this.getElXCrosshairs(),p=o.globals.xyCharts||o.config.chart.type==="bar"&&!o.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||o.globals.comboCharts&&this.tooltipUtil.hasBars();if(a.type==="mousemove"||a.type==="touchmove"||a.type==="mouseup"){if(o.globals.collapsedSeries.length+o.globals.ancillaryCollapsedSeries.length===o.globals.series.length)return;g!==null&&g.classList.add("apexcharts-active");var x=this.yaxisTooltips.filter(function(w){return w===!0});if(this.ycrosshairs!==null&&x.length&&this.ycrosshairs.classList.add("apexcharts-active"),p&&!this.showOnIntersect)this.handleStickyTooltip(a,n,l,s);else if(o.config.chart.type==="heatmap"||o.config.chart.type==="treemap"){var f=this.intersect.handleHeatTreeTooltip({e:a,opt:s,x:t,y:i,type:o.config.chart.type});t=f.x,i=f.y,d.style.left=t+"px",d.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:a,opt:s}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:a,opt:s,x:t,y:i});if(this.yaxisTooltips.length)for(var b=0;b<o.config.yaxis.length;b++)this.axesTooltip.drawYaxisTooltipText(b,l,this.xyRatios);s.tooltipEl.classList.add("apexcharts-active")}else a.type!=="mouseout"&&a.type!=="touchend"||this.handleMouseOut(s)}}},{key:"nonAxisChartsTooltips",value:function(e){var t=e.e,i=e.opt,a=e.tooltipRect,s=this.w,o=i.paths.getAttribute("rel"),r=this.getElTooltip(),n=s.globals.dom.elWrap.getBoundingClientRect();if(t.type==="mousemove"||t.type==="touchmove"){r.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(o,10)-1,shared:!1});var l=s.globals.clientX-n.left-a.ttWidth/2,c=s.globals.clientY-n.top-a.ttHeight-10;if(r.style.left=l+"px",r.style.top=c+"px",s.config.legend.tooltipHoverFormatter){var d=o-1,g=(0,s.config.legend.tooltipHoverFormatter)(this.legendLabels[d].getAttribute("data:default-text"),{seriesIndex:d,dataPointIndex:d,w:s});this.legendLabels[d].innerHTML=g}}else t.type!=="mouseout"&&t.type!=="touchend"||(r.classList.remove("apexcharts-active"),s.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(p){var x=p.getAttribute("data:default-text");p.innerHTML=decodeURIComponent(x)}))}},{key:"handleStickyTooltip",value:function(e,t,i,a){var s=this.w,o=this.tooltipUtil.getNearestValues({context:this,hoverArea:a.hoverArea,elGrid:a.elGrid,clientX:t,clientY:i}),r=o.j,n=o.capturedSeries,l=a.elGrid.getBoundingClientRect();o.hoverX<0||o.hoverX>l.width?this.handleMouseOut(a):n!==null?this.handleStickyCapturedSeries(e,n,a,r):(this.tooltipUtil.isXoverlap(r)||s.globals.isBarHorizontal)&&this.create(e,this,0,r,a.ttItems)}},{key:"handleStickyCapturedSeries",value:function(e,t,i,a){var s=this.w;if(!this.tConfig.shared&&s.globals.series[t][a]===null)return void this.handleMouseOut(i);s.globals.series[t][a]!==void 0?this.tConfig.shared&&this.tooltipUtil.isXoverlap(a)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,a,i.ttItems):this.create(e,this,t,a,i.ttItems,!1):this.tooltipUtil.isXoverlap(a)&&this.create(e,this,0,a,i.ttItems)}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new M(this.ctx),i=e.globals.dom.Paper.select(".apexcharts-bar-area"),a=0;a<i.length;a++)t.pathMouseLeave(i[a])}},{key:"handleMouseOut",value:function(e){var t=this.w,i=this.getElXCrosshairs();if(e.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),t.config.chart.type!=="bubble"&&this.marker.resetPointsSize(),i!==null&&i.classList.remove("apexcharts-active"),this.ycrosshairs!==null&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){this.yaxisTTEls===null&&(this.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var a=0;a<this.yaxisTTEls.length;a++)this.yaxisTTEls[a].classList.remove("apexcharts-active")}t.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(s){var o=s.getAttribute("data:default-text");s.innerHTML=decodeURIComponent(o)})}},{key:"markerClick",value:function(e,t,i){var a=this.w;typeof a.config.chart.events.markerClick=="function"&&a.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:i,w:a}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:i,w:a}])}},{key:"create",value:function(e,t,i,a,s){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,r=this.w,n=t;e.type==="mouseup"&&this.markerClick(e,i,a),o===null&&(o=this.tConfig.shared);var l=this.tooltipUtil.hasMarkers(),c=this.tooltipUtil.getElBars();if(r.config.legend.tooltipHoverFormatter){var d=r.config.legend.tooltipHoverFormatter,g=Array.from(this.legendLabels);g.forEach(function(u){var m=u.getAttribute("data:default-text");u.innerHTML=decodeURIComponent(m)});for(var p=0;p<g.length;p++){var x=g[p],f=parseInt(x.getAttribute("i"),10),b=decodeURIComponent(x.getAttribute("data:default-text")),w=d(b,{seriesIndex:o?f:i,dataPointIndex:a,w:r});if(o)x.innerHTML=r.globals.collapsedSeriesIndices.indexOf(f)<0?w:b;else if(x.innerHTML=f===i?w:b,i===f)break}}if(o){if(n.tooltipLabels.drawSeriesTexts({ttItems:s,i,j:a,shared:!this.showOnIntersect&&this.tConfig.shared}),l&&(r.globals.markers.largestSize>0?n.marker.enlargePoints(a):n.tooltipPosition.moveDynamicPointsOnHover(a)),this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(c),this.barSeriesHeight>0)){var k=new M(this.ctx),A=r.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(a,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(a);for(var h=0;h<A.length;h++)k.pathMouseEnter(A[h])}}else n.tooltipLabels.drawSeriesTexts({shared:!1,ttItems:s,i,j:a}),this.tooltipUtil.hasBars()&&n.tooltipPosition.moveStickyTooltipOverBars(a),l&&n.tooltipPosition.moveMarkers(i,a)}}]),v}(),ut=function(v){he(t,Fe);var e=ye(t);function t(){return I(this,t),e.apply(this,arguments)}return E(t,[{key:"draw",value:function(i,a){var s=this,o=this.w;this.graphics=new M(this.ctx),this.bar=new Fe(this.ctx,this.xyRatios);var r=new Z(this.ctx,o);i=r.getLogSeries(i),this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i),o.config.chart.stackType==="100%"&&(i=o.globals.seriesPercent.slice()),this.series=i,this.totalItems=0,this.prevY=[],this.prevX=[],this.prevYF=[],this.prevXF=[],this.prevYVal=[],this.prevXVal=[],this.xArrj=[],this.xArrjF=[],this.xArrjVal=[],this.yArrj=[],this.yArrjF=[],this.yArrjVal=[];for(var n=0;n<i.length;n++)i[n].length>0&&(this.totalItems+=i[n].length);for(var l=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),c=0,d=0,g=function(f,b){var w=void 0,k=void 0,A=void 0,h=void 0,u=[],m=[],y=o.globals.comboCharts?a[f]:f;s.yRatio.length>1&&(s.yaxisIndex=y),s.isReversed=o.config.yaxis[s.yaxisIndex]&&o.config.yaxis[s.yaxisIndex].reversed;var S=s.graphics.group({class:"apexcharts-series",seriesName:C.escapeString(o.globals.seriesNames[y]),rel:f+1,"data:realIndex":y});s.ctx.series.addCollapsedClassToSeries(S,y);var P=s.graphics.group({class:"apexcharts-datalabels","data:realIndex":y}),L=0,z=0,T=s.initialPositions(c,d,w,k,A,h);d=T.y,L=T.barHeight,k=T.yDivision,h=T.zeroW,c=T.x,z=T.barWidth,w=T.xDivision,A=T.zeroH,s.yArrj=[],s.yArrjF=[],s.yArrjVal=[],s.xArrj=[],s.xArrjF=[],s.xArrjVal=[],s.prevY.length===1&&s.prevY[0].every(function(oe){return isNaN(oe)})&&(s.prevY[0]=s.prevY[0].map(function(oe){return A}),s.prevYF[0]=s.prevYF[0].map(function(oe){return 0}));for(var Y=0;Y<o.globals.dataPoints;Y++){var H=s.barHelpers.getStrokeWidth(f,Y,y),q={indexes:{i:f,j:Y,realIndex:y,bc:b},strokeWidth:H,x:c,y:d,elSeries:S},_=null;s.isHorizontal?(_=s.drawStackedBarPaths(D(D({},q),{},{zeroW:h,barHeight:L,yDivision:k})),z=s.series[f][Y]/s.invertedYRatio):(_=s.drawStackedColumnPaths(D(D({},q),{},{xDivision:w,barWidth:z,zeroH:A})),L=s.series[f][Y]/s.yRatio[s.yaxisIndex]),d=_.y,c=_.x,u.push(c),m.push(d);var se=s.barHelpers.getPathFillColor(i,f,Y,y);S=s.renderSeries({realIndex:y,pathFill:se,j:Y,i:f,pathFrom:_.pathFrom,pathTo:_.pathTo,strokeWidth:H,elSeries:S,x:c,y:d,series:i,barHeight:L,barWidth:z,elDataLabelsWrap:P,type:"bar",visibleSeries:0})}o.globals.seriesXvalues[y]=u,o.globals.seriesYvalues[y]=m,s.prevY.push(s.yArrj),s.prevYF.push(s.yArrjF),s.prevYVal.push(s.yArrjVal),s.prevX.push(s.xArrj),s.prevXF.push(s.xArrjF),s.prevXVal.push(s.xArrjVal),l.add(S)},p=0,x=0;p<i.length;p++,x++)g(p,x);return l}},{key:"initialPositions",value:function(i,a,s,o,r,n){var l,c,d=this.w;return this.isHorizontal?(l=(l=o=d.globals.gridHeight/d.globals.dataPoints)*parseInt(d.config.plotOptions.bar.barHeight,10)/100,n=this.baseLineInvertedY+d.globals.padHorizontal+(this.isReversed?d.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),a=(o-l)/2):(c=s=d.globals.gridWidth/d.globals.dataPoints,c=d.globals.isXNumeric&&d.globals.dataPoints>1?(s=d.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:c*parseInt(d.config.plotOptions.bar.columnWidth,10)/100,r=this.baseLineY[this.yaxisIndex]+(this.isReversed?d.globals.gridHeight:0)-(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),i=d.globals.padHorizontal+(s-c)/2),{x:i,y:a,yDivision:o,xDivision:s,barHeight:l,barWidth:c,zeroH:r,zeroW:n}}},{key:"drawStackedBarPaths",value:function(i){for(var a,s=i.indexes,o=i.barHeight,r=i.strokeWidth,n=i.zeroW,l=i.x,c=i.y,d=i.yDivision,g=i.elSeries,p=this.w,x=c,f=s.i,b=s.j,w=0,k=0;k<this.prevXF.length;k++)w+=this.prevXF[k][b];if(f>0){var A=n;this.prevXVal[f-1][b]<0?A=this.series[f][b]>=0?this.prevX[f-1][b]+w-2*(this.isReversed?w:0):this.prevX[f-1][b]:this.prevXVal[f-1][b]>=0&&(A=this.series[f][b]>=0?this.prevX[f-1][b]:this.prevX[f-1][b]-w+2*(this.isReversed?w:0)),a=A}else a=n;l=this.series[f][b]===null?a:a+this.series[f][b]/this.invertedYRatio-2*(this.isReversed?this.series[f][b]/this.invertedYRatio:0);var h=this.barHelpers.getBarpaths({barYPosition:x,barHeight:o,x1:a,x2:l,strokeWidth:r,series:this.series,realIndex:s.realIndex,i:f,j:b,w:p});return this.barHelpers.barBackground({j:b,i:f,y1:x,y2:o,elSeries:g}),c+=d,{pathTo:h.pathTo,pathFrom:h.pathFrom,x:l,y:c}}},{key:"drawStackedColumnPaths",value:function(i){var a=i.indexes,s=i.x,o=i.y,r=i.xDivision,n=i.barWidth,l=i.zeroH;i.strokeWidth;var c=i.elSeries,d=this.w,g=a.i,p=a.j,x=a.bc;if(d.globals.isXNumeric){var f=d.globals.seriesX[g][p];f||(f=0),s=(f-d.globals.minX)/this.xRatio-n/2}for(var b,w=s,k=0,A=0;A<this.prevYF.length;A++)k+=isNaN(this.prevYF[A][p])?0:this.prevYF[A][p];if(g>0&&!d.globals.isXNumeric||g>0&&d.globals.isXNumeric&&d.globals.seriesX[g-1][p]===d.globals.seriesX[g][p]){var h,u,m=Math.min(this.yRatio.length+1,g+1);if(this.prevY[g-1]!==void 0){for(var y=1;y<m;y++)if(!isNaN(this.prevY[g-y][p])){u=this.prevY[g-y][p];break}}for(var S=1;S<m;S++){if(this.prevYVal[g-S][p]<0){h=this.series[g][p]>=0?u-k+2*(this.isReversed?k:0):u;break}if(this.prevYVal[g-S][p]>=0){h=this.series[g][p]>=0?u:u+k-2*(this.isReversed?k:0);break}}h===void 0&&(h=d.globals.gridHeight),b=this.prevYF[0].every(function(L){return L===0})&&this.prevYF.slice(1,g).every(function(L){return L.every(function(z){return isNaN(z)})})?d.globals.gridHeight-l:h}else b=d.globals.gridHeight-l;o=b-this.series[g][p]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[g][p]/this.yRatio[this.yaxisIndex]:0);var P=this.barHelpers.getColumnPaths({barXPosition:w,barWidth:n,y1:b,y2:o,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,realIndex:a.realIndex,i:g,j:p,w:d});return this.barHelpers.barBackground({bc:x,j:p,i:g,x1:w,x2:n,elSeries:c}),s+=r,{pathTo:P.pathTo,pathFrom:P.pathFrom,x:d.globals.isXNumeric?s-r:s,y:o}}}]),t}(),it=function(v){he(t,Fe);var e=ye(t);function t(){return I(this,t),e.apply(this,arguments)}return E(t,[{key:"draw",value:function(i,a){var s=this,o=this.w,r=new M(this.ctx),n=new F(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=o.config.plotOptions.bar.horizontal;var l=new Z(this.ctx,o);i=l.getLogSeries(i),this.series=i,this.yRatio=l.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i);for(var c=r.group({class:"apexcharts-".concat(o.config.chart.type,"-series apexcharts-plot-series")}),d=function(p){s.isBoxPlot=o.config.chart.type==="boxPlot"||o.config.series[p].type==="boxPlot";var x,f,b,w,k=void 0,A=void 0,h=[],u=[],m=o.globals.comboCharts?a[p]:p,y=r.group({class:"apexcharts-series",seriesName:C.escapeString(o.globals.seriesNames[m]),rel:p+1,"data:realIndex":m});s.ctx.series.addCollapsedClassToSeries(y,m),i[p].length>0&&(s.visibleI=s.visibleI+1);var S,P;s.yRatio.length>1&&(s.yaxisIndex=m);var L=s.barHelpers.initialPositions();A=L.y,S=L.barHeight,f=L.yDivision,w=L.zeroW,k=L.x,P=L.barWidth,x=L.xDivision,b=L.zeroH,u.push(k+P/2);for(var z=r.group({class:"apexcharts-datalabels","data:realIndex":m}),T=function(H){var q=s.barHelpers.getStrokeWidth(p,H,m),_=null,se={indexes:{i:p,j:H,realIndex:m},x:k,y:A,strokeWidth:q,elSeries:y};_=s.isHorizontal?s.drawHorizontalBoxPaths(D(D({},se),{},{yDivision:f,barHeight:S,zeroW:w})):s.drawVerticalBoxPaths(D(D({},se),{},{xDivision:x,barWidth:P,zeroH:b})),A=_.y,k=_.x,H>0&&u.push(k+P/2),h.push(A),_.pathTo.forEach(function(oe,Pe){var Re=!s.isBoxPlot&&s.candlestickOptions.wick.useFillColor?_.color[Pe]:o.globals.stroke.colors[p],Ne=n.fillPath({seriesNumber:m,dataPointIndex:H,color:_.color[Pe],value:i[p][H]});s.renderSeries({realIndex:m,pathFill:Ne,lineFill:Re,j:H,i:p,pathFrom:_.pathFrom,pathTo:oe,strokeWidth:q,elSeries:y,x:k,y:A,series:i,barHeight:S,barWidth:P,elDataLabelsWrap:z,visibleSeries:s.visibleI,type:o.config.chart.type})})},Y=0;Y<o.globals.dataPoints;Y++)T(Y);o.globals.seriesXvalues[m]=u,o.globals.seriesYvalues[m]=h,c.add(y)},g=0;g<i.length;g++)d(g);return c}},{key:"drawVerticalBoxPaths",value:function(i){var a=i.indexes,s=i.x;i.y;var o=i.xDivision,r=i.barWidth,n=i.zeroH,l=i.strokeWidth,c=this.w,d=new M(this.ctx),g=a.i,p=a.j,x=!0,f=c.config.plotOptions.candlestick.colors.upward,b=c.config.plotOptions.candlestick.colors.downward,w="";this.isBoxPlot&&(w=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var k=this.yRatio[this.yaxisIndex],A=a.realIndex,h=this.getOHLCValue(A,p),u=n,m=n;h.o>h.c&&(x=!1);var y=Math.min(h.o,h.c),S=Math.max(h.o,h.c),P=h.m;c.globals.isXNumeric&&(s=(c.globals.seriesX[A][p]-c.globals.minX)/this.xRatio-r/2);var L=s+r*this.visibleI;this.series[g][p]===void 0||this.series[g][p]===null?(y=n,S=n):(y=n-y/k,S=n-S/k,u=n-h.h/k,m=n-h.l/k,P=n-h.m/k);var z=d.move(L,n),T=d.move(L+r/2,y);return c.globals.previousPaths.length>0&&(T=this.getPreviousPath(A,p,!0)),z=this.isBoxPlot?[d.move(L,y)+d.line(L+r/2,y)+d.line(L+r/2,u)+d.line(L+r/4,u)+d.line(L+r-r/4,u)+d.line(L+r/2,u)+d.line(L+r/2,y)+d.line(L+r,y)+d.line(L+r,P)+d.line(L,P)+d.line(L,y+l/2),d.move(L,P)+d.line(L+r,P)+d.line(L+r,S)+d.line(L+r/2,S)+d.line(L+r/2,m)+d.line(L+r-r/4,m)+d.line(L+r/4,m)+d.line(L+r/2,m)+d.line(L+r/2,S)+d.line(L,S)+d.line(L,P)+"z"]:[d.move(L,S)+d.line(L+r/2,S)+d.line(L+r/2,u)+d.line(L+r/2,S)+d.line(L+r,S)+d.line(L+r,y)+d.line(L+r/2,y)+d.line(L+r/2,m)+d.line(L+r/2,y)+d.line(L,y)+d.line(L,S-l/2)],T+=d.move(L,y),c.globals.isXNumeric||(s+=o),{pathTo:z,pathFrom:T,x:s,y:S,barXPosition:L,color:this.isBoxPlot?w:x?[f]:[b]}}},{key:"drawHorizontalBoxPaths",value:function(i){var a=i.indexes;i.x;var s=i.y,o=i.yDivision,r=i.barHeight,n=i.zeroW,l=i.strokeWidth,c=this.w,d=new M(this.ctx),g=a.i,p=a.j,x=this.boxOptions.colors.lower;this.isBoxPlot&&(x=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var f=this.invertedYRatio,b=a.realIndex,w=this.getOHLCValue(b,p),k=n,A=n,h=Math.min(w.o,w.c),u=Math.max(w.o,w.c),m=w.m;c.globals.isXNumeric&&(s=(c.globals.seriesX[b][p]-c.globals.minX)/this.invertedXRatio-r/2);var y=s+r*this.visibleI;this.series[g][p]===void 0||this.series[g][p]===null?(h=n,u=n):(h=n+h/f,u=n+u/f,k=n+w.h/f,A=n+w.l/f,m=n+w.m/f);var S=d.move(n,y),P=d.move(h,y+r/2);return c.globals.previousPaths.length>0&&(P=this.getPreviousPath(b,p,!0)),S=[d.move(h,y)+d.line(h,y+r/2)+d.line(k,y+r/2)+d.line(k,y+r/2-r/4)+d.line(k,y+r/2+r/4)+d.line(k,y+r/2)+d.line(h,y+r/2)+d.line(h,y+r)+d.line(m,y+r)+d.line(m,y)+d.line(h+l/2,y),d.move(m,y)+d.line(m,y+r)+d.line(u,y+r)+d.line(u,y+r/2)+d.line(A,y+r/2)+d.line(A,y+r-r/4)+d.line(A,y+r/4)+d.line(A,y+r/2)+d.line(u,y+r/2)+d.line(u,y)+d.line(m,y)+"z"],P+=d.move(h,y),c.globals.isXNumeric||(s+=o),{pathTo:S,pathFrom:P,x:u,y:s,barYPosition:y,color:x}}},{key:"getOHLCValue",value:function(i,a){var s=this.w;return{o:this.isBoxPlot?s.globals.seriesCandleH[i][a]:s.globals.seriesCandleO[i][a],h:this.isBoxPlot?s.globals.seriesCandleO[i][a]:s.globals.seriesCandleH[i][a],m:s.globals.seriesCandleM[i][a],l:this.isBoxPlot?s.globals.seriesCandleC[i][a]:s.globals.seriesCandleL[i][a],c:this.isBoxPlot?s.globals.seriesCandleL[i][a]:s.globals.seriesCandleC[i][a]}}}]),t}(),pt=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,i=e.config.plotOptions[e.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map(function(a,s){a.from<=0&&(t=!0)}),t}},{key:"getShadeColor",value:function(e,t,i,a){var s=this.w,o=1,r=s.config.plotOptions[e].shadeIntensity,n=this.determineColor(e,t,i);s.globals.hasNegs||a?o=s.config.plotOptions[e].reverseNegativeShade?n.percent<0?n.percent/100*(1.25*r):(1-n.percent/100)*(1.25*r):n.percent<=0?1-(1+n.percent/100)*r:(1-n.percent/100)*r:(o=1-n.percent/100,e==="treemap"&&(o=(1-n.percent/100)*(1.25*r)));var l=n.color,c=new C;return s.config.plotOptions[e].enableShades&&(l=this.w.config.theme.mode==="dark"?C.hexToRgba(c.shadeColor(-1*o,n.color),s.config.fill.opacity):C.hexToRgba(c.shadeColor(o,n.color),s.config.fill.opacity)),{color:l,colorProps:n}}},{key:"determineColor",value:function(e,t,i){var a=this.w,s=a.globals.series[t][i],o=a.config.plotOptions[e],r=o.colorScale.inverse?i:t;o.distributed&&a.config.chart.type==="treemap"&&(r=i);var n=a.globals.colors[r],l=null,c=Math.min.apply(Math,V(a.globals.series[t])),d=Math.max.apply(Math,V(a.globals.series[t]));o.distributed||e!=="heatmap"||(c=a.globals.minY,d=a.globals.maxY),o.colorScale.min!==void 0&&(c=o.colorScale.min<a.globals.minY?o.colorScale.min:a.globals.minY,d=o.colorScale.max>a.globals.maxY?o.colorScale.max:a.globals.maxY);var g=Math.abs(d)+Math.abs(c),p=100*s/(g===0?g-1e-6:g);return o.colorScale.ranges.length>0&&o.colorScale.ranges.map(function(x,f){if(s>=x.from&&s<=x.to){n=x.color,l=x.foreColor?x.foreColor:null,c=x.from,d=x.to;var b=Math.abs(d)+Math.abs(c);p=100*s/(b===0?b-1e-6:b)}}),{color:n,foreColor:l,percent:p}}},{key:"calculateDataLabels",value:function(e){var t=e.text,i=e.x,a=e.y,s=e.i,o=e.j,r=e.colorProps,n=e.fontSize,l=this.w.config.dataLabels,c=new M(this.ctx),d=new Ae(this.ctx),g=null;if(l.enabled){g=c.group({class:"apexcharts-data-labels"});var p=l.offsetX,x=l.offsetY,f=i+p,b=a+parseFloat(l.style.fontSize)/3+x;d.plotDataLabelsText({x:f,y:b,text:t,i:s,j:o,color:r.foreColor,parent:g,fontSize:n,dataLabelsConfig:l})}return g}},{key:"addListeners",value:function(e){var t=new M(this.ctx);e.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",t.pathMouseDown.bind(this,e))}}]),v}(),Ot=function(){function v(e,t){I(this,v),this.ctx=e,this.w=e.w,this.xRatio=t.xRatio,this.yRatio=t.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new pt(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return E(v,[{key:"draw",value:function(e){var t=this.w,i=new M(this.ctx),a=i.group({class:"apexcharts-heatmap"});a.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var s=t.globals.gridWidth/t.globals.dataPoints,o=t.globals.gridHeight/t.globals.series.length,r=0,n=!1;this.negRange=this.helpers.checkColorRange();var l=e.slice();t.config.yaxis[0].reversed&&(n=!0,l.reverse());for(var c=n?0:l.length-1;n?c<l.length:c>=0;n?c++:c--){var d=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:C.escapeString(t.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(d,c),t.config.chart.dropShadow.enabled){var g=t.config.chart.dropShadow;new J(this.ctx).dropShadow(d,g,c)}for(var p=0,x=t.config.plotOptions.heatmap.shadeIntensity,f=0;f<l[c].length;f++){var b=this.helpers.getShadeColor(t.config.chart.type,c,f,this.negRange),w=b.color,k=b.colorProps;t.config.fill.type==="image"&&(w=new F(this.ctx).fillPath({seriesNumber:c,dataPointIndex:f,opacity:t.globals.hasNegs?k.percent<0?1-(1+k.percent/100):x+k.percent/100:k.percent/100,patternID:C.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:s,height:t.config.fill.image.height?t.config.fill.image.height:o}));var A=this.rectRadius,h=i.drawRect(p,r,s,o,A);if(h.attr({cx:p,cy:r}),h.node.classList.add("apexcharts-heatmap-rect"),d.add(h),h.attr({fill:w,i:c,index:c,j:f,val:l[c][f],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?w:t.globals.stroke.colors[0],color:w}),this.helpers.addListeners(h),t.config.chart.animations.enabled&&!t.globals.dataChanged){var u=1;t.globals.resized||(u=t.config.chart.animations.speed),this.animateHeatMap(h,p,r,s,o,u)}if(t.globals.dataChanged){var m=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){m=this.dynamicAnim.speed;var y=t.globals.previousPaths[c]&&t.globals.previousPaths[c][f]&&t.globals.previousPaths[c][f].color;y||(y="rgba(255, 255, 255, 0)"),this.animateHeatColor(h,C.isColorHex(y)?y:C.rgb2hex(y),C.isColorHex(w)?w:C.rgb2hex(w),m)}}var S=(0,t.config.dataLabels.formatter)(t.globals.series[c][f],{value:t.globals.series[c][f],seriesIndex:c,dataPointIndex:f,w:t}),P=this.helpers.calculateDataLabels({text:S,x:p+s/2,y:r+o/2,i:c,j:f,colorProps:k,series:l});P!==null&&d.add(P),p+=s}r+=o,a.add(d)}var L=t.globals.yAxisScale[0].result.slice();t.config.yaxis[0].reversed?L.unshift(""):L.push(""),t.globals.yAxisScale[0].result=L;var z=t.globals.gridHeight/t.globals.series.length;return t.config.yaxis[0].labels.offsetY=-z/2,a}},{key:"animateHeatMap",value:function(e,t,i,a,s,o){var r=new K(this.ctx);r.animateRect(e,{x:t+a/2,y:i+s/2,width:0,height:0},{x:t,y:i,width:a,height:s},o,function(){r.animationCompleted(e)})}},{key:"animateHeatColor",value:function(e,t,i,a){e.attr({fill:t}).animate(a).attr({fill:i})}}]),v}(),ft=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"drawYAxisTexts",value:function(e,t,i,a){var s=this.w,o=s.config.yaxis[0],r=s.globals.yLabelFormatters[0];return new M(this.ctx).drawText({x:e+o.labels.offsetX,y:t+o.labels.offsetY,text:r(a,i),textAnchor:"middle",fontSize:o.labels.style.fontSize,fontFamily:o.labels.style.fontFamily,foreColor:Array.isArray(o.labels.style.colors)?o.labels.style.colors[i]:o.labels.style.colors})}}]),v}(),xt=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w;var t=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=t.globals.stroke.colors!==void 0?t.globals.stroke.colors:t.globals.colors,this.defaultSize=Math.min(t.globals.gridWidth,t.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=t.globals.gridWidth/2,t.config.chart.type==="radialBar"?this.fullAngle=360:this.fullAngle=Math.abs(t.config.plotOptions.pie.endAngle-t.config.plotOptions.pie.startAngle),this.initialAngle=t.config.plotOptions.pie.startAngle%this.fullAngle,t.globals.radialSize=this.defaultSize/2.05-t.config.stroke.width-(t.config.chart.sparkline.enabled?0:t.config.chart.dropShadow.blur),this.donutSize=t.globals.radialSize*parseInt(t.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return E(v,[{key:"draw",value:function(e){var t=this,i=this.w,a=new M(this.ctx);if(this.ret=a.group({class:"apexcharts-pie"}),i.globals.noData)return this.ret;for(var s=0,o=0;o<e.length;o++)s+=C.negToZero(e[o]);var r=[],n=a.group();s===0&&(s=1e-5),e.forEach(function(y){t.maxY=Math.max(t.maxY,y)}),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),i.config.grid.position==="back"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret);for(var l=0;l<e.length;l++){var c=this.fullAngle*C.negToZero(e[l])/s;r.push(c),this.chartType==="polarArea"?(r[l]=this.fullAngle/e.length,this.sliceSizes.push(i.globals.radialSize*e[l]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var d,g=0,p=0;p<i.globals.previousPaths.length;p++)g+=C.negToZero(i.globals.previousPaths[p]);for(var x=0;x<i.globals.previousPaths.length;x++)d=this.fullAngle*C.negToZero(i.globals.previousPaths[x])/g,this.prevSectorAngleArr.push(d)}this.donutSize<0&&(this.donutSize=0);var f=i.config.plotOptions.pie.customScale,b=i.globals.gridWidth/2,w=i.globals.gridHeight/2,k=b-i.globals.gridWidth/2*f,A=w-i.globals.gridHeight/2*f;if(this.chartType==="donut"){var h=a.drawCircle(this.donutSize);h.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),n.add(h)}var u=this.drawArcs(r,e);if(this.sliceLabels.forEach(function(y){u.add(y)}),n.attr({transform:"translate(".concat(k,", ").concat(A,") scale(").concat(f,")")}),n.add(u),this.ret.add(n),this.donutDataLabels.show){var m=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:k,translateY:A});this.ret.add(m)}return i.config.grid.position==="front"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(e,t){var i=this.w,a=new J(this.ctx),s=new M(this.ctx),o=new F(this.ctx),r=s.group({class:"apexcharts-slices"}),n=this.initialAngle,l=this.initialAngle,c=this.initialAngle,d=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var g=0;g<e.length;g++){var p=s.group({class:"apexcharts-series apexcharts-pie-series",seriesName:C.escapeString(i.globals.seriesNames[g]),rel:g+1,"data:realIndex":g});r.add(p),l=d,c=(n=c)+e[g],d=l+this.prevSectorAngleArr[g];var x=c<n?this.fullAngle+c-n:c-n,f=o.fillPath({seriesNumber:g,size:this.sliceSizes[g],value:t[g]}),b=this.getChangedPath(l,d),w=s.drawPath({d:b,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[g]:this.lineColorArr,strokeWidth:0,fill:f,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(g)});if(w.attr({index:0,j:g}),a.setSelectionFilter(w,0,g),i.config.chart.dropShadow.enabled){var k=i.config.chart.dropShadow;a.dropShadow(w,k,g)}this.addListeners(w,this.donutDataLabels),M.setAttrs(w.node,{"data:angle":x,"data:startAngle":n,"data:strokeWidth":this.strokeWidth,"data:value":t[g]});var A={x:0,y:0};this.chartType==="pie"||this.chartType==="polarArea"?A=C.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(n+x/2)%this.fullAngle):this.chartType==="donut"&&(A=C.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(n+x/2)%this.fullAngle)),p.add(w);var h=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):((h=x/this.fullAngle*i.config.chart.animations.speed)===0&&(h=1),this.animDur=h+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(w,{size:this.sliceSizes[g],endAngle:c,startAngle:n,prevStartAngle:l,prevEndAngle:d,animateStartingPos:!0,i:g,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(w,{size:this.sliceSizes[g],endAngle:c,startAngle:n,i:g,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:h}),i.config.plotOptions.pie.expandOnClick&&this.chartType!=="polarArea"&&w.click(this.pieClicked.bind(this,g)),i.globals.selectedDataPoints[0]!==void 0&&i.globals.selectedDataPoints[0].indexOf(g)>-1&&this.pieClicked(g),i.config.dataLabels.enabled){var u=A.x,m=A.y,y=100*x/this.fullAngle+"%";if(x!==0&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[g]){var S=i.config.dataLabels.formatter;S!==void 0&&(y=S(i.globals.seriesPercent[g][0],{seriesIndex:g,w:i}));var P=i.globals.dataLabels.style.colors[g],L=s.group({class:"apexcharts-datalabels"}),z=s.drawText({x:u,y:m,text:y,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:P});if(L.add(z),i.config.dataLabels.dropShadow.enabled){var T=i.config.dataLabels.dropShadow;a.dropShadow(z,T)}z.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&i.globals.resized===!1&&(z.node.classList.add("apexcharts-pie-label-delay"),z.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(L)}}}return r}},{key:"addListeners",value:function(e,t){var i=new M(this.ctx);e.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",i.pathMouseDown.bind(this,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,e.node,t)))}},{key:"animatePaths",value:function(e,t){var i=this.w,a=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,s=a,o=t.startAngle,r=t.startAngle;t.prevStartAngle!==void 0&&t.prevEndAngle!==void 0&&(o=t.prevEndAngle,s=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===i.config.series.length-1&&(a+r>this.fullAngle?t.endAngle=t.endAngle-(a+r):a+r<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(a+r)))),a===this.fullAngle&&(a=this.fullAngle-.01),this.animateArc(e,o,r,a,s,t)}},{key:"animateArc",value:function(e,t,i,a,s,o){var r,n=this,l=this.w,c=new K(this.ctx),d=o.size;(isNaN(t)||isNaN(s))&&(t=i,s=a,o.dur=0);var g=a,p=i,x=t<i?this.fullAngle+t-i:t-i;l.globals.dataChanged&&o.shouldSetPrevPaths&&o.prevEndAngle&&(r=n.getPiePath({me:n,startAngle:o.prevStartAngle,angle:o.prevEndAngle<o.prevStartAngle?this.fullAngle+o.prevEndAngle-o.prevStartAngle:o.prevEndAngle-o.prevStartAngle,size:d}),e.attr({d:r})),o.dur!==0?e.animate(o.dur,l.globals.easing,o.animBeginArr[o.i]).afterAll(function(){n.chartType!=="pie"&&n.chartType!=="donut"&&n.chartType!=="polarArea"||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":n.strokeWidth}),o.i===l.config.series.length-1&&c.animationCompleted(e)}).during(function(f){g=x+(a-x)*f,o.animateStartingPos&&(g=s+(a-s)*f,p=t-s+(i-(t-s))*f),r=n.getPiePath({me:n,startAngle:p,angle:g,size:d}),e.node.setAttribute("data:pathOrig",r),e.attr({d:r})}):(r=n.getPiePath({me:n,startAngle:p,angle:a,size:d}),o.isTrack||(l.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",r),e.attr({d:r,"stroke-width":n.strokeWidth}))}},{key:"pieClicked",value:function(e){var t,i=this.w,a=this,s=a.sliceSizes[e]+(i.config.plotOptions.pie.expandOnClick?4:0),o=i.globals.dom.Paper.select(".apexcharts-".concat(a.chartType.toLowerCase(),"-slice-").concat(e)).members[0];if(o.attr("data:pieClicked")!=="true"){var r=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(r,function(d){d.setAttribute("data:pieClicked","false");var g=d.getAttribute("data:pathOrig");d.setAttribute("d",g)}),o.attr("data:pieClicked","true");var n=parseInt(o.attr("data:startAngle"),10),l=parseInt(o.attr("data:angle"),10);t=a.getPiePath({me:a,startAngle:n,angle:l,size:s}),l!==360&&o.plot(t)}else{o.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(o.node,this.donutDataLabels);var c=o.attr("data:pathOrig");o.attr({d:c})}}},{key:"getChangedPath",value:function(e,t){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),i}},{key:"getPiePath",value:function(e){var t=e.me,i=e.startAngle,a=e.angle,s=e.size,o=i,r=Math.PI*(o-90)/180,n=a+i;Math.ceil(n)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(n=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(n)>this.fullAngle&&(n-=this.fullAngle);var l=Math.PI*(n-90)/180,c=t.centerX+s*Math.cos(r),d=t.centerY+s*Math.sin(r),g=t.centerX+s*Math.cos(l),p=t.centerY+s*Math.sin(l),x=C.polarToCartesian(t.centerX,t.centerY,t.donutSize,n),f=C.polarToCartesian(t.centerX,t.centerY,t.donutSize,o),b=a>180?1:0,w=["M",c,d,"A",s,s,0,b,1,g,p];return t.chartType==="donut"?[].concat(w,["L",x.x,x.y,"A",t.donutSize,t.donutSize,0,b,0,f.x,f.y,"L",c,d,"z"]).join(" "):t.chartType==="pie"||t.chartType==="polarArea"?[].concat(w,["L",t.centerX,t.centerY,"L",c,d]).join(" "):[].concat(w).join(" ")}},{key:"drawPolarElements",value:function(e){var t=this.w,i=new Be(this.ctx),a=new M(this.ctx),s=new ft(this.ctx),o=a.group(),r=a.group(),n=i.niceScale(0,Math.ceil(this.maxY),t.config.yaxis[0].tickAmount,0,!0),l=n.result.reverse(),c=n.result.length;this.maxY=n.niceMax;for(var d=t.globals.radialSize,g=d/(c-1),p=0;p<c-1;p++){var x=a.drawCircle(d);if(x.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.rings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){var f=s.drawYAxisTexts(this.centerX,this.centerY-d+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,p,l[p]);r.add(f)}o.add(x),d-=g}this.drawSpokes(e),e.add(o),e.add(r)}},{key:"renderInnerDataLabels",value:function(e,t){var i=this.w,a=new M(this.ctx),s=a.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(t.translateX?t.translateX:0,", ").concat(t.translateY?t.translateY:0,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),o=e.total.show;s.node.style.opacity=t.opacity;var r,n,l=t.centerX,c=t.centerY;r=e.name.color===void 0?i.globals.colors[0]:e.name.color;var d=e.name.fontSize,g=e.name.fontFamily,p=e.name.fontWeight;n=e.value.color===void 0?i.config.chart.foreColor:e.value.color;var x=e.value.formatter,f="",b="";if(o?(r=e.total.color,d=e.total.fontSize,g=e.total.fontFamily,p=e.total.fontWeight,b=e.total.label,f=e.total.formatter(i)):i.globals.series.length===1&&(f=x(i.globals.series[0],i),b=i.globals.seriesNames[0]),b&&(b=e.name.formatter(b,e.total.show,i)),e.name.show){var w=a.drawText({x:l,y:c+parseFloat(e.name.offsetY),text:b,textAnchor:"middle",foreColor:r,fontSize:d,fontWeight:p,fontFamily:g});w.node.classList.add("apexcharts-datalabel-label"),s.add(w)}if(e.value.show){var k=e.name.show?parseFloat(e.value.offsetY)+16:e.value.offsetY,A=a.drawText({x:l,y:c+k,text:f,textAnchor:"middle",foreColor:n,fontWeight:e.value.fontWeight,fontSize:e.value.fontSize,fontFamily:e.value.fontFamily});A.node.classList.add("apexcharts-datalabel-value"),s.add(A)}return s}},{key:"printInnerLabels",value:function(e,t,i,a){var s,o=this.w;a?s=e.name.color===void 0?o.globals.colors[parseInt(a.parentNode.getAttribute("rel"),10)-1]:e.name.color:o.globals.series.length>1&&e.total.show&&(s=e.total.color);var r=o.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),n=o.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,e.value.formatter)(i,o),a||typeof e.total.formatter!="function"||(i=e.total.formatter(o));var l=t===e.total.label;t=e.name.formatter(t,l,o),r!==null&&(r.textContent=t),n!==null&&(n.textContent=i),r!==null&&(r.style.fill=s)}},{key:"printDataLabelsInner",value:function(e,t){var i=this.w,a=e.getAttribute("data:value"),s=i.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(t,s,a,e);var o=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");o!==null&&(o.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,i=this.w,a=new M(this.ctx),s=i.config.plotOptions.polarArea.spokes;if(s.strokeWidth!==0){for(var o=[],r=360/i.globals.series.length,n=0;n<i.globals.series.length;n++)o.push(C.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+r*n));o.forEach(function(l,c){var d=a.drawLine(l.x,l.y,t.centerX,t.centerY,Array.isArray(s.connectorColors)?s.connectorColors[c]:s.connectorColors);e.add(d)})}}},{key:"revertDataLabelsInner",value:function(e,t,i){var a=this,s=this.w,o=s.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),r=!1,n=s.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),l=function(g){var p=g.makeSliceOut,x=g.printLabel;Array.prototype.forEach.call(n,function(f){f.getAttribute("data:pieClicked")==="true"&&(p&&(r=!0),x&&a.printDataLabelsInner(f,t))})};if(l({makeSliceOut:!0,printLabel:!1}),t.total.show&&s.globals.series.length>1)r&&!t.total.showAlways?l({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(t,t.total.label,t.total.formatter(s));else if(l({makeSliceOut:!1,printLabel:!0}),!r)if(s.globals.selectedDataPoints.length&&s.globals.series.length>1)if(s.globals.selectedDataPoints[0].length>0){var c=s.globals.selectedDataPoints[0],d=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(c));this.printDataLabelsInner(d,t)}else o&&s.globals.selectedDataPoints.length&&s.globals.selectedDataPoints[0].length===0&&(o.style.opacity=0);else o&&s.globals.series.length>1&&(o.style.opacity=0)}}]),v}(),Nt=function(){function v(e){I(this,v),this.ctx=e,this.w=e.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 M(this.ctx),this.lineColorArr=t.globals.stroke.colors!==void 0?t.globals.stroke.colors:t.globals.colors,this.defaultSize=t.globals.svgHeight<t.globals.svgWidth?t.globals.gridHeight+1.5*t.globals.goldenPadding:t.globals.gridWidth,this.isLog=t.config.yaxis[0].logarithmic,this.coreUtils=new Z(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(t.globals.maxY,0):t.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):t.globals.minY,this.polygons=t.config.plotOptions.radar.polygons,this.strokeWidth=t.config.stroke.show?t.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-t.config.chart.dropShadow.blur,t.config.xaxis.labels.show&&(this.size=this.size-t.globals.xAxisLabelsWidth/1.75),t.config.plotOptions.radar.size!==void 0&&(this.size=t.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return E(v,[{key:"draw",value:function(e){var t=this,i=this.w,a=new F(this.ctx),s=[],o=new Ae(this.ctx);e.length&&(this.dataPointsLen=e[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var r=i.globals.gridWidth/2,n=i.globals.gridHeight/2,l=r+i.config.plotOptions.radar.offsetX,c=n+i.config.plotOptions.radar.offsetY,d=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(l||0,", ").concat(c||0,")")}),g=[],p=null,x=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach(function(b,w){var k=b.length===i.globals.dataPoints,A=t.graphics.group().attr({class:"apexcharts-series","data:longestSeries":k,seriesName:C.escapeString(i.globals.seriesNames[w]),rel:w+1,"data:realIndex":w});t.dataRadiusOfPercent[w]=[],t.dataRadius[w]=[],t.angleArr[w]=[],b.forEach(function(Y,H){var q=Math.abs(t.maxValue-t.minValue);Y+=Math.abs(t.minValue),t.isLog&&(Y=t.coreUtils.getLogVal(Y,0)),t.dataRadiusOfPercent[w][H]=Y/q,t.dataRadius[w][H]=t.dataRadiusOfPercent[w][H]*t.size,t.angleArr[w][H]=H*t.disAngle}),g=t.getDataPointsPos(t.dataRadius[w],t.angleArr[w]);var h=t.createPaths(g,{x:0,y:0});p=t.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),x=t.graphics.group({class:"apexcharts-datalabels","data:realIndex":w}),i.globals.delayedElements.push({el:p.node,index:w});var u={i:w,realIndex:w,animationDelay:w,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:i.globals.stroke.colors[w],strokeLineCap:i.config.stroke.lineCap},m=null;i.globals.previousPaths.length>0&&(m=t.getPreviousPath(w));for(var y=0;y<h.linePathsTo.length;y++){var S=t.graphics.renderPaths(D(D({},u),{},{pathFrom:m===null?h.linePathsFrom[y]:m,pathTo:h.linePathsTo[y],strokeWidth:Array.isArray(t.strokeWidth)?t.strokeWidth[w]:t.strokeWidth,fill:"none",drawShadow:!1}));A.add(S);var P=a.fillPath({seriesNumber:w}),L=t.graphics.renderPaths(D(D({},u),{},{pathFrom:m===null?h.areaPathsFrom[y]:m,pathTo:h.areaPathsTo[y],strokeWidth:0,fill:P,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var z=new J(t.ctx),T=i.config.chart.dropShadow;z.dropShadow(L,Object.assign({},T,{noUserSpaceOnUse:!0}),w)}A.add(L)}b.forEach(function(Y,H){var q=new G(t.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:w,dataPointIndex:H}),_=t.graphics.drawMarker(g[H].x,g[H].y,q);_.attr("rel",H),_.attr("j",H),_.attr("index",w),_.node.setAttribute("default-marker-size",q.pSize);var se=t.graphics.group({class:"apexcharts-series-markers"});se&&se.add(_),p.add(se),A.add(p);var oe=i.config.dataLabels;if(oe.enabled){var Pe=oe.formatter(i.globals.series[w][H],{seriesIndex:w,dataPointIndex:H,w:i});o.plotDataLabelsText({x:g[H].x,y:g[H].y,text:Pe,textAnchor:"middle",i:w,j:w,parent:x,offsetCorrection:!1,dataLabelsConfig:D({},oe)})}A.add(x)}),s.push(A)}),this.drawPolygons({parent:d}),i.config.xaxis.labels.show){var f=this.drawXAxisTexts();d.add(f)}return s.forEach(function(b){d.add(b)}),d.add(this.yaxisLabels),d}},{key:"drawPolygons",value:function(e){for(var t=this,i=this.w,a=e.parent,s=new ft(this.ctx),o=i.globals.yAxisScale[0].result.reverse(),r=o.length,n=[],l=this.size/(r-1),c=0;c<r;c++)n[c]=l*c;n.reverse();var d=[],g=[];n.forEach(function(p,x){var f=C.getPolygonPos(p,t.dataPointsLen),b="";f.forEach(function(w,k){if(x===0){var A=t.graphics.drawLine(w.x,w.y,0,0,Array.isArray(t.polygons.connectorColors)?t.polygons.connectorColors[k]:t.polygons.connectorColors);g.push(A)}k===0&&t.yaxisLabelsTextsPos.push({x:w.x,y:w.y}),b+=w.x+","+w.y+" "}),d.push(b)}),d.forEach(function(p,x){var f=t.polygons.strokeColors,b=t.polygons.strokeWidth,w=t.graphics.drawPolygon(p,Array.isArray(f)?f[x]:f,Array.isArray(b)?b[x]:b,i.globals.radarPolygons.fill.colors[x]);a.add(w)}),g.forEach(function(p){a.add(p)}),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(p,x){var f=s.drawYAxisTexts(p.x,p.y,x,o[x]);t.yaxisLabels.add(f)})}},{key:"drawXAxisTexts",value:function(){var e=this,t=this.w,i=t.config.xaxis.labels,a=this.graphics.group({class:"apexcharts-xaxis"}),s=C.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach(function(o,r){var n=t.config.xaxis.labels.formatter,l=new Ae(e.ctx);if(s[r]){var c=e.getTextPos(s[r],e.size),d=n(o,{seriesIndex:-1,dataPointIndex:r,w:t});l.plotDataLabelsText({x:c.newX,y:c.newY,text:d,textAnchor:c.textAnchor,i:r,j:r,parent:a,color:Array.isArray(i.style.colors)&&i.style.colors[r]?i.style.colors[r]:"#a8a8a8",dataLabelsConfig:D({textAnchor:c.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1})}}),a}},{key:"createPaths",value:function(e,t){var i=this,a=[],s=[],o=[],r=[];if(e.length){s=[this.graphics.move(t.x,t.y)],r=[this.graphics.move(t.x,t.y)];var n=this.graphics.move(e[0].x,e[0].y),l=this.graphics.move(e[0].x,e[0].y);e.forEach(function(c,d){n+=i.graphics.line(c.x,c.y),l+=i.graphics.line(c.x,c.y),d===e.length-1&&(n+="Z",l+="Z")}),a.push(n),o.push(l)}return{linePathsFrom:s,linePathsTo:a,areaPathsFrom:r,areaPathsTo:o}}},{key:"getTextPos",value:function(e,t){var i="middle",a=e.x,s=e.y;return Math.abs(e.x)>=10?e.x>0?(i="start",a+=10):e.x<0&&(i="end",a-=10):i="middle",Math.abs(e.y)>=t-10&&(e.y<0?s-=10:e.y>0&&(s+=10)),{textAnchor:i,newX:a,newY:s}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,i=null,a=0;a<t.globals.previousPaths.length;a++){var s=t.globals.previousPaths[a];s.paths.length>0&&parseInt(s.realIndex,10)===parseInt(e,10)&&t.globals.previousPaths[a].paths[0]!==void 0&&(i=t.globals.previousPaths[a].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var a=[],s=0;s<i;s++){var o={};o.x=e[s]*Math.sin(t[s]),o.y=-e[s]*Math.cos(t[s]),a.push(o)}return a}}]),v}(),Wt=function(v){he(t,xt);var e=ye(t);function t(i){var a;I(this,t),(a=e.call(this,i)).ctx=i,a.w=i.w,a.animBeginArr=[0],a.animDur=0;var s=a.w;return a.startAngle=s.config.plotOptions.radialBar.startAngle,a.endAngle=s.config.plotOptions.radialBar.endAngle,a.totalAngle=Math.abs(s.config.plotOptions.radialBar.endAngle-s.config.plotOptions.radialBar.startAngle),a.trackStartAngle=s.config.plotOptions.radialBar.track.startAngle,a.trackEndAngle=s.config.plotOptions.radialBar.track.endAngle,a.donutDataLabels=a.w.config.plotOptions.radialBar.dataLabels,a.radialDataLabels=a.donutDataLabels,a.trackStartAngle||(a.trackStartAngle=a.startAngle),a.trackEndAngle||(a.trackEndAngle=a.endAngle),a.endAngle===360&&(a.endAngle=359.99),a.margin=parseInt(s.config.plotOptions.radialBar.track.margin,10),a}return E(t,[{key:"draw",value:function(i){var a=this.w,s=new M(this.ctx),o=s.group({class:"apexcharts-radialbar"});if(a.globals.noData)return o;var r=s.group(),n=this.defaultSize/2,l=a.globals.gridWidth/2,c=this.defaultSize/2.05;a.config.chart.sparkline.enabled||(c=c-a.config.stroke.width-a.config.chart.dropShadow.blur);var d=a.globals.fill.colors;if(a.config.plotOptions.radialBar.track.show){var g=this.drawTracks({size:c,centerX:l,centerY:n,colorArr:d,series:i});r.add(g)}var p=this.drawArcs({size:c,centerX:l,centerY:n,colorArr:d,series:i}),x=360;a.config.plotOptions.radialBar.startAngle<0&&(x=this.totalAngle);var f=(360-x)/360;if(a.globals.radialSize=c-c*f,this.radialDataLabels.value.show){var b=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);a.globals.radialSize+=b*f}return r.add(p.g),a.config.plotOptions.radialBar.hollow.position==="front"&&(p.g.add(p.elHollow),p.dataLabels&&p.g.add(p.dataLabels)),o.add(r),o}},{key:"drawTracks",value:function(i){var a=this.w,s=new M(this.ctx),o=s.group({class:"apexcharts-tracks"}),r=new J(this.ctx),n=new F(this.ctx),l=this.getStrokeWidth(i);i.size=i.size-l/2;for(var c=0;c<i.series.length;c++){var d=s.group({class:"apexcharts-radialbar-track apexcharts-track"});o.add(d),d.attr({rel:c+1}),i.size=i.size-l-this.margin;var g=a.config.plotOptions.radialBar.track,p=n.fillPath({seriesNumber:0,size:i.size,fillColors:Array.isArray(g.background)?g.background[c]:g.background,solid:!0}),x=this.trackStartAngle,f=this.trackEndAngle;Math.abs(f)+Math.abs(x)>=360&&(f=360-Math.abs(this.startAngle)-.1);var b=s.drawPath({d:"",stroke:p,strokeWidth:l*parseInt(g.strokeWidth,10)/100,fill:"none",strokeOpacity:g.opacity,classes:"apexcharts-radialbar-area"});if(g.dropShadow.enabled){var w=g.dropShadow;r.dropShadow(b,w)}d.add(b),b.attr("id","apexcharts-radialbarTrack-"+c),this.animatePaths(b,{centerX:i.centerX,centerY:i.centerY,endAngle:f,startAngle:x,size:i.size,i:c,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:a.globals.easing})}return o}},{key:"drawArcs",value:function(i){var a=this.w,s=new M(this.ctx),o=new F(this.ctx),r=new J(this.ctx),n=s.group(),l=this.getStrokeWidth(i);i.size=i.size-l/2;var c=a.config.plotOptions.radialBar.hollow.background,d=i.size-l*i.series.length-this.margin*i.series.length-l*parseInt(a.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,g=d-a.config.plotOptions.radialBar.hollow.margin;a.config.plotOptions.radialBar.hollow.image!==void 0&&(c=this.drawHollowImage(i,n,d,c));var p=this.drawHollow({size:g,centerX:i.centerX,centerY:i.centerY,fill:c||"transparent"});if(a.config.plotOptions.radialBar.hollow.dropShadow.enabled){var x=a.config.plotOptions.radialBar.hollow.dropShadow;r.dropShadow(p,x)}var f=1;!this.radialDataLabels.total.show&&a.globals.series.length>1&&(f=0);var b=null;this.radialDataLabels.show&&(b=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:d,centerX:i.centerX,centerY:i.centerY,opacity:f})),a.config.plotOptions.radialBar.hollow.position==="back"&&(n.add(p),b&&n.add(b));var w=!1;a.config.plotOptions.radialBar.inverseOrder&&(w=!0);for(var k=w?i.series.length-1:0;w?k>=0:k<i.series.length;w?k--:k++){var A=s.group({class:"apexcharts-series apexcharts-radial-series",seriesName:C.escapeString(a.globals.seriesNames[k])});n.add(A),A.attr({rel:k+1,"data:realIndex":k}),this.ctx.series.addCollapsedClassToSeries(A,k),i.size=i.size-l-this.margin;var h=o.fillPath({seriesNumber:k,size:i.size,value:i.series[k]}),u=this.startAngle,m=void 0,y=C.negToZero(i.series[k]>100?100:i.series[k])/100,S=Math.round(this.totalAngle*y)+this.startAngle,P=void 0;a.globals.dataChanged&&(m=this.startAngle,P=Math.round(this.totalAngle*C.negToZero(a.globals.previousPaths[k])/100)+m),Math.abs(S)+Math.abs(u)>=360&&(S-=.01),Math.abs(P)+Math.abs(m)>=360&&(P-=.01);var L=S-u,z=Array.isArray(a.config.stroke.dashArray)?a.config.stroke.dashArray[k]:a.config.stroke.dashArray,T=s.drawPath({d:"",stroke:h,strokeWidth:l,fill:"none",fillOpacity:a.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+k,strokeDashArray:z});if(M.setAttrs(T.node,{"data:angle":L,"data:value":i.series[k]}),a.config.chart.dropShadow.enabled){var Y=a.config.chart.dropShadow;r.dropShadow(T,Y,k)}r.setSelectionFilter(T,0,k),this.addListeners(T,this.radialDataLabels),A.add(T),T.attr({index:0,j:k});var H=0;!this.initialAnim||a.globals.resized||a.globals.dataChanged||(H=a.config.chart.animations.speed),a.globals.dataChanged&&(H=a.config.chart.animations.dynamicAnimation.speed),this.animDur=H/(1.2*i.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(T,{centerX:i.centerX,centerY:i.centerY,endAngle:S,startAngle:u,prevEndAngle:P,prevStartAngle:m,size:i.size,i:k,totalItems:2,animBeginArr:this.animBeginArr,dur:H,shouldSetPrevPaths:!0,easing:a.globals.easing})}return{g:n,elHollow:p,dataLabels:b}}},{key:"drawHollow",value:function(i){var a=new M(this.ctx).drawCircle(2*i.size);return a.attr({class:"apexcharts-radialbar-hollow",cx:i.centerX,cy:i.centerY,r:i.size,fill:i.fill}),a}},{key:"drawHollowImage",value:function(i,a,s,o){var r=this.w,n=new F(this.ctx),l=C.randomId(),c=r.config.plotOptions.radialBar.hollow.image;if(r.config.plotOptions.radialBar.hollow.imageClipped)n.clippedImgArea({width:s,height:s,image:c,patternID:"pattern".concat(r.globals.cuid).concat(l)}),o="url(#pattern".concat(r.globals.cuid).concat(l,")");else{var d=r.config.plotOptions.radialBar.hollow.imageWidth,g=r.config.plotOptions.radialBar.hollow.imageHeight;if(d===void 0&&g===void 0){var p=r.globals.dom.Paper.image(c).loaded(function(f){this.move(i.centerX-f.width/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-f.height/2+r.config.plotOptions.radialBar.hollow.imageOffsetY)});a.add(p)}else{var x=r.globals.dom.Paper.image(c).loaded(function(f){this.move(i.centerX-d/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-g/2+r.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(d,g)});a.add(x)}}return o}},{key:"getStrokeWidth",value:function(i){var a=this.w;return i.size*(100-parseInt(a.config.plotOptions.radialBar.hollow.size,10))/100/(i.series.length+1)-this.margin}}]),t}(),Bt=function(){function v(e){I(this,v),this.w=e.w,this.lineCtx=e}return E(v,[{key:"sameValueSeriesFix",value:function(e,t){var i=this.w;if(i.config.chart.type==="line"&&(i.config.fill.type==="gradient"||i.config.fill.type[e]==="gradient")&&new Z(this.lineCtx.ctx,i).seriesHaveSameValues(e)){var a=t[e].slice();a[a.length-1]=a[a.length-1]+1e-6,t[e]=a}return t}},{key:"calculatePoints",value:function(e){var t=e.series,i=e.realIndex,a=e.x,s=e.y,o=e.i,r=e.j,n=e.prevY,l=this.w,c=[],d=[];if(r===0){var g=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(g=(l.globals.seriesX[i][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),c.push(g),d.push(C.isNumber(t[o][0])?n+l.config.markers.offsetY:null),c.push(a+l.config.markers.offsetX),d.push(C.isNumber(t[o][r+1])?s+l.config.markers.offsetY:null)}else c.push(a+l.config.markers.offsetX),d.push(C.isNumber(t[o][r+1])?s+l.config.markers.offsetY:null);return{x:c,y:d}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,i=e.pathFromArea,a=e.realIndex,s=this.w,o=0;o<s.globals.previousPaths.length;o++){var r=s.globals.previousPaths[o];(r.type==="line"||r.type==="area")&&r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(a,10)&&(r.type==="line"?(this.lineCtx.appendPathFrom=!1,t=s.globals.previousPaths[o].paths[0].d):r.type==="area"&&(this.lineCtx.appendPathFrom=!1,i=s.globals.previousPaths[o].paths[0].d,s.config.stroke.show&&s.globals.previousPaths[o].paths[1]&&(t=s.globals.previousPaths[o].paths[1].d)))}return{pathFromLine:t,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(e){var t=e.i,i=e.series,a=e.prevY,s=e.lineYPosition,o=this.w;if(i[t][0]!==void 0)a=(s=o.config.chart.stacked&&t>0?this.lineCtx.prevSeriesY[t-1][0]:this.lineCtx.zeroY)-i[t][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?i[t][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(o.config.chart.stacked&&t>0&&i[t][0]===void 0){for(var r=t-1;r>=0;r--)if(i[r][0]!==null&&i[r][0]!==void 0){a=s=this.lineCtx.prevSeriesY[r][0];break}}return{prevY:a,lineYPosition:s}}}]),v}(),at=function(){function v(e,t,i){I(this,v),this.ctx=e,this.w=e.w,this.xyRatios=t,this.pointsChart=!(this.w.config.chart.type!=="bubble"&&this.w.config.chart.type!=="scatter")||i,this.scatter=new He(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Bt(this),this.markers=new G(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return E(v,[{key:"draw",value:function(e,t,i){var a=this.w,s=new M(this.ctx),o=a.globals.comboCharts?t:a.config.chart.type,r=s.group({class:"apexcharts-".concat(o,"-series apexcharts-plot-series")}),n=new Z(this.ctx,a);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=n.getLogSeries(e),this.yRatio=n.getLogYRatios(this.yRatio);for(var l=[],c=0;c<e.length;c++){e=this.lineHelpers.sameValueSeriesFix(c,e);var d=a.globals.comboCharts?i[c]:c;this._initSerieVariables(e,c,d);var g=[],p=[],x=a.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,d),a.globals.isXNumeric&&a.globals.seriesX.length>0&&(x=(a.globals.seriesX[d][0]-a.globals.minX)/this.xRatio),p.push(x);var f,b=x,w=b,k=this.zeroY;k=this.lineHelpers.determineFirstPrevY({i:c,series:e,prevY:k,lineYPosition:0}).prevY,g.push(k),f=k;var A=this._calculatePathsFrom({series:e,i:c,realIndex:d,prevX:w,prevY:k}),h=this._iterateOverDataPoints({series:e,realIndex:d,i:c,x,y:1,pX:b,pY:f,pathsFrom:A,linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:p,yArrj:g});this._handlePaths({type:o,realIndex:d,i:c,paths:h}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),l.push(this.elSeries)}if(a.config.chart.stacked)for(var u=l.length;u>0;u--)r.add(l[u-1]);else for(var m=0;m<l.length;m++)r.add(l[m]);return r}},{key:"_initSerieVariables",value:function(e,t,i){var a=this.w,s=new M(this.ctx);this.xDivision=a.globals.gridWidth/(a.globals.dataPoints-(a.config.xaxis.tickPlacement==="on"?1:0)),this.strokeWidth=Array.isArray(a.config.stroke.width)?a.config.stroke.width[i]:a.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=i),this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed,this.zeroY=a.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?a.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>a.globals.gridHeight||a.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=a.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=s.group({class:"apexcharts-series",seriesName:C.escapeString(a.globals.seriesNames[i])}),this.elPointsMain=s.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=s.group({class:"apexcharts-datalabels","data:realIndex":i});var o=e[t].length===a.globals.dataPoints;this.elSeries.attr({"data:longestSeries":o,rel:t+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,i,a,s,o=e.series,r=e.i,n=e.realIndex,l=e.prevX,c=e.prevY,d=this.w,g=new M(this.ctx);if(o[r][0]===null){for(var p=0;p<o[r].length;p++)if(o[r][p]!==null){l=this.xDivision*p,c=this.zeroY-o[r][p]/this.yRatio[this.yaxisIndex],t=g.move(l,c),i=g.move(l,this.areaBottomY);break}}else t=g.move(l,c),i=g.move(l,this.areaBottomY)+g.line(l,c);if(a=g.move(-1,this.zeroY)+g.line(-1,this.zeroY),s=g.move(-1,this.zeroY)+g.line(-1,this.zeroY),d.globals.previousPaths.length>0){var x=this.lineHelpers.checkPreviousPaths({pathFromLine:a,pathFromArea:s,realIndex:n});a=x.pathFromLine,s=x.pathFromArea}return{prevX:l,prevY:c,linePath:t,areaPath:i,pathFromLine:a,pathFromArea:s}}},{key:"_handlePaths",value:function(e){var t=e.type,i=e.realIndex,a=e.i,s=e.paths,o=this.w,r=new M(this.ctx),n=new F(this.ctx);this.prevSeriesY.push(s.yArrj),o.globals.seriesXvalues[i]=s.xArrj,o.globals.seriesYvalues[i]=s.yArrj;var l=o.config.forecastDataPoints;if(l.count>0){var c=o.globals.seriesXvalues[i][o.globals.seriesXvalues[i].length-l.count-1],d=r.drawRect(c,0,o.globals.gridWidth,o.globals.gridHeight,0);o.globals.dom.elForecastMask.appendChild(d.node);var g=r.drawRect(0,0,c,o.globals.gridHeight,0);o.globals.dom.elNonForecastMask.appendChild(g.node)}this.pointsChart||o.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var p={i:a,realIndex:i,animationDelay:a,initialSpeed:o.config.chart.animations.speed,dataChangeSpeed:o.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if(t==="area")for(var x=n.fillPath({seriesNumber:i}),f=0;f<s.areaPaths.length;f++){var b=r.renderPaths(D(D({},p),{},{pathFrom:s.pathFromArea,pathTo:s.areaPaths[f],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:x}));this.elSeries.add(b)}if(o.config.stroke.show&&!this.pointsChart){var w=null;if(t==="line")w=n.fillPath({seriesNumber:i,i:a});else if(o.config.stroke.fill.type==="solid")w=o.globals.stroke.colors[i];else{var k=o.config.fill;o.config.fill=o.config.stroke.fill,w=n.fillPath({seriesNumber:i,i:a}),o.config.fill=k}for(var A=0;A<s.linePaths.length;A++){var h=D(D({},p),{},{pathFrom:s.pathFromLine,pathTo:s.linePaths[A],stroke:w,strokeWidth:this.strokeWidth,strokeLineCap:o.config.stroke.lineCap,fill:"none"}),u=r.renderPaths(h);if(this.elSeries.add(u),l.count>0){var m=r.renderPaths(h);m.node.setAttribute("stroke-dasharray",l.dashArray),l.strokeWidth&&m.node.setAttribute("stroke-width",l.strokeWidth),this.elSeries.add(m),m.attr("clip-path","url(#forecastMask".concat(o.globals.cuid,")")),u.attr("clip-path","url(#nonForecastMask".concat(o.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){for(var t=e.series,i=e.realIndex,a=e.i,s=e.x,o=e.y,r=e.pX,n=e.pY,l=e.pathsFrom,c=e.linePaths,d=e.areaPaths,g=e.seriesIndex,p=e.lineYPosition,x=e.xArrj,f=e.yArrj,b=this.w,w=new M(this.ctx),k=this.yRatio,A=l.prevY,h=l.linePath,u=l.areaPath,m=l.pathFromLine,y=l.pathFromArea,S=C.isNumber(b.globals.minYArr[i])?b.globals.minYArr[i]:b.globals.minY,P=b.globals.dataPoints>1?b.globals.dataPoints-1:b.globals.dataPoints,L=0;L<P;L++){var z=t[a][L+1]===void 0||t[a][L+1]===null;if(b.globals.isXNumeric){var T=b.globals.seriesX[i][L+1];b.globals.seriesX[i][L+1]===void 0&&(T=b.globals.seriesX[i][P-1]),s=(T-b.globals.minX)/this.xRatio}else s+=this.xDivision;b.config.chart.stacked?a>0&&b.globals.collapsedSeries.length<b.config.series.length-1?p=this.prevSeriesY[function(q){for(var _=q,se=0;se<b.globals.series.length;se++)if(b.globals.collapsedSeriesIndices.indexOf(q)>-1){_--;break}return _>=0?_:0}(a-1)][L+1]:p=this.zeroY:p=this.zeroY,o=z?p-S/k[this.yaxisIndex]+2*(this.isReversed?S/k[this.yaxisIndex]:0):p-t[a][L+1]/k[this.yaxisIndex]+2*(this.isReversed?t[a][L+1]/k[this.yaxisIndex]:0),x.push(s),f.push(o);var Y=this.lineHelpers.calculatePoints({series:t,x:s,y:o,realIndex:i,i:a,j:L,prevY:A}),H=this._createPaths({series:t,i:a,realIndex:i,j:L,x:s,y:o,pX:r,pY:n,linePath:h,areaPath:u,linePaths:c,areaPaths:d,seriesIndex:g});d=H.areaPaths,c=H.linePaths,r=H.pX,n=H.pY,u=H.areaPath,h=H.linePath,this.appendPathFrom&&(m+=w.line(s,this.zeroY),y+=w.line(s,this.zeroY)),this.handleNullDataPoints(t,Y,a,L,i),this._handleMarkersAndLabels({pointsPos:Y,series:t,x:s,y:o,prevY:A,i:a,j:L,realIndex:i})}return{yArrj:f,xArrj:x,pathFromArea:y,areaPaths:d,pathFromLine:m,linePaths:c}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.pointsPos;e.series,e.x,e.y,e.prevY;var i=e.i,a=e.j,s=e.realIndex,o=this.w,r=new Ae(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,a,{realIndex:s,pointsPos:t,zRatio:this.zRatio,elParent:this.elPointsMain});else{o.globals.series[i].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var n=this.markers.plotChartMarkers(t,s,a+1);n!==null&&this.elPointsMain.add(n)}var l=r.drawDataLabel(t,s,a+1,null);l!==null&&this.elDataLabelsWrap.add(l)}},{key:"_createPaths",value:function(e){var t=e.series,i=e.i,a=e.realIndex,s=e.j,o=e.x,r=e.y,n=e.pX,l=e.pY,c=e.linePath,d=e.areaPath,g=e.linePaths,p=e.areaPaths,x=e.seriesIndex,f=this.w,b=new M(this.ctx),w=f.config.stroke.curve,k=this.areaBottomY;if(Array.isArray(f.config.stroke.curve)&&(w=Array.isArray(x)?f.config.stroke.curve[x[i]]:f.config.stroke.curve[i]),w==="smooth"){var A=.35*(o-n);f.globals.hasNullValues?(t[i][s]!==null&&(t[i][s+1]!==null?(c=b.move(n,l)+b.curve(n+A,l,o-A,r,o+1,r),d=b.move(n+1,l)+b.curve(n+A,l,o-A,r,o+1,r)+b.line(o,k)+b.line(n,k)+"z"):(c=b.move(n,l),d=b.move(n,l)+"z")),g.push(c),p.push(d)):(c+=b.curve(n+A,l,o-A,r,o,r),d+=b.curve(n+A,l,o-A,r,o,r)),n=o,l=r,s===t[i].length-2&&(d=d+b.curve(n,l,o,r,o,k)+b.move(o,r)+"z",f.globals.hasNullValues||(g.push(c),p.push(d)))}else{if(t[i][s+1]===null){c+=b.move(o,r);var h=f.globals.isXNumeric?(f.globals.seriesX[a][s]-f.globals.minX)/this.xRatio:o-this.xDivision;d=d+b.line(h,k)+b.move(o,r)+"z"}t[i][s]===null&&(c+=b.move(o,r),d+=b.move(o,k)),w==="stepline"?(c=c+b.line(o,null,"H")+b.line(null,r,"V"),d=d+b.line(o,null,"H")+b.line(null,r,"V")):w==="straight"&&(c+=b.line(o,r),d+=b.line(o,r)),s===t[i].length-2&&(d=d+b.line(o,k)+b.move(o,r)+"z",g.push(c),p.push(d))}return{linePaths:g,areaPaths:p,pX:n,pY:l,linePath:c,areaPath:d}}},{key:"handleNullDataPoints",value:function(e,t,i,a,s){var o=this.w;if(e[i][a]===null&&o.config.markers.showNullDataPoints||e[i].length===1){var r=this.markers.plotChartMarkers(t,s,a+1,this.strokeWidth-o.config.markers.strokeWidth/2,!0);r!==null&&this.elPointsMain.add(r)}}}]),v}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function v(r,n,l,c){this.xoffset=r,this.yoffset=n,this.height=c,this.width=l,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(d){var g,p=[],x=this.xoffset,f=this.yoffset,b=s(d)/this.height,w=s(d)/this.width;if(this.width>=this.height)for(g=0;g<d.length;g++)p.push([x,f,x+b,f+d[g]/b]),f+=d[g]/b;else for(g=0;g<d.length;g++)p.push([x,f,x+d[g]/w,f+w]),x+=d[g]/w;return p},this.cutArea=function(d){var g;if(this.width>=this.height){var p=d/this.height,x=this.width-p;g=new v(this.xoffset+p,this.yoffset,x,this.height)}else{var f=d/this.width,b=this.height-f;g=new v(this.xoffset,this.yoffset+f,this.width,b)}return g}}function e(r,n,l,c,d){return c=c===void 0?0:c,d=d===void 0?0:d,function(g){var p,x,f=[];for(p=0;p<g.length;p++)for(x=0;x<g[p].length;x++)f.push(g[p][x]);return f}(t(function(g,p){var x,f=[],b=p/s(g);for(x=0;x<g.length;x++)f[x]=g[x]*b;return f}(r,n*l),[],new v(c,d,n,l),[]))}function t(r,n,l,c){var d,g,p;if(r.length!==0)return d=l.shortestEdge(),function(x,f,b){var w;if(x.length===0)return!0;(w=x.slice()).push(f);var k=i(x,b),A=i(w,b);return k>=A}(n,g=r[0],d)?(n.push(g),t(r.slice(1),n,l,c)):(p=l.cutArea(s(n),c),c.push(l.getCoordinates(n)),t(r,[],p,c)),c;c.push(l.getCoordinates(n))}function i(r,n){var l=Math.min.apply(Math,r),c=Math.max.apply(Math,r),d=s(r);return Math.max(Math.pow(n,2)*c/Math.pow(d,2),Math.pow(d,2)/(Math.pow(n,2)*l))}function a(r){return r&&r.constructor===Array}function s(r){var n,l=0;for(n=0;n<r.length;n++)l+=r[n];return l}function o(r){var n,l=0;if(a(r[0]))for(n=0;n<r.length;n++)l+=o(r[n]);else l=s(r);return l}return function r(n,l,c,d,g){d=d===void 0?0:d,g=g===void 0?0:g;var p,x,f=[],b=[];if(a(n[0])){for(x=0;x<n.length;x++)f[x]=o(n[x]);for(p=e(f,l,c,d,g),x=0;x<n.length;x++)b.push(r(n[x],p[x][2]-p[x][0],p[x][3]-p[x][1],p[x][0],p[x][1]))}else b=e(n,l,c,d,g);return b}}();var Oe,Je,_t=function(){function v(e,t){I(this,v),this.ctx=e,this.w=e.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new pt(e),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return E(v,[{key:"draw",value:function(e){var t=this,i=this.w,a=new M(this.ctx),s=new F(this.ctx),o=a.group({class:"apexcharts-treemap"});if(i.globals.noData)return o;var r=[];return e.forEach(function(n){var l=n.map(function(c){return Math.abs(c)});r.push(l)}),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach(function(n,l){n.data.forEach(function(c){Array.isArray(t.labels[l])||(t.labels[l]=[]),t.labels[l].push(c.x)})}),window.TreemapSquared.generate(r,i.globals.gridWidth,i.globals.gridHeight).forEach(function(n,l){var c=a.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:C.escapeString(i.globals.seriesNames[l]),rel:l+1,"data:realIndex":l});if(i.config.chart.dropShadow.enabled){var d=i.config.chart.dropShadow;new J(t.ctx).dropShadow(o,d,l)}var g=a.group({class:"apexcharts-data-labels"});n.forEach(function(p,x){var f=p[0],b=p[1],w=p[2],k=p[3],A=a.drawRect(f,b,w-f,k-b,0,"#fff",1,t.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?u:i.globals.stroke.colors[l]);A.attr({cx:f,cy:b,index:l,i:l,j:x,width:w-f,height:k-b});var h=t.helpers.getShadeColor(i.config.chart.type,l,x,t.negRange),u=h.color;i.config.series[l].data[x]!==void 0&&i.config.series[l].data[x].fillColor&&(u=i.config.series[l].data[x].fillColor);var m=s.fillPath({color:u,seriesNumber:l,dataPointIndex:x});A.node.classList.add("apexcharts-treemap-rect"),A.attr({fill:m}),t.helpers.addListeners(A);var y={x:f+(w-f)/2,y:b+(k-b)/2,width:0,height:0},S={x:f,y:b,width:w-f,height:k-b};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var P=1;i.globals.resized||(P=i.config.chart.animations.speed),t.animateTreemap(A,y,S,P)}if(i.globals.dataChanged){var L=1;t.dynamicAnim.enabled&&i.globals.shouldAnimate&&(L=t.dynamicAnim.speed,i.globals.previousPaths[l]&&i.globals.previousPaths[l][x]&&i.globals.previousPaths[l][x].rect&&(y=i.globals.previousPaths[l][x].rect),t.animateTreemap(A,y,S,L))}var z=t.getFontSize(p),T=i.config.dataLabels.formatter(t.labels[l][x],{value:i.globals.series[l][x],seriesIndex:l,dataPointIndex:x,w:i}),Y=t.helpers.calculateDataLabels({text:T,x:(f+w)/2,y:(b+k)/2+t.strokeWidth/2+z/3,i:l,j:x,colorProps:h,fontSize:z,series:e});i.config.dataLabels.enabled&&Y&&t.rotateToFitLabel(Y,z,T,f,b,w,k),c.add(A),Y!==null&&c.add(Y)}),c.add(g),o.add(c)}),o}},{key:"getFontSize",value:function(e){var t=this.w,i,a,s,o,r=function n(l){var c,d=0;if(Array.isArray(l[0]))for(c=0;c<l.length;c++)d+=n(l[c]);else for(c=0;c<l.length;c++)d+=l[c].length;return d}(this.labels)/function n(l){var c,d=0;if(Array.isArray(l[0]))for(c=0;c<l.length;c++)d+=n(l[c]);else for(c=0;c<l.length;c++)d+=1;return d}(this.labels);return i=e[2]-e[0],a=e[3]-e[1],s=i*a,o=Math.pow(s,.5),Math.min(o/r,parseInt(t.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(e,t,i,a,s,o,r){var n=new M(this.ctx),l=n.getTextRects(i,t);if(l.width+this.w.config.stroke.width+5>o-a&&l.width<=r-s){var c=n.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(c.x," ").concat(c.y,")"))}}},{key:"animateTreemap",value:function(e,t,i,a){var s=new K(this.ctx);s.animateRect(e,{x:t.x,y:t.y,width:t.width,height:t.height},{x:i.x,y:i.y,width:i.width,height:i.height},a,function(){s.animationCompleted(e)})}}]),v}(),Gt=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return E(v,[{key:"calculateTimeScaleTicks",value:function(e,t){var i=this,a=this.w;if(a.globals.allSeriesCollapsed)return a.globals.labels=[],a.globals.timescaleLabels=[],[];var s=new te(this.ctx),o=(t-e)/864e5;this.determineInterval(o),a.globals.disableZoomIn=!1,a.globals.disableZoomOut=!1,o<.00011574074074074075?a.globals.disableZoomIn=!0:o>5e4&&(a.globals.disableZoomOut=!0);var r=s.getTimeUnitsfromTimestamp(e,t,this.utc),n=a.globals.gridWidth/o,l=n/24,c=l/60,d=c/60,g=Math.floor(24*o),p=Math.floor(1440*o),x=Math.floor(86400*o),f=Math.floor(o),b=Math.floor(o/30),w=Math.floor(o/365),k={minMillisecond:r.minMillisecond,minSecond:r.minSecond,minMinute:r.minMinute,minHour:r.minHour,minDate:r.minDate,minMonth:r.minMonth,minYear:r.minYear},A={firstVal:k,currentMillisecond:k.minMillisecond,currentSecond:k.minSecond,currentMinute:k.minMinute,currentHour:k.minHour,currentMonthDate:k.minDate,currentDate:k.minDate,currentMonth:k.minMonth,currentYear:k.minYear,daysWidthOnXAxis:n,hoursWidthOnXAxis:l,minutesWidthOnXAxis:c,secondsWidthOnXAxis:d,numberOfSeconds:x,numberOfMinutes:p,numberOfHours:g,numberOfDays:f,numberOfMonths:b,numberOfYears:w};switch(this.tickInterval){case"years":this.generateYearScale(A);break;case"months":case"half_year":this.generateMonthScale(A);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(A);break;case"hours":this.generateHourScale(A);break;case"minutes_fives":case"minutes":this.generateMinuteScale(A);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(A)}var h=this.timeScaleArray.map(function(u){var m={position:u.position,unit:u.unit,year:u.year,day:u.day?u.day:1,hour:u.hour?u.hour:0,month:u.month+1};return u.unit==="month"?D(D({},m),{},{day:1,value:u.value+1}):u.unit==="day"||u.unit==="hour"?D(D({},m),{},{value:u.value}):u.unit==="minute"?D(D({},m),{},{value:u.value,minute:u.value}):u.unit==="second"?D(D({},m),{},{value:u.value,minute:u.minute,second:u.second}):u});return h.filter(function(u){var m=1,y=Math.ceil(a.globals.gridWidth/120),S=u.value;a.config.xaxis.tickAmount!==void 0&&(y=a.config.xaxis.tickAmount),h.length>y&&(m=Math.floor(h.length/y));var P=!1,L=!1;switch(i.tickInterval){case"years":u.unit==="year"&&(P=!0);break;case"half_year":m=7,u.unit==="year"&&(P=!0);break;case"months":m=1,u.unit==="year"&&(P=!0);break;case"months_fortnight":m=15,u.unit!=="year"&&u.unit!=="month"||(P=!0),S===30&&(L=!0);break;case"months_days":m=10,u.unit==="month"&&(P=!0),S===30&&(L=!0);break;case"week_days":m=8,u.unit==="month"&&(P=!0);break;case"days":m=1,u.unit==="month"&&(P=!0);break;case"hours":u.unit==="day"&&(P=!0);break;case"minutes_fives":S%5!=0&&(L=!0);break;case"seconds_tens":S%10!=0&&(L=!0);break;case"seconds_fives":S%5!=0&&(L=!0)}if(i.tickInterval==="hours"||i.tickInterval==="minutes_fives"||i.tickInterval==="seconds_tens"||i.tickInterval==="seconds_fives"){if(!L)return!0}else if((S%m==0||P)&&!L)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var i=this.w,a=this.formatDates(e),s=this.removeOverlappingTS(a);i.globals.timescaleLabels=s.slice(),new $e(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,i=60*t;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case t>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,i=e.currentMonth,a=e.currentYear,s=e.daysWidthOnXAxis,o=e.numberOfYears,r=t.minYear,n=0,l=new te(this.ctx),c="year";if(t.minDate>1||t.minMonth>0){var d=l.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);n=(l.determineDaysOfYear(t.minYear)-d+1)*s,r=t.minYear+1,this.timeScaleArray.push({position:n,value:r,unit:c,year:r,month:C.monthMod(i+1)})}else t.minDate===1&&t.minMonth===0&&this.timeScaleArray.push({position:n,value:r,unit:c,year:a,month:C.monthMod(i+1)});for(var g=r,p=n,x=0;x<o;x++)g++,p=l.determineDaysOfYear(g-1)*s+p,this.timeScaleArray.push({position:p,value:g,unit:c,year:g,month:1})}},{key:"generateMonthScale",value:function(e){var t=e.firstVal,i=e.currentMonthDate,a=e.currentMonth,s=e.currentYear,o=e.daysWidthOnXAxis,r=e.numberOfMonths,n=a,l=0,c=new te(this.ctx),d="month",g=0;if(t.minDate>1){l=(c.determineDaysOfMonths(a+1,t.minYear)-i+1)*o,n=C.monthMod(a+1);var p=s+g,x=C.monthMod(n),f=n;n===0&&(d="year",f=p,x=1,p+=g+=1),this.timeScaleArray.push({position:l,value:f,unit:d,year:p,month:x})}else this.timeScaleArray.push({position:l,value:n,unit:d,year:s,month:C.monthMod(a)});for(var b=n+1,w=l,k=0,A=1;k<r;k++,A++){(b=C.monthMod(b))===0?(d="year",g+=1):d="month";var h=this._getYear(s,b,g);w=c.determineDaysOfMonths(b,h)*o+w;var u=b===0?h:b;this.timeScaleArray.push({position:w,value:u,unit:d,year:h,month:b===0?1:b}),b++}}},{key:"generateDayScale",value:function(e){var t=e.firstVal,i=e.currentMonth,a=e.currentYear,s=e.hoursWidthOnXAxis,o=e.numberOfDays,r=new te(this.ctx),n="day",l=t.minDate+1,c=l,d=function(A,h,u){return A>r.determineDaysOfMonths(h+1,u)&&(c=1,n="month",p=h+=1),h},g=(24-t.minHour)*s,p=l,x=d(c,i,a);t.minHour===0&&t.minDate===1?(g=0,p=C.monthMod(t.minMonth),n="month",c=t.minDate,o++):t.minDate!==1&&t.minHour===0&&t.minMinute===0&&(g=0,l=t.minDate,p=l,x=d(c=l,i,a)),this.timeScaleArray.push({position:g,value:p,unit:n,year:this._getYear(a,x,0),month:C.monthMod(x),day:c});for(var f=g,b=0;b<o;b++){n="day",x=d(c+=1,x,this._getYear(a,x,0));var w=this._getYear(a,x,0);f=24*s+f;var k=c===1?C.monthMod(x):c;this.timeScaleArray.push({position:f,value:k,unit:n,year:w,month:C.monthMod(x),day:k})}}},{key:"generateHourScale",value:function(e){var t=e.firstVal,i=e.currentDate,a=e.currentMonth,s=e.currentYear,o=e.minutesWidthOnXAxis,r=e.numberOfHours,n=new te(this.ctx),l="hour",c=function(m,y){return m>n.determineDaysOfMonths(y+1,s)&&(b=1,y+=1),{month:y,date:b}},d=function(m,y){return m>n.determineDaysOfMonths(y+1,s)?y+=1:y},g=60-(t.minMinute+t.minSecond/60),p=g*o,x=t.minHour+1,f=x+1;g===60&&(p=0,f=(x=t.minHour)+1);var b=i,w=d(b,a);this.timeScaleArray.push({position:p,value:x,unit:l,day:b,hour:f,year:s,month:C.monthMod(w)});for(var k=p,A=0;A<r;A++){l="hour",f>=24&&(f=0,l="day",w=c(b+=1,w).month,w=d(b,w));var h=this._getYear(s,w,0);k=f===0&&A===0?g*o:60*o+k;var u=f===0?b:f;this.timeScaleArray.push({position:k,value:u,unit:l,hour:f,day:b,year:h,month:C.monthMod(w)}),f++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,i=e.currentSecond,a=e.currentMinute,s=e.currentHour,o=e.currentDate,r=e.currentMonth,n=e.currentYear,l=e.minutesWidthOnXAxis,c=e.secondsWidthOnXAxis,d=e.numberOfMinutes,g=a+1,p=o,x=r,f=n,b=s,w=(60-i-t/1e3)*c,k=0;k<d;k++)g>=60&&(g=0,(b+=1)===24&&(b=0)),this.timeScaleArray.push({position:w,value:g,unit:"minute",hour:b,minute:g,day:p,year:this._getYear(f,x,0),month:C.monthMod(x)}),w+=l,g++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,i=e.currentSecond,a=e.currentMinute,s=e.currentHour,o=e.currentDate,r=e.currentMonth,n=e.currentYear,l=e.secondsWidthOnXAxis,c=e.numberOfSeconds,d=i+1,g=a,p=o,x=r,f=n,b=s,w=(1e3-t)/1e3*l,k=0;k<c;k++)d>=60&&(d=0,++g>=60&&(g=0,++b===24&&(b=0))),this.timeScaleArray.push({position:w,value:d,unit:"second",hour:b,minute:g,second:d,day:p,year:this._getYear(f,x,0),month:C.monthMod(x)}),w+=l,d++}},{key:"createRawDateString",value:function(e,t){var i=e.year;return e.month===0&&(e.month=1),i+="-"+("0"+e.month.toString()).slice(-2),e.unit==="day"?i+=e.unit==="day"?"-"+("0"+t).slice(-2):"-01":i+="-"+("0"+(e.day?e.day:"1")).slice(-2),e.unit==="hour"?i+=e.unit==="hour"?"T"+("0"+t).slice(-2):"T00":i+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),e.unit==="minute"?i+=":"+("0"+t).slice(-2):i+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),e.unit==="second"?i+=":"+("0"+t).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(e){var t=this,i=this.w;return e.map(function(a){var s=a.value.toString(),o=new te(t.ctx),r=t.createRawDateString(a,s),n=o.getDate(o.parseDate(r));if(t.utc||(n=o.getDate(o.parseDateWithTimezone(r))),i.config.xaxis.labels.format===void 0){var l="dd MMM",c=i.config.xaxis.labels.datetimeFormatter;a.unit==="year"&&(l=c.year),a.unit==="month"&&(l=c.month),a.unit==="day"&&(l=c.day),a.unit==="hour"&&(l=c.hour),a.unit==="minute"&&(l=c.minute),a.unit==="second"&&(l=c.second),s=o.formatDate(n,l)}else s=o.formatDate(n,i.config.xaxis.labels.format);return{dateString:r,position:a.position,value:s,unit:a.unit,year:a.year,month:a.month}})}},{key:"removeOverlappingTS",value:function(e){var t,i=this,a=new M(this.ctx),s=!1;e.length>0&&e[0].value&&e.every(function(n){return n.value.length===e[0].value.length})&&(s=!0,t=a.getTextRects(e[0].value).width);var o=0,r=e.map(function(n,l){if(l>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var c=s?t:a.getTextRects(e[o].value).width,d=e[o].position;return n.position>d+c+10?(o=l,n):null}return n});return r=r.filter(function(n){return n!==null})}},{key:"_getYear",value:function(e,t,i){return e+Math.floor(t/12)+i}}]),v}(),Vt=function(){function v(e,t){I(this,v),this.ctx=t,this.w=t.w,this.el=e}return E(v,[{key:"setupElements",value:function(){var e=this.w.globals,t=this.w.config,i=t.chart.type;e.axisCharts=["line","area","bar","rangeBar","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,e.xyCharts=["line","area","bar","rangeBar","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,e.isBarHorizontal=(t.chart.type==="bar"||t.chart.type==="rangeBar"||t.chart.type==="boxPlot")&&t.plotOptions.bar.horizontal,e.chartClass=".apexcharts"+e.chartID,e.dom.baseEl=this.el,e.dom.elWrap=document.createElement("div"),M.setAttrs(e.dom.elWrap,{id:e.chartClass.substring(1),class:"apexcharts-canvas "+e.chartClass.substring(1)}),this.el.appendChild(e.dom.elWrap),e.dom.Paper=new window.SVG.Doc(e.dom.elWrap),e.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(t.chart.offsetX,", ").concat(t.chart.offsetY,")")}),e.dom.Paper.node.style.background=t.chart.background,this.setSVGDimensions(),e.dom.elGraphical=e.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),e.dom.elAnnotations=e.dom.Paper.group().attr({class:"apexcharts-annotations"}),e.dom.elDefs=e.dom.Paper.defs(),e.dom.elLegendWrap=document.createElement("div"),e.dom.elLegendWrap.classList.add("apexcharts-legend"),e.dom.elWrap.appendChild(e.dom.elLegendWrap),e.dom.Paper.add(e.dom.elGraphical),e.dom.elGraphical.add(e.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var i=this.w,a=i.config,s=i.globals,o={series:[],i:[]},r={series:[],i:[]},n={series:[],i:[]},l={series:[],i:[]},c={series:[],i:[]},d={series:[],i:[]},g={series:[],i:[]};s.series.map(function(u,m){var y=0;e[m].type!==void 0?(e[m].type==="column"||e[m].type==="bar"?(s.series.length>1&&a.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),c.series.push(u),c.i.push(m),y++,i.globals.columnSeries=c.series):e[m].type==="area"?(r.series.push(u),r.i.push(m),y++):e[m].type==="line"?(o.series.push(u),o.i.push(m),y++):e[m].type==="scatter"?(n.series.push(u),n.i.push(m)):e[m].type==="bubble"?(l.series.push(u),l.i.push(m),y++):e[m].type==="candlestick"?(d.series.push(u),d.i.push(m),y++):e[m].type==="boxPlot"?(g.series.push(u),g.i.push(m),y++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble"),y>1&&(s.comboCharts=!0)):(o.series.push(u),o.i.push(m))});var p=new at(this.ctx,t),x=new it(this.ctx,t);this.ctx.pie=new xt(this.ctx);var f=new Wt(this.ctx);this.ctx.rangeBar=new Ze(this.ctx,t);var b=new Nt(this.ctx),w=[];if(s.comboCharts){if(r.series.length>0&&w.push(p.draw(r.series,"area",r.i)),c.series.length>0)if(i.config.chart.stacked){var k=new ut(this.ctx,t);w.push(k.draw(c.series,c.i))}else this.ctx.bar=new Fe(this.ctx,t),w.push(this.ctx.bar.draw(c.series,c.i));if(o.series.length>0&&w.push(p.draw(o.series,"line",o.i)),d.series.length>0&&w.push(x.draw(d.series,d.i)),g.series.length>0&&w.push(x.draw(g.series,g.i)),n.series.length>0){var A=new at(this.ctx,t,!0);w.push(A.draw(n.series,"scatter",n.i))}if(l.series.length>0){var h=new at(this.ctx,t,!0);w.push(h.draw(l.series,"bubble",l.i))}}else switch(a.chart.type){case"line":w=p.draw(s.series,"line");break;case"area":w=p.draw(s.series,"area");break;case"bar":a.chart.stacked?w=new ut(this.ctx,t).draw(s.series):(this.ctx.bar=new Fe(this.ctx,t),w=this.ctx.bar.draw(s.series));break;case"candlestick":w=new it(this.ctx,t).draw(s.series);break;case"boxPlot":w=new it(this.ctx,t).draw(s.series);break;case"rangeBar":w=this.ctx.rangeBar.draw(s.series);break;case"heatmap":w=new Ot(this.ctx,t).draw(s.series);break;case"treemap":w=new _t(this.ctx,t).draw(s.series);break;case"pie":case"donut":case"polarArea":w=this.ctx.pie.draw(s.series);break;case"radialBar":w=f.draw(s.series);break;case"radar":w=b.draw(s.series);break;default:w=p.draw(s.series)}return w}},{key:"setSVGDimensions",value:function(){var e=this.w.globals,t=this.w.config;e.svgWidth=t.chart.width,e.svgHeight=t.chart.height;var i=C.getDimensions(this.el),a=t.chart.width.toString().split(/[0-9]+/g).pop();a==="%"?C.isNumber(i[0])&&(i[0].width===0&&(i=C.getDimensions(this.el.parentNode)),e.svgWidth=i[0]*parseInt(t.chart.width,10)/100):a!=="px"&&a!==""||(e.svgWidth=parseInt(t.chart.width,10));var s=t.chart.height.toString().split(/[0-9]+/g).pop();if(e.svgHeight!=="auto"&&e.svgHeight!=="")if(s==="%"){var o=C.getDimensions(this.el.parentNode);e.svgHeight=o[1]*parseInt(t.chart.height,10)/100}else e.svgHeight=parseInt(t.chart.height,10);else e.axisCharts?e.svgHeight=e.svgWidth/1.61:e.svgHeight=e.svgWidth/1.2;if(e.svgWidth<0&&(e.svgWidth=0),e.svgHeight<0&&(e.svgHeight=0),M.setAttrs(e.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),s!=="%"){var r=t.chart.sparkline.enabled?0:e.axisCharts?t.chart.parentHeightOffset:0;e.dom.Paper.node.parentNode.parentNode.style.minHeight=e.svgHeight+r+"px"}e.dom.elWrap.style.width=e.svgWidth+"px",e.dom.elWrap.style.height=e.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,i={transform:"translate("+e.translateX+", "+t+")"};M.setAttrs(e.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,i=0,a=e.config.chart.sparkline.enabled?1:15;a+=e.config.grid.padding.bottom,e.config.legend.position!=="top"&&e.config.legend.position!=="bottom"||!e.config.legend.show||e.config.legend.floating||(i=new ht(this.ctx).legendHelpers.getLegendBBox().clwh+10);var s=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),o=2.05*e.globals.radialSize;if(s&&!e.config.chart.sparkline.enabled&&e.config.plotOptions.radialBar.startAngle!==0){var r=C.getBoundingClientRect(s);o=r.bottom;var n=r.bottom-r.top;o=Math.max(2.05*e.globals.radialSize,n)}var l=o+t.translateY+i+a;t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",l),e.config.chart.height&&String(e.config.chart.height).indexOf("%")>0||(t.dom.elWrap.style.height=l+"px",M.setAttrs(t.dom.Paper.node,{height:l}),t.dom.Paper.node.parentNode.parentNode.style.minHeight=l+"px")}},{key:"coreCalculations",value:function(){new Qe(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map(function(s){return[]})},i=new j,a=this.w.globals;i.initGlobalVars(a),a.seriesXvalues=t(),a.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 e=null,t=this.w;if(t.globals.axisCharts){if(t.config.xaxis.crosshairs.position==="back"&&new tt(this.ctx).drawXCrosshairs(),t.config.yaxis[0].crosshairs.position==="back"&&new tt(this.ctx).drawYCrosshairs(),t.config.xaxis.type==="datetime"&&t.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new Gt(this.ctx);var i=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}e=new Z(this.ctx).getCalculatedRatios()}return e}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,t=this.w;if(t.config.chart.brush.enabled&&typeof t.config.chart.events.selection!="function"){var i=t.config.chart.brush.targets||[t.config.chart.brush.target];i.forEach(function(a){var s=ApexCharts.getChartByID(a);s.w.globals.brushSource=e.ctx,typeof s.w.config.chart.events.zoomed!="function"&&(s.w.config.chart.events.zoomed=function(){e.updateSourceChart(s)}),typeof s.w.config.chart.events.scrolled!="function"&&(s.w.config.chart.events.scrolled=function(){e.updateSourceChart(s)})}),t.config.chart.events.selection=function(a,s){i.forEach(function(o){var r=ApexCharts.getChartByID(o),n=C.clone(t.config.yaxis);if(t.config.chart.brush.autoScaleYaxis&&r.w.globals.series.length===1){var l=new Be(r);n=l.autoScaleY(r,n,s)}var c=r.w.config.yaxis.reduce(function(d,g,p){return[].concat(V(d),[D(D({},r.w.config.yaxis[p]),{},{min:n[0].min,max:n[0].max})])},[]);r.ctx.updateHelpers._updateOptions({xaxis:{min:s.xaxis.min,max:s.xaxis.max},yaxis:c},!1,!1,!1,!1)})}}}}]),v}(),jt=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"_updateOptions",value:function(e){var t=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],s=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],o=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(r){var n=[t.ctx];s&&(n=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(n=[t.ctx],t.ctx.w.globals.isExecCalled=!1),n.forEach(function(l,c){var d=l.w;if(d.globals.shouldAnimate=a,i||(d.globals.resized=!0,d.globals.dataChanged=!0,a&&l.series.getPreviousPaths()),e&&R(e)==="object"&&(l.config=new O(e),e=Z.extendArrayProps(l.config,e,d),l.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,d.config=C.extend(d.config,e),o&&(d.globals.lastXAxis=e.xaxis?C.clone(e.xaxis):[],d.globals.lastYAxis=e.yaxis?C.clone(e.yaxis):[],d.globals.initialConfig=C.extend({},d.config),d.globals.initialSeries=C.clone(d.config.series),e.series))){for(var g=0;g<d.globals.collapsedSeriesIndices.length;g++){var p=d.config.series[d.globals.collapsedSeriesIndices[g]];d.globals.collapsedSeries[g].data=d.globals.axisCharts?p.data.slice():p}for(var x=0;x<d.globals.ancillaryCollapsedSeriesIndices.length;x++){var f=d.config.series[d.globals.ancillaryCollapsedSeriesIndices[x]];d.globals.ancillaryCollapsedSeries[x].data=d.globals.axisCharts?f.data.slice():f}l.series.emptyCollapsedSeries(d.config.series)}return l.update(e).then(function(){c===n.length-1&&r(l)})})})}},{key:"_updateSeries",value:function(e,t){var i=this,a=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(s){var o,r=i.w;return r.globals.shouldAnimate=t,r.globals.dataChanged=!0,t&&i.ctx.series.getPreviousPaths(),r.globals.axisCharts?((o=e.map(function(n,l){return i._extendSeries(n,l)})).length===0&&(o=[{data:[]}]),r.config.series=o):r.config.series=e.slice(),a&&(r.globals.initialConfig.series=C.clone(r.config.series),r.globals.initialSeries=C.clone(r.config.series)),i.ctx.update().then(function(){s(i.ctx)})})}},{key:"_extendSeries",value:function(e,t){var i=this.w,a=i.config.series[t];return D(D({},i.config.series[t]),{},{name:e.name?e.name:a&&a.name,color:e.color?e.color:a&&a.color,type:e.type?e.type:a&&a.type,data:e.data?e.data:a&&a.data})}},{key:"toggleDataPointSelection",value:function(e,t){var i=this.w,a=null,s=".apexcharts-series[data\\:realIndex='".concat(e,"']");return i.globals.axisCharts?a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(t,"'], ").concat(s," circle[j='").concat(t,"'], ").concat(s," rect[j='").concat(t,"']")).members[0]:t===void 0&&(a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(e,"']")).members[0],i.config.chart.type!=="pie"&&i.config.chart.type!=="polarArea"&&i.config.chart.type!=="donut"||this.ctx.pie.pieClicked(e)),a?(new M(this.ctx).pathMouseDown(a,null),a.node?a.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;if(["min","max"].forEach(function(a){e.xaxis[a]!==void 0&&(t.config.xaxis[a]=e.xaxis[a],t.globals.lastXAxis[a]=e.xaxis[a])}),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var i=new Se(e);e=i.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&e.chart.stackType==="100%"&&(Array.isArray(e.yaxis)?e.yaxis.forEach(function(t,i){e.yaxis[i].min=0,e.yaxis[i].max=100}):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,i=this.w,a=i.globals.lastXAxis,s=i.globals.lastYAxis;e&&e.xaxis&&(a=e.xaxis),e&&e.yaxis&&(s=e.yaxis),i.config.xaxis.min=a.min,i.config.xaxis.max=a.max;var o=function(r){s[r]!==void 0&&(i.config.yaxis[r].min=s[r].min,i.config.yaxis[r].max=s[r].max)};i.config.yaxis.map(function(r,n){i.globals.zoomed||s[n]!==void 0?o(n):t.ctx.opts.yaxis[n]!==void 0&&(r.min=t.ctx.opts.yaxis[n].min,r.max=t.ctx.opts.yaxis[n].max)})}}]),v}();Oe=typeof window<"u"?window:void 0,Je=function(v,e){var t=(this!==void 0?this:v).SVG=function(h){if(t.supported)return h=new t.Doc(h),t.parser.draw||t.prepare(),h};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(h){return"Svgjs"+c(h)+t.did++},t.create=function(h){var u=e.createElementNS(this.ns,h);return u.setAttribute("id",this.eid(h)),u},t.extend=function(){var h,u;u=(h=[].slice.call(arguments)).pop();for(var m=h.length-1;m>=0;m--)if(h[m])for(var y in u)h[m].prototype[y]=u[y];t.Set&&t.Set.inherit&&t.Set.inherit()},t.invent=function(h){var u=typeof h.create=="function"?h.create:function(){this.constructor.call(this,t.create(h.create))};return h.inherit&&(u.prototype=new h.inherit),h.extend&&t.extend(u,h.extend),h.construct&&t.extend(h.parent||t.Container,h.construct),u},t.adopt=function(h){return h?h.instance?h.instance:((u=h.nodeName=="svg"?h.parentNode instanceof v.SVGElement?new t.Nested:new t.Doc:h.nodeName=="linearGradient"?new t.Gradient("linear"):h.nodeName=="radialGradient"?new t.Gradient("radial"):t[c(h.nodeName)]?new t[c(h.nodeName)]:new t.Element(h)).type=h.nodeName,u.node=h,h.instance=u,u instanceof t.Doc&&u.namespace().defs(),u.setData(JSON.parse(h.getAttribute("svgjs:data"))||{}),u):null;var u},t.prepare=function(){var h=e.getElementsByTagName("body")[0],u=(h?new t.Doc(h):t.adopt(e.documentElement).nested()).size(2,0);t.parser={body:h||e.documentElement,draw:u.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:u.polyline().node,path:u.path().node,native:t.create("svg")}},t.parser={native:t.create("svg")},e.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(h,u){for(var m=h.length,y=[],S=0;S<m;S++)y.push(u(h[S]));return y},filter:function(h,u){for(var m=h.length,y=[],S=0;S<m;S++)u(h[S])&&y.push(h[S]);return y},filterSVGElements:function(h){return this.filter(h,function(u){return u instanceof v.SVGElement})}},t.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},t.Color=function(h){var u,m;this.r=0,this.g=0,this.b=0,h&&(typeof h=="string"?t.regex.isRgb.test(h)?(u=t.regex.rgb.exec(h.replace(t.regex.whitespace,"")),this.r=parseInt(u[1]),this.g=parseInt(u[2]),this.b=parseInt(u[3])):t.regex.isHex.test(h)&&(u=t.regex.hex.exec((m=h).length==4?["#",m.substring(1,2),m.substring(1,2),m.substring(2,3),m.substring(2,3),m.substring(3,4),m.substring(3,4)].join(""):m),this.r=parseInt(u[1],16),this.g=parseInt(u[2],16),this.b=parseInt(u[3],16)):R(h)==="object"&&(this.r=h.r,this.g=h.g,this.b=h.b))},t.extend(t.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+d(this.r)+d(this.g)+d(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(h){return this.destination=new t.Color(h),this},at:function(h){return this.destination?(h=h<0?0:h>1?1:h,new t.Color({r:~~(this.r+(this.destination.r-this.r)*h),g:~~(this.g+(this.destination.g-this.g)*h),b:~~(this.b+(this.destination.b-this.b)*h)})):this}}),t.Color.test=function(h){return h+="",t.regex.isHex.test(h)||t.regex.isRgb.test(h)},t.Color.isRgb=function(h){return h&&typeof h.r=="number"&&typeof h.g=="number"&&typeof h.b=="number"},t.Color.isColor=function(h){return t.Color.isRgb(h)||t.Color.test(h)},t.Array=function(h,u){(h=(h||[]).valueOf()).length==0&&u&&(h=u.valueOf()),this.value=this.parse(h)},t.extend(t.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(h){return h=h.valueOf(),Array.isArray(h)?h:this.split(h)}}),t.PointArray=function(h,u){t.Array.call(this,h,u||[[0,0]])},t.PointArray.prototype=new t.Array,t.PointArray.prototype.constructor=t.PointArray;for(var i={M:function(h,u,m){return u.x=m.x=h[0],u.y=m.y=h[1],["M",u.x,u.y]},L:function(h,u){return u.x=h[0],u.y=h[1],["L",h[0],h[1]]},H:function(h,u){return u.x=h[0],["H",h[0]]},V:function(h,u){return u.y=h[0],["V",h[0]]},C:function(h,u){return u.x=h[4],u.y=h[5],["C",h[0],h[1],h[2],h[3],h[4],h[5]]},Q:function(h,u){return u.x=h[2],u.y=h[3],["Q",h[0],h[1],h[2],h[3]]},Z:function(h,u,m){return u.x=m.x,u.y=m.y,["Z"]}},a="mlhvqtcsaz".split(""),s=0,o=a.length;s<o;++s)i[a[s]]=function(h){return function(u,m,y){if(h=="H")u[0]=u[0]+m.x;else if(h=="V")u[0]=u[0]+m.y;else if(h=="A")u[5]=u[5]+m.x,u[6]=u[6]+m.y;else for(var S=0,P=u.length;S<P;++S)u[S]=u[S]+(S%2?m.y:m.x);if(i&&typeof i[h]=="function")return i[h](u,m,y)}}(a[s].toUpperCase());t.PathArray=function(h,u){t.Array.call(this,h,u||[["M",0,0]])},t.PathArray.prototype=new t.Array,t.PathArray.prototype.constructor=t.PathArray,t.extend(t.PathArray,{toString:function(){return function(h){for(var u=0,m=h.length,y="";u<m;u++)y+=h[u][0],h[u][1]!=null&&(y+=h[u][1],h[u][2]!=null&&(y+=" ",y+=h[u][2],h[u][3]!=null&&(y+=" ",y+=h[u][3],y+=" ",y+=h[u][4],h[u][5]!=null&&(y+=" ",y+=h[u][5],y+=" ",y+=h[u][6],h[u][7]!=null&&(y+=" ",y+=h[u][7])))));return y+" "}(this.value)},move:function(h,u){var m=this.bbox();return m.x,m.y,this},at:function(h){if(!this.destination)return this;for(var u=this.value,m=this.destination.value,y=[],S=new t.PathArray,P=0,L=u.length;P<L;P++){y[P]=[u[P][0]];for(var z=1,T=u[P].length;z<T;z++)y[P][z]=u[P][z]+(m[P][z]-u[P][z])*h;y[P][0]==="A"&&(y[P][4]=+(y[P][4]!=0),y[P][5]=+(y[P][5]!=0))}return S.value=y,S},parse:function(h){if(h instanceof t.PathArray)return h.valueOf();var u,m={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};h=typeof h=="string"?h.replace(t.regex.numbersWithDots,n).replace(t.regex.pathLetters," $& ").replace(t.regex.hyphen,"$1 -").trim().split(t.regex.delimiter):h.reduce(function(T,Y){return[].concat.call(T,Y)},[]);var y=[],S=new t.Point,P=new t.Point,L=0,z=h.length;do t.regex.isPathLetter.test(h[L])?(u=h[L],++L):u=="M"?u="L":u=="m"&&(u="l"),y.push(i[u].call(null,h.slice(L,L+=m[u.toUpperCase()]).map(parseFloat),S,P));while(z>L);return y},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(h,u){this.value=0,this.unit=u||"",typeof h=="number"?this.value=isNaN(h)?0:isFinite(h)?h:h<0?-34e37:34e37:typeof h=="string"?(u=h.match(t.regex.numberAndUnit))&&(this.value=parseFloat(u[1]),u[5]=="%"?this.value/=100:u[5]=="s"&&(this.value*=1e3),this.unit=u[5]):h instanceof t.Number&&(this.value=h.valueOf(),this.unit=h.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(h){return h=new t.Number(h),new t.Number(this+h,this.unit||h.unit)},minus:function(h){return h=new t.Number(h),new t.Number(this-h,this.unit||h.unit)},times:function(h){return h=new t.Number(h),new t.Number(this*h,this.unit||h.unit)},divide:function(h){return h=new t.Number(h),new t.Number(this/h,this.unit||h.unit)},to:function(h){var u=new t.Number(this);return typeof h=="string"&&(u.unit=h),u},morph:function(h){return this.destination=new t.Number(h),h.relative&&(this.destination.value+=this.value),this},at:function(h){return this.destination?new t.Number(this.destination).minus(this).times(h).plus(this):this}}}),t.Element=t.invent({create:function(h){this._stroke=t.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=h)&&(this.type=h.nodeName,this.node.instance=this,this._stroke=h.getAttribute("stroke")||this._stroke)},extend:{x:function(h){return this.attr("x",h)},y:function(h){return this.attr("y",h)},cx:function(h){return h==null?this.x()+this.width()/2:this.x(h-this.width()/2)},cy:function(h){return h==null?this.y()+this.height()/2:this.y(h-this.height()/2)},move:function(h,u){return this.x(h).y(u)},center:function(h,u){return this.cx(h).cy(u)},width:function(h){return this.attr("width",h)},height:function(h){return this.attr("height",h)},size:function(h,u){var m=g(this,h,u);return this.width(new t.Number(m.width)).height(new t.Number(m.height))},clone:function(h){this.writeDataToDom();var u=f(this.node.cloneNode(!0));return h?h.add(u):this.after(u),u},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(h){return this.after(h).remove(),h},addTo:function(h){return h.put(this)},putIn:function(h){return h.add(this)},id:function(h){return this.attr("id",h)},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 h=this.attr("class");return h==null?[]:h.trim().split(t.regex.delimiter)},hasClass:function(h){return this.classes().indexOf(h)!=-1},addClass:function(h){if(!this.hasClass(h)){var u=this.classes();u.push(h),this.attr("class",u.join(" "))}return this},removeClass:function(h){return this.hasClass(h)&&this.attr("class",this.classes().filter(function(u){return u!=h}).join(" ")),this},toggleClass:function(h){return this.hasClass(h)?this.removeClass(h):this.addClass(h)},reference:function(h){return t.get(this.attr(h))},parent:function(h){var u=this;if(!u.node.parentNode)return null;if(u=t.adopt(u.node.parentNode),!h)return u;for(;u&&u.node instanceof v.SVGElement;){if(typeof h=="string"?u.matches(h):u instanceof h)return u;if(!u.node.parentNode||u.node.parentNode.nodeName=="#document")return null;u=t.adopt(u.node.parentNode)}},doc:function(){return this instanceof t.Doc?this:this.parent(t.Doc)},parents:function(h){var u=[],m=this;do{if(!(m=m.parent(h))||!m.node)break;u.push(m)}while(m.parent);return u},matches:function(h){return function(u,m){return(u.matches||u.matchesSelector||u.msMatchesSelector||u.mozMatchesSelector||u.webkitMatchesSelector||u.oMatchesSelector).call(u,m)}(this.node,h)},native:function(){return this.node},svg:function(h){var u=e.createElement("svg");if(!(h&&this instanceof t.Parent))return u.appendChild(h=e.createElement("svg")),this.writeDataToDom(),h.appendChild(this.node.cloneNode(!0)),u.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");u.innerHTML="<svg>"+h.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var m=0,y=u.firstChild.childNodes.length;m<y;m++)this.node.appendChild(u.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each(function(){this.writeDataToDom()}),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(h){return this.dom=h,this},is:function(h){return function(u,m){return u instanceof m}(this,h)}}}),t.easing={"-":function(h){return h},"<>":function(h){return-Math.cos(h*Math.PI)/2+.5},">":function(h){return Math.sin(h*Math.PI/2)},"<":function(h){return 1-Math.cos(h*Math.PI/2)}},t.morph=function(h){return function(u,m){return new t.MorphObj(u,m).at(h)}},t.Situation=t.invent({create:function(h){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new t.Number(h.duration).valueOf(),this.delay=new t.Number(h.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=h.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),t.FX=t.invent({create:function(h){this._target=h,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(h,u,m){R(h)==="object"&&(u=h.ease,m=h.delay,h=h.duration);var y=new t.Situation({duration:h||1e3,delay:m||0,ease:t.easing[u||"-"]||u});return this.queue(y),this},target:function(h){return h&&h instanceof t.Element?(this._target=h,this):this._target},timeToAbsPos:function(h){return(h-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(h){return this.situation.duration/this._speed*h+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=v.requestAnimationFrame((function(){this.step()}).bind(this))},stopAnimFrame:function(){v.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(h){return(typeof h=="function"||h instanceof t.Situation)&&this.situations.push(h),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof t.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var h,u=this.situation;if(u.init)return this;for(var m in u.animations){h=this.target()[m](),Array.isArray(h)||(h=[h]),Array.isArray(u.animations[m])||(u.animations[m]=[u.animations[m]]);for(var y=h.length;y--;)u.animations[m][y]instanceof t.Number&&(h[y]=new t.Number(h[y])),u.animations[m][y]=h[y].morph(u.animations[m][y])}for(var m in u.attrs)u.attrs[m]=new t.MorphObj(this.target().attr(m),u.attrs[m]);for(var m in u.styles)u.styles[m]=new t.MorphObj(this.target().style(m),u.styles[m]);return u.initialTransformation=this.target().matrixify(),u.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(h,u){var m=this.active;return this.active=!1,u&&this.clearQueue(),h&&this.situation&&(!m&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(h){var u=this.last();return this.target().on("finished.fx",function m(y){y.detail.situation==u&&(h.call(this,u),this.off("finished.fx",m))}),this._callStart()},during:function(h){var u=this.last(),m=function(y){y.detail.situation==u&&h.call(this,y.detail.pos,t.morph(y.detail.pos),y.detail.eased,u)};return this.target().off("during.fx",m).on("during.fx",m),this.after(function(){this.off("during.fx",m)}),this._callStart()},afterAll:function(h){var u=function m(y){h.call(this),this.off("allfinished.fx",m)};return this.target().off("allfinished.fx",u).on("allfinished.fx",u),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(h,u,m){return this.last()[m||"animations"][h]=u,this._callStart()},step:function(h){var u,m,y;h||(this.absPos=this.timeToAbsPos(+new Date)),this.situation.loops!==!1?(u=Math.max(this.absPos,0),m=Math.floor(u),this.situation.loops===!0||m<this.situation.loops?(this.pos=u-m,y=this.situation.loop,this.situation.loop=m):(this.absPos=this.situation.loops,this.pos=1,y=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=!!((this.situation.loop-y)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var S=this.situation.ease(this.pos);for(var P in this.situation.once)P>this.lastPos&&P<=S&&(this.situation.once[P].call(this.target(),this.pos,S),delete this.situation.once[P]);return this.active&&this.target().fire("during",{pos:this.pos,eased:S,fx:this,situation:this.situation}),this.situation?(this.eachAt(),this.pos==1&&!this.situation.reversed||this.situation.reversed&&this.pos==0?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=S,this):this},eachAt:function(){var h,u=this,m=this.target(),y=this.situation;for(var S in y.animations)h=[].concat(y.animations[S]).map(function(z){return typeof z!="string"&&z.at?z.at(y.ease(u.pos),u.pos):z}),m[S].apply(m,h);for(var S in y.attrs)h=[S].concat(y.attrs[S]).map(function(T){return typeof T!="string"&&T.at?T.at(y.ease(u.pos),u.pos):T}),m.attr.apply(m,h);for(var S in y.styles)h=[S].concat(y.styles[S]).map(function(T){return typeof T!="string"&&T.at?T.at(y.ease(u.pos),u.pos):T}),m.style.apply(m,h);if(y.transforms.length){h=y.initialTransformation,S=0;for(var P=y.transforms.length;S<P;S++){var L=y.transforms[S];L instanceof t.Matrix?h=L.relative?h.multiply(new t.Matrix().morph(L).at(y.ease(this.pos))):h.morph(L).at(y.ease(this.pos)):(L.relative||L.undo(h.extract()),h=h.multiply(L.at(y.ease(this.pos))))}m.matrix(h)}return this},once:function(h,u,m){var y=this.last();return m||(h=y.ease(h)),y.once[h]=u,this},_callStart:function(){return setTimeout((function(){this.start()}).bind(this),0),this}},parent:t.Element,construct:{animate:function(h,u,m){return(this.fx||(this.fx=new t.FX(this))).animate(h,u,m)},delay:function(h){return(this.fx||(this.fx=new t.FX(this))).delay(h)},stop:function(h,u){return this.fx&&this.fx.stop(h,u),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),t.MorphObj=t.invent({create:function(h,u){return t.Color.isColor(u)?new t.Color(h).morph(u):t.regex.delimiter.test(h)?t.regex.pathLetters.test(h)?new t.PathArray(h).morph(u):new t.Array(h).morph(u):t.regex.numberAndUnit.test(u)?new t.Number(h).morph(u):(this.value=h,void(this.destination=u))},extend:{at:function(h,u){return u<1?this.value:this.destination},valueOf:function(){return this.value}}}),t.extend(t.FX,{attr:function(h,u,m){if(R(h)==="object")for(var y in h)this.attr(y,h[y]);else this.add(h,u,"attrs");return this},plot:function(h,u,m,y){return arguments.length==4?this.plot([h,u,m,y]):this.add("plot",new(this.target()).morphArray(h))}}),t.Box=t.invent({create:function(h,u,m,y){if(!(R(h)!=="object"||h instanceof t.Element))return t.Box.call(this,h.left!=null?h.left:h.x,h.top!=null?h.top:h.y,h.width,h.height);arguments.length==4&&(this.x=h,this.y=u,this.width=m,this.height=y),b(this)}}),t.BBox=t.invent({create:function(h){if(t.Box.apply(this,[].slice.call(arguments)),h instanceof t.Element){var u;try{if(!e.documentElement.contains){for(var m=h.node;m.parentNode;)m=m.parentNode;if(m!=e)throw new Error("Element not in the dom")}u=h.node.getBBox()}catch{if(h instanceof t.Shape){t.parser.draw||t.prepare();var y=h.clone(t.parser.draw.instance).show();y&&y.node&&typeof y.node.getBBox=="function"&&(u=y.node.getBBox()),y&&typeof y.remove=="function"&&y.remove()}else u={x:h.node.clientLeft,y:h.node.clientTop,width:h.node.clientWidth,height:h.node.clientHeight}}t.Box.call(this,u)}},inherit:t.Box,parent:t.Element,construct:{bbox:function(){return new t.BBox(this)}}}),t.BBox.prototype.constructor=t.BBox,t.Matrix=t.invent({create:function(h){var u=x([1,0,0,1,0,0]);h=h===null?u:h instanceof t.Element?h.matrixify():typeof h=="string"?x(h.split(t.regex.delimiter).map(parseFloat)):arguments.length==6?x([].slice.call(arguments)):Array.isArray(h)?x(h):h&&R(h)==="object"?h:u;for(var m=k.length-1;m>=0;--m)this[k[m]]=h[k[m]]!=null?h[k[m]]:u[k[m]]},extend:{extract:function(){var h=p(this,0,1);p(this,1,0);var u=180/Math.PI*Math.atan2(h.y,h.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(u*Math.PI/180)+this.f*Math.sin(u*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(u*Math.PI/180)+this.e*Math.sin(-u*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:u,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new t.Matrix(this)}},clone:function(){return new t.Matrix(this)},morph:function(h){return this.destination=new t.Matrix(h),this},multiply:function(h){return new t.Matrix(this.native().multiply(function(u){return u instanceof t.Matrix||(u=new t.Matrix(u)),u}(h).native()))},inverse:function(){return new t.Matrix(this.native().inverse())},translate:function(h,u){return new t.Matrix(this.native().translate(h||0,u||0))},native:function(){for(var h=t.parser.native.createSVGMatrix(),u=k.length-1;u>=0;u--)h[k[u]]=this[k[u]];return h},toString:function(){return"matrix("+w(this.a)+","+w(this.b)+","+w(this.c)+","+w(this.d)+","+w(this.e)+","+w(this.f)+")"}},parent:t.Element,construct:{ctm:function(){return new t.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof t.Nested){var h=this.rect(1,1),u=h.node.getScreenCTM();return h.remove(),new t.Matrix(u)}return new t.Matrix(this.node.getScreenCTM())}}}),t.Point=t.invent({create:function(h,u){var m;m=Array.isArray(h)?{x:h[0],y:h[1]}:R(h)==="object"?{x:h.x,y:h.y}:h!=null?{x:h,y:u??h}:{x:0,y:0},this.x=m.x,this.y=m.y},extend:{clone:function(){return new t.Point(this)},morph:function(h,u){return this.destination=new t.Point(h,u),this}}}),t.extend(t.Element,{point:function(h,u){return new t.Point(h,u).transform(this.screenCTM().inverse())}}),t.extend(t.Element,{attr:function(h,u,m){if(h==null){for(h={},m=(u=this.node.attributes).length-1;m>=0;m--)h[u[m].nodeName]=t.regex.isNumber.test(u[m].nodeValue)?parseFloat(u[m].nodeValue):u[m].nodeValue;return h}if(R(h)==="object")for(var y in h)this.attr(y,h[y]);else if(u===null)this.node.removeAttribute(h);else{if(u==null)return(u=this.node.getAttribute(h))==null?t.defaults.attrs[h]:t.regex.isNumber.test(u)?parseFloat(u):u;h=="stroke-width"?this.attr("stroke",parseFloat(u)>0?this._stroke:null):h=="stroke"&&(this._stroke=u),h!="fill"&&h!="stroke"||(t.regex.isImage.test(u)&&(u=this.doc().defs().image(u,0,0)),u instanceof t.Image&&(u=this.doc().defs().pattern(0,0,function(){this.add(u)}))),typeof u=="number"?u=new t.Number(u):t.Color.isColor(u)?u=new t.Color(u):Array.isArray(u)&&(u=new t.Array(u)),h=="leading"?this.leading&&this.leading(u):typeof m=="string"?this.node.setAttributeNS(m,h,u.toString()):this.node.setAttribute(h,u.toString()),!this.rebuild||h!="font-size"&&h!="x"||this.rebuild(h,u)}return this}}),t.extend(t.Element,{transform:function(h,u){var m;return R(h)!=="object"?(m=new t.Matrix(this).extract(),typeof h=="string"?m[h]:m):(m=new t.Matrix(this),u=!!u||!!h.relative,h.a!=null&&(m=u?m.multiply(new t.Matrix(h)):new t.Matrix(h)),this.attr("transform",m))}}),t.extend(t.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(t.regex.transforms).slice(0,-1).map(function(h){var u=h.trim().split("(");return[u[0],u[1].split(t.regex.delimiter).map(function(m){return parseFloat(m)})]}).reduce(function(h,u){return u[0]=="matrix"?h.multiply(x(u[1])):h[u[0]].apply(h,u[1])},new t.Matrix)},toParent:function(h){if(this==h)return this;var u=this.screenCTM(),m=h.screenCTM().inverse();return this.addTo(h).untransform().transform(m.multiply(u)),this},toDoc:function(){return this.toParent(this.doc())}}),t.Transformation=t.invent({create:function(h,u){if(arguments.length>1&&typeof u!="boolean")return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(h))for(var m=0,y=this.arguments.length;m<y;++m)this[this.arguments[m]]=h[m];else if(h&&R(h)==="object")for(m=0,y=this.arguments.length;m<y;++m)this[this.arguments[m]]=h[this.arguments[m]];this.inversed=!1,u===!0&&(this.inversed=!0)}}),t.Translate=t.invent({parent:t.Matrix,inherit:t.Transformation,create:function(h,u){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),t.extend(t.Element,{style:function(h,u){if(arguments.length==0)return this.node.style.cssText||"";if(arguments.length<2)if(R(h)==="object")for(var m in h)this.style(m,h[m]);else{if(!t.regex.isCss.test(h))return this.node.style[l(h)];for(h=h.split(/\s*;\s*/).filter(function(y){return!!y}).map(function(y){return y.split(/\s*:\s*/)});u=h.pop();)this.style(u[0],u[1])}else this.node.style[l(h)]=u===null||t.regex.isBlank.test(u)?"":u;return this}}),t.Parent=t.invent({create:function(h){this.constructor.call(this,h)},inherit:t.Element,extend:{children:function(){return t.utils.map(t.utils.filterSVGElements(this.node.childNodes),function(h){return t.adopt(h)})},add:function(h,u){return u==null?this.node.appendChild(h.node):h.node!=this.node.childNodes[u]&&this.node.insertBefore(h.node,this.node.childNodes[u]),this},put:function(h,u){return this.add(h,u),h},has:function(h){return this.index(h)>=0},index:function(h){return[].slice.call(this.node.childNodes).indexOf(h.node)},get:function(h){return t.adopt(this.node.childNodes[h])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(h,u){for(var m=this.children(),y=0,S=m.length;y<S;y++)m[y]instanceof t.Element&&h.apply(m[y],[y,m]),u&&m[y]instanceof t.Container&&m[y].each(h,u);return this},removeElement:function(h){return this.node.removeChild(h.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),t.extend(t.Parent,{ungroup:function(h,u){return u===0||this instanceof t.Defs||this.node==t.parser.draw||(h=h||(this instanceof t.Doc?this:this.parent(t.Parent)),u=u||1/0,this.each(function(){return this instanceof t.Defs?this:this instanceof t.Parent?this.ungroup(h,u-1):this.toParent(h)}),this.node.firstChild||this.remove()),this},flatten:function(h,u){return this.ungroup(h,u)}}),t.Container=t.invent({create:function(h){this.constructor.call(this,h)},inherit:t.Parent}),t.ViewBox=t.invent({parent:t.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(h){t.Element.prototype[h]=function(u){return t.on(this.node,h,u),this}}),t.listeners=[],t.handlerMap=[],t.listenerId=0,t.on=function(h,u,m,y,S){var P=m.bind(y||h.instance||h),L=(t.handlerMap.indexOf(h)+1||t.handlerMap.push(h))-1,z=u.split(".")[0],T=u.split(".")[1]||"*";t.listeners[L]=t.listeners[L]||{},t.listeners[L][z]=t.listeners[L][z]||{},t.listeners[L][z][T]=t.listeners[L][z][T]||{},m._svgjsListenerId||(m._svgjsListenerId=++t.listenerId),t.listeners[L][z][T][m._svgjsListenerId]=P,h.addEventListener(z,P,S||{passive:!0})},t.off=function(h,u,m){var y=t.handlerMap.indexOf(h),S=u&&u.split(".")[0],P=u&&u.split(".")[1],L="";if(y!=-1)if(m){if(typeof m=="function"&&(m=m._svgjsListenerId),!m)return;t.listeners[y][S]&&t.listeners[y][S][P||"*"]&&(h.removeEventListener(S,t.listeners[y][S][P||"*"][m],!1),delete t.listeners[y][S][P||"*"][m])}else if(P&&S){if(t.listeners[y][S]&&t.listeners[y][S][P]){for(var z in t.listeners[y][S][P])t.off(h,[S,P].join("."),z);delete t.listeners[y][S][P]}}else if(P)for(var T in t.listeners[y])for(var L in t.listeners[y][T])P===L&&t.off(h,[T,P].join("."));else if(S){if(t.listeners[y][S]){for(var L in t.listeners[y][S])t.off(h,[S,L].join("."));delete t.listeners[y][S]}}else{for(var T in t.listeners[y])t.off(h,T);delete t.listeners[y],delete t.handlerMap[y]}},t.extend(t.Element,{on:function(h,u,m,y){return t.on(this.node,h,u,m,y),this},off:function(h,u){return t.off(this.node,h,u),this},fire:function(h,u){return h instanceof v.Event?this.node.dispatchEvent(h):this.node.dispatchEvent(h=new t.CustomEvent(h,{detail:u,cancelable:!0})),this._event=h,this},event:function(){return this._event}}),t.Defs=t.invent({create:"defs",inherit:t.Container}),t.G=t.invent({create:"g",inherit:t.Container,extend:{x:function(h){return h==null?this.transform("x"):this.transform({x:h-this.x()},!0)}},construct:{group:function(){return this.put(new t.G)}}}),t.Doc=t.invent({create:function(h){h&&((h=typeof h=="string"?e.getElementById(h):h).nodeName=="svg"?this.constructor.call(this,h):(this.constructor.call(this,t.create("svg")),h.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:t.Container,extend:{namespace:function(){return this.attr({xmlns:t.ns,version:"1.1"}).attr("xmlns:xlink",t.xlink,t.xmlns).attr("xmlns:svgjs",t.svgjs,t.xmlns)},defs:function(){var h;return this._defs||((h=this.node.getElementsByTagName("defs")[0])?this._defs=t.adopt(h):this._defs=new t.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&this.node.parentNode.nodeName!="#document"?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,t.parser.draw&&!t.parser.draw.parentNode&&this.node.appendChild(t.parser.draw),this},clone:function(h){this.writeDataToDom();var u=this.node,m=f(u.cloneNode(!0));return h?(h.node||h).appendChild(m.node):u.parentNode.insertBefore(m.node,u.nextSibling),m}}}),t.extend(t.Element,{}),t.Gradient=t.invent({create:function(h){this.constructor.call(this,t.create(h+"Gradient")),this.type=h},inherit:t.Container,extend:{at:function(h,u,m){return this.put(new t.Stop).update(h,u,m)},update:function(h){return this.clear(),typeof h=="function"&&h.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(h,u,m){return h=="transform"&&(h="gradientTransform"),t.Container.prototype.attr.call(this,h,u,m)}},construct:{gradient:function(h,u){return this.defs().gradient(h,u)}}}),t.extend(t.Gradient,t.FX,{from:function(h,u){return(this._target||this).type=="radial"?this.attr({fx:new t.Number(h),fy:new t.Number(u)}):this.attr({x1:new t.Number(h),y1:new t.Number(u)})},to:function(h,u){return(this._target||this).type=="radial"?this.attr({cx:new t.Number(h),cy:new t.Number(u)}):this.attr({x2:new t.Number(h),y2:new t.Number(u)})}}),t.extend(t.Defs,{gradient:function(h,u){return this.put(new t.Gradient(h)).update(u)}}),t.Stop=t.invent({create:"stop",inherit:t.Element,extend:{update:function(h){return(typeof h=="number"||h instanceof t.Number)&&(h={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),h.opacity!=null&&this.attr("stop-opacity",h.opacity),h.color!=null&&this.attr("stop-color",h.color),h.offset!=null&&this.attr("offset",new t.Number(h.offset)),this}}}),t.Pattern=t.invent({create:"pattern",inherit:t.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(h){return this.clear(),typeof h=="function"&&h.call(this,this),this},toString:function(){return this.fill()},attr:function(h,u,m){return h=="transform"&&(h="patternTransform"),t.Container.prototype.attr.call(this,h,u,m)}},construct:{pattern:function(h,u,m){return this.defs().pattern(h,u,m)}}}),t.extend(t.Defs,{pattern:function(h,u,m){return this.put(new t.Pattern).update(m).attr({x:0,y:0,width:h,height:u,patternUnits:"userSpaceOnUse"})}}),t.Shape=t.invent({create:function(h){this.constructor.call(this,h)},inherit:t.Element}),t.Symbol=t.invent({create:"symbol",inherit:t.Container,construct:{symbol:function(){return this.put(new t.Symbol)}}}),t.Use=t.invent({create:"use",inherit:t.Shape,extend:{element:function(h,u){return this.attr("href",(u||"")+"#"+h,t.xlink)}},construct:{use:function(h,u){return this.put(new t.Use).element(h,u)}}}),t.Rect=t.invent({create:"rect",inherit:t.Shape,construct:{rect:function(h,u){return this.put(new t.Rect).size(h,u)}}}),t.Circle=t.invent({create:"circle",inherit:t.Shape,construct:{circle:function(h){return this.put(new t.Circle).rx(new t.Number(h).divide(2)).move(0,0)}}}),t.extend(t.Circle,t.FX,{rx:function(h){return this.attr("r",h)},ry:function(h){return this.rx(h)}}),t.Ellipse=t.invent({create:"ellipse",inherit:t.Shape,construct:{ellipse:function(h,u){return this.put(new t.Ellipse).size(h,u).move(0,0)}}}),t.extend(t.Ellipse,t.Rect,t.FX,{rx:function(h){return this.attr("rx",h)},ry:function(h){return this.attr("ry",h)}}),t.extend(t.Circle,t.Ellipse,{x:function(h){return h==null?this.cx()-this.rx():this.cx(h+this.rx())},y:function(h){return h==null?this.cy()-this.ry():this.cy(h+this.ry())},cx:function(h){return h==null?this.attr("cx"):this.attr("cx",h)},cy:function(h){return h==null?this.attr("cy"):this.attr("cy",h)},width:function(h){return h==null?2*this.rx():this.rx(new t.Number(h).divide(2))},height:function(h){return h==null?2*this.ry():this.ry(new t.Number(h).divide(2))},size:function(h,u){var m=g(this,h,u);return this.rx(new t.Number(m.width).divide(2)).ry(new t.Number(m.height).divide(2))}}),t.Line=t.invent({create:"line",inherit:t.Shape,extend:{array:function(){return new t.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(h,u,m,y){return h==null?this.array():(h=u!==void 0?{x1:h,y1:u,x2:m,y2:y}:new t.PointArray(h).toLine(),this.attr(h))},move:function(h,u){return this.attr(this.array().move(h,u).toLine())},size:function(h,u){var m=g(this,h,u);return this.attr(this.array().size(m.width,m.height).toLine())}},construct:{line:function(h,u,m,y){return t.Line.prototype.plot.apply(this.put(new t.Line),h!=null?[h,u,m,y]:[0,0,0,0])}}}),t.Polyline=t.invent({create:"polyline",inherit:t.Shape,construct:{polyline:function(h){return this.put(new t.Polyline).plot(h||new t.PointArray)}}}),t.Polygon=t.invent({create:"polygon",inherit:t.Shape,construct:{polygon:function(h){return this.put(new t.Polygon).plot(h||new t.PointArray)}}}),t.extend(t.Polyline,t.Polygon,{array:function(){return this._array||(this._array=new t.PointArray(this.attr("points")))},plot:function(h){return h==null?this.array():this.clear().attr("points",typeof h=="string"?h:this._array=new t.PointArray(h))},clear:function(){return delete this._array,this},move:function(h,u){return this.attr("points",this.array().move(h,u))},size:function(h,u){var m=g(this,h,u);return this.attr("points",this.array().size(m.width,m.height))}}),t.extend(t.Line,t.Polyline,t.Polygon,{morphArray:t.PointArray,x:function(h){return h==null?this.bbox().x:this.move(h,this.bbox().y)},y:function(h){return h==null?this.bbox().y:this.move(this.bbox().x,h)},width:function(h){var u=this.bbox();return h==null?u.width:this.size(h,u.height)},height:function(h){var u=this.bbox();return h==null?u.height:this.size(u.width,h)}}),t.Path=t.invent({create:"path",inherit:t.Shape,extend:{morphArray:t.PathArray,array:function(){return this._array||(this._array=new t.PathArray(this.attr("d")))},plot:function(h){return h==null?this.array():this.clear().attr("d",typeof h=="string"?h:this._array=new t.PathArray(h))},clear:function(){return delete this._array,this}},construct:{path:function(h){return this.put(new t.Path).plot(h||new t.PathArray)}}}),t.Image=t.invent({create:"image",inherit:t.Shape,extend:{load:function(h){if(!h)return this;var u=this,m=new v.Image;return t.on(m,"load",function(){t.off(m);var y=u.parent(t.Pattern);y!==null&&(u.width()==0&&u.height()==0&&u.size(m.width,m.height),y&&y.width()==0&&y.height()==0&&y.size(u.width(),u.height()),typeof u._loaded=="function"&&u._loaded.call(u,{width:m.width,height:m.height,ratio:m.width/m.height,url:h}))}),t.on(m,"error",function(y){t.off(m),typeof u._error=="function"&&u._error.call(u,y)}),this.attr("href",m.src=this.src=h,t.xlink)},loaded:function(h){return this._loaded=h,this},error:function(h){return this._error=h,this}},construct:{image:function(h,u,m){return this.put(new t.Image).load(h).size(u||0,m||u||0)}}}),t.Text=t.invent({create:function(){this.constructor.call(this,t.create("text")),this.dom.leading=new t.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",t.defaults.attrs["font-family"])},inherit:t.Shape,extend:{x:function(h){return h==null?this.attr("x"):this.attr("x",h)},text:function(h){if(h===void 0){h="";for(var u=this.node.childNodes,m=0,y=u.length;m<y;++m)m!=0&&u[m].nodeType!=3&&t.adopt(u[m]).dom.newLined==1&&(h+=`
- `),h+=u[m].textContent;return h}if(this.clear().build(!0),typeof h=="function")h.call(this,this);else{m=0;for(var S=(h=h.split(`
- `)).length;m<S;m++)this.tspan(h[m]).newLine()}return this.build(!1).rebuild()},size:function(h){return this.attr("font-size",h).rebuild()},leading:function(h){return h==null?this.dom.leading:(this.dom.leading=new t.Number(h),this.rebuild())},lines:function(){var h=(this.textPath&&this.textPath()||this).node,u=t.utils.map(t.utils.filterSVGElements(h.childNodes),function(m){return t.adopt(m)});return new t.Set(u)},rebuild:function(h){if(typeof h=="boolean"&&(this._rebuild=h),this._rebuild){var u=this,m=0,y=this.dom.leading*new t.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(u.textPath()||this.attr("x",u.attr("x")),this.text()==`
- `?m+=y:(this.attr("dy",y+m),m=0))}),this.fire("rebuild")}return this},build:function(h){return this._build=!!h,this},setData:function(h){return this.dom=h,this.dom.leading=new t.Number(h.leading||1.3),this}},construct:{text:function(h){return this.put(new t.Text).text(h)},plain:function(h){return this.put(new t.Text).plain(h)}}}),t.Tspan=t.invent({create:"tspan",inherit:t.Shape,extend:{text:function(h){return h==null?this.node.textContent+(this.dom.newLined?`
- `:""):(typeof h=="function"?h.call(this,this):this.plain(h),this)},dx:function(h){return this.attr("dx",h)},dy:function(h){return this.attr("dy",h)},newLine:function(){var h=this.parent(t.Text);return this.dom.newLined=!0,this.dy(h.dom.leading*h.attr("font-size")).attr("x",h.x())}}}),t.extend(t.Text,t.Tspan,{plain:function(h){return this._build===!1&&this.clear(),this.node.appendChild(e.createTextNode(h)),this},tspan:function(h){var u=(this.textPath&&this.textPath()||this).node,m=new t.Tspan;return this._build===!1&&this.clear(),u.appendChild(m.node),m.text(h)},clear:function(){for(var h=(this.textPath&&this.textPath()||this).node;h.hasChildNodes();)h.removeChild(h.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),t.TextPath=t.invent({create:"textPath",inherit:t.Parent,parent:t.Text,construct:{morphArray:t.PathArray,array:function(){var h=this.track();return h?h.array():null},plot:function(h){var u=this.track(),m=null;return u&&(m=u.plot(h)),h==null?m:this},track:function(){var h=this.textPath();if(h)return h.reference("href")},textPath:function(){if(this.node.firstChild&&this.node.firstChild.nodeName=="textPath")return t.adopt(this.node.firstChild)}}}),t.Nested=t.invent({create:function(){this.constructor.call(this,t.create("svg")),this.style("overflow","visible")},inherit:t.Container,construct:{nested:function(){return this.put(new t.Nested)}}});var r={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(h,u){return u=="color"?h:h+"-"+u}};function n(h,u,m,y){return m+y.replace(t.regex.dots," .")}function l(h){return h.toLowerCase().replace(/-(.)/g,function(u,m){return m.toUpperCase()})}function c(h){return h.charAt(0).toUpperCase()+h.slice(1)}function d(h){var u=h.toString(16);return u.length==1?"0"+u:u}function g(h,u,m){if(u==null||m==null){var y=h.bbox();u==null?u=y.width/y.height*m:m==null&&(m=y.height/y.width*u)}return{width:u,height:m}}function p(h,u,m){return{x:u*h.a+m*h.c+0,y:u*h.b+m*h.d+0}}function x(h){return{a:h[0],b:h[1],c:h[2],d:h[3],e:h[4],f:h[5]}}function f(h){for(var u=h.childNodes.length-1;u>=0;u--)h.childNodes[u]instanceof v.SVGElement&&f(h.childNodes[u]);return t.adopt(h).id(t.eid(h.nodeName))}function b(h){return h.x==null&&(h.x=0,h.y=0,h.width=0,h.height=0),h.w=h.width,h.h=h.height,h.x2=h.x+h.width,h.y2=h.y+h.height,h.cx=h.x+h.width/2,h.cy=h.y+h.height/2,h}function w(h){return Math.abs(h)>1e-37?h:0}["fill","stroke"].forEach(function(h){var u={};u[h]=function(m){if(m===void 0)return this;if(typeof m=="string"||t.Color.isRgb(m)||m&&typeof m.fill=="function")this.attr(h,m);else for(var y=r[h].length-1;y>=0;y--)m[r[h][y]]!=null&&this.attr(r.prefix(h,r[h][y]),m[r[h][y]]);return this},t.extend(t.Element,t.FX,u)}),t.extend(t.Element,t.FX,{translate:function(h,u){return this.transform({x:h,y:u})},matrix:function(h){return this.attr("transform",new t.Matrix(arguments.length==6?[].slice.call(arguments):h))},opacity:function(h){return this.attr("opacity",h)},dx:function(h){return this.x(new t.Number(h).plus(this instanceof t.FX?0:this.x()),!0)},dy:function(h){return this.y(new t.Number(h).plus(this instanceof t.FX?0:this.y()),!0)}}),t.extend(t.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(h){return this.node.getPointAtLength(h)}}),t.Set=t.invent({create:function(h){Array.isArray(h)?this.members=h:this.clear()},extend:{add:function(){for(var h=[].slice.call(arguments),u=0,m=h.length;u<m;u++)this.members.push(h[u]);return this},remove:function(h){var u=this.index(h);return u>-1&&this.members.splice(u,1),this},each:function(h){for(var u=0,m=this.members.length;u<m;u++)h.apply(this.members[u],[u,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(h){return this.index(h)>=0},index:function(h){return this.members.indexOf(h)},get:function(h){return this.members[h]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(h){return new t.Set(h)}}}),t.FX.Set=t.invent({create:function(h){this.set=h}}),t.Set.inherit=function(){var h=[];for(var u in t.Shape.prototype)typeof t.Shape.prototype[u]=="function"&&typeof t.Set.prototype[u]!="function"&&h.push(u);for(var u in h.forEach(function(y){t.Set.prototype[y]=function(){for(var S=0,P=this.members.length;S<P;S++)this.members[S]&&typeof this.members[S][y]=="function"&&this.members[S][y].apply(this.members[S],arguments);return y=="animate"?this.fx||(this.fx=new t.FX.Set(this)):this}}),h=[],t.FX.prototype)typeof t.FX.prototype[u]=="function"&&typeof t.FX.Set.prototype[u]!="function"&&h.push(u);h.forEach(function(m){t.FX.Set.prototype[m]=function(){for(var y=0,S=this.set.members.length;y<S;y++)this.set.members[y].fx[m].apply(this.set.members[y].fx,arguments);return this}})},t.extend(t.Element,{}),t.extend(t.Element,{remember:function(h,u){if(R(arguments[0])==="object")for(var m in h)this.remember(m,h[m]);else{if(arguments.length==1)return this.memory()[h];this.memory()[h]=u}return this},forget:function(){if(arguments.length==0)this._memory={};else for(var h=arguments.length-1;h>=0;h--)delete this.memory()[arguments[h]];return this},memory:function(){return this._memory||(this._memory={})}}),t.get=function(h){var u=e.getElementById(function(m){var y=(m||"").toString().match(t.regex.reference);if(y)return y[1]}(h)||h);return t.adopt(u)},t.select=function(h,u){return new t.Set(t.utils.map((u||e).querySelectorAll(h),function(m){return t.adopt(m)}))},t.extend(t.Parent,{select:function(h){return t.select(h,this.node)}});var k="abcdef".split("");if(typeof v.CustomEvent!="function"){var A=function(h,u){u=u||{bubbles:!1,cancelable:!1,detail:void 0};var m=e.createEvent("CustomEvent");return m.initCustomEvent(h,u.bubbles,u.cancelable,u.detail),m};A.prototype=v.Event.prototype,t.CustomEvent=A}else t.CustomEvent=v.CustomEvent;return t},R(W)==="object"?_e.exports=Oe.document?Je(Oe,Oe.document):function(v){return Je(v,v.document)}:Oe.SVG=Je(Oe,Oe.document),(function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(r,n){return this.add(r,n),!r.attr("in")&&this.autoSetIn&&r.attr("in",this.source),r.attr("result")||r.attr("result",r),r},blend:function(r,n,l){return this.put(new SVG.BlendEffect(r,n,l))},colorMatrix:function(r,n){return this.put(new SVG.ColorMatrixEffect(r,n))},convolveMatrix:function(r){return this.put(new SVG.ConvolveMatrixEffect(r))},componentTransfer:function(r){return this.put(new SVG.ComponentTransferEffect(r))},composite:function(r,n,l){return this.put(new SVG.CompositeEffect(r,n,l))},flood:function(r,n){return this.put(new SVG.FloodEffect(r,n))},offset:function(r,n){return this.put(new SVG.OffsetEffect(r,n))},image:function(r){return this.put(new SVG.ImageEffect(r))},merge:function(){var r=[void 0];for(var n in arguments)r.push(arguments[n]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,r)))},gaussianBlur:function(r,n){return this.put(new SVG.GaussianBlurEffect(r,n))},morphology:function(r,n){return this.put(new SVG.MorphologyEffect(r,n))},diffuseLighting:function(r,n,l){return this.put(new SVG.DiffuseLightingEffect(r,n,l))},displacementMap:function(r,n,l,c,d){return this.put(new SVG.DisplacementMapEffect(r,n,l,c,d))},specularLighting:function(r,n,l,c){return this.put(new SVG.SpecularLightingEffect(r,n,l,c))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(r,n,l,c,d){return this.put(new SVG.TurbulenceEffect(r,n,l,c,d))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(r){var n=this.put(new SVG.Filter);return typeof r=="function"&&r.call(n,n),n}}),SVG.extend(SVG.Container,{filter:function(r){return this.defs().filter(r)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(r){return this.filterer=r instanceof SVG.Element?r:this.doc().filter(r),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(r){return this.filterer&&r===!0&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(r){return r==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",r)},result:function(r){return r==null?this.attr("result"):this.attr("result",r)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(r){return r==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",r)},result:function(r){return r==null?this.attr("result"):this.attr("result",r)},toString:function(){return this.result()}}});var v={blend:function(r,n){return this.parent()&&this.parent().blend(this,r,n)},colorMatrix:function(r,n){return this.parent()&&this.parent().colorMatrix(r,n).in(this)},convolveMatrix:function(r){return this.parent()&&this.parent().convolveMatrix(r).in(this)},componentTransfer:function(r){return this.parent()&&this.parent().componentTransfer(r).in(this)},composite:function(r,n){return this.parent()&&this.parent().composite(this,r,n)},flood:function(r,n){return this.parent()&&this.parent().flood(r,n)},offset:function(r,n){return this.parent()&&this.parent().offset(r,n).in(this)},image:function(r){return this.parent()&&this.parent().image(r)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(r,n){return this.parent()&&this.parent().gaussianBlur(r,n).in(this)},morphology:function(r,n){return this.parent()&&this.parent().morphology(r,n).in(this)},diffuseLighting:function(r,n,l){return this.parent()&&this.parent().diffuseLighting(r,n,l).in(this)},displacementMap:function(r,n,l,c){return this.parent()&&this.parent().displacementMap(this,r,n,l,c)},specularLighting:function(r,n,l,c){return this.parent()&&this.parent().specularLighting(r,n,l,c).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(r,n,l,c,d){return this.parent()&&this.parent().turbulence(r,n,l,c,d).in(this)}};SVG.extend(SVG.Effect,v),SVG.extend(SVG.ParentEffect,v),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(r){this.attr("in",r)}}});var e={blend:function(r,n,l){this.attr({in:r,in2:n,mode:l||"normal"})},colorMatrix:function(r,n){r=="matrix"&&(n=a(n)),this.attr({type:r,values:n===void 0?null:n})},convolveMatrix:function(r){r=a(r),this.attr({order:Math.sqrt(r.split(" ").length),kernelMatrix:r})},composite:function(r,n,l){this.attr({in:r,in2:n,operator:l})},flood:function(r,n){this.attr("flood-color",r),n!=null&&this.attr("flood-opacity",n)},offset:function(r,n){this.attr({dx:r,dy:n})},image:function(r){this.attr("href",r,SVG.xlink)},displacementMap:function(r,n,l,c,d){this.attr({in:r,in2:n,scale:l,xChannelSelector:c,yChannelSelector:d})},gaussianBlur:function(r,n){r!=null||n!=null?this.attr("stdDeviation",s(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(r,n){this.attr({operator:r,radius:n})},tile:function(){},turbulence:function(r,n,l,c,d){this.attr({numOctaves:n,seed:l,stitchTiles:c,baseFrequency:r,type:d})}},t={merge:function(){var r;if(arguments[0]instanceof SVG.Set){var n=this;arguments[0].each(function(c){this instanceof SVG.MergeNode?n.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&n.put(new SVG.MergeNode(this))})}else{r=Array.isArray(arguments[0])?arguments[0]:arguments;for(var l=0;l<r.length;l++)r[l]instanceof SVG.MergeNode?this.put(r[l]):this.put(new SVG.MergeNode(r[l]))}},componentTransfer:function(r){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach((function(l){this[l]=new SVG["Func"+l.toUpperCase()]("identity"),this.rgb.add(this[l]),this.node.appendChild(this[l].node)}).bind(this)),r)for(var n in r.rgb&&(["r","g","b"].forEach((function(l){this[l].attr(r.rgb)}).bind(this)),delete r.rgb),r)this[n].attr(r[n])},diffuseLighting:function(r,n,l){this.attr({surfaceScale:r,diffuseConstant:n,kernelUnitLength:l})},specularLighting:function(r,n,l,c){this.attr({surfaceScale:r,diffuseConstant:n,specularExponent:l,kernelUnitLength:c})}},i={distantLight:function(r,n){this.attr({azimuth:r,elevation:n})},pointLight:function(r,n,l){this.attr({x:r,y:n,z:l})},spotLight:function(r,n,l,c,d,g){this.attr({x:r,y:n,z:l,pointsAtX:c,pointsAtY:d,pointsAtZ:g})},mergeNode:function(r){this.attr("in",r)}};function a(r){return Array.isArray(r)&&(r=new SVG.Array(r)),r.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function s(r){if(!Array.isArray(r))return r;for(var n=0,l=r.length,c=[];n<l;n++)c.push(r[n]);return c.join(" ")}function o(){var r=function(){};for(var n in typeof arguments[arguments.length-1]=="function"&&(r=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var l in arguments[n])r(arguments[n][l],l,arguments[n])}["r","g","b","a"].forEach(function(r){i["Func"+r.toUpperCase()]=function(n){switch(this.attr("type",n),n){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}}),o(e,function(r,n){var l=n.charAt(0).toUpperCase()+n.slice(1);SVG[l+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+l)),r.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})}),o(t,function(r,n){var l=n.charAt(0).toUpperCase()+n.slice(1);SVG[l+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+l)),r.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})}),o(i,function(r,n){var l=n.charAt(0).toUpperCase()+n.slice(1);SVG[l]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+l)),r.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})}),SVG.extend(SVG.MergeEffect,{in:function(r){return r instanceof SVG.MergeNode?this.add(r,0):this.add(new SVG.MergeNode(r),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(r){return r==null?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",r)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}).call(void 0),function(){function v(s,o,r,n,l,c,d){for(var g=s.slice(o,r||d),p=n.slice(l,c||d),x=0,f={pos:[0,0],start:[0,0]},b={pos:[0,0],start:[0,0]};g[x]=e.call(f,g[x]),p[x]=e.call(b,p[x]),g[x][0]!=p[x][0]||g[x][0]=="M"||g[x][0]=="A"&&(g[x][4]!=p[x][4]||g[x][5]!=p[x][5])?(Array.prototype.splice.apply(g,[x,1].concat(i.call(f,g[x]))),Array.prototype.splice.apply(p,[x,1].concat(i.call(b,p[x])))):(g[x]=t.call(f,g[x]),p[x]=t.call(b,p[x])),!(++x==g.length&&x==p.length);)x==g.length&&g.push(["C",f.pos[0],f.pos[1],f.pos[0],f.pos[1],f.pos[0],f.pos[1]]),x==p.length&&p.push(["C",b.pos[0],b.pos[1],b.pos[0],b.pos[1],b.pos[0],b.pos[1]]);return{start:g,dest:p}}function e(s){switch(s[0]){case"z":case"Z":s[0]="L",s[1]=this.start[0],s[2]=this.start[1];break;case"H":s[0]="L",s[2]=this.pos[1];break;case"V":s[0]="L",s[2]=s[1],s[1]=this.pos[0];break;case"T":s[0]="Q",s[3]=s[1],s[4]=s[2],s[1]=this.reflection[1],s[2]=this.reflection[0];break;case"S":s[0]="C",s[6]=s[4],s[5]=s[3],s[4]=s[2],s[3]=s[1],s[2]=this.reflection[1],s[1]=this.reflection[0]}return s}function t(s){var o=s.length;return this.pos=[s[o-2],s[o-1]],"SCQT".indexOf(s[0])!=-1&&(this.reflection=[2*this.pos[0]-s[o-4],2*this.pos[1]-s[o-3]]),s}function i(s){var o=[s];switch(s[0]){case"M":return this.pos=this.start=[s[1],s[2]],o;case"L":s[5]=s[3]=s[1],s[6]=s[4]=s[2],s[1]=this.pos[0],s[2]=this.pos[1];break;case"Q":s[6]=s[4],s[5]=s[3],s[4]=1*s[4]/3+2*s[2]/3,s[3]=1*s[3]/3+2*s[1]/3,s[2]=1*this.pos[1]/3+2*s[2]/3,s[1]=1*this.pos[0]/3+2*s[1]/3;break;case"A":s=(o=function(r,n){var l,c,d,g,p,x,f,b,w,k,A,h,u,m,y,S,P,L,z,T,Y,H,q,_,se,oe,Pe=Math.abs(n[1]),Re=Math.abs(n[2]),Ne=n[3]%360,qt=n[4],rt=n[5],ot=n[6],nt=n[7],ne=new SVG.Point(r),re=new SVG.Point(ot,nt),vt=[];if(Pe===0||Re===0||ne.x===re.x&&ne.y===re.y)return[["C",ne.x,ne.y,re.x,re.y,re.x,re.y]];for(l=new SVG.Point((ne.x-re.x)/2,(ne.y-re.y)/2).transform(new SVG.Matrix().rotate(Ne)),(c=l.x*l.x/(Pe*Pe)+l.y*l.y/(Re*Re))>1&&(Pe*=c=Math.sqrt(c),Re*=c),d=new SVG.Matrix().rotate(Ne).scale(1/Pe,1/Re).rotate(-Ne),ne=ne.transform(d),re=re.transform(d),g=[re.x-ne.x,re.y-ne.y],x=g[0]*g[0]+g[1]*g[1],p=Math.sqrt(x),g[0]/=p,g[1]/=p,f=x<4?Math.sqrt(1-x/4):0,qt===rt&&(f*=-1),b=new SVG.Point((re.x+ne.x)/2+f*-g[1],(re.y+ne.y)/2+f*g[0]),w=new SVG.Point(ne.x-b.x,ne.y-b.y),k=new SVG.Point(re.x-b.x,re.y-b.y),A=Math.acos(w.x/Math.sqrt(w.x*w.x+w.y*w.y)),w.y<0&&(A*=-1),h=Math.acos(k.x/Math.sqrt(k.x*k.x+k.y*k.y)),k.y<0&&(h*=-1),rt&&A>h&&(h+=2*Math.PI),!rt&&A<h&&(h-=2*Math.PI),m=Math.ceil(2*Math.abs(A-h)/Math.PI),S=[],P=A,u=(h-A)/m,y=4*Math.tan(u/4)/3,Y=0;Y<=m;Y++)z=Math.cos(P),L=Math.sin(P),T=new SVG.Point(b.x+z,b.y+L),S[Y]=[new SVG.Point(T.x+y*L,T.y-y*z),T,new SVG.Point(T.x-y*L,T.y+y*z)],P+=u;for(S[0][0]=S[0][1].clone(),S[S.length-1][2]=S[S.length-1][1].clone(),d=new SVG.Matrix().rotate(Ne).scale(Pe,Re).rotate(-Ne),Y=0,H=S.length;Y<H;Y++)S[Y][0]=S[Y][0].transform(d),S[Y][1]=S[Y][1].transform(d),S[Y][2]=S[Y][2].transform(d);for(Y=1,H=S.length;Y<H;Y++)q=(T=S[Y-1][2]).x,_=T.y,se=(T=S[Y][0]).x,oe=T.y,ot=(T=S[Y][1]).x,nt=T.y,vt.push(["C",q,_,se,oe,ot,nt]);return vt}(this.pos,s))[0]}return s[0]="C",this.pos=[s[5],s[6]],this.reflection=[2*s[5]-s[3],2*s[6]-s[4]],o}function a(s,o){if(o===!1)return!1;for(var r=o,n=s.length;r<n;++r)if(s[r][0]=="M")return r;return!1}SVG.extend(SVG.PathArray,{morph:function(s){for(var o=this.value,r=this.parse(s),n=0,l=0,c=!1,d=!1;n!==!1||l!==!1;){var g;c=a(o,n!==!1&&n+1),d=a(r,l!==!1&&l+1),n===!1&&(n=(g=new SVG.PathArray(p.start).bbox()).height==0||g.width==0?o.push(o[0])-1:o.push(["M",g.x+g.width/2,g.y+g.height/2])-1),l===!1&&(l=(g=new SVG.PathArray(p.dest).bbox()).height==0||g.width==0?r.push(r[0])-1:r.push(["M",g.x+g.width/2,g.y+g.height/2])-1);var p=v(o,n,c,r,l,d);o=o.slice(0,n).concat(p.start,c===!1?[]:o.slice(c)),r=r.slice(0,l).concat(p.dest,d===!1?[]:r.slice(d)),n=c!==!1&&n+p.start.length,l=d!==!1&&l+p.dest.length}return this.value=o,this.destination=new SVG.PathArray,this.destination.value=r,this}})}(),(function(){function v(e){e.remember("_draggable",this),this.el=e}v.prototype.init=function(e,t){var i=this;this.constraint=e,this.value=t,this.el.on("mousedown.drag",function(a){i.start(a)}),this.el.on("touchstart.drag",function(a){i.start(a)})},v.prototype.transformPoint=function(e,t){var i=(e=e||window.event).changedTouches&&e.changedTouches[0]||e;return this.p.x=i.clientX-(t||0),this.p.y=i.clientY,this.p.matrixTransform(this.m)},v.prototype.getBBox=function(){var e=this.el.bbox();return this.el instanceof SVG.Nested&&(e=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(e.x=this.el.x(),e.y=this.el.y()),e},v.prototype.start=function(e){if(e.type!="click"&&e.type!="mousedown"&&e.type!="mousemove"||(e.which||e.buttons)==1){var t=this;if(this.el.fire("beforedrag",{event:e,handler:this}),!this.el.event().defaultPrevented){e.preventDefault(),e.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var i,a=this.getBBox();if(this.el instanceof SVG.Text)switch(i=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":i/=2;break;case"start":i=0}this.startPoints={point:this.transformPoint(e,i),box:a,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(s){t.drag(s)}),SVG.on(window,"touchmove.drag",function(s){t.drag(s)}),SVG.on(window,"mouseup.drag",function(s){t.end(s)}),SVG.on(window,"touchend.drag",function(s){t.end(s)}),this.el.fire("dragstart",{event:e,p:this.startPoints.point,m:this.m,handler:this})}}},v.prototype.drag=function(e){var t=this.getBBox(),i=this.transformPoint(e),a=this.startPoints.box.x+i.x-this.startPoints.point.x,s=this.startPoints.box.y+i.y-this.startPoints.point.y,o=this.constraint,r=i.x-this.startPoints.point.x,n=i.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:e,p:i,m:this.m,handler:this}),this.el.event().defaultPrevented)return i;if(typeof o=="function"){var l=o.call(this.el,a,s,this.m);typeof l=="boolean"&&(l={x:l,y:l}),l.x===!0?this.el.x(a):l.x!==!1&&this.el.x(l.x),l.y===!0?this.el.y(s):l.y!==!1&&this.el.y(l.y)}else typeof o=="object"&&(o.minX!=null&&a<o.minX?r=(a=o.minX)-this.startPoints.box.x:o.maxX!=null&&a>o.maxX-t.width&&(r=(a=o.maxX-t.width)-this.startPoints.box.x),o.minY!=null&&s<o.minY?n=(s=o.minY)-this.startPoints.box.y:o.maxY!=null&&s>o.maxY-t.height&&(n=(s=o.maxY-t.height)-this.startPoints.box.y),o.snapToGrid!=null&&(a-=a%o.snapToGrid,s-=s%o.snapToGrid,r-=r%o.snapToGrid,n-=n%o.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:r,y:n},!0):this.el.move(a,s));return i},v.prototype.end=function(e){var t=this.drag(e);this.el.fire("dragend",{event:e,p:t,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(e,t){typeof e!="function"&&typeof e!="object"||(t=e,e=!0);var i=this.remember("_draggable")||new v(this);return(e=e===void 0||e)?i.init(t||{},e):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}).call(void 0),function(){function v(e){this.el=e,e.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(t,i,a){var s=typeof t!="string"?t:i[t];return a?s/2:s},this.pointCoords=function(t,i){var a=this.pointsList[t];return{x:this.pointCoord(a[0],i,t==="t"||t==="b"),y:this.pointCoord(a[1],i,t==="r"||t==="l")}}}v.prototype.init=function(e,t){var i=this.el.bbox();this.options={};var a=this.el.selectize.defaults.points;for(var s in this.el.selectize.defaults)this.options[s]=this.el.selectize.defaults[s],t[s]!==void 0&&(this.options[s]=t[s]);var o=["points","pointsExclude"];for(var s in o){var r=this.options[o[s]];typeof r=="string"?r=r.length>0?r.split(/\s*,\s*/i):[]:typeof r=="boolean"&&o[s]==="points"&&(r=r?a:[]),this.options[o[s]]=r}this.options.points=[a,this.options.points].reduce(function(n,l){return n.filter(function(c){return l.indexOf(c)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(n,l){return n.filter(function(c){return l.indexOf(c)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&["line","polyline","polygon"].indexOf(this.el.type)!==-1?this.selectPoints(e):this.selectRect(e),this.observe(),this.cleanup()},v.prototype.selectPoints=function(e){return this.pointSelection.isSelected=e,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},v.prototype.getPointArray=function(){var e=this.el.bbox();return this.el.array().valueOf().map(function(t){return[t[0]-e.x,t[1]-e.y]})},v.prototype.drawPoints=function(){for(var e=this,t=this.getPointArray(),i=0,a=t.length;i<a;++i){var s=function(r){return function(n){(n=n||window.event).preventDefault?n.preventDefault():n.returnValue=!1,n.stopPropagation();var l=n.pageX||n.touches[0].pageX,c=n.pageY||n.touches[0].pageY;e.el.fire("point",{x:l,y:c,i:r,event:n})}}(i),o=this.drawPoint(t[i][0],t[i][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",s).on("mousedown",s);this.pointSelection.set.add(o)}},v.prototype.drawPoint=function(e,t){var i=this.options.pointType;switch(i){case"circle":return this.drawCircle(e,t);case"rect":return this.drawRect(e,t);default:if(typeof i=="function")return i.call(this,e,t);throw new Error("Unknown "+i+" point type!")}},v.prototype.drawCircle=function(e,t){return this.nested.circle(this.options.pointSize).center(e,t)},v.prototype.drawRect=function(e,t){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(e,t)},v.prototype.updatePointSelection=function(){var e=this.getPointArray();this.pointSelection.set.each(function(t){this.cx()===e[t][0]&&this.cy()===e[t][1]||this.center(e[t][0],e[t][1])})},v.prototype.updateRectSelection=function(){var e=this,t=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:t.width,height:t.height}),this.options.points.length&&this.options.points.map(function(a,s){var o=e.pointCoords(a,t);e.rectSelection.set.get(s+1).center(o.x,o.y)}),this.options.rotationPoint){var i=this.rectSelection.set.length();this.rectSelection.set.get(i-1).center(t.width/2,20)}},v.prototype.selectRect=function(e){var t=this,i=this.el.bbox();function a(r){return function(n){(n=n||window.event).preventDefault?n.preventDefault():n.returnValue=!1,n.stopPropagation();var l=n.pageX||n.touches[0].pageX,c=n.pageY||n.touches[0].pageY;t.el.fire(r,{x:l,y:c,event:n})}}if(this.rectSelection.isSelected=e,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(i.width,i.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map(function(r,n){var l=t.pointCoords(r,i),c=t.drawPoint(l.x,l.y).attr("class",t.options.classPoints+"_"+r).on("mousedown",a(r)).on("touchstart",a(r));t.rectSelection.set.add(c)}),this.rectSelection.set.each(function(){this.addClass(t.options.classPoints)})),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var s=function(r){(r=r||window.event).preventDefault?r.preventDefault():r.returnValue=!1,r.stopPropagation();var n=r.pageX||r.touches[0].pageX,l=r.pageY||r.touches[0].pageY;t.el.fire("rot",{x:n,y:l,event:r})},o=this.drawPoint(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",s).on("mousedown",s);this.rectSelection.set.add(o)}},v.prototype.handler=function(){var e=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(e.x,e.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},v.prototype.observe=function(){var e=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver(function(){e.handler()}),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch{}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",function(){e.handler()})},v.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each(function(){this.remove()}),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each(function(){this.remove()}),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(e,t){return typeof e=="object"&&(t=e,e=!0),(this.remember("_selectHandler")||new v(this)).init(e===void 0||e,t||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function v(e){e.remember("_resizeHandler",this),this.el=e,this.parameters={},this.lastUpdateCall=null,this.p=e.doc().node.createSVGPoint()}v.prototype.transformPoint=function(e,t,i){return this.p.x=e-(this.offset.x-window.pageXOffset),this.p.y=t-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)},v.prototype._extractPosition=function(e){return{x:e.clientX!=null?e.clientX:e.touches[0].clientX,y:e.clientY!=null?e.clientY:e.touches[0].clientY}},v.prototype.init=function(e){var t=this;if(this.stop(),e!=="stop"){for(var i in this.options={},this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],e[i]!==void 0&&(this.options[i]=e[i]);this.el.on("lt.resize",function(a){t.resize(a||window.event)}),this.el.on("rt.resize",function(a){t.resize(a||window.event)}),this.el.on("rb.resize",function(a){t.resize(a||window.event)}),this.el.on("lb.resize",function(a){t.resize(a||window.event)}),this.el.on("t.resize",function(a){t.resize(a||window.event)}),this.el.on("r.resize",function(a){t.resize(a||window.event)}),this.el.on("b.resize",function(a){t.resize(a||window.event)}),this.el.on("l.resize",function(a){t.resize(a||window.event)}),this.el.on("rot.resize",function(a){t.resize(a||window.event)}),this.el.on("point.resize",function(a){t.resize(a||window.event)}),this.update()}},v.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},v.prototype.resize=function(e){var t=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var i=this._extractPosition(e.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:e.detail.x,y:e.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},this.el.type==="text"&&(this.parameters.fontSize=this.el.attr()["font-size"]),e.detail.i!==void 0){var a=this.el.array().valueOf();this.parameters.i=e.detail.i,this.parameters.pointCoords=[a[e.detail.i][0],a[e.detail.i][1]]}switch(e.type){case"lt":this.calc=function(s,o){var r=this.snapToGrid(s,o);if(this.parameters.box.width-r[0]>0&&this.parameters.box.height-r[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-r[0]);r=this.checkAspectRatio(r),this.el.move(this.parameters.box.x+r[0],this.parameters.box.y+r[1]).size(this.parameters.box.width-r[0],this.parameters.box.height-r[1])}};break;case"rt":this.calc=function(s,o){var r=this.snapToGrid(s,o,2);if(this.parameters.box.width+r[0]>0&&this.parameters.box.height-r[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+r[0]);r=this.checkAspectRatio(r,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+r[1]).size(this.parameters.box.width+r[0],this.parameters.box.height-r[1])}};break;case"rb":this.calc=function(s,o){var r=this.snapToGrid(s,o,0);if(this.parameters.box.width+r[0]>0&&this.parameters.box.height+r[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+r[0]);r=this.checkAspectRatio(r),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+r[0],this.parameters.box.height+r[1])}};break;case"lb":this.calc=function(s,o){var r=this.snapToGrid(s,o,1);if(this.parameters.box.width-r[0]>0&&this.parameters.box.height+r[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-r[0]);r=this.checkAspectRatio(r,!0),this.el.move(this.parameters.box.x+r[0],this.parameters.box.y).size(this.parameters.box.width-r[0],this.parameters.box.height+r[1])}};break;case"t":this.calc=function(s,o){var r=this.snapToGrid(s,o,2);if(this.parameters.box.height-r[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y+r[1]).height(this.parameters.box.height-r[1])}};break;case"r":this.calc=function(s,o){var r=this.snapToGrid(s,o,0);if(this.parameters.box.width+r[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+r[0])}};break;case"b":this.calc=function(s,o){var r=this.snapToGrid(s,o,0);if(this.parameters.box.height+r[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+r[1])}};break;case"l":this.calc=function(s,o){var r=this.snapToGrid(s,o,1);if(this.parameters.box.width-r[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x+r[0],this.parameters.box.y).width(this.parameters.box.width-r[0])}};break;case"rot":this.calc=function(s,o){var r=s+this.parameters.p.x,n=o+this.parameters.p.y,l=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),c=Math.atan2(n-this.parameters.box.y-this.parameters.box.height/2,r-this.parameters.box.x-this.parameters.box.width/2),d=this.parameters.rotation+180*(c-l)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(d-d%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(s,o){var r=this.snapToGrid(s,o,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),n=this.el.array().valueOf();n[this.parameters.i][0]=this.parameters.pointCoords[0]+r[0],n[this.parameters.i][1]=this.parameters.pointCoords[1]+r[1],this.el.plot(n)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:e}),SVG.on(window,"touchmove.resize",function(s){t.update(s||window.event)}),SVG.on(window,"touchend.resize",function(){t.done()}),SVG.on(window,"mousemove.resize",function(s){t.update(s||window.event)}),SVG.on(window,"mouseup.resize",function(){t.done()})},v.prototype.update=function(e){if(e){var t=this._extractPosition(e),i=this.transformPoint(t.x,t.y),a=i.x-this.parameters.p.x,s=i.y-this.parameters.p.y;this.lastUpdateCall=[a,s],this.calc(a,s),this.el.fire("resizing",{dx:a,dy:s,event:e})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},v.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},v.prototype.snapToGrid=function(e,t,i,a){var s;return a!==void 0?s=[(i+e)%this.options.snapToGrid,(a+t)%this.options.snapToGrid]:(i=i??3,s=[(this.parameters.box.x+e+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),e<0&&(s[0]-=this.options.snapToGrid),t<0&&(s[1]-=this.options.snapToGrid),e-=Math.abs(s[0])<this.options.snapToGrid/2?s[0]:s[0]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),t-=Math.abs(s[1])<this.options.snapToGrid/2?s[1]:s[1]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(e,t,i,a)},v.prototype.constraintToBox=function(e,t,i,a){var s,o,r=this.options.constraint||{};return a!==void 0?(s=i,o=a):(s=this.parameters.box.x+(1&i?0:this.parameters.box.width),o=this.parameters.box.y+(2&i?0:this.parameters.box.height)),r.minX!==void 0&&s+e<r.minX&&(e=r.minX-s),r.maxX!==void 0&&s+e>r.maxX&&(e=r.maxX-s),r.minY!==void 0&&o+t<r.minY&&(t=r.minY-o),r.maxY!==void 0&&o+t>r.maxY&&(t=r.maxY-o),[e,t]},v.prototype.checkAspectRatio=function(e,t){if(!this.options.saveAspectRatio)return e;var i=e.slice(),a=this.parameters.box.width/this.parameters.box.height,s=this.parameters.box.width+e[0],o=this.parameters.box.height-e[1],r=s/o;return r<a?(i[1]=s/a-this.parameters.box.height,t&&(i[1]=-i[1])):r>a&&(i[0]=this.parameters.box.width-o*a,t&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(e){return(this.remember("_resizeHandler")||new v(this)).init(e||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),window.Apex===void 0&&(window.Apex={});var mt=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new K(this.ctx),this.ctx.axes=new St(this.ctx),this.ctx.core=new Vt(this.ctx.el,this.ctx),this.ctx.config=new O({}),this.ctx.data=new ee(this.ctx),this.ctx.grid=new lt(this.ctx),this.ctx.graphics=new M(this.ctx),this.ctx.coreUtils=new Z(this.ctx),this.ctx.crosshairs=new tt(this.ctx),this.ctx.events=new kt(this.ctx),this.ctx.exports=new Ie(this.ctx),this.ctx.localization=new At(this.ctx),this.ctx.options=new ke,this.ctx.responsive=new Ct(this.ctx),this.ctx.series=new ae(this.ctx),this.ctx.theme=new Lt(this.ctx),this.ctx.formatters=new Xe(this.ctx),this.ctx.titleSubtitle=new Pt(this.ctx),this.ctx.legend=new ht(this.ctx),this.ctx.toolbar=new ct(this.ctx),this.ctx.dimensions=new $e(this.ctx),this.ctx.updateHelpers=new jt(this.ctx),this.ctx.zoomPanSelection=new Xt(this.ctx),this.ctx.w.globals.tooltip=new Ht(this.ctx)}}]),v}(),bt=function(){function v(e){I(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"clear",value:function(e){var t=e.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:t})}},{key:"killSVG",value:function(e){e.each(function(t,i){this.removeClass("*"),this.off(),this.stop()},!0),e.ungroup(),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,i=e.isUpdating,a=this.w.globals.dom.Paper.node;a.parentNode&&a.parentNode.parentNode&&!i&&(a.parentNode.parentNode.style.minHeight="unset");var s=this.w.globals.dom.baseEl;s&&this.ctx.eventList.forEach(function(r){s.removeEventListener(r,t.ctx.events.documentEvent)});var o=this.w.globals.dom;if(this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(o.Paper),o.Paper.remove(),o.elWrap=null,o.elGraphical=null,o.elAnnotations=null,o.elLegendWrap=null,o.baseEl=null,o.elGridRect=null,o.elGridRectMask=null,o.elGridRectMarkerMask=null,o.elForecastMask=null,o.elNonForecastMask=null,o.elDefs=null}}]),v}(),st=new WeakMap,Ut=function(){function v(e,t){I(this,v),this.opts=t,this.ctx=this,this.w=new Ce(t).init(),this.el=e,this.w.globals.cuid=C.randomId(),this.w.globals.chartID=this.w.config.chart.id?C.escapeString(this.w.config.chart.id):this.w.globals.cuid,new mt(this).initModules(),this.create=C.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return E(v,[{key:"render",value:function(){var e=this;return new Promise(function(t,i){if(e.el!==null){Apex._chartInstances===void 0&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var a=e.w.config.chart.events.beforeMount;if(typeof a=="function"&&a(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(c,d){var g=!1;if(c.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var p=c.getBoundingClientRect();c.style.display!=="none"&&p.width!==0||(g=!0)}var x=new ResizeObserver(function(f){g&&d.call(c,f),g=!0});c.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(c.children).forEach(function(f){return x.observe(f)}):x.observe(c),st.set(d,x)}(e.el.parentNode,e.parentResizeHandler),!e.css){var s=e.el.getRootNode&&e.el.getRootNode(),o=C.is("ShadowRoot",s),r=e.el.ownerDocument,n=r.getElementById("apexcharts-css");!o&&n||(e.css=document.createElement("style"),e.css.id="apexcharts-css",e.css.textContent=`.apexcharts-canvas {
- position: relative;
- user-select: none;
- /* cannot give overflow: hidden as it will crop tooltips which overflow outside chart area */
- }
- /* scrollbar is not visible by default for legend, hence forcing the visibility */
- .apexcharts-canvas ::-webkit-scrollbar {
- -webkit-appearance: none;
- width: 6px;
- }
- .apexcharts-canvas ::-webkit-scrollbar-thumb {
- border-radius: 4px;
- background-color: rgba(0, 0, 0, .5);
- box-shadow: 0 0 1px rgba(255, 255, 255, .5);
- -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
- }
- .apexcharts-inner {
- position: relative;
- }
- .apexcharts-text tspan {
- font-family: inherit;
- }
- .legend-mouseover-inactive {
- transition: 0.15s ease all;
- opacity: 0.20;
- }
- .apexcharts-series-collapsed {
- opacity: 0;
- }
- .apexcharts-tooltip {
- border-radius: 5px;
- box-shadow: 2px 2px 6px -4px #999;
- cursor: default;
- font-size: 14px;
- left: 62px;
- opacity: 0;
- pointer-events: none;
- position: absolute;
- top: 20px;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- white-space: nowrap;
- z-index: 12;
- transition: 0.15s ease all;
- }
- .apexcharts-tooltip.apexcharts-active {
- opacity: 1;
- transition: 0.15s ease all;
- }
- .apexcharts-tooltip.apexcharts-theme-light {
- border: 1px solid #e3e3e3;
- background: rgba(255, 255, 255, 0.96);
- }
- .apexcharts-tooltip.apexcharts-theme-dark {
- color: #fff;
- background: rgba(30, 30, 30, 0.8);
- }
- .apexcharts-tooltip * {
- font-family: inherit;
- }
- .apexcharts-tooltip-title {
- padding: 6px;
- font-size: 15px;
- margin-bottom: 4px;
- }
- .apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
- background: #ECEFF1;
- border-bottom: 1px solid #ddd;
- }
- .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
- background: rgba(0, 0, 0, 0.7);
- border-bottom: 1px solid #333;
- }
- .apexcharts-tooltip-text-y-value,
- .apexcharts-tooltip-text-goals-value,
- .apexcharts-tooltip-text-z-value {
- display: inline-block;
- font-weight: 600;
- margin-left: 5px;
- }
- .apexcharts-tooltip-title:empty,
- .apexcharts-tooltip-text-y-label:empty,
- .apexcharts-tooltip-text-y-value:empty,
- .apexcharts-tooltip-text-goals-label:empty,
- .apexcharts-tooltip-text-goals-value:empty,
- .apexcharts-tooltip-text-z-value:empty {
- display: none;
- }
- .apexcharts-tooltip-text-y-value,
- .apexcharts-tooltip-text-goals-value,
- .apexcharts-tooltip-text-z-value {
- font-weight: 600;
- }
- .apexcharts-tooltip-text-goals-label,
- .apexcharts-tooltip-text-goals-value {
- padding: 6px 0 5px;
- }
- .apexcharts-tooltip-goals-group,
- .apexcharts-tooltip-text-goals-label,
- .apexcharts-tooltip-text-goals-value {
- display: flex;
- }
- .apexcharts-tooltip-text-goals-label:not(:empty),
- .apexcharts-tooltip-text-goals-value:not(:empty) {
- margin-top: -6px;
- }
- .apexcharts-tooltip-marker {
- width: 12px;
- height: 12px;
- position: relative;
- top: 0px;
- margin-right: 10px;
- border-radius: 50%;
- }
- .apexcharts-tooltip-series-group {
- padding: 0 10px;
- display: none;
- text-align: left;
- justify-content: left;
- align-items: center;
- }
- .apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
- opacity: 1;
- }
- .apexcharts-tooltip-series-group.apexcharts-active,
- .apexcharts-tooltip-series-group:last-child {
- padding-bottom: 4px;
- }
- .apexcharts-tooltip-series-group-hidden {
- opacity: 0;
- height: 0;
- line-height: 0;
- padding: 0 !important;
- }
- .apexcharts-tooltip-y-group {
- padding: 6px 0 5px;
- }
- .apexcharts-tooltip-box, .apexcharts-custom-tooltip {
- padding: 4px 8px;
- }
- .apexcharts-tooltip-boxPlot {
- display: flex;
- flex-direction: column-reverse;
- }
- .apexcharts-tooltip-box>div {
- margin: 4px 0;
- }
- .apexcharts-tooltip-box span.value {
- font-weight: bold;
- }
- .apexcharts-tooltip-rangebar {
- padding: 5px 8px;
- }
- .apexcharts-tooltip-rangebar .category {
- font-weight: 600;
- color: #777;
- }
- .apexcharts-tooltip-rangebar .series-name {
- font-weight: bold;
- display: block;
- margin-bottom: 5px;
- }
- .apexcharts-xaxistooltip {
- opacity: 0;
- padding: 9px 10px;
- pointer-events: none;
- color: #373d3f;
- font-size: 13px;
- text-align: center;
- border-radius: 2px;
- position: absolute;
- z-index: 10;
- background: #ECEFF1;
- border: 1px solid #90A4AE;
- transition: 0.15s ease all;
- }
- .apexcharts-xaxistooltip.apexcharts-theme-dark {
- background: rgba(0, 0, 0, 0.7);
- border: 1px solid rgba(0, 0, 0, 0.5);
- color: #fff;
- }
- .apexcharts-xaxistooltip:after,
- .apexcharts-xaxistooltip:before {
- left: 50%;
- border: solid transparent;
- content: " ";
- height: 0;
- width: 0;
- position: absolute;
- pointer-events: none;
- }
- .apexcharts-xaxistooltip:after {
- border-color: rgba(236, 239, 241, 0);
- border-width: 6px;
- margin-left: -6px;
- }
- .apexcharts-xaxistooltip:before {
- border-color: rgba(144, 164, 174, 0);
- border-width: 7px;
- margin-left: -7px;
- }
- .apexcharts-xaxistooltip-bottom:after,
- .apexcharts-xaxistooltip-bottom:before {
- bottom: 100%;
- }
- .apexcharts-xaxistooltip-top:after,
- .apexcharts-xaxistooltip-top:before {
- top: 100%;
- }
- .apexcharts-xaxistooltip-bottom:after {
- border-bottom-color: #ECEFF1;
- }
- .apexcharts-xaxistooltip-bottom:before {
- border-bottom-color: #90A4AE;
- }
- .apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after {
- border-bottom-color: rgba(0, 0, 0, 0.5);
- }
- .apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {
- border-bottom-color: rgba(0, 0, 0, 0.5);
- }
- .apexcharts-xaxistooltip-top:after {
- border-top-color: #ECEFF1
- }
- .apexcharts-xaxistooltip-top:before {
- border-top-color: #90A4AE;
- }
- .apexcharts-xaxistooltip-top.apexcharts-theme-dark:after {
- border-top-color: rgba(0, 0, 0, 0.5);
- }
- .apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {
- border-top-color: rgba(0, 0, 0, 0.5);
- }
- .apexcharts-xaxistooltip.apexcharts-active {
- opacity: 1;
- transition: 0.15s ease all;
- }
- .apexcharts-yaxistooltip {
- opacity: 0;
- padding: 4px 10px;
- pointer-events: none;
- color: #373d3f;
- font-size: 13px;
- text-align: center;
- border-radius: 2px;
- position: absolute;
- z-index: 10;
- background: #ECEFF1;
- border: 1px solid #90A4AE;
- }
- .apexcharts-yaxistooltip.apexcharts-theme-dark {
- background: rgba(0, 0, 0, 0.7);
- border: 1px solid rgba(0, 0, 0, 0.5);
- color: #fff;
- }
- .apexcharts-yaxistooltip:after,
- .apexcharts-yaxistooltip:before {
- top: 50%;
- border: solid transparent;
- content: " ";
- height: 0;
- width: 0;
- position: absolute;
- pointer-events: none;
- }
- .apexcharts-yaxistooltip:after {
- border-color: rgba(236, 239, 241, 0);
- border-width: 6px;
- margin-top: -6px;
- }
- .apexcharts-yaxistooltip:before {
- border-color: rgba(144, 164, 174, 0);
- border-width: 7px;
- margin-top: -7px;
- }
- .apexcharts-yaxistooltip-left:after,
- .apexcharts-yaxistooltip-left:before {
- left: 100%;
- }
- .apexcharts-yaxistooltip-right:after,
- .apexcharts-yaxistooltip-right:before {
- right: 100%;
- }
- .apexcharts-yaxistooltip-left:after {
- border-left-color: #ECEFF1;
- }
- .apexcharts-yaxistooltip-left:before {
- border-left-color: #90A4AE;
- }
- .apexcharts-yaxistooltip-left.apexcharts-theme-dark:after {
- border-left-color: rgba(0, 0, 0, 0.5);
- }
- .apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {
- border-left-color: rgba(0, 0, 0, 0.5);
- }
- .apexcharts-yaxistooltip-right:after {
- border-right-color: #ECEFF1;
- }
- .apexcharts-yaxistooltip-right:before {
- border-right-color: #90A4AE;
- }
- .apexcharts-yaxistooltip-right.apexcharts-theme-dark:after {
- border-right-color: rgba(0, 0, 0, 0.5);
- }
- .apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {
- border-right-color: rgba(0, 0, 0, 0.5);
- }
- .apexcharts-yaxistooltip.apexcharts-active {
- opacity: 1;
- }
- .apexcharts-yaxistooltip-hidden {
- display: none;
- }
- .apexcharts-xcrosshairs,
- .apexcharts-ycrosshairs {
- pointer-events: none;
- opacity: 0;
- transition: 0.15s ease all;
- }
- .apexcharts-xcrosshairs.apexcharts-active,
- .apexcharts-ycrosshairs.apexcharts-active {
- opacity: 1;
- transition: 0.15s ease all;
- }
- .apexcharts-ycrosshairs-hidden {
- opacity: 0;
- }
- .apexcharts-selection-rect {
- cursor: move;
- }
- .svg_select_boundingRect, .svg_select_points_rot {
- pointer-events: none;
- opacity: 0;
- visibility: hidden;
- }
- .apexcharts-selection-rect + g .svg_select_boundingRect,
- .apexcharts-selection-rect + g .svg_select_points_rot {
- opacity: 0;
- visibility: hidden;
- }
- .apexcharts-selection-rect + g .svg_select_points_l,
- .apexcharts-selection-rect + g .svg_select_points_r {
- cursor: ew-resize;
- opacity: 1;
- visibility: visible;
- }
- .svg_select_points {
- fill: #efefef;
- stroke: #333;
- rx: 2;
- }
- .apexcharts-svg.apexcharts-zoomable.hovering-zoom {
- cursor: crosshair
- }
- .apexcharts-svg.apexcharts-zoomable.hovering-pan {
- cursor: move
- }
- .apexcharts-zoom-icon,
- .apexcharts-zoomin-icon,
- .apexcharts-zoomout-icon,
- .apexcharts-reset-icon,
- .apexcharts-pan-icon,
- .apexcharts-selection-icon,
- .apexcharts-menu-icon,
- .apexcharts-toolbar-custom-icon {
- cursor: pointer;
- width: 20px;
- height: 20px;
- line-height: 24px;
- color: #6E8192;
- text-align: center;
- }
- .apexcharts-zoom-icon svg,
- .apexcharts-zoomin-icon svg,
- .apexcharts-zoomout-icon svg,
- .apexcharts-reset-icon svg,
- .apexcharts-menu-icon svg {
- fill: #6E8192;
- }
- .apexcharts-selection-icon svg {
- fill: #444;
- transform: scale(0.76)
- }
- .apexcharts-theme-dark .apexcharts-zoom-icon svg,
- .apexcharts-theme-dark .apexcharts-zoomin-icon svg,
- .apexcharts-theme-dark .apexcharts-zoomout-icon svg,
- .apexcharts-theme-dark .apexcharts-reset-icon svg,
- .apexcharts-theme-dark .apexcharts-pan-icon svg,
- .apexcharts-theme-dark .apexcharts-selection-icon svg,
- .apexcharts-theme-dark .apexcharts-menu-icon svg,
- .apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg {
- fill: #f3f4f5;
- }
- .apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg,
- .apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,
- .apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg {
- fill: #008FFB;
- }
- .apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,
- .apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,
- .apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,
- .apexcharts-theme-light .apexcharts-zoomout-icon:hover svg,
- .apexcharts-theme-light .apexcharts-reset-icon:hover svg,
- .apexcharts-theme-light .apexcharts-menu-icon:hover svg {
- fill: #333;
- }
- .apexcharts-selection-icon,
- .apexcharts-menu-icon {
- position: relative;
- }
- .apexcharts-reset-icon {
- margin-left: 5px;
- }
- .apexcharts-zoom-icon,
- .apexcharts-reset-icon,
- .apexcharts-menu-icon {
- transform: scale(0.85);
- }
- .apexcharts-zoomin-icon,
- .apexcharts-zoomout-icon {
- transform: scale(0.7)
- }
- .apexcharts-zoomout-icon {
- margin-right: 3px;
- }
- .apexcharts-pan-icon {
- transform: scale(0.62);
- position: relative;
- left: 1px;
- top: 0px;
- }
- .apexcharts-pan-icon svg {
- fill: #fff;
- stroke: #6E8192;
- stroke-width: 2;
- }
- .apexcharts-pan-icon.apexcharts-selected svg {
- stroke: #008FFB;
- }
- .apexcharts-pan-icon:not(.apexcharts-selected):hover svg {
- stroke: #333;
- }
- .apexcharts-toolbar {
- position: absolute;
- z-index: 11;
- max-width: 176px;
- text-align: right;
- border-radius: 3px;
- padding: 0px 6px 2px 6px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .apexcharts-menu {
- background: #fff;
- position: absolute;
- top: 100%;
- border: 1px solid #ddd;
- border-radius: 3px;
- padding: 3px;
- right: 10px;
- opacity: 0;
- min-width: 110px;
- transition: 0.15s ease all;
- pointer-events: none;
- }
- .apexcharts-menu.apexcharts-menu-open {
- opacity: 1;
- pointer-events: all;
- transition: 0.15s ease all;
- }
- .apexcharts-menu-item {
- padding: 6px 7px;
- font-size: 12px;
- cursor: pointer;
- }
- .apexcharts-theme-light .apexcharts-menu-item:hover {
- background: #eee;
- }
- .apexcharts-theme-dark .apexcharts-menu {
- background: rgba(0, 0, 0, 0.7);
- color: #fff;
- }
- @media screen and (min-width: 768px) {
- .apexcharts-canvas:hover .apexcharts-toolbar {
- opacity: 1;
- }
- }
- .apexcharts-datalabel.apexcharts-element-hidden {
- opacity: 0;
- }
- .apexcharts-pie-label,
- .apexcharts-datalabels,
- .apexcharts-datalabel,
- .apexcharts-datalabel-label,
- .apexcharts-datalabel-value {
- cursor: default;
- pointer-events: none;
- }
- .apexcharts-pie-label-delay {
- opacity: 0;
- animation-name: opaque;
- animation-duration: 0.3s;
- animation-fill-mode: forwards;
- animation-timing-function: ease;
- }
- .apexcharts-canvas .apexcharts-element-hidden {
- opacity: 0;
- }
- .apexcharts-hide .apexcharts-series-points {
- opacity: 0;
- }
- .apexcharts-gridline,
- .apexcharts-annotation-rect,
- .apexcharts-xaxis-annotation-label,
- .apexcharts-yaxis-annotation-label,
- .apexcharts-point-annotation-label,
- .apexcharts-tooltip .apexcharts-marker,
- .apexcharts-area-series .apexcharts-area,
- .apexcharts-line,
- .apexcharts-zoom-rect,
- .apexcharts-toolbar svg,
- .apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,
- .apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,
- .apexcharts-radar-series path,
- .apexcharts-radar-series polygon {
- pointer-events: none;
- }
- /* markers */
- .apexcharts-marker {
- transition: 0.15s ease all;
- }
- @keyframes opaque {
- 0% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- }
- }
- /* Resize generated styles */
- @keyframes resizeanim {
- from {
- opacity: 0;
- }
- to {
- opacity: 0;
- }
- }
- .resize-triggers {
- animation: 1ms resizeanim;
- visibility: hidden;
- opacity: 0;
- }
- .resize-triggers,
- .resize-triggers>div,
- .contract-trigger:before {
- content: " ";
- display: block;
- position: absolute;
- top: 0;
- left: 0;
- height: 100%;
- width: 100%;
- overflow: hidden;
- }
- .resize-triggers>div {
- background: #eee;
- overflow: auto;
- }
- .contract-trigger:before {
- width: 200%;
- height: 200%;
- }`,o?s.prepend(e.css):r.head.appendChild(e.css))}var l=e.create(e.w.config.series,{});if(!l)return t(e);e.mount(l).then(function(){typeof e.w.config.chart.events.mounted=="function"&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(l)}).catch(function(c){i(c)})}else i(new Error("Element not found"))})}},{key:"create",value:function(e,t){var i=this.w;new mt(this).initModules();var a=this.w.globals;if(a.noData=!1,a.animationEnded=!1,this.responsive.checkResponsiveConfig(t),i.config.xaxis.convertedCatToNumeric&&new Se(i.config).convertCatToNumericXaxis(i.config,this.ctx),this.el===null||(this.core.setupElements(),i.config.chart.type==="treemap"&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),a.svgWidth===0))return a.animationEnded=!0,null;var s=Z.checkComboSeries(e);a.comboCharts=s.comboCharts,a.comboBarCount=s.comboBarCount;var o=e.every(function(d){return d.data&&d.data.length===0});(e.length===0||o)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(e),this.theme.init(),new G(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),a.noData&&a.collapsedSeries.length!==a.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),a.axisCharts&&(this.core.coreCalculations(),i.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new Z(this).getLargestMarkerSize(),this.dimensions.plotCoords();var r=this.core.xySettings();this.grid.createGridMask();var n=this.core.plotChartType(e,r),l=new Ae(this);l.bringForward(),i.config.dataLabels.background.enabled&&l.dataLabelsBackground(),this.core.shiftGraphPosition();var c={plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}};return{elGraph:n,xyRatios:r,elInner:i.globals.dom.elGraphical,dimensions:c}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this,a=i.w;return new Promise(function(s,o){if(i.el===null)return o(new Error("Not enough data to display or target element not found"));(t===null||a.globals.allSeriesCollapsed)&&i.series.handleNoData(),a.config.chart.type!=="treemap"&&i.axes.drawAxis(a.config.chart.type,t.xyRatios),i.grid=new lt(i);var r=i.grid.drawGrid();i.annotations=new N(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),a.config.grid.position==="back"&&r&&a.globals.dom.elGraphical.add(r.el);var n=new Ye(e.ctx),l=new et(e.ctx);if(r!==null&&(n.xAxisLabelCorrections(r.xAxisTickWidth),l.setYAxisTextAlignments(),a.config.yaxis.map(function(g,p){a.globals.ignoreYAxisIndexes.indexOf(p)===-1&&l.yAxisTitleRotate(p,g.opposite)})),a.config.annotations.position==="back"&&(a.globals.dom.Paper.add(a.globals.dom.elAnnotations),i.annotations.drawAxesAnnotations()),Array.isArray(t.elGraph))for(var c=0;c<t.elGraph.length;c++)a.globals.dom.elGraphical.add(t.elGraph[c]);else a.globals.dom.elGraphical.add(t.elGraph);if(a.config.grid.position==="front"&&r&&a.globals.dom.elGraphical.add(r.el),a.config.xaxis.crosshairs.position==="front"&&i.crosshairs.drawXCrosshairs(),a.config.yaxis[0].crosshairs.position==="front"&&i.crosshairs.drawYCrosshairs(),a.config.annotations.position==="front"&&(a.globals.dom.Paper.add(a.globals.dom.elAnnotations),i.annotations.drawAxesAnnotations()),!a.globals.noData){if(a.config.tooltip.enabled&&!a.globals.noData&&i.w.globals.tooltip.drawTooltip(t.xyRatios),a.globals.axisCharts&&(a.globals.isXNumeric||a.config.xaxis.convertedCatToNumeric||a.globals.isRangeBar))(a.config.chart.zoom.enabled||a.config.chart.selection&&a.config.chart.selection.enabled||a.config.chart.pan&&a.config.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:t.xyRatios});else{var d=a.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(g){d[g]=!1})}a.config.chart.toolbar.show&&!a.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}a.globals.memory.methodsToExec.length>0&&a.globals.memory.methodsToExec.forEach(function(g){g.method(g.params,!1,g.context)}),a.globals.axisCharts||a.globals.noData||i.core.resizeNonAxisCharts(),s(i)})}},{key:"destroy",value:function(){var e,t;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,e=this.parentResizeHandler,(t=st.get(e))&&(t.disconnect(),st.delete(e));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach(function(a,s){a.id===C.escapeString(i)&&Apex._chartInstances.splice(s,1)}),new bt(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],s=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],o=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],r=this.w;return r.globals.selection=void 0,e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map(function(n,l){return t.updateHelpers._extendSeries(n,l)})),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),r.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,i,a,s,o)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,i)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=this.w.config.series.slice();return a.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(a,t,i)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var a=i.w.config.series.slice(),s=0;s<a.length;s++)if(e[s]!==null&&e[s]!==void 0)for(var o=0;o<e[s].data.length;o++)a[s].data.push(e[s].data[o]);return i.w.config.series=a,t&&(i.w.globals.initialSeries=C.clone(i.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise(function(i,a){new bt(t.ctx).clear({isUpdating:!0});var s=t.create(t.w.config.series,e);if(!s)return i(t);t.mount(s).then(function(){typeof t.w.config.chart.events.updated=="function"&&t.w.config.chart.events.updated(t,t.w),t.events.fireEvent("updated",[t,t.w]),t.w.globals.isDirty=!0,i(t)}).catch(function(o){a(o)})})}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach(function(i){t.push(i)})),t}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter(function(t){if(t.group)return!0}).map(function(t){return e.w.config.chart.group===t.group?t.chart:e})}},{key:"toggleSeries",value:function(e){return this.series.toggleSeries(e)}},{key:"highlightSeriesOnLegendHover",value:function(e,t){return this.series.toggleSeriesOnHover(e,t)}},{key:"showSeries",value:function(e){this.series.showSeries(e)}},{key:"hideSeries",value:function(e){this.series.hideSeries(e)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addXaxisAnnotationExternal(e,t,a)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addYaxisAnnotationExternal(e,t,a)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addPointAnnotationExternal(e,t,a)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=this;t&&(i=t),i.annotations.removeAnnotation(i,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=new Qe(this.ctx);return t.getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=new Qe(this.ctx);return t.getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new Ie(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=new Ie(this.ctx);return t.exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;typeof e=="function"&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=C.escapeString(e),i=Apex._chartInstances.filter(function(a){return a.id===t})[0];return i&&i.chart}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),t=0;t<e.length;t++)new v(e[t],JSON.parse(e[t].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,t){var i=this.getChartByID(e);if(i){i.w.globals.isExecCalled=!0;var a=null;if(i.publicMethods.indexOf(t)!==-1){for(var s=arguments.length,o=new Array(s>2?s-2:0),r=2;r<s;r++)o[r-2]=arguments[r];a=i[t].apply(i,o)}return a}}},{key:"merge",value:function(e,t){return C.extend(e,t)}}]),v}();_e.exports=Ut}(Ke,Ke.exports)),Ke.exports}(function(_e){_e.exports=function(W){var U={};function D(R){if(U[R])return U[R].exports;var I=U[R]={i:R,l:!1,exports:{}};return W[R].call(I.exports,I,I.exports,D),I.l=!0,I.exports}return D.m=W,D.c=U,D.d=function(R,I,Q){D.o(R,I)||Object.defineProperty(R,I,{enumerable:!0,get:Q})},D.r=function(R){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(R,"__esModule",{value:!0})},D.t=function(R,I){if(I&1&&(R=D(R)),I&8||I&4&&typeof R=="object"&&R&&R.__esModule)return R;var Q=Object.create(null);if(D.r(Q),Object.defineProperty(Q,"default",{enumerable:!0,value:R}),I&2&&typeof R!="string")for(var E in R)D.d(Q,E,(function(ie){return R[ie]}).bind(null,E));return Q},D.n=function(R){var I=R&&R.__esModule?function(){return R.default}:function(){return R};return D.d(I,"a",I),I},D.o=function(R,I){return Object.prototype.hasOwnProperty.call(R,I)},D.p="",D(D.s="fb15")}({8875:function(W,U,D){var R,I,Q;(function(E,ie){I=[],R=ie,Q=typeof R=="function"?R.apply(U,I):R,Q!==void 0&&(W.exports=Q)})(typeof self<"u"?self:this,function(){function E(){var ie=Object.getOwnPropertyDescriptor(document,"currentScript");if(!ie&&"currentScript"in document&&document.currentScript||ie&&ie.get!==E&&document.currentScript)return document.currentScript;try{throw new Error}catch(J){var he=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,Me=/@([^@]*):(\d+):(\d+)\s*$/ig,Te=he.exec(J.stack)||Me.exec(J.stack),ce=Te&&Te[1]||!1,ye=Te&&Te[2]||!1,De=document.location.href.replace(document.location.hash,""),V,Ee,we,C=document.getElementsByTagName("script");ce===De&&(V=document.documentElement.outerHTML,Ee=new RegExp("(?:[^\\n]+?\\n){0,"+(ye-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),we=V.replace(Ee,"$1").trim());for(var K=0;K<C.length;K++)if(C[K].readyState==="interactive"||C[K].src===ce||ce===De&&C[K].innerHTML&&C[K].innerHTML.trim()===we)return C[K];return null}}return E})},"8bbf":function(W,U){W.exports=$t},"95e6":function(W,U){W.exports=ai()},fb15:function(W,U,D){if(D.r(U),typeof window<"u"){var R=window.document.currentScript;{var I=D("8875");R=I(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:I})}var Q=R&&R.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);Q&&(D.p=Q[1])}var E=D("8bbf"),ie=D("95e6"),he=D.n(ie);const Me=["animationEnd","beforeMount","mounted","updated","click","mouseMove","legendClick","markerClick","selection","dataPointSelection","dataPointMouseEnter","dataPointMouseLeave","beforeZoom","beforeResetZoom","zoomed","scrolled","scrolled"];var ce=Object(E.defineComponent)({name:"apexchart",props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0},width:{default:"100%"},height:{default:"auto"}},emits:Me,setup(V,{emit:Ee}){const we=Object(E.ref)(null),C=Object(E.ref)(null),K=O=>O&&typeof O=="object"&&!Array.isArray(O)&&O!=null,J=(O,j)=>{typeof Object.assign!="function"&&function(){Object.assign=function(ee){if(ee==null)throw new TypeError("Cannot convert undefined or null to object");let Xe=Object(ee);for(let Le=1;Le<arguments.length;Le++){let Ie=arguments[Le];if(Ie!=null)for(let Ye in Ie)Ie.hasOwnProperty(Ye)&&(Xe[Ye]=Ie[Ye])}return Xe}}();let Ce=Object.assign({},O);return K(O)&&K(j)&&Object.keys(j).forEach(ee=>{K(j[ee])?ee in O?Ce[ee]=J(O[ee],j[ee]):Object.assign(Ce,{[ee]:j[ee]}):Object.assign(Ce,{[ee]:j[ee]})}),Ce},M=async()=>{await Object(E.nextTick)();const O={chart:{type:V.type||V.options.chart.type||"line",height:V.height,width:V.width,events:{}},series:V.series};Me.forEach(Ce=>{let ee=(...Xe)=>Ee(Ce,...Xe);O.chart.events[Ce]=ee});const j=J(V.options,O);return C.value=new he.a(we.value,j),C.value.render()},Z=()=>(ze(),M()),ze=()=>{C.value.destroy()},Ge=(O,j)=>C.value.updateSeries(O,j),Ve=(O,j,Ce,ee)=>C.value.updateOptions(O,j,Ce,ee),je=O=>C.value.toggleSeries(O),We=O=>{C.value.showSeries(O)},ke=O=>{C.value.hideSeries(O)},N=(O,j)=>C.value.appendSeries(O,j),F=()=>{C.value.resetSeries()},G=(O,j)=>{C.value.toggleDataPointSelection(O,j)},He=O=>C.value.appendData(O),Ae=(O,j)=>C.value.zoomX(O,j),Ue=()=>C.value.dataURI(),ae=(O,j)=>{C.value.addXaxisAnnotation(O,j)},qe=(O,j)=>{C.value.addYaxisAnnotation(O,j)},Fe=(O,j)=>{C.value.addPointAnnotation(O,j)},te=(O,j)=>{C.value.removeAnnotation(O,j)},Ze=()=>{C.value.clearAnnotations()};Object(E.onBeforeMount)(()=>{window.ApexCharts=he.a}),Object(E.onMounted)(()=>{we.value=Object(E.getCurrentInstance)().proxy.$el,M()}),Object(E.onBeforeUnmount)(()=>{C.value&&ze()});const Se=Object(E.toRefs)(V);return Object(E.watch)(Se.options,()=>{!C.value&&V.options?M():C.value.updateOptions(V.options)}),Object(E.watch)(Se.series,()=>{!C.value&&V.series?M():C.value.updateSeries(V.series)},{deep:!0}),Object(E.watch)(Se.type,()=>{Z()}),Object(E.watch)(Se.width,()=>{Z()}),Object(E.watch)(Se.height,()=>{Z()}),{chart:C,init:M,refresh:Z,destroy:ze,updateOptions:Ve,updateSeries:Ge,toggleSeries:je,showSeries:We,hideSeries:ke,resetSeries:F,zoomX:Ae,toggleDataPointSelection:G,appendData:He,appendSeries:N,addXaxisAnnotation:ae,addYaxisAnnotation:qe,addPointAnnotation:Fe,removeAnnotation:te,clearAnnotations:Ze,dataURI:Ue}},render(){return Object(E.h)("div",{class:"vue-apexcharts"})}});const ye=V=>{V.component(ce.name,ce)};ce.install=ye;var De=ce;U.default=De}})})(wt);var si=wt.exports;const ve=Jt(si),ri=X("ul",{class:"flex space-x-2 rtl:space-x-reverse mb-6"},[X("li",null,[X("a",{href:"javascript:;",class:"text-primary hover:underline"},"Dashboard")]),X("li",{class:"before:content-['/'] ltr:before:mr-2 rtl:before:ml-2"},[X("span",null,"Charts")])],-1),oi={class:"grid grid-cols-1 lg:grid-cols-2 gap-6"},ni={class:"panel lg:col-span-2 p-3 flex items-center text-primary overflow-x-auto whitespace-nowrap"},li={class:"ring-2 ring-primary/30 rounded-full bg-primary text-white p-1.5 ltr:mr-3 rtl:ml-3"},hi=X("span",{class:"ltr:mr-3 rtl:ml-3"},"Documentation: ",-1),ci=X("a",{href:"https://www.npmjs.com/package/vue3-apexcharts",target:"_blank",class:"block hover:underline"},"https://www.npmjs.com/package/vue3-apexcharts",-1),di={class:"panel"},gi={class:"flex items-center justify-between mb-5"},ui=X("h5",{class:"font-semibold text-lg dark:text-white-light"},"Simple Line",-1),pi={class:"flex items-center"},fi={class:"mb-5"},xi=X("pre",null,`<!-- simple line -->
- <apexchart height="300" :options="lineChart" :series="lineChartSeries" class="bg-white dark:bg-black rounded-lg overflow-hidden"></apexchart>
- <!-- script -->
- <script lang="ts" setup>
- import { ref, computed } from 'vue';
- import apexchart from 'vue3-apexcharts';
- import { useAppStore } from '@/stores/index';
- const store = useAppStore();
- const lineChart = computed(() => {
- const isDark = store.theme === 'dark' || store.isDarkMode ? true : false;
- const isRtl = store.rtlClass === 'rtl' ? true : false;
- return {
- chart: {
- height: 300,
- type: 'line',
- toolbar: false,
- },
- colors: ['#4361ee'],
- tooltip: {
- marker: false,
- y: {
- formatter(number) {
- return '$' + number;
- },
- },
- theme: isDark ? 'dark' : 'light',
- },
- stroke: {
- width: 2,
- curve: 'smooth',
- },
- xaxis: {
- categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June'],
- axisBorder: {
- color: isDark ? '#191e3a' : '#e0e6ed',
- },
- },
- yaxis: {
- opposite: isRtl ? true : false,
- labels: {
- offsetX: isRtl ? -20 : 0,
- },
- },
- grid: {
- borderColor: isDark ? '#191e3a' : '#e0e6ed',
- },
- };
- });
- const lineChartSeries = ref([
- {
- name: 'Sales',
- data: [45, 55, 75, 25, 45, 110],
- },
- ]);
- <\/script>
- `,-1),mi={class:"panel"},bi={class:"flex items-center justify-between mb-5"},vi=X("h5",{class:"font-semibold text-lg dark:text-white"},"Simple Area",-1),yi={class:"flex items-center"},wi={class:"mb-5"},ki=X("pre",null,`<!-- simple area -->
- <apexchart height="300" :options="areaChart" :series="areaChartSeries" class="bg-white dark:bg-black rounded-lg overflow-hidden"></apexchart>
- <!-- script -->
- <script lang="ts" setup>
- import { ref, computed } from 'vue';
- import apexchart from 'vue3-apexcharts';
- import { useAppStore } from '@/stores/index';
- const store = useAppStore();
- const areaChart = computed(() => {
- const isDark = store.theme === 'dark' || store.isDarkMode ? true : false;
- const isRtl = store.rtlClass === 'rtl' ? true : false;
- return {
- chart: {
- type: 'area',
- height: 300,
- zoom: {
- enabled: false,
- },
- toolbar: {
- show: false,
- },
- },
- colors: ['#805dca'],
- dataLabels: {
- enabled: false,
- },
- stroke: {
- width: 2,
- curve: 'smooth',
- },
- xaxis: {
- axisBorder: {
- color: isDark ? '#191e3a' : '#e0e6ed',
- },
- },
- yaxis: {
- opposite: isRtl ? true : false,
- labels: {
- offsetX: isRtl ? -40 : 0,
- },
- },
- labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
- legend: {
- horizontalAlign: 'left',
- },
- grid: {
- borderColor: isDark ? '#191e3a' : '#e0e6ed',
- },
- tooltip: {
- theme: isDark ? 'dark' : 'light',
- },
- };
- });
- const areaChartSeries = ref([
- {
- name: 'Income',
- data: [16800, 16800, 15500, 17800, 15500, 17000, 19000, 16000, 15000, 17000, 14000, 17000],
- },
- ]);
- <\/script>
- `,-1),Ai={class:"panel"},Si={class:"flex items-center justify-between mb-5"},Ci=X("h5",{class:"font-semibold text-lg dark:text-white"},"Simple Column",-1),Li={class:"flex items-center"},Pi={class:"mb-5"},Mi=X("pre",null,`<!-- simple column -->
- <apexchart height="300" :options="columnChart" :series="columnChartSeries" class="bg-white dark:bg-black rounded-lg overflow-hidden"></apexchart>
- <!-- script -->
- <script lang="ts" setup>
- import { ref, computed } from 'vue';
- import apexchart from 'vue3-apexcharts';
- import { useAppStore } from '@/stores/index';
- const store = useAppStore();
- const columnChart = computed(() => {
- const isDark = store.theme === 'dark' || store.isDarkMode ? true : false;
- const isRtl = store.rtlClass === 'rtl' ? true : false;
- return {
- chart: {
- height: 300,
- type: 'bar',
- zoom: {
- enabled: false,
- },
- toolbar: {
- show: false,
- },
- },
- colors: ['#805dca', '#e7515a'],
- dataLabels: {
- enabled: false,
- },
- stroke: {
- show: true,
- width: 2,
- colors: ['transparent'],
- },
- plotOptions: {
- bar: {
- horizontal: false,
- columnWidth: '55%',
- endingShape: 'rounded',
- },
- },
- grid: {
- borderColor: isDark ? '#191e3a' : '#e0e6ed',
- },
- xaxis: {
- categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct'],
- axisBorder: {
- color: isDark ? '#191e3a' : '#e0e6ed',
- },
- },
- yaxis: {
- opposite: isRtl ? true : false,
- labels: {
- offsetX: isRtl ? -10 : 0,
- },
- },
- tooltip: {
- theme: isDark ? 'dark' : 'light',
- y: {
- formatter: function (val) {
- return val;
- },
- },
- },
- };
- });
- const columnChartSeries = ref([
- {
- name: 'Net Profit',
- data: [44, 55, 57, 56, 61, 58, 63, 60, 66],
- },
- {
- name: 'Revenue',
- data: [76, 85, 101, 98, 87, 105, 91, 114, 94],
- },
- ]);
- <\/script>
- `,-1),Ti={class:"panel"},zi={class:"flex items-center justify-between mb-5"},Ii=X("h5",{class:"font-semibold text-lg dark:text-white"},"Simple Column Stacked",-1),Ei={class:"flex items-center"},Xi={class:"mb-5"},Yi=X("pre",null,`<!-- simple column stacked -->
- <apexchart height="300" :options="simpleColumnStacked" :series="simpleColumnStackedSeries" class="bg-white dark:bg-black rounded-lg overflow-hidden"></apexchart>
- <!-- script -->
- <script lang="ts" setup>
- import { ref, computed } from 'vue';
- import apexchart from 'vue3-apexcharts';
- import { useAppStore } from '@/stores/index';
- const store = useAppStore();
- const simpleColumnStacked = computed(() => {
- const isDark = store.theme === 'dark' || store.isDarkMode ? true : false;
- const isRtl = store.rtlClass === 'rtl' ? true : false;
- return {
- chart: {
- height: 300,
- type: 'bar',
- stacked: true,
- zoom: {
- enabled: false,
- },
- toolbar: {
- show: false,
- },
- },
- colors: ['#2196f3', '#3b3f5c'],
- responsive: [
- {
- breakpoint: 480,
- options: {
- legend: {
- position: 'bottom',
- offsetX: -10,
- offsetY: 5,
- },
- },
- },
- ],
- plotOptions: {
- bar: {
- horizontal: false,
- },
- },
- xaxis: {
- type: 'datetime',
- categories: ['01/01/2011 GMT', '01/02/2011 GMT', '01/03/2011 GMT', '01/04/2011 GMT', '01/05/2011 GMT', '01/06/2011 GMT'],
- axisBorder: {
- color: isDark ? '#191e3a' : '#e0e6ed',
- },
- },
- yaxis: {
- opposite: isRtl ? true : false,
- labels: {
- offsetX: isRtl ? -20 : 0,
- },
- },
- grid: {
- borderColor: isDark ? '#191e3a' : '#e0e6ed',
- },
- legend: {
- position: 'right',
- offsetY: 40,
- },
- tooltip: {
- theme: isDark ? 'dark' : 'light',
- },
- fill: {
- opacity: 0.8,
- },
- };
- });
- const simpleColumnStackedSeries = ref([
- {
- name: 'PRODUCT A',
- data: [44, 55, 41, 67, 22, 43],
- },
- {
- name: 'PRODUCT B',
- data: [13, 23, 20, 8, 13, 27],
- },
- ]);
- <\/script>
- `,-1),Di={class:"panel"},Fi={class:"flex items-center justify-between mb-5"},Ri=X("h5",{class:"font-semibold text-lg dark:text-white"},"Simple Bar",-1),Hi={class:"flex items-center"},Oi={class:"mb-5"},Ni=X("pre",null,`<!-- simple bar -->
- <apexchart height="300" :options="barChart" :series="barChartSeries" class="bg-white dark:bg-black rounded-lg overflow-hidden"></apexchart>
- <!-- script -->
- <script lang="ts" setup>
- import { ref, computed } from 'vue';
- import apexchart from 'vue3-apexcharts';
- import { useAppStore } from '@/stores/index';
- const store = useAppStore();
- const barChart = computed(() => {
- const isDark = store.theme === 'dark' || store.isDarkMode ? true : false;
- const isRtl = store.rtlClass === 'rtl' ? true : false;
- return {
- chart: {
- height: 300,
- type: 'bar',
- zoom: {
- enabled: false,
- },
- toolbar: {
- show: false,
- },
- },
- dataLabels: {
- enabled: false,
- },
- stroke: {
- show: true,
- width: 1,
- },
- colors: ['#4361ee'],
- xaxis: {
- categories: ['Sun', 'Mon', 'Tue', 'Wed', 'Thur', 'Fri', 'Sat'],
- axisBorder: {
- color: isDark ? '#191e3a' : '#e0e6ed',
- },
- },
- yaxis: {
- opposite: isRtl ? true : false,
- reversed: isRtl ? true : false,
- },
- grid: {
- borderColor: isDark ? '#191e3a' : '#e0e6ed',
- },
- plotOptions: {
- bar: {
- horizontal: true,
- },
- },
- fill: {
- opacity: 0.8,
- },
- };
- });
- const barChartSeries = ref([
- {
- name: 'Sales',
- data: [44, 55, 41, 67, 22, 43, 21, 70],
- },
- ]);
- <\/script>
- `,-1),Wi={class:"panel"},Bi={class:"flex items-center justify-between mb-5"},_i=X("h5",{class:"font-semibold text-lg dark:text-white"},"Mixed",-1),Gi={class:"flex items-center"},Vi={class:"mb-5"},ji=X("pre",null,`<!-- mixed -->
- <apexchart height="300" :options="mixedChart" :series="mixedChartSeries" class="bg-white dark:bg-black rounded-lg overflow-hidden"></apexchart>
- <!-- script -->
- <script lang="ts" setup>
- import { ref, computed } from 'vue';
- import apexchart from 'vue3-apexcharts';
- import { useAppStore } from '@/stores/index';
- const store = useAppStore();
- const mixedChart = computed(() => {
- const isDark = store.theme === 'dark' || store.isDarkMode ? true : false;
- const isRtl = store.rtlClass === 'rtl' ? true : false;
- return {
- chart: {
- height: 300,
- // stacked: false,
- zoom: {
- enabled: false,
- },
- toolbar: {
- show: false,
- },
- },
- colors: ['#2196f3', '#00ab55', '#4361ee'],
- stroke: {
- width: [0, 2, 2],
- curve: 'smooth',
- },
- plotOptions: {
- bar: {
- columnWidth: '50%',
- },
- },
- fill: {
- opacity: [1, 0.25, 1],
- },
- labels: ['01/01/2022', '02/01/2022', '03/01/2022', '04/01/2022', '05/01/2022', '06/01/2022', '07/01/2022', '08/01/2022', '09/01/2022', '10/01/2022', '11/01/2022'],
- markers: {
- size: 0,
- },
- xaxis: {
- type: 'datetime',
- axisBorder: {
- color: isDark ? '#191e3a' : '#e0e6ed',
- },
- },
- yaxis: {
- title: {
- text: 'Points',
- },
- min: 0,
- opposite: isRtl ? true : false,
- labels: {
- offsetX: isRtl ? -10 : 0,
- },
- },
- grid: {
- borderColor: isDark ? '#191e3a' : '#e0e6ed',
- },
- tooltip: {
- shared: true,
- intersect: false,
- theme: isDark ? 'dark' : 'light',
- y: {
- formatter: (y) => {
- if (typeof y !== 'undefined') {
- return y.toFixed(0) + ' points';
- }
- return y;
- },
- },
- },
- legend: {
- itemMargin: {
- horizontal: 4,
- vertical: 8,
- },
- },
- };
- });
- const mixedChartSeries = ref([
- {
- name: 'TEAM A',
- type: 'column',
- data: [23, 11, 22, 27, 13, 22, 37, 21, 44, 22, 30],
- },
- {
- name: 'TEAM B',
- type: 'area',
- data: [44, 55, 41, 67, 22, 43, 21, 41, 56, 27, 43],
- },
- {
- name: 'TEAM C',
- type: 'line',
- data: [30, 25, 36, 30, 45, 35, 64, 52, 59, 36, 39],
- },
- ]);
- <\/script>
- `,-1),Ui={class:"panel"},qi={class:"flex items-center justify-between mb-5"},Zi=X("h5",{class:"font-semibold text-lg dark:text-white"},"Basic Radar",-1),$i={class:"flex items-center"},Ji={class:"mb-5"},Ki=X("pre",null,`<!-- basic radar -->
- <apexchart height="300" :options="radarChart" :series="radarChartSeries" class="bg-white dark:bg-black rounded-lg overflow-hidden"></apexchart>
- <!-- script -->
- <script lang="ts" setup>
- import { ref, computed } from 'vue';
- import apexchart from 'vue3-apexcharts';
- import { useAppStore } from '@/stores/index';
- const store = useAppStore();
- const radarChart = computed(() => {
- const isDark = store.theme === 'dark' || store.isDarkMode ? true : false;
- return {
- chart: {
- height: 300,
- type: 'radar',
- zoom: {
- enabled: false,
- },
- toolbar: {
- show: false,
- },
- },
- colors: ['#4361ee'],
- xaxis: {
- categories: ['January', 'February', 'March', 'April', 'May', 'June'],
- },
- plotOptions: {
- radar: {
- polygons: {
- strokeColors: isDark ? '#191e3a' : '#e0e6ed',
- connectorColors: isDark ? '#191e3a' : '#e0e6ed',
- },
- },
- },
- tooltip: {
- theme: isDark ? 'dark' : 'light',
- },
- };
- });
- const radarChartSeries = ref([
- {
- name: 'Series 1',
- data: [80, 50, 30, 40, 100, 20],
- },
- ]);
- <\/script>
- `,-1),Qi={class:"panel"},ea={class:"flex items-center justify-between mb-5"},ta=X("h5",{class:"font-semibold text-lg dark:text-white"},"Basic Pie",-1),ia={class:"flex items-center"},aa={class:"mb-5"},sa=X("pre",null,`<!-- basic pie -->
- <apexchart height="300" :options="pieChart" :series="pieChartSeries" class="bg-white dark:bg-black rounded-lg overflow-hidden"></apexchart>
- <!-- script -->
- <script lang="ts" setup>
- import { ref, computed } from 'vue';
- import apexchart from 'vue3-apexcharts';
- import { useAppStore } from '@/stores/index';
- const store = useAppStore();
- const pieChart = computed(() => {
- return {
- chart: {
- height: 300,
- type: 'pie',
- zoom: {
- enabled: false,
- },
- toolbar: {
- show: false,
- },
- },
- labels: ['Team A', 'Team B', 'Team C', 'Team D', 'Team E'],
- colors: ['#4361ee', '#805dca', '#00ab55', '#e7515a', '#e2a03f'],
- responsive: [
- {
- breakpoint: 480,
- options: {
- chart: {
- width: 200,
- },
- },
- },
- ],
- stroke: {
- show: false,
- },
- legend: {
- position: 'bottom',
- },
- };
- });
- const pieChartSeries = ref([44, 55, 13, 43, 22]);
- <\/script>
- `,-1),ra={class:"panel"},oa={class:"flex items-center justify-between mb-5"},na=X("h5",{class:"font-semibold text-lg dark:text-white"},"Basic Donut",-1),la={class:"flex items-center"},ha={class:"mb-5"},ca=X("pre",null,`<!-- basic donut -->
- <apexchart height="300" :options="donutChart" :series="donutChartSeries" class="bg-white dark:bg-black rounded-lg overflow-hidden"></apexchart>
- <!-- script -->
- <script lang="ts" setup>
- import { ref, computed } from 'vue';
- import apexchart from 'vue3-apexcharts';
- import { useAppStore } from '@/stores/index';
- const store = useAppStore();
- const donutChart = computed(() => {
- return {
- chart: {
- height: 300,
- type: 'donut',
- zoom: {
- enabled: false,
- },
- toolbar: {
- show: false,
- },
- },
- stroke: {
- show: false,
- },
- labels: ['Team A', 'Team B', 'Team C'],
- colors: ['#4361ee', '#805dca', '#e2a03f'],
- responsive: [
- {
- breakpoint: 480,
- options: {
- chart: {
- width: 200,
- },
- },
- },
- ],
- legend: {
- position: 'bottom',
- },
- };
- });
- const donutChartSeries = ref([44, 55, 13]);
- <\/script>
- `,-1),da={class:"panel"},ga={class:"flex items-center justify-between mb-5"},ua=X("h5",{class:"font-semibold text-lg dark:text-white"},"Basic Polar Area",-1),pa={class:"flex items-center"},fa={class:"mb-5"},xa=X("pre",null,`<!-- basic polar area -->
- <apexchart height="300" :options="polarAreaChart" :series="polarAreaChartSeries" class="bg-white dark:bg-black rounded-lg overflow-hidden"></apexchart>
- <!-- script -->
- <script lang="ts" setup>
- import { ref, computed } from 'vue';
- import apexchart from 'vue3-apexcharts';
- import { useAppStore } from '@/stores/index';
- const store = useAppStore();
- const polarAreaChart = computed(() => {
- const isDark = store.theme === 'dark' || store.isDarkMode ? true : false;
- return {
- chart: {
- height: 300,
- type: 'polarArea',
- zoom: {
- enabled: false,
- },
- toolbar: {
- show: false,
- },
- },
- colors: ['#4361ee', '#805dca', '#00ab55', '#e7515a', '#e2a03f', '#2196f3', '#3b3f5c'],
- stroke: {
- show: false,
- },
- responsive: [
- {
- breakpoint: 480,
- options: {
- chart: {
- width: 200,
- },
- },
- },
- ],
- plotOptions: {
- polarArea: {
- rings: {
- strokeColor: isDark ? '#191e3a' : '#e0e6ed',
- },
- spokes: {
- connectorColors: isDark ? '#191e3a' : '#e0e6ed',
- },
- },
- },
- legend: {
- position: 'bottom',
- },
- fill: {
- opacity: 0.85,
- },
- };
- });
- const polarAreaChartSeries = ref([14, 23, 21, 17, 15, 10, 12, 17, 21]);
- <\/script>
- `,-1),ma={class:"panel"},ba={class:"flex items-center justify-between mb-5"},va=X("h5",{class:"font-semibold text-lg dark:text-white"},"Radial Bar",-1),ya={class:"flex items-center"},wa={class:"mb-5"},ka=X("pre",null,`<!-- radial bar -->
- <apexchart height="300" :options="radialBarChart" :series="radialBarChartSeries" class="bg-white dark:bg-black rounded-lg overflow-hidden"></apexchart>
- <!-- script -->
- <script lang="ts" setup>
- import { ref, computed } from 'vue';
- import apexchart from 'vue3-apexcharts';
- import { useAppStore } from '@/stores/index';
- const store = useAppStore();
- const radialBarChart = computed(() => {
- const isDark = store.theme === 'dark' || store.isDarkMode ? true : false;
- return {
- chart: {
- height: 300,
- type: 'radialBar',
- zoom: {
- enabled: false,
- },
- toolbar: {
- show: false,
- },
- },
- colors: ['#4361ee', '#805dca', '#e2a03f'],
- grid: {
- borderColor: isDark ? '#191e3a' : '#e0e6ed',
- },
- plotOptions: {
- radialBar: {
- dataLabels: {
- name: {
- fontSize: '22px',
- },
- value: {
- fontSize: '16px',
- },
- total: {
- show: true,
- label: 'Total',
- formatter: function (w) {
- // By default this function returns the average of all series. The below is just an example to show the use of custom formatter function
- return 249;
- },
- },
- },
- },
- },
- labels: ['Apples', 'Oranges', 'Bananas'],
- fill: {
- opacity: 0.85,
- },
- };
- });
- const radialBarChartSeries = ref([44, 55, 41]);
- <\/script>
- `,-1),Aa={class:"panel"},Sa={class:"flex items-center justify-between mb-5"},Ca=X("h5",{class:"font-semibold text-lg dark:text-white"},"Bubble Chart",-1),La={class:"flex items-center"},Pa={class:"mb-5"},Ma=X("pre",null,`<!-- bubble chart -->
- <apexchart height="300" :options="bubbleChart" :series="bubbleChartSeries" class="bg-white dark:bg-black rounded-lg overflow-hidden"></apexchart>
- <!-- script -->
- <script lang="ts" setup>
- import { ref, computed } from 'vue';
- import apexchart from 'vue3-apexcharts';
- import { useAppStore } from '@/stores/index';
- const store = useAppStore();
- const generateData = (baseval, count, yrange) => {
- var i = 0;
- var series: any = [];
- while (i < count) {
- var x = Math.floor(Math.random() * (750 - 1 + 1)) + 1;
- var y = Math.floor(Math.random() * (yrange.max - yrange.min + 1)) + yrange.min;
- var z = Math.floor(Math.random() * (75 - 15 + 1)) + 15;
- series.push([x, y, z]);
- baseval += 86400000;
- i++;
- }
- return series;
- };
- const bubbleChart = computed(() => {
- const isDark = store.theme === 'dark' || store.isDarkMode ? true : false;
- const isRtl = store.rtlClass === 'rtl' ? true : false;
- return {
- chart: {
- height: 300,
- type: 'bubble',
- zoom: {
- enabled: false,
- },
- toolbar: {
- show: false,
- },
- },
- colors: ['#4361ee', '#00ab55'],
- dataLabels: {
- enabled: false,
- },
- xaxis: {
- tickAmount: 12,
- type: 'category',
- axisBorder: {
- color: isDark ? '#191e3a' : '#e0e6ed',
- },
- },
- yaxis: {
- max: 70,
- opposite: isRtl ? true : false,
- labels: {
- offsetX: isRtl ? -10 : 0,
- },
- },
- grid: {
- borderColor: isDark ? '#191e3a' : '#e0e6ed',
- },
- tooltip: {
- theme: isDark ? 'dark' : 'light',
- },
- stroke: {
- colors: isDark ? ['#191e3a'] : ['#e0e6ed'],
- },
- fill: {
- opacity: 0.85,
- },
- };
- });
- const bubbleChartSeries = ref([
- {
- name: 'Bubble1',
- data: generateData(new Date('11 Feb 2017 GMT').getTime(), 20, {
- min: 10,
- max: 60,
- }),
- },
- {
- name: 'Bubble2',
- data: generateData(new Date('11 Feb 2017 GMT').getTime(), 20, {
- min: 10,
- max: 60,
- }),
- },
- ]);
- <\/script>
- `,-1),Ea=Kt({__name:"charts",setup(_e){Qt({title:"Charts"});const W=ei(),{codeArr:U,toggleCode:D}=Zt(),R=(N,F,G)=>{for(var He=0,Ae=[];He<F;){var Ue=Math.floor(Math.random()*750)+1,ae=Math.floor(Math.random()*(G.max-G.min+1))+G.min,qe=Math.floor(Math.random()*61)+15;Ae.push([Ue,ae,qe]),He++}return Ae},I=ue(()=>{const N=!!(W.theme==="dark"||W.isDarkMode),F=W.rtlClass==="rtl";return{chart:{height:300,type:"line",toolbar:!1},colors:["#4361ee"],tooltip:{marker:!1,y:{formatter(G){return"$"+G}},theme:N?"dark":"light"},stroke:{width:2,curve:"smooth"},xaxis:{categories:["Jan","Feb","Mar","Apr","May","June"],axisBorder:{color:N?"#191e3a":"#e0e6ed"}},yaxis:{opposite:!!F,labels:{offsetX:F?-20:0}},grid:{borderColor:N?"#191e3a":"#e0e6ed"}}}),Q=pe([{name:"Sales",data:[45,55,75,25,45,110]}]),E=ue(()=>{const N=!!(W.theme==="dark"||W.isDarkMode),F=W.rtlClass==="rtl";return{chart:{type:"area",height:300,zoom:{enabled:!1},toolbar:{show:!1}},colors:["#805dca"],dataLabels:{enabled:!1},stroke:{width:2,curve:"smooth"},xaxis:{axisBorder:{color:N?"#191e3a":"#e0e6ed"}},yaxis:{opposite:!!F,labels:{offsetX:F?-40:0}},labels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],legend:{horizontalAlign:"left"},grid:{borderColor:N?"#191e3a":"#e0e6ed"},tooltip:{theme:N?"dark":"light"}}}),ie=pe([{name:"Income",data:[16800,16800,15500,17800,15500,17e3,19e3,16e3,15e3,17e3,14e3,17e3]}]),he=ue(()=>{const N=!!(W.theme==="dark"||W.isDarkMode),F=W.rtlClass==="rtl";return{chart:{height:300,type:"bar",zoom:{enabled:!1},toolbar:{show:!1}},colors:["#805dca","#e7515a"],dataLabels:{enabled:!1},stroke:{show:!0,width:2,colors:["transparent"]},plotOptions:{bar:{horizontal:!1,columnWidth:"55%",endingShape:"rounded"}},grid:{borderColor:N?"#191e3a":"#e0e6ed"},xaxis:{categories:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"],axisBorder:{color:N?"#191e3a":"#e0e6ed"}},yaxis:{opposite:!!F,labels:{offsetX:F?-10:0}},tooltip:{theme:N?"dark":"light",y:{formatter:function(G){return G}}}}}),Me=pe([{name:"Net Profit",data:[44,55,57,56,61,58,63,60,66]},{name:"Revenue",data:[76,85,101,98,87,105,91,114,94]}]),Te=ue(()=>{const N=!!(W.theme==="dark"||W.isDarkMode),F=W.rtlClass==="rtl";return{chart:{height:300,type:"bar",stacked:!0,zoom:{enabled:!1},toolbar:{show:!1}},colors:["#2196f3","#3b3f5c"],responsive:[{breakpoint:480,options:{legend:{position:"bottom",offsetX:-10,offsetY:5}}}],plotOptions:{bar:{horizontal:!1}},xaxis:{type:"datetime",categories:["01/01/2011 GMT","01/02/2011 GMT","01/03/2011 GMT","01/04/2011 GMT","01/05/2011 GMT","01/06/2011 GMT"],axisBorder:{color:N?"#191e3a":"#e0e6ed"}},yaxis:{opposite:!!F,labels:{offsetX:F?-20:0}},grid:{borderColor:N?"#191e3a":"#e0e6ed"},legend:{position:"right",offsetY:40},tooltip:{theme:N?"dark":"light"},fill:{opacity:.8}}}),ce=pe([{name:"PRODUCT A",data:[44,55,41,67,22,43]},{name:"PRODUCT B",data:[13,23,20,8,13,27]}]),ye=ue(()=>{const N=!!(W.theme==="dark"||W.isDarkMode),F=W.rtlClass==="rtl";return{chart:{height:300,type:"bar",zoom:{enabled:!1},toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{show:!0,width:1},colors:["#4361ee"],xaxis:{categories:["Sun","Mon","Tue","Wed","Thur","Fri","Sat"],axisBorder:{color:N?"#191e3a":"#e0e6ed"}},yaxis:{opposite:!!F,reversed:!!F},grid:{borderColor:N?"#191e3a":"#e0e6ed"},plotOptions:{bar:{horizontal:!0}},fill:{opacity:.8}}}),De=pe([{name:"Sales",data:[44,55,41,67,22,43,21,70]}]),V=ue(()=>{const N=!!(W.theme==="dark"||W.isDarkMode),F=W.rtlClass==="rtl";return{chart:{height:300,zoom:{enabled:!1},toolbar:{show:!1}},colors:["#2196f3","#00ab55","#4361ee"],stroke:{width:[0,2,2],curve:"smooth"},plotOptions:{bar:{columnWidth:"50%"}},fill:{opacity:[1,.25,1]},labels:["01/01/2022","02/01/2022","03/01/2022","04/01/2022","05/01/2022","06/01/2022","07/01/2022","08/01/2022","09/01/2022","10/01/2022","11/01/2022"],markers:{size:0},xaxis:{type:"datetime",axisBorder:{color:N?"#191e3a":"#e0e6ed"}},yaxis:{title:{text:"Points"},min:0,opposite:!!F,labels:{offsetX:F?-10:0}},grid:{borderColor:N?"#191e3a":"#e0e6ed"},tooltip:{shared:!0,intersect:!1,theme:N?"dark":"light",y:{formatter:G=>typeof G<"u"?G.toFixed(0)+" points":G}},legend:{itemMargin:{horizontal:4,vertical:8}}}}),Ee=pe([{name:"TEAM A",type:"column",data:[23,11,22,27,13,22,37,21,44,22,30]},{name:"TEAM B",type:"area",data:[44,55,41,67,22,43,21,41,56,27,43]},{name:"TEAM C",type:"line",data:[30,25,36,30,45,35,64,52,59,36,39]}]),we=ue(()=>{const N=!!(W.theme==="dark"||W.isDarkMode);return{chart:{height:300,type:"radar",zoom:{enabled:!1},toolbar:{show:!1}},colors:["#4361ee"],xaxis:{categories:["January","February","March","April","May","June"]},plotOptions:{radar:{polygons:{strokeColors:N?"#191e3a":"#e0e6ed",connectorColors:N?"#191e3a":"#e0e6ed"}}},tooltip:{theme:N?"dark":"light"}}}),C=pe([{name:"Series 1",data:[80,50,30,40,100,20]}]),K=ue(()=>({chart:{height:300,type:"pie",zoom:{enabled:!1},toolbar:{show:!1}},labels:["Team A","Team B","Team C","Team D","Team E"],colors:["#4361ee","#805dca","#00ab55","#e7515a","#e2a03f"],responsive:[{breakpoint:480,options:{chart:{width:200}}}],stroke:{show:!1},legend:{position:"bottom"}})),J=pe([44,55,13,43,22]),M=ue(()=>({chart:{height:300,type:"donut",zoom:{enabled:!1},toolbar:{show:!1}},stroke:{show:!1},labels:["Team A","Team B","Team C"],colors:["#4361ee","#805dca","#e2a03f"],responsive:[{breakpoint:480,options:{chart:{width:200}}}],legend:{position:"bottom"}})),Z=pe([44,55,13]),ze=ue(()=>{const N=!!(W.theme==="dark"||W.isDarkMode);return{chart:{height:300,type:"polarArea",zoom:{enabled:!1},toolbar:{show:!1}},colors:["#4361ee","#805dca","#00ab55","#e7515a","#e2a03f","#2196f3","#3b3f5c"],stroke:{show:!1},responsive:[{breakpoint:480,options:{chart:{width:200}}}],plotOptions:{polarArea:{rings:{strokeColor:N?"#191e3a":"#e0e6ed"},spokes:{connectorColors:N?"#191e3a":"#e0e6ed"}}},legend:{position:"bottom"},fill:{opacity:.85}}}),Ge=pe([14,23,21,17,15,10,12,17,21]),Ve=ue(()=>{const N=!!(W.theme==="dark"||W.isDarkMode);return{chart:{height:300,type:"radialBar",zoom:{enabled:!1},toolbar:{show:!1}},colors:["#4361ee","#805dca","#e2a03f"],grid:{borderColor:N?"#191e3a":"#e0e6ed"},plotOptions:{radialBar:{dataLabels:{name:{fontSize:"22px"},value:{fontSize:"16px"},total:{show:!0,label:"Total",formatter:function(F){return 249}}}}},labels:["Apples","Oranges","Bananas"],fill:{opacity:.85}}}),je=pe([44,55,41]),We=ue(()=>{const N=!!(W.theme==="dark"||W.isDarkMode),F=W.rtlClass==="rtl";return{chart:{height:300,type:"bubble",zoom:{enabled:!1},toolbar:{show:!1}},colors:["#4361ee","#00ab55"],dataLabels:{enabled:!1},xaxis:{tickAmount:12,type:"category",axisBorder:{color:N?"#191e3a":"#e0e6ed"}},yaxis:{max:70,opposite:!!F,labels:{offsetX:F?-10:0}},grid:{borderColor:N?"#191e3a":"#e0e6ed"},tooltip:{theme:N?"dark":"light"},stroke:{colors:N?["#191e3a"]:["#e0e6ed"]},fill:{opacity:.85}}}),ke=pe([{name:"Bubble1",data:R(new Date("11 Feb 2017 GMT").getTime(),20,{min:10,max:60})},{name:"Bubble2",data:R(new Date("11 Feb 2017 GMT").getTime(),20,{min:10,max:60})}]);return(N,F)=>(le(),ti("div",null,[ri,X("div",oi,[X("div",ni,[X("div",li,[$(ii)]),hi,ci]),X("div",di,[X("div",gi,[ui,X("a",{class:"font-semibold hover:text-gray-400 dark:text-gray-400 dark:hover:text-gray-600",href:"javascript:;",onClick:F[0]||(F[0]=G=>B(D)("code1"))},[X("span",pi,[$(ge,{class:"me-2"}),fe(" Code ")])])]),X("div",fi,[$(B(ve),{height:"300",options:I.value,series:Q.value,class:"bg-white dark:bg-black rounded-lg overflow-hidden"},null,8,["options","series"])]),B(U).includes("code1")?(le(),xe(de,{key:0},{default:me(()=>[xi]),_:1})):be("",!0)]),X("div",mi,[X("div",bi,[vi,X("a",{class:"font-semibold hover:text-gray-400 dark:text-gray-400 dark:hover:text-gray-600",href:"javascript:;",onClick:F[1]||(F[1]=G=>B(D)("code2"))},[X("span",yi,[$(ge,{class:"me-2"}),fe(" Code ")])])]),X("div",wi,[$(B(ve),{height:"300",options:E.value,series:ie.value,class:"bg-white dark:bg-black rounded-lg overflow-hidden"},null,8,["options","series"])]),B(U).includes("code2")?(le(),xe(de,{key:0},{default:me(()=>[ki]),_:1})):be("",!0)]),X("div",Ai,[X("div",Si,[Ci,X("a",{class:"font-semibold hover:text-gray-400 dark:text-gray-400 dark:hover:text-gray-600",href:"javascript:;",onClick:F[2]||(F[2]=G=>B(D)("code3"))},[X("span",Li,[$(ge,{class:"me-2"}),fe(" Code ")])])]),X("div",Pi,[$(B(ve),{height:"300",options:he.value,series:Me.value,class:"bg-white dark:bg-black rounded-lg overflow-hidden"},null,8,["options","series"])]),B(U).includes("code3")?(le(),xe(de,{key:0},{default:me(()=>[Mi]),_:1})):be("",!0)]),X("div",Ti,[X("div",zi,[Ii,X("a",{class:"font-semibold hover:text-gray-400 dark:text-gray-400 dark:hover:text-gray-600",href:"javascript:;",onClick:F[3]||(F[3]=G=>B(D)("code4"))},[X("span",Ei,[$(ge,{class:"me-2"}),fe(" Code ")])])]),X("div",Xi,[$(B(ve),{height:"300",options:Te.value,series:ce.value,class:"bg-white dark:bg-black rounded-lg overflow-hidden"},null,8,["options","series"])]),B(U).includes("code4")?(le(),xe(de,{key:0},{default:me(()=>[Yi]),_:1})):be("",!0)]),X("div",Di,[X("div",Fi,[Ri,X("a",{class:"font-semibold hover:text-gray-400 dark:text-gray-400 dark:hover:text-gray-600",href:"javascript:;",onClick:F[4]||(F[4]=G=>B(D)("code5"))},[X("span",Hi,[$(ge,{class:"me-2"}),fe(" Code ")])])]),X("div",Oi,[$(B(ve),{height:"300",options:ye.value,series:De.value,class:"bg-white dark:bg-black rounded-lg overflow-hidden"},null,8,["options","series"])]),B(U).includes("code5")?(le(),xe(de,{key:0},{default:me(()=>[Ni]),_:1})):be("",!0)]),X("div",Wi,[X("div",Bi,[_i,X("a",{class:"font-semibold hover:text-gray-400 dark:text-gray-400 dark:hover:text-gray-600",href:"javascript:;",onClick:F[5]||(F[5]=G=>B(D)("code6"))},[X("span",Gi,[$(ge,{class:"me-2"}),fe(" Code ")])])]),X("div",Vi,[$(B(ve),{height:"300",options:V.value,series:Ee.value,class:"bg-white dark:bg-black rounded-lg overflow-hidden"},null,8,["options","series"])]),B(U).includes("code6")?(le(),xe(de,{key:0},{default:me(()=>[ji]),_:1})):be("",!0)]),X("div",Ui,[X("div",qi,[Zi,X("a",{class:"font-semibold hover:text-gray-400 dark:text-gray-400 dark:hover:text-gray-600",href:"javascript:;",onClick:F[6]||(F[6]=G=>B(D)("code7"))},[X("span",$i,[$(ge,{class:"me-2"}),fe(" Code ")])])]),X("div",Ji,[$(B(ve),{height:"300",options:we.value,series:C.value,class:"bg-white dark:bg-black rounded-lg overflow-hidden"},null,8,["options","series"])]),B(U).includes("code7")?(le(),xe(de,{key:0},{default:me(()=>[Ki]),_:1})):be("",!0)]),X("div",Qi,[X("div",ea,[ta,X("a",{class:"font-semibold hover:text-gray-400 dark:text-gray-400 dark:hover:text-gray-600",href:"javascript:;",onClick:F[7]||(F[7]=G=>B(D)("code8"))},[X("span",ia,[$(ge,{class:"me-2"}),fe(" Code ")])])]),X("div",aa,[$(B(ve),{height:"300",options:K.value,series:J.value,class:"bg-white dark:bg-black rounded-lg overflow-hidden"},null,8,["options","series"])]),B(U).includes("code8")?(le(),xe(de,{key:0},{default:me(()=>[sa]),_:1})):be("",!0)]),X("div",ra,[X("div",oa,[na,X("a",{class:"font-semibold hover:text-gray-400 dark:text-gray-400 dark:hover:text-gray-600",href:"javascript:;",onClick:F[8]||(F[8]=G=>B(D)("code9"))},[X("span",la,[$(ge,{class:"me-2"}),fe(" Code ")])])]),X("div",ha,[$(B(ve),{height:"300",options:M.value,series:Z.value,class:"bg-white dark:bg-black rounded-lg overflow-hidden"},null,8,["options","series"])]),B(U).includes("code9")?(le(),xe(de,{key:0},{default:me(()=>[ca]),_:1})):be("",!0)]),X("div",da,[X("div",ga,[ua,X("a",{class:"font-semibold hover:text-gray-400 dark:text-gray-400 dark:hover:text-gray-600",href:"javascript:;",onClick:F[9]||(F[9]=G=>B(D)("code10"))},[X("span",pa,[$(ge,{class:"me-2"}),fe(" Code ")])])]),X("div",fa,[$(B(ve),{height:"300",options:ze.value,series:Ge.value,class:"bg-white dark:bg-black rounded-lg overflow-hidden"},null,8,["options","series"])]),B(U).includes("code10")?(le(),xe(de,{key:0},{default:me(()=>[xa]),_:1})):be("",!0)]),X("div",ma,[X("div",ba,[va,X("a",{class:"font-semibold hover:text-gray-400 dark:text-gray-400 dark:hover:text-gray-600",href:"javascript:;",onClick:F[10]||(F[10]=G=>B(D)("code11"))},[X("span",ya,[$(ge,{class:"me-2"}),fe(" Code ")])])]),X("div",wa,[$(B(ve),{height:"300",options:Ve.value,series:je.value,class:"bg-white dark:bg-black rounded-lg overflow-hidden"},null,8,["options","series"])]),B(U).includes("code11")?(le(),xe(de,{key:0},{default:me(()=>[ka]),_:1})):be("",!0)]),X("div",Aa,[X("div",Sa,[Ca,X("a",{class:"font-semibold hover:text-gray-400 dark:text-gray-400 dark:hover:text-gray-600",href:"javascript:;",onClick:F[11]||(F[11]=G=>B(D)("code12"))},[X("span",La,[$(ge,{class:"me-2"}),fe(" Code ")])])]),X("div",Pa,[$(B(ve),{height:"300",options:We.value,series:ke.value,class:"bg-white dark:bg-black rounded-lg overflow-hidden"},null,8,["options","series"])]),B(U).includes("code12")?(le(),xe(de,{key:0},{default:me(()=>[Ma]),_:1})):be("",!0)])])]))}});export{Ea as default};
|