lesli_assets 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Rakefile +3 -0
- data/app/assets/config/lesli_assets_manifest.js +9 -0
- data/app/assets/fonts/lesli_assets/Domine/Domine-Variable.ttf +0 -0
- data/app/assets/fonts/lesli_assets/Domine/OFL.txt +97 -0
- data/app/assets/fonts/lesli_assets/MaterialDesign/icons.woff2 +0 -0
- data/app/assets/fonts/lesli_assets/Montserrat/Montserrat-Variable.ttf +0 -0
- data/app/assets/fonts/lesli_assets/OpenSans/OpenSans-Variable.ttf +0 -0
- data/app/assets/fonts/lesli_assets/Remix/remixicon.eot +0 -0
- data/app/assets/fonts/lesli_assets/Remix/remixicon.glyph.json +1 -0
- data/app/assets/fonts/lesli_assets/Remix/remixicon.svg +9196 -0
- data/app/assets/fonts/lesli_assets/Remix/remixicon.symbol.svg +11 -0
- data/app/assets/fonts/lesli_assets/Remix/remixicon.ttf +0 -0
- data/app/assets/fonts/lesli_assets/Remix/remixicon.woff +0 -0
- data/app/assets/fonts/lesli_assets/Remix/remixicon.woff2 +0 -0
- data/app/assets/fonts/lesli_assets/Roboto/LICENSE.txt +202 -0
- data/app/assets/fonts/lesli_assets/Roboto/Roboto-Black.ttf +0 -0
- data/app/assets/fonts/lesli_assets/Roboto/Roboto-BlackItalic.ttf +0 -0
- data/app/assets/fonts/lesli_assets/Roboto/Roboto-Bold.ttf +0 -0
- data/app/assets/fonts/lesli_assets/Roboto/Roboto-BoldItalic.ttf +0 -0
- data/app/assets/fonts/lesli_assets/Roboto/Roboto-Italic.ttf +0 -0
- data/app/assets/fonts/lesli_assets/Roboto/Roboto-Light.ttf +0 -0
- data/app/assets/fonts/lesli_assets/Roboto/Roboto-LightItalic.ttf +0 -0
- data/app/assets/fonts/lesli_assets/Roboto/Roboto-Medium.ttf +0 -0
- data/app/assets/fonts/lesli_assets/Roboto/Roboto-MediumItalic.ttf +0 -0
- data/app/assets/fonts/lesli_assets/Roboto/Roboto-Regular.ttf +0 -0
- data/app/assets/fonts/lesli_assets/Roboto/Roboto-Thin.ttf +0 -0
- data/app/assets/fonts/lesli_assets/Roboto/Roboto-ThinItalic.ttf +0 -0
- data/app/assets/icons/lesli_assets/engine-admin.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-audit.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-babel.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-bell.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-books.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-calendar.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-dashboard.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-dispatcher.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-focus.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-kb.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-leaf.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-lesli.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-letter.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-mailer.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-one.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-papers.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-profile.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-proposal.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-scraper.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-security.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-shared.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-shield.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-storage.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-support.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-talk.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-team.svg +1 -0
- data/app/assets/icons/lesli_assets/engine-time.svg +1 -0
- data/app/assets/icons/lesli_assets/gem-assets.svg +1 -0
- data/app/assets/icons/lesli_assets/gem-css.svg +1 -0
- data/app/assets/icons/lesli_assets/gem-date.svg +1 -0
- data/app/assets/icons/lesli_assets/gem-system.svg +1 -0
- data/app/assets/icons/lesli_assets/gem-view.svg +1 -0
- data/app/assets/icons/lesli_assets/locale-en.svg +1 -0
- data/app/assets/icons/lesli_assets/locale-es.svg +1 -0
- data/app/assets/icons/lesli_assets/locale-fr.svg +1 -0
- data/app/assets/icons/lesli_assets/locale-it.svg +1 -0
- data/app/assets/icons/lesli_assets/locale-pt.svg +1 -0
- data/app/assets/icons/readme.md +15 -0
- data/app/assets/images/assets-logo.svg +1 -0
- data/app/assets/javascripts/lesli_assets/application.js +1111 -0
- data/app/assets/stylesheets/lesli_assets/templates/application.css +28819 -0
- data/app/assets/stylesheets/lesli_assets/templates/public.css +15578 -0
- data/app/assets/stylesheets/lesli_assets/templates/start.css +5634 -0
- data/app/views/lesli_assets/partials/_application-lesli-icons.html.erb +1 -0
- data/lib/lesli_assets/engine.rb +9 -0
- data/lib/lesli_assets/version.rb +4 -0
- data/lib/lesli_assets.rb +6 -0
- data/lib/lesli_assets_alpine/application.js +60 -0
- data/lib/lesli_assets_alpine/debug.js +198 -0
- data/lib/lesli_assets_bulma/fonts/families.scss +47 -0
- data/lib/lesli_assets_bulma/fonts/mdicons.scss +82 -0
- data/lib/lesli_assets_bulma/fonts/remixicons.scss +3083 -0
- data/lib/lesli_assets_bulma/helpers/display.scss +44 -0
- data/lib/lesli_assets_bulma/helpers/tooltip.scss +91 -0
- data/lib/lesli_assets_bulma/layouts/application-app.scss +36 -0
- data/lib/lesli_assets_bulma/layouts/application-component.scss +39 -0
- data/lib/lesli_assets_bulma/layouts/application-container.scss +36 -0
- data/lib/lesli_assets_bulma/layouts/application-engines.scss +108 -0
- data/lib/lesli_assets_bulma/layouts/application-header.scss +94 -0
- data/lib/lesli_assets_bulma/layouts/application-navigation.scss +93 -0
- data/lib/lesli_assets_bulma/layouts/application-notification.scss +24 -0
- data/lib/lesli_assets_bulma/layouts/application-sidebar.scss +93 -0
- data/lib/lesli_assets_bulma/pages/devise-simple.scss +89 -0
- data/lib/lesli_assets_bulma/pages/devise.scss +164 -0
- data/lib/lesli_assets_bulma/pages/invites.scss +81 -0
- data/lib/lesli_assets_bulma/panels/panel-announcements.scss +56 -0
- data/lib/lesli_assets_bulma/panels/panel-notification.scss +67 -0
- data/lib/lesli_assets_bulma/panels/panel-profile.scss +62 -0
- data/lib/lesli_assets_bulma/panels/panel-support-ticket.scss +56 -0
- data/lib/lesli_assets_bulma/panels/panel-tasks.scss +41 -0
- data/lib/lesli_assets_bulma/settings/variables.scss +150 -0
- data/lib/lesli_assets_bulma/shared/workflow-status-progress.scss +135 -0
- data/lib/lesli_assets_bulma/templates/application.scss +88 -0
- data/lib/lesli_assets_bulma/templates/component.scss +39 -0
- data/lib/lesli_assets_bulma/templates/dashboards.scss +51 -0
- data/lib/lesli_assets_bulma/templates/empty.scss +42 -0
- data/lib/lesli_assets_bulma/templates/pdf.scss +45 -0
- data/lib/lesli_assets_bulma/templates/public.scss +53 -0
- data/lib/lesli_assets_bulma/templates/start.scss +53 -0
- data/lib/lesli_assets_tailwind/tailwind.app.css +11 -0
- data/lib/lesli_assets_tailwind/tailwind.config.js +10 -0
- data/lib/lesli_assets_tailwind/tailwind.test.html +19 -0
- data/lib/tasks/lesli_assets_tasks.rake +4 -0
- data/license +674 -0
- data/readme.md +69 -0
- metadata +161 -0
@@ -0,0 +1,1111 @@
|
|
1
|
+
(()=>{var Kl=Object.create;var wr=Object.defineProperty;var Jl=Object.getOwnPropertyDescriptor;var Ql=Object.getOwnPropertyNames;var ec=Object.getPrototypeOf,tc=Object.prototype.hasOwnProperty;var be=(s,e)=>()=>(e||s((e={exports:{}}).exports,e),e.exports);var ic=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Ql(e))!tc.call(s,a)&&a!==t&&wr(s,a,{get:()=>e[a],enumerable:!(i=Jl(e,a))||i.enumerable});return s};var kr=(s,e,t)=>(t=s!=null?Kl(ec(s)):{},ic(e||!s||!s.__esModule?wr(t,"default",{value:s,enumerable:!0}):t,s));var Ar=be((Sa,Ca)=>{(function(s,e){typeof Sa=="object"&&typeof Ca<"u"?Ca.exports=e():typeof define=="function"&&define.amd?define(e):(s=typeof globalThis<"u"?globalThis:s||self).dayjs=e()})(Sa,function(){"use strict";var s=1e3,e=6e4,t=36e5,i="millisecond",a="second",r="minute",n="hour",o="day",l="week",c="month",h="quarter",d="year",u="date",g="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var C=["th","st","nd","rd"],_=L%100;return"["+L+(C[(_-20)%10]||C[_]||C[0])+"]"}},b=function(L,C,_){var I=String(L);return!I||I.length>=C?L:""+Array(C+1-I.length).join(_)+L},m={s:b,z:function(L){var C=-L.utcOffset(),_=Math.abs(C),I=Math.floor(_/60),E=_%60;return(C<=0?"+":"-")+b(I,2,"0")+":"+b(E,2,"0")},m:function L(C,_){if(C.date()<_.date())return-L(_,C);var I=12*(_.year()-C.year())+(_.month()-C.month()),E=C.clone().add(I,c),z=_-E<0,R=C.clone().add(I+(z?-1:1),c);return+(-(I+(_-E)/(z?E-R:R-E))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:c,y:d,w:l,d:o,D:u,h:n,m:r,s:a,ms:i,Q:h}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},v="en",A={};A[v]=x;var y="$isDayjsObject",S=function(L){return L instanceof O||!(!L||!L[y])},w=function L(C,_,I){var E;if(!C)return v;if(typeof C=="string"){var z=C.toLowerCase();A[z]&&(E=z),_&&(A[z]=_,E=z);var R=C.split("-");if(!E&&R.length>1)return L(R[0])}else{var X=C.name;A[X]=C,E=X}return!I&&E&&(v=E),E||!I&&v},k=function(L,C){if(S(L))return L.clone();var _=typeof C=="object"?C:{};return _.date=L,_.args=arguments,new O(_)},M=m;M.l=w,M.i=S,M.w=function(L,C){return k(L,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var O=function(){function L(_){this.$L=w(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[y]=!0}var C=L.prototype;return C.parse=function(_){this.$d=function(I){var E=I.date,z=I.utc;if(E===null)return new Date(NaN);if(M.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var R=E.match(p);if(R){var X=R[2]-1||0,D=(R[7]||"0").substring(0,3);return z?new Date(Date.UTC(R[1],X,R[3]||1,R[4]||0,R[5]||0,R[6]||0,D)):new Date(R[1],X,R[3]||1,R[4]||0,R[5]||0,R[6]||0,D)}}return new Date(E)}(_),this.init()},C.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},C.$utils=function(){return M},C.isValid=function(){return this.$d.toString()!==g},C.isSame=function(_,I){var E=k(_);return this.startOf(I)<=E&&E<=this.endOf(I)},C.isAfter=function(_,I){return k(_)<this.startOf(I)},C.isBefore=function(_,I){return this.endOf(I)<k(_)},C.$g=function(_,I,E){return M.u(_)?this[I]:this.set(E,_)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(_,I){var E=this,z=!!M.u(I)||I,R=M.p(_),X=function(V,$){var ee=M.w(E.$u?Date.UTC(E.$y,$,V):new Date(E.$y,$,V),E);return z?ee:ee.endOf(o)},D=function(V,$){return M.w(E.toDate()[V].apply(E.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice($)),E)},Y=this.$W,G=this.$M,K=this.$D,q="set"+(this.$u?"UTC":"");switch(R){case d:return z?X(1,0):X(31,11);case c:return z?X(1,G):X(0,G+1);case l:var ie=this.$locale().weekStart||0,Z=(Y<ie?Y+7:Y)-ie;return X(z?K-Z:K+(6-Z),G);case o:case u:return D(q+"Hours",0);case n:return D(q+"Minutes",1);case r:return D(q+"Seconds",2);case a:return D(q+"Milliseconds",3);default:return this.clone()}},C.endOf=function(_){return this.startOf(_,!1)},C.$set=function(_,I){var E,z=M.p(_),R="set"+(this.$u?"UTC":""),X=(E={},E[o]=R+"Date",E[u]=R+"Date",E[c]=R+"Month",E[d]=R+"FullYear",E[n]=R+"Hours",E[r]=R+"Minutes",E[a]=R+"Seconds",E[i]=R+"Milliseconds",E)[z],D=z===o?this.$D+(I-this.$W):I;if(z===c||z===d){var Y=this.clone().set(u,1);Y.$d[X](D),Y.init(),this.$d=Y.set(u,Math.min(this.$D,Y.daysInMonth())).$d}else X&&this.$d[X](D);return this.init(),this},C.set=function(_,I){return this.clone().$set(_,I)},C.get=function(_){return this[M.p(_)]()},C.add=function(_,I){var E,z=this;_=Number(_);var R=M.p(I),X=function(G){var K=k(z);return M.w(K.date(K.date()+Math.round(G*_)),z)};if(R===c)return this.set(c,this.$M+_);if(R===d)return this.set(d,this.$y+_);if(R===o)return X(1);if(R===l)return X(7);var D=(E={},E[r]=e,E[n]=t,E[a]=s,E)[R]||1,Y=this.$d.getTime()+_*D;return M.w(Y,this)},C.subtract=function(_,I){return this.add(-1*_,I)},C.format=function(_){var I=this,E=this.$locale();if(!this.isValid())return E.invalidDate||g;var z=_||"YYYY-MM-DDTHH:mm:ssZ",R=M.z(this),X=this.$H,D=this.$m,Y=this.$M,G=E.weekdays,K=E.months,q=E.meridiem,ie=function($,ee,re,fe){return $&&($[ee]||$(I,z))||re[ee].slice(0,fe)},Z=function($){return M.s(X%12||12,$,"0")},V=q||function($,ee,re){var fe=$<12?"AM":"PM";return re?fe.toLowerCase():fe};return z.replace(f,function($,ee){return ee||function(re){switch(re){case"YY":return String(I.$y).slice(-2);case"YYYY":return M.s(I.$y,4,"0");case"M":return Y+1;case"MM":return M.s(Y+1,2,"0");case"MMM":return ie(E.monthsShort,Y,K,3);case"MMMM":return ie(K,Y);case"D":return I.$D;case"DD":return M.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return ie(E.weekdaysMin,I.$W,G,2);case"ddd":return ie(E.weekdaysShort,I.$W,G,3);case"dddd":return G[I.$W];case"H":return String(X);case"HH":return M.s(X,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return V(X,D,!0);case"A":return V(X,D,!1);case"m":return String(D);case"mm":return M.s(D,2,"0");case"s":return String(I.$s);case"ss":return M.s(I.$s,2,"0");case"SSS":return M.s(I.$ms,3,"0");case"Z":return R}return null}($)||R.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(_,I,E){var z,R=this,X=M.p(I),D=k(_),Y=(D.utcOffset()-this.utcOffset())*e,G=this-D,K=function(){return M.m(R,D)};switch(X){case d:z=K()/12;break;case c:z=K();break;case h:z=K()/3;break;case l:z=(G-Y)/6048e5;break;case o:z=(G-Y)/864e5;break;case n:z=G/t;break;case r:z=G/e;break;case a:z=G/s;break;default:z=G}return E?z:M.a(z)},C.daysInMonth=function(){return this.endOf(c).$D},C.$locale=function(){return A[this.$L]},C.locale=function(_,I){if(!_)return this.$L;var E=this.clone(),z=w(_,I,!0);return z&&(E.$L=z),E},C.clone=function(){return M.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},L}(),P=O.prototype;return k.prototype=P,[["$ms",i],["$s",a],["$m",r],["$H",n],["$W",o],["$M",c],["$y",d],["$D",u]].forEach(function(L){P[L[1]]=function(C){return this.$g(C,L[0],L[1])}}),k.extend=function(L,C){return L.$i||(L(C,O,k),L.$i=!0),k},k.locale=w,k.isDayjs=S,k.unix=function(L){return k(1e3*L)},k.en=A[v],k.Ls=A,k.p={},k})});var ol=be((vg,nl)=>{"use strict";nl.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var sr=be((yg,cl)=>{var Hi=ol(),ll={};for(let s of Object.keys(Hi))ll[Hi[s]]=s;var W={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};cl.exports=W;for(let s of Object.keys(W)){if(!("channels"in W[s]))throw new Error("missing channels property: "+s);if(!("labels"in W[s]))throw new Error("missing channel labels property: "+s);if(W[s].labels.length!==W[s].channels)throw new Error("channel and label counts mismatch: "+s);let{channels:e,labels:t}=W[s];delete W[s].channels,delete W[s].labels,Object.defineProperty(W[s],"channels",{value:e}),Object.defineProperty(W[s],"labels",{value:t})}W.rgb.hsl=function(s){let e=s[0]/255,t=s[1]/255,i=s[2]/255,a=Math.min(e,t,i),r=Math.max(e,t,i),n=r-a,o,l;r===a?o=0:e===r?o=(t-i)/n:t===r?o=2+(i-e)/n:i===r&&(o=4+(e-t)/n),o=Math.min(o*60,360),o<0&&(o+=360);let c=(a+r)/2;return r===a?l=0:c<=.5?l=n/(r+a):l=n/(2-r-a),[o,l*100,c*100]};W.rgb.hsv=function(s){let e,t,i,a,r,n=s[0]/255,o=s[1]/255,l=s[2]/255,c=Math.max(n,o,l),h=c-Math.min(n,o,l),d=function(u){return(c-u)/6/h+1/2};return h===0?(a=0,r=0):(r=h/c,e=d(n),t=d(o),i=d(l),n===c?a=i-t:o===c?a=1/3+e-i:l===c&&(a=2/3+t-e),a<0?a+=1:a>1&&(a-=1)),[a*360,r*100,c*100]};W.rgb.hwb=function(s){let e=s[0],t=s[1],i=s[2],a=W.rgb.hsl(s)[0],r=1/255*Math.min(e,Math.min(t,i));return i=1-1/255*Math.max(e,Math.max(t,i)),[a,r*100,i*100]};W.rgb.cmyk=function(s){let e=s[0]/255,t=s[1]/255,i=s[2]/255,a=Math.min(1-e,1-t,1-i),r=(1-e-a)/(1-a)||0,n=(1-t-a)/(1-a)||0,o=(1-i-a)/(1-a)||0;return[r*100,n*100,o*100,a*100]};function Lu(s,e){return(s[0]-e[0])**2+(s[1]-e[1])**2+(s[2]-e[2])**2}W.rgb.keyword=function(s){let e=ll[s];if(e)return e;let t=1/0,i;for(let a of Object.keys(Hi)){let r=Hi[a],n=Lu(s,r);n<t&&(t=n,i=a)}return i};W.keyword.rgb=function(s){return Hi[s]};W.rgb.xyz=function(s){let e=s[0]/255,t=s[1]/255,i=s[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let a=e*.4124+t*.3576+i*.1805,r=e*.2126+t*.7152+i*.0722,n=e*.0193+t*.1192+i*.9505;return[a*100,r*100,n*100]};W.rgb.lab=function(s){let e=W.rgb.xyz(s),t=e[0],i=e[1],a=e[2];t/=95.047,i/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let r=116*i-16,n=500*(t-i),o=200*(i-a);return[r,n,o]};W.hsl.rgb=function(s){let e=s[0]/360,t=s[1]/100,i=s[2]/100,a,r,n;if(t===0)return n=i*255,[n,n,n];i<.5?a=i*(1+t):a=i+t-i*t;let o=2*i-a,l=[0,0,0];for(let c=0;c<3;c++)r=e+1/3*-(c-1),r<0&&r++,r>1&&r--,6*r<1?n=o+(a-o)*6*r:2*r<1?n=a:3*r<2?n=o+(a-o)*(2/3-r)*6:n=o,l[c]=n*255;return l};W.hsl.hsv=function(s){let e=s[0],t=s[1]/100,i=s[2]/100,a=t,r=Math.max(i,.01);i*=2,t*=i<=1?i:2-i,a*=r<=1?r:2-r;let n=(i+t)/2,o=i===0?2*a/(r+a):2*t/(i+t);return[e,o*100,n*100]};W.hsv.rgb=function(s){let e=s[0]/60,t=s[1]/100,i=s[2]/100,a=Math.floor(e)%6,r=e-Math.floor(e),n=255*i*(1-t),o=255*i*(1-t*r),l=255*i*(1-t*(1-r));switch(i*=255,a){case 0:return[i,l,n];case 1:return[o,i,n];case 2:return[n,i,l];case 3:return[n,o,i];case 4:return[l,n,i];case 5:return[i,n,o]}};W.hsv.hsl=function(s){let e=s[0],t=s[1]/100,i=s[2]/100,a=Math.max(i,.01),r,n;n=(2-t)*i;let o=(2-t)*a;return r=t*a,r/=o<=1?o:2-o,r=r||0,n/=2,[e,r*100,n*100]};W.hwb.rgb=function(s){let e=s[0]/360,t=s[1]/100,i=s[2]/100,a=t+i,r;a>1&&(t/=a,i/=a);let n=Math.floor(6*e),o=1-i;r=6*e-n,(n&1)!==0&&(r=1-r);let l=t+r*(o-t),c,h,d;switch(n){default:case 6:case 0:c=o,h=l,d=t;break;case 1:c=l,h=o,d=t;break;case 2:c=t,h=o,d=l;break;case 3:c=t,h=l,d=o;break;case 4:c=l,h=t,d=o;break;case 5:c=o,h=t,d=l;break}return[c*255,h*255,d*255]};W.cmyk.rgb=function(s){let e=s[0]/100,t=s[1]/100,i=s[2]/100,a=s[3]/100,r=1-Math.min(1,e*(1-a)+a),n=1-Math.min(1,t*(1-a)+a),o=1-Math.min(1,i*(1-a)+a);return[r*255,n*255,o*255]};W.xyz.rgb=function(s){let e=s[0]/100,t=s[1]/100,i=s[2]/100,a,r,n;return a=e*3.2406+t*-1.5372+i*-.4986,r=e*-.9689+t*1.8758+i*.0415,n=e*.0557+t*-.204+i*1.057,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92,a=Math.min(Math.max(0,a),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[a*255,r*255,n*255]};W.xyz.lab=function(s){let e=s[0],t=s[1],i=s[2];e/=95.047,t/=100,i/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let a=116*t-16,r=500*(e-t),n=200*(t-i);return[a,r,n]};W.lab.xyz=function(s){let e=s[0],t=s[1],i=s[2],a,r,n;r=(e+16)/116,a=t/500+r,n=r-i/200;let o=r**3,l=a**3,c=n**3;return r=o>.008856?o:(r-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,n=c>.008856?c:(n-16/116)/7.787,a*=95.047,r*=100,n*=108.883,[a,r,n]};W.lab.lch=function(s){let e=s[0],t=s[1],i=s[2],a;a=Math.atan2(i,t)*360/2/Math.PI,a<0&&(a+=360);let n=Math.sqrt(t*t+i*i);return[e,n,a]};W.lch.lab=function(s){let e=s[0],t=s[1],a=s[2]/360*2*Math.PI,r=t*Math.cos(a),n=t*Math.sin(a);return[e,r,n]};W.rgb.ansi16=function(s,e=null){let[t,i,a]=s,r=e===null?W.rgb.hsv(s)[2]:e;if(r=Math.round(r/50),r===0)return 30;let n=30+(Math.round(a/255)<<2|Math.round(i/255)<<1|Math.round(t/255));return r===2&&(n+=60),n};W.hsv.ansi16=function(s){return W.rgb.ansi16(W.hsv.rgb(s),s[2])};W.rgb.ansi256=function(s){let e=s[0],t=s[1],i=s[2];return e===t&&t===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(i/255*5)};W.ansi16.rgb=function(s){let e=s%10;if(e===0||e===7)return s>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let t=(~~(s>50)+1)*.5,i=(e&1)*t*255,a=(e>>1&1)*t*255,r=(e>>2&1)*t*255;return[i,a,r]};W.ansi256.rgb=function(s){if(s>=232){let r=(s-232)*10+8;return[r,r,r]}s-=16;let e,t=Math.floor(s/36)/5*255,i=Math.floor((e=s%36)/6)/5*255,a=e%6/5*255;return[t,i,a]};W.rgb.hex=function(s){let t=(((Math.round(s[0])&255)<<16)+((Math.round(s[1])&255)<<8)+(Math.round(s[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};W.hex.rgb=function(s){let e=s.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let t=e[0];e[0].length===3&&(t=t.split("").map(o=>o+o).join(""));let i=parseInt(t,16),a=i>>16&255,r=i>>8&255,n=i&255;return[a,r,n]};W.rgb.hcg=function(s){let e=s[0]/255,t=s[1]/255,i=s[2]/255,a=Math.max(Math.max(e,t),i),r=Math.min(Math.min(e,t),i),n=a-r,o,l;return n<1?o=r/(1-n):o=0,n<=0?l=0:a===e?l=(t-i)/n%6:a===t?l=2+(i-e)/n:l=4+(e-t)/n,l/=6,l%=1,[l*360,n*100,o*100]};W.hsl.hcg=function(s){let e=s[1]/100,t=s[2]/100,i=t<.5?2*e*t:2*e*(1-t),a=0;return i<1&&(a=(t-.5*i)/(1-i)),[s[0],i*100,a*100]};W.hsv.hcg=function(s){let e=s[1]/100,t=s[2]/100,i=e*t,a=0;return i<1&&(a=(t-i)/(1-i)),[s[0],i*100,a*100]};W.hcg.rgb=function(s){let e=s[0]/360,t=s[1]/100,i=s[2]/100;if(t===0)return[i*255,i*255,i*255];let a=[0,0,0],r=e%1*6,n=r%1,o=1-n,l=0;switch(Math.floor(r)){case 0:a[0]=1,a[1]=n,a[2]=0;break;case 1:a[0]=o,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=n;break;case 3:a[0]=0,a[1]=o,a[2]=1;break;case 4:a[0]=n,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=o}return l=(1-t)*i,[(t*a[0]+l)*255,(t*a[1]+l)*255,(t*a[2]+l)*255]};W.hcg.hsv=function(s){let e=s[1]/100,t=s[2]/100,i=e+t*(1-e),a=0;return i>0&&(a=e/i),[s[0],a*100,i*100]};W.hcg.hsl=function(s){let e=s[1]/100,i=s[2]/100*(1-e)+.5*e,a=0;return i>0&&i<.5?a=e/(2*i):i>=.5&&i<1&&(a=e/(2*(1-i))),[s[0],a*100,i*100]};W.hcg.hwb=function(s){let e=s[1]/100,t=s[2]/100,i=e+t*(1-e);return[s[0],(i-e)*100,(1-i)*100]};W.hwb.hcg=function(s){let e=s[1]/100,i=1-s[2]/100,a=i-e,r=0;return a<1&&(r=(i-a)/(1-a)),[s[0],a*100,r*100]};W.apple.rgb=function(s){return[s[0]/65535*255,s[1]/65535*255,s[2]/65535*255]};W.rgb.apple=function(s){return[s[0]/255*65535,s[1]/255*65535,s[2]/255*65535]};W.gray.rgb=function(s){return[s[0]/100*255,s[0]/100*255,s[0]/100*255]};W.gray.hsl=function(s){return[0,0,s[0]]};W.gray.hsv=W.gray.hsl;W.gray.hwb=function(s){return[0,100,s[0]]};W.gray.cmyk=function(s){return[0,0,0,s[0]]};W.gray.lab=function(s){return[s[0],0,0]};W.gray.hex=function(s){let e=Math.round(s[0]/100*255)&255,i=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(i.length)+i};W.rgb.gray=function(s){return[(s[0]+s[1]+s[2])/3/255*100]}});var dl=be((wg,hl)=>{var ma=sr();function _u(){let s={},e=Object.keys(ma);for(let t=e.length,i=0;i<t;i++)s[e[i]]={distance:-1,parent:null};return s}function Pu(s){let e=_u(),t=[s];for(e[s].distance=0;t.length;){let i=t.pop(),a=Object.keys(ma[i]);for(let r=a.length,n=0;n<r;n++){let o=a[n],l=e[o];l.distance===-1&&(l.distance=e[i].distance+1,l.parent=i,t.unshift(o))}}return e}function Iu(s,e){return function(t){return e(s(t))}}function Tu(s,e){let t=[e[s].parent,s],i=ma[e[s].parent][s],a=e[s].parent;for(;e[a].parent;)t.unshift(e[a].parent),i=Iu(ma[e[a].parent][a],i),a=e[a].parent;return i.conversion=t,i}hl.exports=function(s){let e=Pu(s),t={},i=Object.keys(e);for(let a=i.length,r=0;r<a;r++){let n=i[r];e[n].parent!==null&&(t[n]=Tu(n,e))}return t}});var gl=be((kg,ul)=>{var rr=sr(),Eu=dl(),Jt={},Ou=Object.keys(rr);function zu(s){let e=function(...t){let i=t[0];return i==null?i:(i.length>1&&(t=i),s(t))};return"conversion"in s&&(e.conversion=s.conversion),e}function Ru(s){let e=function(...t){let i=t[0];if(i==null)return i;i.length>1&&(t=i);let a=s(t);if(typeof a=="object")for(let r=a.length,n=0;n<r;n++)a[n]=Math.round(a[n]);return a};return"conversion"in s&&(e.conversion=s.conversion),e}Ou.forEach(s=>{Jt[s]={},Object.defineProperty(Jt[s],"channels",{value:rr[s].channels}),Object.defineProperty(Jt[s],"labels",{value:rr[s].labels});let e=Eu(s);Object.keys(e).forEach(i=>{let a=e[i];Jt[s][i]=Ru(a),Jt[s][i].raw=zu(a)})});ul.exports=Jt});var vl=be((Ag,ml)=>{"use strict";var fl=(s,e)=>(...t)=>`\x1B[${s(...t)+e}m`,pl=(s,e)=>(...t)=>{let i=s(...t);return`\x1B[${38+e};5;${i}m`},xl=(s,e)=>(...t)=>{let i=s(...t);return`\x1B[${38+e};2;${i[0]};${i[1]};${i[2]}m`},va=s=>s,bl=(s,e,t)=>[s,e,t],Qt=(s,e,t)=>{Object.defineProperty(s,e,{get:()=>{let i=t();return Object.defineProperty(s,e,{value:i,enumerable:!0,configurable:!0}),i},enumerable:!0,configurable:!0})},nr,ei=(s,e,t,i)=>{nr===void 0&&(nr=gl());let a=i?10:0,r={};for(let[n,o]of Object.entries(nr)){let l=n==="ansi16"?"ansi":n;n===e?r[l]=s(t,a):typeof o=="object"&&(r[l]=s(o[e],a))}return r};function Hu(){let s=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[t,i]of Object.entries(e)){for(let[a,r]of Object.entries(i))e[a]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},i[a]=e[a],s.set(r[0],r[1]);Object.defineProperty(e,t,{value:i,enumerable:!1})}return Object.defineProperty(e,"codes",{value:s,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",Qt(e.color,"ansi",()=>ei(fl,"ansi16",va,!1)),Qt(e.color,"ansi256",()=>ei(pl,"ansi256",va,!1)),Qt(e.color,"ansi16m",()=>ei(xl,"rgb",bl,!1)),Qt(e.bgColor,"ansi",()=>ei(fl,"ansi16",va,!0)),Qt(e.bgColor,"ansi256",()=>ei(pl,"ansi256",va,!0)),Qt(e.bgColor,"ansi16m",()=>ei(xl,"rgb",bl,!0)),e}Object.defineProperty(ml,"exports",{enumerable:!0,get:Hu})});var wl=be((Sg,yl)=>{"use strict";yl.exports={stdout:!1,stderr:!1}});var Al=be((Cg,kl)=>{"use strict";var Xu=(s,e,t)=>{let i=s.indexOf(e);if(i===-1)return s;let a=e.length,r=0,n="";do n+=s.substr(r,i-r)+e+t,r=i+a,i=s.indexOf(e,r);while(i!==-1);return n+=s.substr(r),n},Du=(s,e,t,i)=>{let a=0,r="";do{let n=s[i-1]==="\r";r+=s.substr(a,(n?i-1:i)-a)+e+(n?`\r
|
2
|
+
`:`
|
3
|
+
`)+t,a=i+1,i=s.indexOf(`
|
4
|
+
`,a)}while(i!==-1);return r+=s.substr(a),r};kl.exports={stringReplaceAll:Xu,stringEncaseCRLFWithFirstIndex:Du}});var _l=be((Mg,Ll)=>{"use strict";var Fu=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Sl=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Yu=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Nu=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Bu=new Map([["n",`
|
5
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Ml(s){let e=s[0]==="u",t=s[1]==="{";return e&&!t&&s.length===5||s[0]==="x"&&s.length===3?String.fromCharCode(parseInt(s.slice(1),16)):e&&t?String.fromCodePoint(parseInt(s.slice(2,-1),16)):Bu.get(s)||s}function Wu(s,e){let t=[],i=e.trim().split(/\s*,\s*/g),a;for(let r of i){let n=Number(r);if(!Number.isNaN(n))t.push(n);else if(a=r.match(Yu))t.push(a[2].replace(Nu,(o,l,c)=>l?Ml(l):c));else throw new Error(`Invalid Chalk template style argument: ${r} (in style '${s}')`)}return t}function ju(s){Sl.lastIndex=0;let e=[],t;for(;(t=Sl.exec(s))!==null;){let i=t[1];if(t[2]){let a=Wu(i,t[2]);e.push([i].concat(a))}else e.push([i])}return e}function Cl(s,e){let t={};for(let a of e)for(let r of a.styles)t[r[0]]=a.inverse?null:r.slice(1);let i=s;for(let[a,r]of Object.entries(t))if(Array.isArray(r)){if(!(a in i))throw new Error(`Unknown Chalk style: ${a}`);i=r.length>0?i[a](...r):i[a]}return i}Ll.exports=(s,e)=>{let t=[],i=[],a=[];if(e.replace(Fu,(r,n,o,l,c,h)=>{if(n)a.push(Ml(n));else if(l){let d=a.join("");a=[],i.push(t.length===0?d:Cl(s,t)(d)),t.push({inverse:o,styles:ju(l)})}else if(c){if(t.length===0)throw new Error("Found extraneous } in Chalk template literal");i.push(Cl(s,t)(a.join(""))),a=[],t.pop()}else a.push(h)}),i.push(a.join("")),t.length>0){let r=`Chalk template literal is missing ${t.length} closing bracket${t.length===1?"":"s"} (\`}\`)`;throw new Error(r)}return i.join("")}});var Rl=be((Lg,zl)=>{"use strict";var Xi=vl(),{stdout:lr,stderr:cr}=wl(),{stringReplaceAll:Gu,stringEncaseCRLFWithFirstIndex:Vu}=Al(),{isArray:ya}=Array,Il=["ansi","ansi","ansi256","ansi16m"],ti=Object.create(null),$u=(s,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let t=lr?lr.level:0;s.level=e.level===void 0?t:e.level},hr=class{constructor(e){return Tl(e)}},Tl=s=>{let e={};return $u(e,s),e.template=(...t)=>Ol(e.template,...t),Object.setPrototypeOf(e,wa.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=hr,e.template};function wa(s){return Tl(s)}for(let[s,e]of Object.entries(Xi))ti[s]={get(){let t=ka(this,dr(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,s,{value:t}),t}};ti.visible={get(){let s=ka(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:s}),s}};var El=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let s of El)ti[s]={get(){let{level:e}=this;return function(...t){let i=dr(Xi.color[Il[e]][s](...t),Xi.color.close,this._styler);return ka(this,i,this._isEmpty)}}};for(let s of El){let e="bg"+s[0].toUpperCase()+s.slice(1);ti[e]={get(){let{level:t}=this;return function(...i){let a=dr(Xi.bgColor[Il[t]][s](...i),Xi.bgColor.close,this._styler);return ka(this,a,this._isEmpty)}}}}var Uu=Object.defineProperties(()=>{},{...ti,level:{enumerable:!0,get(){return this._generator.level},set(s){this._generator.level=s}}}),dr=(s,e,t)=>{let i,a;return t===void 0?(i=s,a=e):(i=t.openAll+s,a=e+t.closeAll),{open:s,close:e,openAll:i,closeAll:a,parent:t}},ka=(s,e,t)=>{let i=(...a)=>ya(a[0])&&ya(a[0].raw)?Pl(i,Ol(i,...a)):Pl(i,a.length===1?""+a[0]:a.join(" "));return Object.setPrototypeOf(i,Uu),i._generator=s,i._styler=e,i._isEmpty=t,i},Pl=(s,e)=>{if(s.level<=0||!e)return s._isEmpty?"":e;let t=s._styler;if(t===void 0)return e;let{openAll:i,closeAll:a}=t;if(e.indexOf("\x1B")!==-1)for(;t!==void 0;)e=Gu(e,t.close,t.open),t=t.parent;let r=e.indexOf(`
|
6
|
+
`);return r!==-1&&(e=Vu(e,a,i,r)),i+e+a},or,Ol=(s,...e)=>{let[t]=e;if(!ya(t)||!ya(t.raw))return e.join(" ");let i=e.slice(1),a=[t.raw[0]];for(let r=1;r<t.length;r++)a.push(String(i[r-1]).replace(/[{}\\]/g,"\\$&"),String(t.raw[r]));return or===void 0&&(or=_l()),or(s,a.join(""))};Object.defineProperties(wa.prototype,ti);var Aa=wa();Aa.supportsColor=lr;Aa.stderr=wa({level:cr?cr.level:0});Aa.stderr.supportsColor=cr;zl.exports=Aa});var Hl=be((ur,gr)=>{(function(s,e){typeof ur=="object"&&typeof gr<"u"?gr.exports=e():typeof define=="function"&&define.amd?define(e):(s=typeof globalThis<"u"?globalThis:s||self).dayjs=e()})(ur,function(){"use strict";var s=1e3,e=6e4,t=36e5,i="millisecond",a="second",r="minute",n="hour",o="day",l="week",c="month",h="quarter",d="year",u="date",g="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},b=function(P,L,C){var _=String(P);return!_||_.length>=L?P:""+Array(L+1-_.length).join(C)+P},m={s:b,z:function(P){var L=-P.utcOffset(),C=Math.abs(L),_=Math.floor(C/60),I=C%60;return(L<=0?"+":"-")+b(_,2,"0")+":"+b(I,2,"0")},m:function P(L,C){if(L.date()<C.date())return-P(C,L);var _=12*(C.year()-L.year())+(C.month()-L.month()),I=L.clone().add(_,c),E=C-I<0,z=L.clone().add(_+(E?-1:1),c);return+(-(_+(C-I)/(E?I-z:z-I))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:c,y:d,w:l,d:o,D:u,h:n,m:r,s:a,ms:i,Q:h}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},v="en",A={};A[v]=x;var y=function(P){return P instanceof M},S=function(P,L,C){var _;if(!P)return v;if(typeof P=="string")A[P]&&(_=P),L&&(A[P]=L,_=P);else{var I=P.name;A[I]=P,_=I}return!C&&_&&(v=_),_||!C&&v},w=function(P,L){if(y(P))return P.clone();var C=typeof L=="object"?L:{};return C.date=P,C.args=arguments,new M(C)},k=m;k.l=S,k.i=y,k.w=function(P,L){return w(P,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var M=function(){function P(C){this.$L=S(C.locale,null,!0),this.parse(C)}var L=P.prototype;return L.parse=function(C){this.$d=function(_){var I=_.date,E=_.utc;if(I===null)return new Date(NaN);if(k.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var z=I.match(p);if(z){var R=z[2]-1||0,X=(z[7]||"0").substring(0,3);return E?new Date(Date.UTC(z[1],R,z[3]||1,z[4]||0,z[5]||0,z[6]||0,X)):new Date(z[1],R,z[3]||1,z[4]||0,z[5]||0,z[6]||0,X)}}return new Date(I)}(C),this.$x=C.x||{},this.init()},L.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},L.$utils=function(){return k},L.isValid=function(){return this.$d.toString()!==g},L.isSame=function(C,_){var I=w(C);return this.startOf(_)<=I&&I<=this.endOf(_)},L.isAfter=function(C,_){return w(C)<this.startOf(_)},L.isBefore=function(C,_){return this.endOf(_)<w(C)},L.$g=function(C,_,I){return k.u(C)?this[_]:this.set(I,C)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(C,_){var I=this,E=!!k.u(_)||_,z=k.p(C),R=function(Z,V){var $=k.w(I.$u?Date.UTC(I.$y,V,Z):new Date(I.$y,V,Z),I);return E?$:$.endOf(o)},X=function(Z,V){return k.w(I.toDate()[Z].apply(I.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(V)),I)},D=this.$W,Y=this.$M,G=this.$D,K="set"+(this.$u?"UTC":"");switch(z){case d:return E?R(1,0):R(31,11);case c:return E?R(1,Y):R(0,Y+1);case l:var q=this.$locale().weekStart||0,ie=(D<q?D+7:D)-q;return R(E?G-ie:G+(6-ie),Y);case o:case u:return X(K+"Hours",0);case n:return X(K+"Minutes",1);case r:return X(K+"Seconds",2);case a:return X(K+"Milliseconds",3);default:return this.clone()}},L.endOf=function(C){return this.startOf(C,!1)},L.$set=function(C,_){var I,E=k.p(C),z="set"+(this.$u?"UTC":""),R=(I={},I[o]=z+"Date",I[u]=z+"Date",I[c]=z+"Month",I[d]=z+"FullYear",I[n]=z+"Hours",I[r]=z+"Minutes",I[a]=z+"Seconds",I[i]=z+"Milliseconds",I)[E],X=E===o?this.$D+(_-this.$W):_;if(E===c||E===d){var D=this.clone().set(u,1);D.$d[R](X),D.init(),this.$d=D.set(u,Math.min(this.$D,D.daysInMonth())).$d}else R&&this.$d[R](X);return this.init(),this},L.set=function(C,_){return this.clone().$set(C,_)},L.get=function(C){return this[k.p(C)]()},L.add=function(C,_){var I,E=this;C=Number(C);var z=k.p(_),R=function(Y){var G=w(E);return k.w(G.date(G.date()+Math.round(Y*C)),E)};if(z===c)return this.set(c,this.$M+C);if(z===d)return this.set(d,this.$y+C);if(z===o)return R(1);if(z===l)return R(7);var X=(I={},I[r]=e,I[n]=t,I[a]=s,I)[z]||1,D=this.$d.getTime()+C*X;return k.w(D,this)},L.subtract=function(C,_){return this.add(-1*C,_)},L.format=function(C){var _=this,I=this.$locale();if(!this.isValid())return I.invalidDate||g;var E=C||"YYYY-MM-DDTHH:mm:ssZ",z=k.z(this),R=this.$H,X=this.$m,D=this.$M,Y=I.weekdays,G=I.months,K=function(V,$,ee,re){return V&&(V[$]||V(_,E))||ee[$].substr(0,re)},q=function(V){return k.s(R%12||12,V,"0")},ie=I.meridiem||function(V,$,ee){var re=V<12?"AM":"PM";return ee?re.toLowerCase():re},Z={YY:String(this.$y).slice(-2),YYYY:this.$y,M:D+1,MM:k.s(D+1,2,"0"),MMM:K(I.monthsShort,D,G,3),MMMM:K(G,D),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:K(I.weekdaysMin,this.$W,Y,2),ddd:K(I.weekdaysShort,this.$W,Y,3),dddd:Y[this.$W],H:String(R),HH:k.s(R,2,"0"),h:q(1),hh:q(2),a:ie(R,X,!0),A:ie(R,X,!1),m:String(X),mm:k.s(X,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:z};return E.replace(f,function(V,$){return $||Z[V]||z.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(C,_,I){var E,z=k.p(_),R=w(C),X=(R.utcOffset()-this.utcOffset())*e,D=this-R,Y=k.m(this,R);return Y=(E={},E[d]=Y/12,E[c]=Y,E[h]=Y/3,E[l]=(D-X)/6048e5,E[o]=(D-X)/864e5,E[n]=D/t,E[r]=D/e,E[a]=D/s,E)[z]||D,I?Y:k.a(Y)},L.daysInMonth=function(){return this.endOf(c).$D},L.$locale=function(){return A[this.$L]},L.locale=function(C,_){if(!C)return this.$L;var I=this.clone(),E=S(C,_,!0);return E&&(I.$L=E),I},L.clone=function(){return k.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},P}(),O=M.prototype;return w.prototype=O,[["$ms",i],["$s",a],["$m",r],["$H",n],["$W",o],["$M",c],["$y",d],["$D",u]].forEach(function(P){O[P[1]]=function(L){return this.$g(L,P[0],P[1])}}),w.extend=function(P,L){return P.$i||(P(L,M,w),P.$i=!0),w},w.locale=S,w.isDayjs=y,w.unix=function(P){return w(1e3*P)},w.en=A[v],w.Ls=A,w.p={},w})});var pr=be((_g,Xl)=>{var qu=Hl(),fr=class{buildDate(){return qu().format("MM/DD HH:mm").toString()}buildMessage(e,t,i){let a=`[${this.buildDate()}] [${i.toUpperCase()}]`;return t&&(a+=` (${t})`),a=a.concat(" - ").concat(e),a}stylesForBrowser(e){let t="1.5;",i="14px;",a="2px;",r="background-color:#3498db;color:#ffffff;",n="background-color:#f1c40f;color:#000000;",o="background-color:#e74c3c;color:#ffffff;",l="background-color:#c0392b;color:#fff394;",c="background-color:##48c774;color:#000000;",h="";switch(e){case"info":h=r;break;case"warn":h=n;break;case"error":h=o;break;case"fatal":h=l;break;case"success":h=c;break}return h+="padding:"+a,h+="font-size:"+i,h+="line-height:"+t,h}print_r(e,t=1){let i=Array.isArray(e),a=",",r="",n="",o="",l=`
|
7
|
+
`;for(let c=0;c<4*t;c++)o+=" ";if(t>1&&(n=o.slice(0,o.length-4)),typeof e=="object"&&!Array.isArray(e)){r+=n+"{"+l;for(let c in e)typeof e[c]=="object"?r+=o+c+": "+this.print_r(e[c],t+1)+a+l:r+=o+c+": "+e[c]+a+l;r+=n+"}"}if(typeof e=="object"&&Array.isArray(e)){r+="["+l;for(let c in e)typeof e[c]=="object"?r+=this.print_r(e[c],t+1)+a+l:r+=o+e[c]+l;r+=n+"]"}return r}};Xl.exports=new fr});var Fl=be((Pg,Dl)=>{var Di=Rl(),ct=pr(),xr=class{build(e,t,i){return ct.buildMessage(e,t,i)}log(e,t=null){e=ct.buildMessage(e,t,"log"),console.log(e)}msg(e,t=null){e=ct.buildMessage(e,t,"msg"),console.log(e)}info(e,t=null){e=ct.buildMessage(e,t,"info"),console.log(Di.whiteBright.bgBlue(e))}success(e,t=null){e=ct.buildMessage(e,t,"success"),console.log(Di.whiteBright.bgGreen(e))}warn(e,t=null){e=ct.buildMessage(e,t,"warn"),console.log(Di.black.bgYellowBright(e))}error(e,t=null){e=ct.buildMessage(e,t,"error"),console.log(Di.whiteBright.bgRedBright(e))}fatal(e,t=null){e=ct.buildMessage(e,t,"fatal"),console.log(Di.black.bgRedBright(e))}hr(e=10){console.log("-\xB7- ".repeat(e))}};Dl.exports=new xr});var Nl=be((Ig,Yl)=>{var De=pr(),br=class{build(e,t,i){return De.buildMessage(e,t,i)}log(e,t=null){console.log(De.buildMessage(e,t,"log"))}msg(e,t=null){console.log(De.buildMessage(e,t,"msg"))}info(e,t=null){console.info("%c"+De.buildMessage(e,t,"info"),De.stylesForBrowser("info"))}success(e,t=null){console.log(De.buildMessage(e,t,"msg"))}warn(e,t=null){console.warn("%c"+De.buildMessage(e,t,"warn"),De.stylesForBrowser("warn"))}error(e,t=null){console.error("%c"+De.buildMessage(e,t,"error"),De.stylesForBrowser("error"))}fatal(e,t=null){console.error("%c"+De.buildMessage(e,t,"error"),De.stylesForBrowser("fatal"))}message(e,t,i=null){console.log("%c"+e,"color:#3689e6;font-size:35px;font-weight:600;line-height:1;"),typeof t=="string"&&(t=[t]),console.log("%c"+t.join(`
|
8
|
+
`),"background-color:#ffffff;color:#1a1a1a;font-size:18px;font-weight:400;line-height:1.1;"),i&&console.log("%c"+i,"background-color:#ffffff;color:#1a1a1a;font-size:14px;font-weight:400;line-height:2;")}lesli_message_warning(e="LESLI",t="For mor information contact your system administrator"){this.message(e,["This is a browser feature intended for developers.","For security reasons, DO NOT copy or paste any information, text, or code here."],t)}};Yl.exports=new br});var Bl=be(mr=>{mr.nodejs=Fl();mr.browser=Nl()});var jl=be((Eg,Wl)=>{Wl.exports={blue:{100:"#8cd5ff",300:"#64baff",500:"#3689e6",700:"#0d52bf",900:"#002e99"},bubble:{100:"#fe9ab8",300:"#f4679d",500:"#de3e80",700:"#bc245d",900:"#910e38"},grape:{100:"#e4c6fa",300:"#cd9ef7",500:"#a56de2",700:"#7239b3",900:"#452981"},lime:{100:"#d1ff82",300:"#9bdb4d",500:"#68b723",700:"#3a9104",900:"#206b00"},orange:{100:"#ffc27d",300:"#ffa154",500:"#f37329",700:"#cc3b02",900:"#a62100"},berry:{100:"#ff8c82",300:"#ed5353",500:"#c6262e",700:"#a10705",900:"#7a0000"},cocoa:{100:"#a3907c",300:"#8a715e",500:"#715344",700:"#57392d",900:"#3d211b"},banana:{100:"#fff394",300:"#ffe16b",500:"#f9c440",700:"#d48e15",900:"#ad5f00"},slate:{100:"#95a3ab",300:"#667885",500:"#485a6c",700:"#273445",900:"#0e141f"},mint:{100:"#89ffdd",300:"#43d6b5",500:"#28bca3",700:"#0e9a83",900:"#007367"},black:{100:"#666666",300:"#4d4d4d",500:"#333333",700:"#1a1a1a",900:"#000000"},silver:{100:"#fafafa",300:"#d4d4d4",500:"#abacae",700:"#7e8087",900:"#555761"},solid:{white:"#ffffff"}}});var Vl=be((Og,Gl)=>{var Zu={blue:["#48a2de","#cde6f6","#2691d9","#acd5f0","#207bb7","#eef7fc","#1b6496","#8ac4ea","#154e75","#69b3e4"]};Gl.exports=s=>Zu[s]});var $l=be(Le=>{var Te=jl(),Ku=Vl();Le.palette=Te;Le.graph=Ku;Le.blue=(s=500)=>Te.blue[s];Le.lime=(s=500)=>Te.lime[s];Le.mint=(s=500)=>Te.mint[s];Le.grape=(s=500)=>Te.grape[s];Le.berry=(s=500)=>Te.berry[s];Le.cocoa=(s=500)=>Te.cocoa[s];Le.slate=(s=500)=>Te.slate[s];Le.black=(s=500)=>Te.black[s];Le.bubble=(s=500)=>Te.bubble[s];Le.orange=(s=500)=>Te.orange[s];Le.banana=(s=500)=>Te.banana[s];Le.silver=(s=500)=>Te.silver[s]});var Ul=be(vr=>{vr.debug=Bl();vr.color=$l()});var ql=kr(Ar());var Ta=!1,Ea=!1,ut=[],Oa=-1;function ac(s){sc(s)}function sc(s){ut.includes(s)||ut.push(s),nc()}function rc(s){let e=ut.indexOf(s);e!==-1&&e>Oa&&ut.splice(e,1)}function nc(){!Ea&&!Ta&&(Ta=!0,queueMicrotask(oc))}function oc(){Ta=!1,Ea=!0;for(let s=0;s<ut.length;s++)ut[s](),Oa=s;ut.length=0,Oa=-1,Ea=!1}var Pt,bt,It,Dr,za=!0;function lc(s){za=!1,s(),za=!0}function cc(s){Pt=s.reactive,It=s.release,bt=e=>s.effect(e,{scheduler:t=>{za?ac(t):t()}}),Dr=s.raw}function Sr(s){bt=s}function hc(s){let e=()=>{};return[i=>{let a=bt(i);return s._x_effects||(s._x_effects=new Set,s._x_runEffects=()=>{s._x_effects.forEach(r=>r())}),s._x_effects.add(a),e=()=>{a!==void 0&&(s._x_effects.delete(a),It(a))},a},()=>{e()}]}function Fr(s,e){let t=!0,i,a=bt(()=>{let r=s();JSON.stringify(r),t?i=r:queueMicrotask(()=>{e(r,i),i=r}),t=!1});return()=>It(a)}var Yr=[],Nr=[],Br=[];function dc(s){Br.push(s)}function Ua(s,e){typeof e=="function"?(s._x_cleanups||(s._x_cleanups=[]),s._x_cleanups.push(e)):(e=s,Nr.push(e))}function Wr(s){Yr.push(s)}function jr(s,e,t){s._x_attributeCleanups||(s._x_attributeCleanups={}),s._x_attributeCleanups[e]||(s._x_attributeCleanups[e]=[]),s._x_attributeCleanups[e].push(t)}function Gr(s,e){s._x_attributeCleanups&&Object.entries(s._x_attributeCleanups).forEach(([t,i])=>{(e===void 0||e.includes(t))&&(i.forEach(a=>a()),delete s._x_attributeCleanups[t])})}function uc(s){for(s._x_effects?.forEach(rc);s._x_cleanups?.length;)s._x_cleanups.pop()()}var qa=new MutationObserver(Qa),Za=!1;function Ka(){qa.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Za=!0}function Vr(){gc(),qa.disconnect(),Za=!1}var ai=[];function gc(){let s=qa.takeRecords();ai.push(()=>s.length>0&&Qa(s));let e=ai.length;queueMicrotask(()=>{if(ai.length===e)for(;ai.length>0;)ai.shift()()})}function ue(s){if(!Za)return s();Vr();let e=s();return Ka(),e}var Ja=!1,Vi=[];function fc(){Ja=!0}function pc(){Ja=!1,Qa(Vi),Vi=[]}function Qa(s){if(Ja){Vi=Vi.concat(s);return}let e=[],t=new Set,i=new Map,a=new Map;for(let r=0;r<s.length;r++)if(!s[r].target._x_ignoreMutationObserver&&(s[r].type==="childList"&&(s[r].removedNodes.forEach(n=>{n.nodeType===1&&n._x_marker&&t.add(n)}),s[r].addedNodes.forEach(n=>{if(n.nodeType===1){if(t.has(n)){t.delete(n);return}n._x_marker||e.push(n)}})),s[r].type==="attributes")){let n=s[r].target,o=s[r].attributeName,l=s[r].oldValue,c=()=>{i.has(n)||i.set(n,[]),i.get(n).push({name:o,value:n.getAttribute(o)})},h=()=>{a.has(n)||a.set(n,[]),a.get(n).push(o)};n.hasAttribute(o)&&l===null?c():n.hasAttribute(o)?(h(),c()):h()}a.forEach((r,n)=>{Gr(n,r)}),i.forEach((r,n)=>{Yr.forEach(o=>o(n,r))});for(let r of t)e.some(n=>n.contains(r))||Nr.forEach(n=>n(r));for(let r of e)r.isConnected&&Br.forEach(n=>n(r));e=null,t=null,i=null,a=null}function $r(s){return di(Lt(s))}function hi(s,e,t){return s._x_dataStack=[e,...Lt(t||s)],()=>{s._x_dataStack=s._x_dataStack.filter(i=>i!==e)}}function Lt(s){return s._x_dataStack?s._x_dataStack:typeof ShadowRoot=="function"&&s instanceof ShadowRoot?Lt(s.host):s.parentNode?Lt(s.parentNode):[]}function di(s){return new Proxy({objects:s},xc)}var xc={ownKeys({objects:s}){return Array.from(new Set(s.flatMap(e=>Object.keys(e))))},has({objects:s},e){return e==Symbol.unscopables?!1:s.some(t=>Object.prototype.hasOwnProperty.call(t,e)||Reflect.has(t,e))},get({objects:s},e,t){return e=="toJSON"?bc:Reflect.get(s.find(i=>Reflect.has(i,e))||{},e,t)},set({objects:s},e,t,i){let a=s.find(n=>Object.prototype.hasOwnProperty.call(n,e))||s[s.length-1],r=Object.getOwnPropertyDescriptor(a,e);return r?.set&&r?.get?r.set.call(i,t)||!0:Reflect.set(a,e,t)}};function bc(){return Reflect.ownKeys(this).reduce((e,t)=>(e[t]=Reflect.get(this,t),e),{})}function Ur(s){let e=i=>typeof i=="object"&&!Array.isArray(i)&&i!==null,t=(i,a="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(([r,{value:n,enumerable:o}])=>{if(o===!1||n===void 0||typeof n=="object"&&n!==null&&n.__v_skip)return;let l=a===""?r:`${a}.${r}`;typeof n=="object"&&n!==null&&n._x_interceptor?i[r]=n.initialize(s,l,r):e(n)&&n!==i&&!(n instanceof Element)&&t(n,l)})};return t(s)}function qr(s,e=()=>{}){let t={initialValue:void 0,_x_interceptor:!0,initialize(i,a,r){return s(this.initialValue,()=>mc(i,a),n=>Ra(i,a,n),a,r)}};return e(t),i=>{if(typeof i=="object"&&i!==null&&i._x_interceptor){let a=t.initialize.bind(t);t.initialize=(r,n,o)=>{let l=i.initialize(r,n,o);return t.initialValue=l,a(r,n,o)}}else t.initialValue=i;return t}}function mc(s,e){return e.split(".").reduce((t,i)=>t[i],s)}function Ra(s,e,t){if(typeof e=="string"&&(e=e.split(".")),e.length===1)s[e[0]]=t;else{if(e.length===0)throw error;return s[e[0]]||(s[e[0]]={}),Ra(s[e[0]],e.slice(1),t)}}var Zr={};function Ye(s,e){Zr[s]=e}function Ha(s,e){let t=vc(e);return Object.entries(Zr).forEach(([i,a])=>{Object.defineProperty(s,`$${i}`,{get(){return a(e,t)},enumerable:!1})}),s}function vc(s){let[e,t]=an(s),i={interceptor:qr,...e};return Ua(s,t),i}function yc(s,e,t,...i){try{return t(...i)}catch(a){ci(a,s,e)}}function ci(s,e,t=void 0){s=Object.assign(s??{message:"No error message given."},{el:e,expression:t}),console.warn(`Alpine Expression Error: ${s.message}
|
9
|
+
|
10
|
+
${t?'Expression: "'+t+`"
|
11
|
+
|
12
|
+
`:""}`,e),setTimeout(()=>{throw s},0)}var ji=!0;function Kr(s){let e=ji;ji=!1;let t=s();return ji=e,t}function gt(s,e,t={}){let i;return Ae(s,e)(a=>i=a,t),i}function Ae(...s){return Jr(...s)}var Jr=Qr;function wc(s){Jr=s}function Qr(s,e){let t={};Ha(t,s);let i=[t,...Lt(s)],a=typeof e=="function"?kc(i,e):Sc(i,e,s);return yc.bind(null,s,e,a)}function kc(s,e){return(t=()=>{},{scope:i={},params:a=[]}={})=>{let r=e.apply(di([i,...s]),a);$i(t,r)}}var Ma={};function Ac(s,e){if(Ma[s])return Ma[s];let t=Object.getPrototypeOf(async function(){}).constructor,i=/^[\n\s]*if.*\(.*\)/.test(s.trim())||/^(let|const)\s/.test(s.trim())?`(async()=>{ ${s} })()`:s,r=(()=>{try{let n=new t(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`);return Object.defineProperty(n,"name",{value:`[Alpine] ${s}`}),n}catch(n){return ci(n,e,s),Promise.resolve()}})();return Ma[s]=r,r}function Sc(s,e,t){let i=Ac(e,t);return(a=()=>{},{scope:r={},params:n=[]}={})=>{i.result=void 0,i.finished=!1;let o=di([r,...s]);if(typeof i=="function"){let l=i(i,o).catch(c=>ci(c,t,e));i.finished?($i(a,i.result,o,n,t),i.result=void 0):l.then(c=>{$i(a,c,o,n,t)}).catch(c=>ci(c,t,e)).finally(()=>i.result=void 0)}}}function $i(s,e,t,i,a){if(ji&&typeof e=="function"){let r=e.apply(t,i);r instanceof Promise?r.then(n=>$i(s,n,t,i)).catch(n=>ci(n,a,e)):s(r)}else typeof e=="object"&&e instanceof Promise?e.then(r=>s(r)):s(e)}var es="x-";function Tt(s=""){return es+s}function Cc(s){es=s}var Ui={};function pe(s,e){return Ui[s]=e,{before(t){if(!Ui[t]){console.warn(String.raw`Cannot find directive \`${t}\`. \`${s}\` will use the default order of execution`);return}let i=dt.indexOf(t);dt.splice(i>=0?i:dt.indexOf("DEFAULT"),0,s)}}}function Mc(s){return Object.keys(Ui).includes(s)}function ts(s,e,t){if(e=Array.from(e),s._x_virtualDirectives){let r=Object.entries(s._x_virtualDirectives).map(([o,l])=>({name:o,value:l})),n=en(r);r=r.map(o=>n.find(l=>l.name===o.name)?{name:`x-bind:${o.name}`,value:`"${o.value}"`}:o),e=e.concat(r)}let i={};return e.map(nn((r,n)=>i[r]=n)).filter(ln).map(Pc(i,t)).sort(Ic).map(r=>_c(s,r))}function en(s){return Array.from(s).map(nn()).filter(e=>!ln(e))}var Xa=!1,ni=new Map,tn=Symbol();function Lc(s){Xa=!0;let e=Symbol();tn=e,ni.set(e,[]);let t=()=>{for(;ni.get(e).length;)ni.get(e).shift()();ni.delete(e)},i=()=>{Xa=!1,t()};s(t),i()}function an(s){let e=[],t=o=>e.push(o),[i,a]=hc(s);return e.push(a),[{Alpine:ui,effect:i,cleanup:t,evaluateLater:Ae.bind(Ae,s),evaluate:gt.bind(gt,s)},()=>e.forEach(o=>o())]}function _c(s,e){let t=()=>{},i=Ui[e.type]||t,[a,r]=an(s);jr(s,e.original,r);let n=()=>{s._x_ignore||s._x_ignoreSelf||(i.inline&&i.inline(s,e,a),i=i.bind(i,s,e,a),Xa?ni.get(tn).push(i):i())};return n.runCleanups=r,n}var sn=(s,e)=>({name:t,value:i})=>(t.startsWith(s)&&(t=t.replace(s,e)),{name:t,value:i}),rn=s=>s;function nn(s=()=>{}){return({name:e,value:t})=>{let{name:i,value:a}=on.reduce((r,n)=>n(r),{name:e,value:t});return i!==e&&s(i,e),{name:i,value:a}}}var on=[];function is(s){on.push(s)}function ln({name:s}){return cn().test(s)}var cn=()=>new RegExp(`^${es}([^:^.]+)\\b`);function Pc(s,e){return({name:t,value:i})=>{let a=t.match(cn()),r=t.match(/:([a-zA-Z0-9\-_:]+)/),n=t.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],o=e||s[t]||t;return{type:a?a[1]:null,value:r?r[1]:null,modifiers:n.map(l=>l.replace(".","")),expression:i,original:o}}}var Da="DEFAULT",dt=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Da,"teleport"];function Ic(s,e){let t=dt.indexOf(s.type)===-1?Da:s.type,i=dt.indexOf(e.type)===-1?Da:e.type;return dt.indexOf(t)-dt.indexOf(i)}function oi(s,e,t={}){s.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0,cancelable:!0}))}function xt(s,e){if(typeof ShadowRoot=="function"&&s instanceof ShadowRoot){Array.from(s.children).forEach(a=>xt(a,e));return}let t=!1;if(e(s,()=>t=!0),t)return;let i=s.firstElementChild;for(;i;)xt(i,e,!1),i=i.nextElementSibling}function Ee(s,...e){console.warn(`Alpine Warning: ${s}`,...e)}var Cr=!1;function Tc(){Cr&&Ee("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Cr=!0,document.body||Ee("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),oi(document,"alpine:init"),oi(document,"alpine:initializing"),Ka(),dc(e=>$e(e,xt)),Ua(e=>Ot(e)),Wr((e,t)=>{ts(e,t).forEach(i=>i())});let s=e=>!Zi(e.parentElement,!0);Array.from(document.querySelectorAll(un().join(","))).filter(s).forEach(e=>{$e(e)}),oi(document,"alpine:initialized"),setTimeout(()=>{Rc()})}var as=[],hn=[];function dn(){return as.map(s=>s())}function un(){return as.concat(hn).map(s=>s())}function gn(s){as.push(s)}function fn(s){hn.push(s)}function Zi(s,e=!1){return Et(s,t=>{if((e?un():dn()).some(a=>t.matches(a)))return!0})}function Et(s,e){if(s){if(e(s))return s;if(s._x_teleportBack&&(s=s._x_teleportBack),!!s.parentElement)return Et(s.parentElement,e)}}function Ec(s){return dn().some(e=>s.matches(e))}var pn=[];function Oc(s){pn.push(s)}var zc=1;function $e(s,e=xt,t=()=>{}){Et(s,i=>i._x_ignore)||Lc(()=>{e(s,(i,a)=>{i._x_marker||(t(i,a),pn.forEach(r=>r(i,a)),ts(i,i.attributes).forEach(r=>r()),i._x_ignore||(i._x_marker=zc++),i._x_ignore&&a())})})}function Ot(s,e=xt){e(s,t=>{uc(t),Gr(t),delete t._x_marker})}function Rc(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([e,t,i])=>{Mc(t)||i.some(a=>{if(document.querySelector(a))return Ee(`found "${a}", but missing ${e} plugin`),!0})})}var Fa=[],ss=!1;function rs(s=()=>{}){return queueMicrotask(()=>{ss||setTimeout(()=>{Ya()})}),new Promise(e=>{Fa.push(()=>{s(),e()})})}function Ya(){for(ss=!1;Fa.length;)Fa.shift()()}function Hc(){ss=!0}function ns(s,e){return Array.isArray(e)?Mr(s,e.join(" ")):typeof e=="object"&&e!==null?Xc(s,e):typeof e=="function"?ns(s,e()):Mr(s,e)}function Mr(s,e){let t=r=>r.split(" ").filter(Boolean),i=r=>r.split(" ").filter(n=>!s.classList.contains(n)).filter(Boolean),a=r=>(s.classList.add(...r),()=>{s.classList.remove(...r)});return e=e===!0?e="":e||"",a(i(e))}function Xc(s,e){let t=o=>o.split(" ").filter(Boolean),i=Object.entries(e).flatMap(([o,l])=>l?t(o):!1).filter(Boolean),a=Object.entries(e).flatMap(([o,l])=>l?!1:t(o)).filter(Boolean),r=[],n=[];return a.forEach(o=>{s.classList.contains(o)&&(s.classList.remove(o),n.push(o))}),i.forEach(o=>{s.classList.contains(o)||(s.classList.add(o),r.push(o))}),()=>{n.forEach(o=>s.classList.add(o)),r.forEach(o=>s.classList.remove(o))}}function Ki(s,e){return typeof e=="object"&&e!==null?Dc(s,e):Fc(s,e)}function Dc(s,e){let t={};return Object.entries(e).forEach(([i,a])=>{t[i]=s.style[i],i.startsWith("--")||(i=Yc(i)),s.style.setProperty(i,a)}),setTimeout(()=>{s.style.length===0&&s.removeAttribute("style")}),()=>{Ki(s,t)}}function Fc(s,e){let t=s.getAttribute("style",e);return s.setAttribute("style",e),()=>{s.setAttribute("style",t||"")}}function Yc(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Na(s,e=()=>{}){let t=!1;return function(){t?e.apply(this,arguments):(t=!0,s.apply(this,arguments))}}pe("transition",(s,{value:e,modifiers:t,expression:i},{evaluate:a})=>{typeof i=="function"&&(i=a(i)),i!==!1&&(!i||typeof i=="boolean"?Bc(s,t,e):Nc(s,i,e))});function Nc(s,e,t){xn(s,ns,""),{enter:a=>{s._x_transition.enter.during=a},"enter-start":a=>{s._x_transition.enter.start=a},"enter-end":a=>{s._x_transition.enter.end=a},leave:a=>{s._x_transition.leave.during=a},"leave-start":a=>{s._x_transition.leave.start=a},"leave-end":a=>{s._x_transition.leave.end=a}}[t](e)}function Bc(s,e,t){xn(s,Ki);let i=!e.includes("in")&&!e.includes("out")&&!t,a=i||e.includes("in")||["enter"].includes(t),r=i||e.includes("out")||["leave"].includes(t);e.includes("in")&&!i&&(e=e.filter((b,m)=>m<e.indexOf("out"))),e.includes("out")&&!i&&(e=e.filter((b,m)=>m>e.indexOf("out")));let n=!e.includes("opacity")&&!e.includes("scale"),o=n||e.includes("opacity"),l=n||e.includes("scale"),c=o?0:1,h=l?si(e,"scale",95)/100:1,d=si(e,"delay",0)/1e3,u=si(e,"origin","center"),g="opacity, transform",p=si(e,"duration",150)/1e3,f=si(e,"duration",75)/1e3,x="cubic-bezier(0.4, 0.0, 0.2, 1)";a&&(s._x_transition.enter.during={transformOrigin:u,transitionDelay:`${d}s`,transitionProperty:g,transitionDuration:`${p}s`,transitionTimingFunction:x},s._x_transition.enter.start={opacity:c,transform:`scale(${h})`},s._x_transition.enter.end={opacity:1,transform:"scale(1)"}),r&&(s._x_transition.leave.during={transformOrigin:u,transitionDelay:`${d}s`,transitionProperty:g,transitionDuration:`${f}s`,transitionTimingFunction:x},s._x_transition.leave.start={opacity:1,transform:"scale(1)"},s._x_transition.leave.end={opacity:c,transform:`scale(${h})`})}function xn(s,e,t={}){s._x_transition||(s._x_transition={enter:{during:t,start:t,end:t},leave:{during:t,start:t,end:t},in(i=()=>{},a=()=>{}){Ba(s,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},i,a)},out(i=()=>{},a=()=>{}){Ba(s,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},i,a)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(s,e,t,i){let a=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,r=()=>a(t);if(e){s._x_transition&&(s._x_transition.enter||s._x_transition.leave)?s._x_transition.enter&&(Object.entries(s._x_transition.enter.during).length||Object.entries(s._x_transition.enter.start).length||Object.entries(s._x_transition.enter.end).length)?s._x_transition.in(t):r():s._x_transition?s._x_transition.in(t):r();return}s._x_hidePromise=s._x_transition?new Promise((n,o)=>{s._x_transition.out(()=>{},()=>n(i)),s._x_transitioning&&s._x_transitioning.beforeCancel(()=>o({isFromCancelledTransition:!0}))}):Promise.resolve(i),queueMicrotask(()=>{let n=bn(s);n?(n._x_hideChildren||(n._x_hideChildren=[]),n._x_hideChildren.push(s)):a(()=>{let o=l=>{let c=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(o)]).then(([h])=>h?.());return delete l._x_hidePromise,delete l._x_hideChildren,c};o(s).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function bn(s){let e=s.parentNode;if(e)return e._x_hidePromise?e:bn(e)}function Ba(s,e,{during:t,start:i,end:a}={},r=()=>{},n=()=>{}){if(s._x_transitioning&&s._x_transitioning.cancel(),Object.keys(t).length===0&&Object.keys(i).length===0&&Object.keys(a).length===0){r(),n();return}let o,l,c;Wc(s,{start(){o=e(s,i)},during(){l=e(s,t)},before:r,end(){o(),c=e(s,a)},after:n,cleanup(){l(),c()}})}function Wc(s,e){let t,i,a,r=Na(()=>{ue(()=>{t=!0,i||e.before(),a||(e.end(),Ya()),e.after(),s.isConnected&&e.cleanup(),delete s._x_transitioning})});s._x_transitioning={beforeCancels:[],beforeCancel(n){this.beforeCancels.push(n)},cancel:Na(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();r()}),finish:r},ue(()=>{e.start(),e.during()}),Hc(),requestAnimationFrame(()=>{if(t)return;let n=Number(getComputedStyle(s).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,o=Number(getComputedStyle(s).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;n===0&&(n=Number(getComputedStyle(s).animationDuration.replace("s",""))*1e3),ue(()=>{e.before()}),i=!0,requestAnimationFrame(()=>{t||(ue(()=>{e.end()}),Ya(),setTimeout(s._x_transitioning.finish,n+o),a=!0)})})}function si(s,e,t){if(s.indexOf(e)===-1)return t;let i=s[s.indexOf(e)+1];if(!i||e==="scale"&&isNaN(i))return t;if(e==="duration"||e==="delay"){let a=i.match(/([0-9]+)ms/);if(a)return a[1]}return e==="origin"&&["top","right","left","center","bottom"].includes(s[s.indexOf(e)+2])?[i,s[s.indexOf(e)+2]].join(" "):i}var it=!1;function st(s,e=()=>{}){return(...t)=>it?e(...t):s(...t)}function jc(s){return(...e)=>it&&s(...e)}var mn=[];function Ji(s){mn.push(s)}function Gc(s,e){mn.forEach(t=>t(s,e)),it=!0,vn(()=>{$e(e,(t,i)=>{i(t,()=>{})})}),it=!1}var Wa=!1;function Vc(s,e){e._x_dataStack||(e._x_dataStack=s._x_dataStack),it=!0,Wa=!0,vn(()=>{$c(e)}),it=!1,Wa=!1}function $c(s){let e=!1;$e(s,(i,a)=>{xt(i,(r,n)=>{if(e&&Ec(r))return n();e=!0,a(r,n)})})}function vn(s){let e=bt;Sr((t,i)=>{let a=e(t);return It(a),()=>{}}),s(),Sr(e)}function yn(s,e,t,i=[]){switch(s._x_bindings||(s._x_bindings=Pt({})),s._x_bindings[e]=t,e=i.includes("camel")?th(e):e,e){case"value":Uc(s,t);break;case"style":Zc(s,t);break;case"class":qc(s,t);break;case"selected":case"checked":Kc(s,e,t);break;default:wn(s,e,t);break}}function Uc(s,e){if(Sn(s))s.attributes.value===void 0&&(s.value=e),window.fromModel&&(typeof e=="boolean"?s.checked=Gi(s.value)===e:s.checked=Lr(s.value,e));else if(os(s))Number.isInteger(e)?s.value=e:!Array.isArray(e)&&typeof e!="boolean"&&![null,void 0].includes(e)?s.value=String(e):Array.isArray(e)?s.checked=e.some(t=>Lr(t,s.value)):s.checked=!!e;else if(s.tagName==="SELECT")eh(s,e);else{if(s.value===e)return;s.value=e===void 0?"":e}}function qc(s,e){s._x_undoAddedClasses&&s._x_undoAddedClasses(),s._x_undoAddedClasses=ns(s,e)}function Zc(s,e){s._x_undoAddedStyles&&s._x_undoAddedStyles(),s._x_undoAddedStyles=Ki(s,e)}function Kc(s,e,t){wn(s,e,t),Qc(s,e,t)}function wn(s,e,t){[null,void 0,!1].includes(t)&&ah(e)?s.removeAttribute(e):(kn(e)&&(t=e),Jc(s,e,t))}function Jc(s,e,t){s.getAttribute(e)!=t&&s.setAttribute(e,t)}function Qc(s,e,t){s[e]!==t&&(s[e]=t)}function eh(s,e){let t=[].concat(e).map(i=>i+"");Array.from(s.options).forEach(i=>{i.selected=t.includes(i.value)})}function th(s){return s.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function Lr(s,e){return s==e}function Gi(s){return[1,"1","true","on","yes",!0].includes(s)?!0:[0,"0","false","off","no",!1].includes(s)?!1:s?!!s:null}var ih=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function kn(s){return ih.has(s)}function ah(s){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(s)}function sh(s,e,t){return s._x_bindings&&s._x_bindings[e]!==void 0?s._x_bindings[e]:An(s,e,t)}function rh(s,e,t,i=!0){if(s._x_bindings&&s._x_bindings[e]!==void 0)return s._x_bindings[e];if(s._x_inlineBindings&&s._x_inlineBindings[e]!==void 0){let a=s._x_inlineBindings[e];return a.extract=i,Kr(()=>gt(s,a.expression))}return An(s,e,t)}function An(s,e,t){let i=s.getAttribute(e);return i===null?typeof t=="function"?t():t:i===""?!0:kn(e)?!![e,"true"].includes(i):i}function os(s){return s.type==="checkbox"||s.localName==="ui-checkbox"||s.localName==="ui-switch"}function Sn(s){return s.type==="radio"||s.localName==="ui-radio"}function Cn(s,e){var t;return function(){var i=this,a=arguments,r=function(){t=null,s.apply(i,a)};clearTimeout(t),t=setTimeout(r,e)}}function Mn(s,e){let t;return function(){let i=this,a=arguments;t||(s.apply(i,a),t=!0,setTimeout(()=>t=!1,e))}}function Ln({get:s,set:e},{get:t,set:i}){let a=!0,r,n,o=bt(()=>{let l=s(),c=t();if(a)i(La(l)),a=!1;else{let h=JSON.stringify(l),d=JSON.stringify(c);h!==r?i(La(l)):h!==d&&e(La(c))}r=JSON.stringify(s()),n=JSON.stringify(t())});return()=>{It(o)}}function La(s){return typeof s=="object"?JSON.parse(JSON.stringify(s)):s}function nh(s){(Array.isArray(s)?s:[s]).forEach(t=>t(ui))}var ht={},_r=!1;function oh(s,e){if(_r||(ht=Pt(ht),_r=!0),e===void 0)return ht[s];ht[s]=e,Ur(ht[s]),typeof e=="object"&&e!==null&&e.hasOwnProperty("init")&&typeof e.init=="function"&&ht[s].init()}function lh(){return ht}var _n={};function ch(s,e){let t=typeof e!="function"?()=>e:e;return s instanceof Element?Pn(s,t()):(_n[s]=t,()=>{})}function hh(s){return Object.entries(_n).forEach(([e,t])=>{Object.defineProperty(s,e,{get(){return(...i)=>t(...i)}})}),s}function Pn(s,e,t){let i=[];for(;i.length;)i.pop()();let a=Object.entries(e).map(([n,o])=>({name:n,value:o})),r=en(a);return a=a.map(n=>r.find(o=>o.name===n.name)?{name:`x-bind:${n.name}`,value:`"${n.value}"`}:n),ts(s,a,t).map(n=>{i.push(n.runCleanups),n()}),()=>{for(;i.length;)i.pop()()}}var In={};function dh(s,e){In[s]=e}function uh(s,e){return Object.entries(In).forEach(([t,i])=>{Object.defineProperty(s,t,{get(){return(...a)=>i.bind(e)(...a)},enumerable:!1})}),s}var gh={get reactive(){return Pt},get release(){return It},get effect(){return bt},get raw(){return Dr},version:"3.14.9",flushAndStopDeferringMutations:pc,dontAutoEvaluateFunctions:Kr,disableEffectScheduling:lc,startObservingMutations:Ka,stopObservingMutations:Vr,setReactivityEngine:cc,onAttributeRemoved:jr,onAttributesAdded:Wr,closestDataStack:Lt,skipDuringClone:st,onlyDuringClone:jc,addRootSelector:gn,addInitSelector:fn,interceptClone:Ji,addScopeToNode:hi,deferMutations:fc,mapAttributes:is,evaluateLater:Ae,interceptInit:Oc,setEvaluator:wc,mergeProxies:di,extractProp:rh,findClosest:Et,onElRemoved:Ua,closestRoot:Zi,destroyTree:Ot,interceptor:qr,transition:Ba,setStyles:Ki,mutateDom:ue,directive:pe,entangle:Ln,throttle:Mn,debounce:Cn,evaluate:gt,initTree:$e,nextTick:rs,prefixed:Tt,prefix:Cc,plugin:nh,magic:Ye,store:oh,start:Tc,clone:Vc,cloneNode:Gc,bound:sh,$data:$r,watch:Fr,walk:xt,data:dh,bind:ch},ui=gh;function Tn(s,e){let t=Object.create(null),i=s.split(",");for(let a=0;a<i.length;a++)t[i[a]]=!0;return e?a=>!!t[a.toLowerCase()]:a=>!!t[a]}var fh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Qu=Tn(fh+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),ph=Object.freeze({}),eg=Object.freeze([]),xh=Object.prototype.hasOwnProperty,Qi=(s,e)=>xh.call(s,e),ft=Array.isArray,li=s=>En(s)==="[object Map]",bh=s=>typeof s=="string",ls=s=>typeof s=="symbol",ea=s=>s!==null&&typeof s=="object",mh=Object.prototype.toString,En=s=>mh.call(s),On=s=>En(s).slice(8,-1),cs=s=>bh(s)&&s!=="NaN"&&s[0]!=="-"&&""+parseInt(s,10)===s,ta=s=>{let e=Object.create(null);return t=>e[t]||(e[t]=s(t))},vh=/-(\w)/g,tg=ta(s=>s.replace(vh,(e,t)=>t?t.toUpperCase():"")),yh=/\B([A-Z])/g,ig=ta(s=>s.replace(yh,"-$1").toLowerCase()),zn=ta(s=>s.charAt(0).toUpperCase()+s.slice(1)),ag=ta(s=>s?`on${zn(s)}`:""),Rn=(s,e)=>s!==e&&(s===s||e===e),ja=new WeakMap,ri=[],We,pt=Symbol("iterate"),Ga=Symbol("Map key iterate");function wh(s){return s&&s._isEffect===!0}function kh(s,e=ph){wh(s)&&(s=s.raw);let t=Ch(s,e);return e.lazy||t(),t}function Ah(s){s.active&&(Hn(s),s.options.onStop&&s.options.onStop(),s.active=!1)}var Sh=0;function Ch(s,e){let t=function(){if(!t.active)return s();if(!ri.includes(t)){Hn(t);try{return Lh(),ri.push(t),We=t,s()}finally{ri.pop(),Xn(),We=ri[ri.length-1]}}};return t.id=Sh++,t.allowRecurse=!!e.allowRecurse,t._isEffect=!0,t.active=!0,t.raw=s,t.deps=[],t.options=e,t}function Hn(s){let{deps:e}=s;if(e.length){for(let t=0;t<e.length;t++)e[t].delete(s);e.length=0}}var _t=!0,hs=[];function Mh(){hs.push(_t),_t=!1}function Lh(){hs.push(_t),_t=!0}function Xn(){let s=hs.pop();_t=s===void 0?!0:s}function Fe(s,e,t){if(!_t||We===void 0)return;let i=ja.get(s);i||ja.set(s,i=new Map);let a=i.get(t);a||i.set(t,a=new Set),a.has(We)||(a.add(We),We.deps.push(a),We.options.onTrack&&We.options.onTrack({effect:We,target:s,type:e,key:t}))}function at(s,e,t,i,a,r){let n=ja.get(s);if(!n)return;let o=new Set,l=h=>{h&&h.forEach(d=>{(d!==We||d.allowRecurse)&&o.add(d)})};if(e==="clear")n.forEach(l);else if(t==="length"&&ft(s))n.forEach((h,d)=>{(d==="length"||d>=i)&&l(h)});else switch(t!==void 0&&l(n.get(t)),e){case"add":ft(s)?cs(t)&&l(n.get("length")):(l(n.get(pt)),li(s)&&l(n.get(Ga)));break;case"delete":ft(s)||(l(n.get(pt)),li(s)&&l(n.get(Ga)));break;case"set":li(s)&&l(n.get(pt));break}let c=h=>{h.options.onTrigger&&h.options.onTrigger({effect:h,target:s,key:t,type:e,newValue:i,oldValue:a,oldTarget:r}),h.options.scheduler?h.options.scheduler(h):h()};o.forEach(c)}var _h=Tn("__proto__,__v_isRef,__isVue"),Dn=new Set(Object.getOwnPropertyNames(Symbol).map(s=>Symbol[s]).filter(ls)),Ph=Fn(),Ih=Fn(!0),Pr=Th();function Th(){let s={};return["includes","indexOf","lastIndexOf"].forEach(e=>{s[e]=function(...t){let i=de(this);for(let r=0,n=this.length;r<n;r++)Fe(i,"get",r+"");let a=i[e](...t);return a===-1||a===!1?i[e](...t.map(de)):a}}),["push","pop","shift","unshift","splice"].forEach(e=>{s[e]=function(...t){Mh();let i=de(this)[e].apply(this,t);return Xn(),i}}),s}function Fn(s=!1,e=!1){return function(i,a,r){if(a==="__v_isReactive")return!s;if(a==="__v_isReadonly")return s;if(a==="__v_raw"&&r===(s?e?$h:Wn:e?Vh:Bn).get(i))return i;let n=ft(i);if(!s&&n&&Qi(Pr,a))return Reflect.get(Pr,a,r);let o=Reflect.get(i,a,r);return(ls(a)?Dn.has(a):_h(a))||(s||Fe(i,"get",a),e)?o:Va(o)?!n||!cs(a)?o.value:o:ea(o)?s?jn(o):fs(o):o}}var Eh=Oh();function Oh(s=!1){return function(t,i,a,r){let n=t[i];if(!s&&(a=de(a),n=de(n),!ft(t)&&Va(n)&&!Va(a)))return n.value=a,!0;let o=ft(t)&&cs(i)?Number(i)<t.length:Qi(t,i),l=Reflect.set(t,i,a,r);return t===de(r)&&(o?Rn(a,n)&&at(t,"set",i,a,n):at(t,"add",i,a)),l}}function zh(s,e){let t=Qi(s,e),i=s[e],a=Reflect.deleteProperty(s,e);return a&&t&&at(s,"delete",e,void 0,i),a}function Rh(s,e){let t=Reflect.has(s,e);return(!ls(e)||!Dn.has(e))&&Fe(s,"has",e),t}function Hh(s){return Fe(s,"iterate",ft(s)?"length":pt),Reflect.ownKeys(s)}var Xh={get:Ph,set:Eh,deleteProperty:zh,has:Rh,ownKeys:Hh},Dh={get:Ih,set(s,e){return console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,s),!0},deleteProperty(s,e){return console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,s),!0}},ds=s=>ea(s)?fs(s):s,us=s=>ea(s)?jn(s):s,gs=s=>s,ia=s=>Reflect.getPrototypeOf(s);function Fi(s,e,t=!1,i=!1){s=s.__v_raw;let a=de(s),r=de(e);e!==r&&!t&&Fe(a,"get",e),!t&&Fe(a,"get",r);let{has:n}=ia(a),o=i?gs:t?us:ds;if(n.call(a,e))return o(s.get(e));if(n.call(a,r))return o(s.get(r));s!==a&&s.get(e)}function Yi(s,e=!1){let t=this.__v_raw,i=de(t),a=de(s);return s!==a&&!e&&Fe(i,"has",s),!e&&Fe(i,"has",a),s===a?t.has(s):t.has(s)||t.has(a)}function Ni(s,e=!1){return s=s.__v_raw,!e&&Fe(de(s),"iterate",pt),Reflect.get(s,"size",s)}function Ir(s){s=de(s);let e=de(this);return ia(e).has.call(e,s)||(e.add(s),at(e,"add",s,s)),this}function Tr(s,e){e=de(e);let t=de(this),{has:i,get:a}=ia(t),r=i.call(t,s);r?Nn(t,i,s):(s=de(s),r=i.call(t,s));let n=a.call(t,s);return t.set(s,e),r?Rn(e,n)&&at(t,"set",s,e,n):at(t,"add",s,e),this}function Er(s){let e=de(this),{has:t,get:i}=ia(e),a=t.call(e,s);a?Nn(e,t,s):(s=de(s),a=t.call(e,s));let r=i?i.call(e,s):void 0,n=e.delete(s);return a&&at(e,"delete",s,void 0,r),n}function Or(){let s=de(this),e=s.size!==0,t=li(s)?new Map(s):new Set(s),i=s.clear();return e&&at(s,"clear",void 0,void 0,t),i}function Bi(s,e){return function(i,a){let r=this,n=r.__v_raw,o=de(n),l=e?gs:s?us:ds;return!s&&Fe(o,"iterate",pt),n.forEach((c,h)=>i.call(a,l(c),l(h),r))}}function Wi(s,e,t){return function(...i){let a=this.__v_raw,r=de(a),n=li(r),o=s==="entries"||s===Symbol.iterator&&n,l=s==="keys"&&n,c=a[s](...i),h=t?gs:e?us:ds;return!e&&Fe(r,"iterate",l?Ga:pt),{next(){let{value:d,done:u}=c.next();return u?{value:d,done:u}:{value:o?[h(d[0]),h(d[1])]:h(d),done:u}},[Symbol.iterator](){return this}}}}function tt(s){return function(...e){{let t=e[0]?`on key "${e[0]}" `:"";console.warn(`${zn(s)} operation ${t}failed: target is readonly.`,de(this))}return s==="delete"?!1:this}}function Fh(){let s={get(r){return Fi(this,r)},get size(){return Ni(this)},has:Yi,add:Ir,set:Tr,delete:Er,clear:Or,forEach:Bi(!1,!1)},e={get(r){return Fi(this,r,!1,!0)},get size(){return Ni(this)},has:Yi,add:Ir,set:Tr,delete:Er,clear:Or,forEach:Bi(!1,!0)},t={get(r){return Fi(this,r,!0)},get size(){return Ni(this,!0)},has(r){return Yi.call(this,r,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:Bi(!0,!1)},i={get(r){return Fi(this,r,!0,!0)},get size(){return Ni(this,!0)},has(r){return Yi.call(this,r,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:Bi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Wi(r,!1,!1),t[r]=Wi(r,!0,!1),e[r]=Wi(r,!1,!0),i[r]=Wi(r,!0,!0)}),[s,t,e,i]}var[Yh,Nh,Bh,Wh]=Fh();function Yn(s,e){let t=e?s?Wh:Bh:s?Nh:Yh;return(i,a,r)=>a==="__v_isReactive"?!s:a==="__v_isReadonly"?s:a==="__v_raw"?i:Reflect.get(Qi(t,a)&&a in i?t:i,a,r)}var jh={get:Yn(!1,!1)},Gh={get:Yn(!0,!1)};function Nn(s,e,t){let i=de(t);if(i!==t&&e.call(s,i)){let a=On(s);console.warn(`Reactive ${a} contains both the raw and reactive versions of the same object${a==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Bn=new WeakMap,Vh=new WeakMap,Wn=new WeakMap,$h=new WeakMap;function Uh(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qh(s){return s.__v_skip||!Object.isExtensible(s)?0:Uh(On(s))}function fs(s){return s&&s.__v_isReadonly?s:Gn(s,!1,Xh,jh,Bn)}function jn(s){return Gn(s,!0,Dh,Gh,Wn)}function Gn(s,e,t,i,a){if(!ea(s))return console.warn(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(e&&s.__v_isReactive))return s;let r=a.get(s);if(r)return r;let n=qh(s);if(n===0)return s;let o=new Proxy(s,n===2?i:t);return a.set(s,o),o}function de(s){return s&&de(s.__v_raw)||s}function Va(s){return!!(s&&s.__v_isRef===!0)}Ye("nextTick",()=>rs);Ye("dispatch",s=>oi.bind(oi,s));Ye("watch",(s,{evaluateLater:e,cleanup:t})=>(i,a)=>{let r=e(i),o=Fr(()=>{let l;return r(c=>l=c),l},a);t(o)});Ye("store",lh);Ye("data",s=>$r(s));Ye("root",s=>Zi(s));Ye("refs",s=>(s._x_refs_proxy||(s._x_refs_proxy=di(Zh(s))),s._x_refs_proxy));function Zh(s){let e=[];return Et(s,t=>{t._x_refs&&e.push(t._x_refs)}),e}var _a={};function Vn(s){return _a[s]||(_a[s]=0),++_a[s]}function Kh(s,e){return Et(s,t=>{if(t._x_ids&&t._x_ids[e])return!0})}function Jh(s,e){s._x_ids||(s._x_ids={}),s._x_ids[e]||(s._x_ids[e]=Vn(e))}Ye("id",(s,{cleanup:e})=>(t,i=null)=>{let a=`${t}${i?`-${i}`:""}`;return Qh(s,a,e,()=>{let r=Kh(s,t),n=r?r._x_ids[t]:Vn(t);return i?`${t}-${n}-${i}`:`${t}-${n}`})});Ji((s,e)=>{s._x_id&&(e._x_id=s._x_id)});function Qh(s,e,t,i){if(s._x_id||(s._x_id={}),s._x_id[e])return s._x_id[e];let a=i();return s._x_id[e]=a,t(()=>{delete s._x_id[e]}),a}Ye("el",s=>s);$n("Focus","focus","focus");$n("Persist","persist","persist");function $n(s,e,t){Ye(e,i=>Ee(`You can't use [$${e}] without first installing the "${s}" plugin here: https://alpinejs.dev/plugins/${t}`,i))}pe("modelable",(s,{expression:e},{effect:t,evaluateLater:i,cleanup:a})=>{let r=i(e),n=()=>{let h;return r(d=>h=d),h},o=i(`${e} = __placeholder`),l=h=>o(()=>{},{scope:{__placeholder:h}}),c=n();l(c),queueMicrotask(()=>{if(!s._x_model)return;s._x_removeModelListeners.default();let h=s._x_model.get,d=s._x_model.set,u=Ln({get(){return h()},set(g){d(g)}},{get(){return n()},set(g){l(g)}});a(u)})});pe("teleport",(s,{modifiers:e,expression:t},{cleanup:i})=>{s.tagName.toLowerCase()!=="template"&&Ee("x-teleport can only be used on a <template> tag",s);let a=zr(t),r=s.content.cloneNode(!0).firstElementChild;s._x_teleport=r,r._x_teleportBack=s,s.setAttribute("data-teleport-template",!0),r.setAttribute("data-teleport-target",!0),s._x_forwardEvents&&s._x_forwardEvents.forEach(o=>{r.addEventListener(o,l=>{l.stopPropagation(),s.dispatchEvent(new l.constructor(l.type,l))})}),hi(r,{},s);let n=(o,l,c)=>{c.includes("prepend")?l.parentNode.insertBefore(o,l):c.includes("append")?l.parentNode.insertBefore(o,l.nextSibling):l.appendChild(o)};ue(()=>{n(r,a,e),st(()=>{$e(r)})()}),s._x_teleportPutBack=()=>{let o=zr(t);ue(()=>{n(s._x_teleport,o,e)})},i(()=>ue(()=>{r.remove(),Ot(r)}))});var ed=document.createElement("div");function zr(s){let e=st(()=>document.querySelector(s),()=>ed)();return e||Ee(`Cannot find x-teleport element for selector: "${s}"`),e}var Un=()=>{};Un.inline=(s,{modifiers:e},{cleanup:t})=>{e.includes("self")?s._x_ignoreSelf=!0:s._x_ignore=!0,t(()=>{e.includes("self")?delete s._x_ignoreSelf:delete s._x_ignore})};pe("ignore",Un);pe("effect",st((s,{expression:e},{effect:t})=>{t(Ae(s,e))}));function $a(s,e,t,i){let a=s,r=l=>i(l),n={},o=(l,c)=>h=>c(l,h);if(t.includes("dot")&&(e=td(e)),t.includes("camel")&&(e=id(e)),t.includes("passive")&&(n.passive=!0),t.includes("capture")&&(n.capture=!0),t.includes("window")&&(a=window),t.includes("document")&&(a=document),t.includes("debounce")){let l=t[t.indexOf("debounce")+1]||"invalid-wait",c=qi(l.split("ms")[0])?Number(l.split("ms")[0]):250;r=Cn(r,c)}if(t.includes("throttle")){let l=t[t.indexOf("throttle")+1]||"invalid-wait",c=qi(l.split("ms")[0])?Number(l.split("ms")[0]):250;r=Mn(r,c)}return t.includes("prevent")&&(r=o(r,(l,c)=>{c.preventDefault(),l(c)})),t.includes("stop")&&(r=o(r,(l,c)=>{c.stopPropagation(),l(c)})),t.includes("once")&&(r=o(r,(l,c)=>{l(c),a.removeEventListener(e,r,n)})),(t.includes("away")||t.includes("outside"))&&(a=document,r=o(r,(l,c)=>{s.contains(c.target)||c.target.isConnected!==!1&&(s.offsetWidth<1&&s.offsetHeight<1||s._x_isShown!==!1&&l(c))})),t.includes("self")&&(r=o(r,(l,c)=>{c.target===s&&l(c)})),(sd(e)||qn(e))&&(r=o(r,(l,c)=>{rd(c,t)||l(c)})),a.addEventListener(e,r,n),()=>{a.removeEventListener(e,r,n)}}function td(s){return s.replace(/-/g,".")}function id(s){return s.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function qi(s){return!Array.isArray(s)&&!isNaN(s)}function ad(s){return[" ","_"].includes(s)?s:s.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function sd(s){return["keydown","keyup"].includes(s)}function qn(s){return["contextmenu","click","mouse"].some(e=>s.includes(e))}function rd(s,e){let t=e.filter(r=>!["window","document","prevent","stop","once","capture","self","away","outside","passive"].includes(r));if(t.includes("debounce")){let r=t.indexOf("debounce");t.splice(r,qi((t[r+1]||"invalid-wait").split("ms")[0])?2:1)}if(t.includes("throttle")){let r=t.indexOf("throttle");t.splice(r,qi((t[r+1]||"invalid-wait").split("ms")[0])?2:1)}if(t.length===0||t.length===1&&Rr(s.key).includes(t[0]))return!1;let a=["ctrl","shift","alt","meta","cmd","super"].filter(r=>t.includes(r));return t=t.filter(r=>!a.includes(r)),!(a.length>0&&a.filter(n=>((n==="cmd"||n==="super")&&(n="meta"),s[`${n}Key`])).length===a.length&&(qn(s.type)||Rr(s.key).includes(t[0])))}function Rr(s){if(!s)return[];s=ad(s);let e={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return e[s]=s,Object.keys(e).map(t=>{if(e[t]===s)return t}).filter(t=>t)}pe("model",(s,{modifiers:e,expression:t},{effect:i,cleanup:a})=>{let r=s;e.includes("parent")&&(r=s.parentNode);let n=Ae(r,t),o;typeof t=="string"?o=Ae(r,`${t} = __placeholder`):typeof t=="function"&&typeof t()=="string"?o=Ae(r,`${t()} = __placeholder`):o=()=>{};let l=()=>{let u;return n(g=>u=g),Hr(u)?u.get():u},c=u=>{let g;n(p=>g=p),Hr(g)?g.set(u):o(()=>{},{scope:{__placeholder:u}})};typeof t=="string"&&s.type==="radio"&&ue(()=>{s.hasAttribute("name")||s.setAttribute("name",t)});var h=s.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(s.type)||e.includes("lazy")?"change":"input";let d=it?()=>{}:$a(s,h,e,u=>{c(Pa(s,e,u,l()))});if(e.includes("fill")&&([void 0,null,""].includes(l())||os(s)&&Array.isArray(l())||s.tagName.toLowerCase()==="select"&&s.multiple)&&c(Pa(s,e,{target:s},l())),s._x_removeModelListeners||(s._x_removeModelListeners={}),s._x_removeModelListeners.default=d,a(()=>s._x_removeModelListeners.default()),s.form){let u=$a(s.form,"reset",[],g=>{rs(()=>s._x_model&&s._x_model.set(Pa(s,e,{target:s},l())))});a(()=>u())}s._x_model={get(){return l()},set(u){c(u)}},s._x_forceModelUpdate=u=>{u===void 0&&typeof t=="string"&&t.match(/\./)&&(u=""),window.fromModel=!0,ue(()=>yn(s,"value",u)),delete window.fromModel},i(()=>{let u=l();e.includes("unintrusive")&&document.activeElement.isSameNode(s)||s._x_forceModelUpdate(u)})});function Pa(s,e,t,i){return ue(()=>{if(t instanceof CustomEvent&&t.detail!==void 0)return t.detail!==null&&t.detail!==void 0?t.detail:t.target.value;if(os(s))if(Array.isArray(i)){let a=null;return e.includes("number")?a=Ia(t.target.value):e.includes("boolean")?a=Gi(t.target.value):a=t.target.value,t.target.checked?i.includes(a)?i:i.concat([a]):i.filter(r=>!nd(r,a))}else return t.target.checked;else{if(s.tagName.toLowerCase()==="select"&&s.multiple)return e.includes("number")?Array.from(t.target.selectedOptions).map(a=>{let r=a.value||a.text;return Ia(r)}):e.includes("boolean")?Array.from(t.target.selectedOptions).map(a=>{let r=a.value||a.text;return Gi(r)}):Array.from(t.target.selectedOptions).map(a=>a.value||a.text);{let a;return Sn(s)?t.target.checked?a=t.target.value:a=i:a=t.target.value,e.includes("number")?Ia(a):e.includes("boolean")?Gi(a):e.includes("trim")?a.trim():a}}})}function Ia(s){let e=s?parseFloat(s):null;return od(e)?e:s}function nd(s,e){return s==e}function od(s){return!Array.isArray(s)&&!isNaN(s)}function Hr(s){return s!==null&&typeof s=="object"&&typeof s.get=="function"&&typeof s.set=="function"}pe("cloak",s=>queueMicrotask(()=>ue(()=>s.removeAttribute(Tt("cloak")))));fn(()=>`[${Tt("init")}]`);pe("init",st((s,{expression:e},{evaluate:t})=>typeof e=="string"?!!e.trim()&&t(e,{},!1):t(e,{},!1)));pe("text",(s,{expression:e},{effect:t,evaluateLater:i})=>{let a=i(e);t(()=>{a(r=>{ue(()=>{s.textContent=r})})})});pe("html",(s,{expression:e},{effect:t,evaluateLater:i})=>{let a=i(e);t(()=>{a(r=>{ue(()=>{s.innerHTML=r,s._x_ignoreSelf=!0,$e(s),delete s._x_ignoreSelf})})})});is(sn(":",rn(Tt("bind:"))));var Zn=(s,{value:e,modifiers:t,expression:i,original:a},{effect:r,cleanup:n})=>{if(!e){let l={};hh(l),Ae(s,i)(h=>{Pn(s,h,a)},{scope:l});return}if(e==="key")return ld(s,i);if(s._x_inlineBindings&&s._x_inlineBindings[e]&&s._x_inlineBindings[e].extract)return;let o=Ae(s,i);r(()=>o(l=>{l===void 0&&typeof i=="string"&&i.match(/\./)&&(l=""),ue(()=>yn(s,e,l,t))})),n(()=>{s._x_undoAddedClasses&&s._x_undoAddedClasses(),s._x_undoAddedStyles&&s._x_undoAddedStyles()})};Zn.inline=(s,{value:e,modifiers:t,expression:i})=>{e&&(s._x_inlineBindings||(s._x_inlineBindings={}),s._x_inlineBindings[e]={expression:i,extract:!1})};pe("bind",Zn);function ld(s,e){s._x_keyExpression=e}gn(()=>`[${Tt("data")}]`);pe("data",(s,{expression:e},{cleanup:t})=>{if(cd(s))return;e=e===""?"{}":e;let i={};Ha(i,s);let a={};uh(a,i);let r=gt(s,e,{scope:a});(r===void 0||r===!0)&&(r={}),Ha(r,s);let n=Pt(r);Ur(n);let o=hi(s,n);n.init&>(s,n.init),t(()=>{n.destroy&>(s,n.destroy),o()})});Ji((s,e)=>{s._x_dataStack&&(e._x_dataStack=s._x_dataStack,e.setAttribute("data-has-alpine-state",!0))});function cd(s){return it?Wa?!0:s.hasAttribute("data-has-alpine-state"):!1}pe("show",(s,{modifiers:e,expression:t},{effect:i})=>{let a=Ae(s,t);s._x_doHide||(s._x_doHide=()=>{ue(()=>{s.style.setProperty("display","none",e.includes("important")?"important":void 0)})}),s._x_doShow||(s._x_doShow=()=>{ue(()=>{s.style.length===1&&s.style.display==="none"?s.removeAttribute("style"):s.style.removeProperty("display")})});let r=()=>{s._x_doHide(),s._x_isShown=!1},n=()=>{s._x_doShow(),s._x_isShown=!0},o=()=>setTimeout(n),l=Na(d=>d?n():r(),d=>{typeof s._x_toggleAndCascadeWithTransitions=="function"?s._x_toggleAndCascadeWithTransitions(s,d,n,r):d?o():r()}),c,h=!0;i(()=>a(d=>{!h&&d===c||(e.includes("immediate")&&(d?o():r()),l(d),c=d,h=!1)}))});pe("for",(s,{expression:e},{effect:t,cleanup:i})=>{let a=dd(e),r=Ae(s,a.items),n=Ae(s,s._x_keyExpression||"index");s._x_prevKeys=[],s._x_lookup={},t(()=>hd(s,a,r,n)),i(()=>{Object.values(s._x_lookup).forEach(o=>ue(()=>{Ot(o),o.remove()})),delete s._x_prevKeys,delete s._x_lookup})});function hd(s,e,t,i){let a=n=>typeof n=="object"&&!Array.isArray(n),r=s;t(n=>{ud(n)&&n>=0&&(n=Array.from(Array(n).keys(),x=>x+1)),n===void 0&&(n=[]);let o=s._x_lookup,l=s._x_prevKeys,c=[],h=[];if(a(n))n=Object.entries(n).map(([x,b])=>{let m=Xr(e,b,x,n);i(v=>{h.includes(v)&&Ee("Duplicate key on x-for",s),h.push(v)},{scope:{index:x,...m}}),c.push(m)});else for(let x=0;x<n.length;x++){let b=Xr(e,n[x],x,n);i(m=>{h.includes(m)&&Ee("Duplicate key on x-for",s),h.push(m)},{scope:{index:x,...b}}),c.push(b)}let d=[],u=[],g=[],p=[];for(let x=0;x<l.length;x++){let b=l[x];h.indexOf(b)===-1&&g.push(b)}l=l.filter(x=>!g.includes(x));let f="template";for(let x=0;x<h.length;x++){let b=h[x],m=l.indexOf(b);if(m===-1)l.splice(x,0,b),d.push([f,x]);else if(m!==x){let v=l.splice(x,1)[0],A=l.splice(m-1,1)[0];l.splice(x,0,A),l.splice(m,0,v),u.push([v,A])}else p.push(b);f=b}for(let x=0;x<g.length;x++){let b=g[x];b in o&&(ue(()=>{Ot(o[b]),o[b].remove()}),delete o[b])}for(let x=0;x<u.length;x++){let[b,m]=u[x],v=o[b],A=o[m],y=document.createElement("div");ue(()=>{A||Ee('x-for ":key" is undefined or invalid',r,m,o),A.after(y),v.after(A),A._x_currentIfEl&&A.after(A._x_currentIfEl),y.before(v),v._x_currentIfEl&&v.after(v._x_currentIfEl),y.remove()}),A._x_refreshXForScope(c[h.indexOf(m)])}for(let x=0;x<d.length;x++){let[b,m]=d[x],v=b==="template"?r:o[b];v._x_currentIfEl&&(v=v._x_currentIfEl);let A=c[m],y=h[m],S=document.importNode(r.content,!0).firstElementChild,w=Pt(A);hi(S,w,r),S._x_refreshXForScope=k=>{Object.entries(k).forEach(([M,O])=>{w[M]=O})},ue(()=>{v.after(S),st(()=>$e(S))()}),typeof y=="object"&&Ee("x-for key cannot be an object, it must be a string or an integer",r),o[y]=S}for(let x=0;x<p.length;x++)o[p[x]]._x_refreshXForScope(c[h.indexOf(p[x])]);r._x_prevKeys=h})}function dd(s){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,t=/^\s*\(|\)\s*$/g,i=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,a=s.match(i);if(!a)return;let r={};r.items=a[2].trim();let n=a[1].replace(t,"").trim(),o=n.match(e);return o?(r.item=n.replace(e,"").trim(),r.index=o[1].trim(),o[2]&&(r.collection=o[2].trim())):r.item=n,r}function Xr(s,e,t,i){let a={};return/^\[.*\]$/.test(s.item)&&Array.isArray(e)?s.item.replace("[","").replace("]","").split(",").map(n=>n.trim()).forEach((n,o)=>{a[n]=e[o]}):/^\{.*\}$/.test(s.item)&&!Array.isArray(e)&&typeof e=="object"?s.item.replace("{","").replace("}","").split(",").map(n=>n.trim()).forEach(n=>{a[n]=e[n]}):a[s.item]=e,s.index&&(a[s.index]=t),s.collection&&(a[s.collection]=i),a}function ud(s){return!Array.isArray(s)&&!isNaN(s)}function Kn(){}Kn.inline=(s,{expression:e},{cleanup:t})=>{let i=Zi(s);i._x_refs||(i._x_refs={}),i._x_refs[e]=s,t(()=>delete i._x_refs[e])};pe("ref",Kn);pe("if",(s,{expression:e},{effect:t,cleanup:i})=>{s.tagName.toLowerCase()!=="template"&&Ee("x-if can only be used on a <template> tag",s);let a=Ae(s,e),r=()=>{if(s._x_currentIfEl)return s._x_currentIfEl;let o=s.content.cloneNode(!0).firstElementChild;return hi(o,{},s),ue(()=>{s.after(o),st(()=>$e(o))()}),s._x_currentIfEl=o,s._x_undoIf=()=>{ue(()=>{Ot(o),o.remove()}),delete s._x_currentIfEl},o},n=()=>{s._x_undoIf&&(s._x_undoIf(),delete s._x_undoIf)};t(()=>a(o=>{o?r():n()})),i(()=>s._x_undoIf&&s._x_undoIf())});pe("id",(s,{expression:e},{evaluate:t})=>{t(e).forEach(a=>Jh(s,a))});Ji((s,e)=>{s._x_ids&&(e._x_ids=s._x_ids)});is(sn("@",rn(Tt("on:"))));pe("on",st((s,{value:e,modifiers:t,expression:i},{cleanup:a})=>{let r=i?Ae(s,i):()=>{};s.tagName.toLowerCase()==="template"&&(s._x_forwardEvents||(s._x_forwardEvents=[]),s._x_forwardEvents.includes(e)||s._x_forwardEvents.push(e));let n=$a(s,e,t,o=>{r(()=>{},{scope:{$event:o},params:[o]})});a(()=>n())}));aa("Collapse","collapse","collapse");aa("Intersect","intersect","intersect");aa("Focus","trap","focus");aa("Mask","mask","mask");function aa(s,e,t){pe(e,i=>Ee(`You can't use [x-${e}] without first installing the "${s}" plugin here: https://alpinejs.dev/plugins/${t}`,i))}ui.setEvaluator(Qr);ui.setReactivityEngine({reactive:fs,effect:kh,release:Ah,raw:de});var gd=ui,ps=gd;function _s(s,e){(e==null||e>s.length)&&(e=s.length);for(var t=0,i=Array(e);t<e;t++)i[t]=s[t];return i}function bo(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function N(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")}function Jn(s,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(s,yo(i.key),i)}}function B(s,e,t){return e&&Jn(s.prototype,e),t&&Jn(s,t),Object.defineProperty(s,"prototype",{writable:!1}),s}function fi(s,e){var t=typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(!t){if(Array.isArray(s)||(t=Vs(s))||e&&s&&typeof s.length=="number"){t&&(s=t);var i=0,a=function(){};return{s:a,n:function(){return i>=s.length?{done:!0}:{done:!1,value:s[i++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r,n=!0,o=!1;return{s:function(){t=t.call(s)},n:function(){var l=t.next();return n=l.done,l},e:function(l){o=!0,r=l},f:function(){try{n||t.return==null||t.return()}finally{if(o)throw r}}}}function Ei(s){var e=mo();return function(){var t,i=la(s);if(e){var a=la(this).constructor;t=Reflect.construct(i,arguments,a)}else t=i.apply(this,arguments);return function(r,n){if(n&&(typeof n=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bo(r)}(this,t)}}function oa(s,e,t){return(e=yo(e))in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}function la(s){return la=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},la(s)}function Oi(s,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),e&&Ps(s,e)}function mo(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mo=function(){return!!s})()}function Qn(s,e){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(s,a).enumerable})),t.push.apply(t,i)}return t}function F(s){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Qn(Object(t),!0).forEach(function(i){oa(s,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):Qn(Object(t)).forEach(function(i){Object.defineProperty(s,i,Object.getOwnPropertyDescriptor(t,i))})}return s}function Ps(s,e){return Ps=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},Ps(s,e)}function vo(s,e){return function(t){if(Array.isArray(t))return t}(s)||function(t,i){var a=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a!=null){var r,n,o,l,c=[],h=!0,d=!1;try{if(o=(a=a.call(t)).next,i===0){if(Object(a)!==a)return;h=!1}else for(;!(h=(r=o.call(a)).done)&&(c.push(r.value),c.length!==i);h=!0);}catch(u){d=!0,n=u}finally{try{if(!h&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(d)throw n}}return c}}(s,e)||Vs(s,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function me(s){return function(e){if(Array.isArray(e))return _s(e)}(s)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(s)||Vs(s)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function yo(s){var e=function(t,i){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,i||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(t)}(s,"string");return typeof e=="symbol"?e:e+""}function Nt(s){return Nt=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},Nt(s)}function Vs(s,e){if(s){if(typeof s=="string")return _s(s,e);var t={}.toString.call(s).slice(8,-1);return t==="Object"&&s.constructor&&(t=s.constructor.name),t==="Map"||t==="Set"?Array.from(s):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_s(s,e):void 0}}var T=function(){function s(){N(this,s)}return B(s,[{key:"shadeRGBColor",value:function(e,t){var i=t.split(","),a=e<0?0:255,r=e<0?-1*e:e,n=parseInt(i[0].slice(4),10),o=parseInt(i[1],10),l=parseInt(i[2],10);return"rgb("+(Math.round((a-n)*r)+n)+","+(Math.round((a-o)*r)+o)+","+(Math.round((a-l)*r)+l)+")"}},{key:"shadeHexColor",value:function(e,t){var i=parseInt(t.slice(1),16),a=e<0?0:255,r=e<0?-1*e:e,n=i>>16,o=i>>8&255,l=255&i;return"#"+(16777216+65536*(Math.round((a-n)*r)+n)+256*(Math.round((a-o)*r)+o)+(Math.round((a-l)*r)+l)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,t){return s.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&&Nt(e)==="object"&&!Array.isArray(e)&&e!=null}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{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(r){if(r==null)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(r),o=1;o<arguments.length;o++){var l=arguments[o];if(l!=null)for(var c in l)l.hasOwnProperty(c)&&(n[c]=l[c])}return n});var a=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach(function(r){i.isObject(t[r])&&r in e?a[r]=i.extend(e[r],t[r]):Object.assign(a,oa({},r,t[r]))}),a}},{key:"extendArray",value:function(e,t){var i=[];return e.map(function(a){i.push(s.extend(t,a))}),e=i}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(e){var t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e===null||Nt(e)!=="object")return e;if(i.has(e))return i.get(e);if(Array.isArray(e)){t=[],i.set(e,t);for(var a=0;a<e.length;a++)t[a]=this.clone(e[a],i)}else if(e instanceof Date)t=new Date(e.getTime());else for(var r in t={},i.set(e,t),e)e.hasOwnProperty(r)&&(t[r]=this.clone(e[r],i));return t}},{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:"stripNumber",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return Number.isInteger(e)?e:parseFloat(e.toPrecision(t))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(e){return e.toString().includes("e")?Math.round(e):e}},{key:"elementExists",value:function(e){return!(!e||!e.isConnected)}},{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,r){return a.length>r.length?a:r})),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,r=0;r<t;r++){var n={};n.x=e*Math.sin(r*a),n.y=-e*Math.cos(r*a),i.push(n)}return i}},{key:"polarToCartesian",value:function(e,t,i,a){var r=(a-90)*Math.PI/180;return{x:e+i*Math.cos(r),y:t+i*Math.sin(r)}}},{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:"preciseAddition",value:function(e,t){var i=(String(e).split(".")[1]||"").length,a=(String(t).split(".")[1]||"").length,r=Math.pow(10,Math.max(i,a));return(Math.round(e*r)+Math.round(t*r))/r}},{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:"isMsEdge",value:function(){var e=window.navigator.userAgent,t=e.indexOf("Edge/");return t>0&&parseInt(e.substring(t+5,e.indexOf(".",t)),10)}},{key:"getGCD",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:7,a=Math.pow(10,i-Math.floor(Math.log10(Math.max(e,t))));for(e=Math.round(Math.abs(e)*a),t=Math.round(Math.abs(t)*a);t;){var r=t;t=e%t,e=r}return e/a}},{key:"getPrimeFactors",value:function(e){for(var t=[],i=2;e>=2;)e%i==0?(t.push(i),e/=i):i++;return t}},{key:"mod",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:7,a=Math.pow(10,i-Math.floor(Math.log10(Math.max(e,t))));return(e=Math.round(Math.abs(e)*a))%(t=Math.round(Math.abs(t)*a))/a}}]),s}(),$t=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{key:"animateLine",value:function(e,t,i,a){e.attr(t).animate(a).attr(i)}},{key:"animateMarker",value:function(e,t,i,a){e.attr({opacity:0}).animate(t).attr({opacity:1}).after(function(){a()})}},{key:"animateRect",value:function(e,t,i,a,r){e.attr(t).animate(a).attr(i).after(function(){return r()})}},{key:"animatePathsGradually",value:function(e){var t=e.el,i=e.realIndex,a=e.j,r=e.fill,n=e.pathFrom,o=e.pathTo,l=e.speed,c=e.delay,h=this.w,d=0;h.config.chart.animations.animateGradually.enabled&&(d=h.config.chart.animations.animateGradually.delay),h.config.chart.animations.dynamicAnimation.enabled&&h.globals.dataChanged&&h.config.chart.type!=="bar"&&(d=0),this.morphSVG(t,i,a,h.config.chart.type!=="line"||h.globals.comboCharts?r:"stroke",n,o,l,c*d)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(e){var t=e.el;t.classList.remove("apexcharts-element-hidden"),t.classList.add("apexcharts-hidden-element-shown")})}},{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,r,n,o,l){var c=this,h=this.w;r||(r=e.attr("pathFrom")),n||(n=e.attr("pathTo"));var d=function(u){return h.config.chart.type==="radar"&&(o=1),"M 0 ".concat(h.globals.gridHeight)};(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=d()),(!n.trim()||n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n=d()),h.globals.shouldAnimate||(o=1),e.plot(r).animate(1,l).plot(r).animate(o,l).plot(n).after(function(){T.isNumber(i)?i===h.globals.series[h.globals.maxValsInArrayIndex].length-2&&h.globals.shouldAnimate&&c.animationCompleted(e):a!=="none"&&h.globals.shouldAnimate&&(!h.globals.comboCharts&&t===h.globals.series.length-1||h.globals.comboCharts)&&c.animationCompleted(e),c.showDelayedElements()})}}]),s}(),Is={},wo=[];function J(s,e){if(Array.isArray(s))for(let t of s)J(t,e);else if(typeof s!="object")ko(Object.getOwnPropertyNames(e)),Is[s]=Object.assign(Is[s]||{},e);else for(let t in s)J(t,s[t])}function _e(s){return Is[s]||{}}function ko(s){wo.push(...s)}function $s(s,e){let t,i=s.length,a=[];for(t=0;t<i;t++)a.push(e(s[t]));return a}function xs(s){return s%360*Math.PI/180}function Ut(s){return s.charAt(0).toUpperCase()+s.slice(1)}function qt(s,e,t,i){return e!=null&&t!=null||(i=i||s.bbox(),e==null?e=i.width/i.height*t:t==null&&(t=i.height/i.width*e)),{width:e,height:t}}function Ts(s,e){let t=s.origin,i=s.ox!=null?s.ox:s.originX!=null?s.originX:"center",a=s.oy!=null?s.oy:s.originY!=null?s.originY:"center";t!=null&&([i,a]=Array.isArray(t)?t:typeof t=="object"?[t.x,t.y]:[t,t]);let r=typeof i=="string",n=typeof a=="string";if(r||n){let{height:o,width:l,x:c,y:h}=e.bbox();r&&(i=i.includes("left")?c:i.includes("right")?c+l:c+l/2),n&&(a=a.includes("top")?h:a.includes("bottom")?h+o:h+o/2)}return[i,a]}var fd=new Set(["desc","metadata","title"]),Es=s=>fd.has(s.nodeName),Ao=(s,e,t={})=>{let i={...e};for(let a in i)i[a].valueOf()===t[a]&&delete i[a];Object.keys(i).length?s.node.setAttribute("data-svgjs",JSON.stringify(i)):(s.node.removeAttribute("data-svgjs"),s.node.removeAttribute("svgjs:data"))},Us="http://www.w3.org/2000/svg",bs="http://www.w3.org/2000/xmlns/",Zt="http://www.w3.org/1999/xlink",ae={window:typeof window>"u"?null:window,document:typeof document>"u"?null:document};function zi(){return ae.window}var qs=class{},wt={},Zs="___SYMBOL___ROOT___";function ki(s,e=Us){return ae.document.createElementNS(e,s)}function Se(s,e=!1){if(s instanceof qs)return s;if(typeof s=="object")return ms(s);if(s==null)return new wt[Zs];if(typeof s=="string"&&s.charAt(0)!=="<")return ms(ae.document.querySelector(s));let t=e?ae.document.createElement("div"):ki("svg");return t.innerHTML=s,s=ms(t.firstChild),t.removeChild(t.firstChild),s}function he(s,e){return e&&(e instanceof ae.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:ki(s)}function ze(s){if(!s)return null;if(s.instance instanceof qs)return s.instance;if(s.nodeName==="#document-fragment")return new wt.Fragment(s);let e=Ut(s.nodeName||"Dom");return e==="LinearGradient"||e==="RadialGradient"?e="Gradient":wt[e]||(e="Dom"),new wt[e](s)}var ms=ze;function se(s,e=s.name,t=!1){return wt[e]=s,t&&(wt[Zs]=s),ko(Object.getOwnPropertyNames(s.prototype)),s}var pd=1e3;function So(s){return"Svgjs"+Ut(s)+pd++}function Co(s){for(let e=s.children.length-1;e>=0;e--)Co(s.children[e]);return s.id&&(s.id=So(s.nodeName)),s}function U(s,e){let t,i;for(i=(s=Array.isArray(s)?s:[s]).length-1;i>=0;i--)for(t in e)s[i].prototype[t]=e[t]}function ce(s){return function(...e){let t=e[e.length-1];return!t||t.constructor!==Object||t instanceof Array?s.apply(this,e):s.apply(this,e.slice(0,-1)).attr(t)}}J("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){let s=this.position();return this.parent().add(this.remove(),s+1),this},backward:function(){let s=this.position();return this.parent().add(this.remove(),s?s-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(s){(s=Se(s)).remove();let e=this.position();return this.parent().add(s,e),this},after:function(s){(s=Se(s)).remove();let e=this.position();return this.parent().add(s,e+1),this},insertBefore:function(s){return(s=Se(s)).before(this),this},insertAfter:function(s){return(s=Se(s)).after(this),this}});var Mo=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,xd=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,bd=/rgb\((\d+),(\d+),(\d+)\)/,md=/(#[a-z_][a-z0-9\-_]*)/i,vd=/\)\s*,?\s*/,yd=/\s/g,eo=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,to=/^rgb\(/,io=/^(\s+)?$/,ao=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,wd=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,et=/[\s,]+/,Ks=/[MLHVCSQTAZ]/i;function kd(s){let e=Math.round(s),t=Math.max(0,Math.min(255,e)).toString(16);return t.length===1?"0"+t:t}function zt(s,e){for(let t=e.length;t--;)if(s[e[t]]==null)return!1;return!0}function vs(s,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?s+6*(e-s)*t:t<.5?e:t<2/3?s+(e-s)*(2/3-t)*6:s}J("Dom",{classes:function(){let s=this.attr("class");return s==null?[]:s.trim().split(et)},hasClass:function(s){return this.classes().indexOf(s)!==-1},addClass:function(s){if(!this.hasClass(s)){let e=this.classes();e.push(s),this.attr("class",e.join(" "))}return this},removeClass:function(s){return this.hasClass(s)&&this.attr("class",this.classes().filter(function(e){return e!==s}).join(" ")),this},toggleClass:function(s){return this.hasClass(s)?this.removeClass(s):this.addClass(s)}}),J("Dom",{css:function(s,e){let t={};if(arguments.length===0)return this.node.style.cssText.split(/\s*;\s*/).filter(function(i){return!!i.length}).forEach(function(i){let a=i.split(/\s*:\s*/);t[a[0]]=a[1]}),t;if(arguments.length<2){if(Array.isArray(s)){for(let i of s){let a=i;t[i]=this.node.style.getPropertyValue(a)}return t}if(typeof s=="string")return this.node.style.getPropertyValue(s);if(typeof s=="object")for(let i in s)this.node.style.setProperty(i,s[i]==null||io.test(s[i])?"":s[i])}return arguments.length===2&&this.node.style.setProperty(s,e==null||io.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return this.css("display")!=="none"}}),J("Dom",{data:function(s,e,t){if(s==null)return this.data($s(function(i,a){let r,n=i.length,o=[];for(r=0;r<n;r++)a(i[r])&&o.push(i[r]);return o}(this.node.attributes,i=>i.nodeName.indexOf("data-")===0),i=>i.nodeName.slice(5)));if(s instanceof Array){let i={};for(let a of s)i[a]=this.data(a);return i}if(typeof s=="object")for(e in s)this.data(e,s[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+s))}catch{return this.attr("data-"+s)}else this.attr("data-"+s,e===null?null:t===!0||typeof e=="string"||typeof e=="number"?e:JSON.stringify(e));return this}}),J("Dom",{remember:function(s,e){if(typeof arguments[0]=="object")for(let t in s)this.remember(t,s[t]);else{if(arguments.length===1)return this.memory()[s];this.memory()[s]=e}return this},forget:function(){if(arguments.length===0)this._memory={};else for(let s=arguments.length-1;s>=0;s--)delete this.memory()[arguments[s]];return this},memory:function(){return this._memory=this._memory||{}}});var Xe=class s{constructor(...e){this.init(...e)}static isColor(e){return e&&(e instanceof s||this.isRgb(e)||this.test(e))}static isRgb(e){return e&&typeof e.r=="number"&&typeof e.g=="number"&&typeof e.b=="number"}static random(e="vibrant",t){let{random:i,round:a,sin:r,PI:n}=Math;if(e==="vibrant"){let o=24*i()+57,l=38*i()+45,c=360*i();return new s(o,l,c,"lch")}if(e==="sine"){let o=a(80*r(2*n*(t=t??i())/.5+.01)+150),l=a(50*r(2*n*t/.5+4.6)+200),c=a(100*r(2*n*t/.5+2.3)+150);return new s(o,l,c)}if(e==="pastel"){let o=8*i()+86,l=17*i()+9,c=360*i();return new s(o,l,c,"lch")}if(e==="dark"){let o=10+10*i(),l=50*i()+86,c=360*i();return new s(o,l,c,"lch")}if(e==="rgb"){let o=255*i(),l=255*i(),c=255*i();return new s(o,l,c)}if(e==="lab"){let o=100*i(),l=256*i()-128,c=256*i()-128;return new s(o,l,c,"lab")}if(e==="grey"){let o=255*i();return new s(o,o,o)}throw new Error("Unsupported random color mode")}static test(e){return typeof e=="string"&&(eo.test(e)||to.test(e))}cmyk(){let{_a:e,_b:t,_c:i}=this.rgb(),[a,r,n]=[e,t,i].map(l=>l/255),o=Math.min(1-a,1-r,1-n);return o===1?new s(0,0,0,1,"cmyk"):new s((1-a-o)/(1-o),(1-r-o)/(1-o),(1-n-o)/(1-o),o,"cmyk")}hsl(){let{_a:e,_b:t,_c:i}=this.rgb(),[a,r,n]=[e,t,i].map(u=>u/255),o=Math.max(a,r,n),l=Math.min(a,r,n),c=(o+l)/2,h=o===l,d=o-l;return new s(360*(h?0:o===a?((r-n)/d+(r<n?6:0))/6:o===r?((n-a)/d+2)/6:o===n?((a-r)/d+4)/6:0),100*(h?0:c>.5?d/(2-o-l):d/(o+l)),100*c,"hsl")}init(e=0,t=0,i=0,a=0,r="rgb"){if(e=e||0,this.space)for(let d in this.space)delete this[this.space[d]];if(typeof e=="number")r=typeof a=="string"?a:r,a=typeof a=="string"?0:a,Object.assign(this,{_a:e,_b:t,_c:i,_d:a,space:r});else if(e instanceof Array)this.space=t||(typeof e[3]=="string"?e[3]:e[4])||"rgb",Object.assign(this,{_a:e[0],_b:e[1],_c:e[2],_d:e[3]||0});else if(e instanceof Object){let d=function(u,g){let p=zt(u,"rgb")?{_a:u.r,_b:u.g,_c:u.b,_d:0,space:"rgb"}:zt(u,"xyz")?{_a:u.x,_b:u.y,_c:u.z,_d:0,space:"xyz"}:zt(u,"hsl")?{_a:u.h,_b:u.s,_c:u.l,_d:0,space:"hsl"}:zt(u,"lab")?{_a:u.l,_b:u.a,_c:u.b,_d:0,space:"lab"}:zt(u,"lch")?{_a:u.l,_b:u.c,_c:u.h,_d:0,space:"lch"}:zt(u,"cmyk")?{_a:u.c,_b:u.m,_c:u.y,_d:u.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return p.space=g||p.space,p}(e,t);Object.assign(this,d)}else if(typeof e=="string")if(to.test(e)){let d=e.replace(yd,""),[u,g,p]=bd.exec(d).slice(1,4).map(f=>parseInt(f));Object.assign(this,{_a:u,_b:g,_c:p,_d:0,space:"rgb"})}else{if(!eo.test(e))throw Error("Unsupported string format, can't construct Color");{let d=f=>parseInt(f,16),[,u,g,p]=xd.exec(function(f){return f.length===4?["#",f.substring(1,2),f.substring(1,2),f.substring(2,3),f.substring(2,3),f.substring(3,4),f.substring(3,4)].join(""):f}(e)).map(d);Object.assign(this,{_a:u,_b:g,_c:p,_d:0,space:"rgb"})}}let{_a:n,_b:o,_c:l,_d:c}=this,h=this.space==="rgb"?{r:n,g:o,b:l}:this.space==="xyz"?{x:n,y:o,z:l}:this.space==="hsl"?{h:n,s:o,l}:this.space==="lab"?{l:n,a:o,b:l}:this.space==="lch"?{l:n,c:o,h:l}:this.space==="cmyk"?{c:n,m:o,y:l,k:c}:{};Object.assign(this,h)}lab(){let{x:e,y:t,z:i}=this.xyz();return new s(116*t-16,500*(e-t),200*(t-i),"lab")}lch(){let{l:e,a:t,b:i}=this.lab(),a=Math.sqrt(t**2+i**2),r=180*Math.atan2(i,t)/Math.PI;return r<0&&(r*=-1,r=360-r),new s(e,a,r,"lch")}rgb(){if(this.space==="rgb")return this;if((e=this.space)==="lab"||e==="xyz"||e==="lch"){let{x:t,y:i,z:a}=this;if(this.space==="lab"||this.space==="lch"){let{l:g,a:p,b:f}=this;if(this.space==="lch"){let{c:S,h:w}=this,k=Math.PI/180;p=S*Math.cos(k*w),f=S*Math.sin(k*w)}let x=(g+16)/116,b=p/500+x,m=x-f/200,v=16/116,A=.008856,y=7.787;t=.95047*(b**3>A?b**3:(b-v)/y),i=1*(x**3>A?x**3:(x-v)/y),a=1.08883*(m**3>A?m**3:(m-v)/y)}let r=3.2406*t+-1.5372*i+-.4986*a,n=-.9689*t+1.8758*i+.0415*a,o=.0557*t+-.204*i+1.057*a,l=Math.pow,c=.0031308,h=r>c?1.055*l(r,1/2.4)-.055:12.92*r,d=n>c?1.055*l(n,1/2.4)-.055:12.92*n,u=o>c?1.055*l(o,1/2.4)-.055:12.92*o;return new s(255*h,255*d,255*u)}if(this.space==="hsl"){let{h:t,s:i,l:a}=this;if(t/=360,i/=100,a/=100,i===0)return a*=255,new s(a,a,a);let r=a<.5?a*(1+i):a+i-a*i,n=2*a-r,o=255*vs(n,r,t+1/3),l=255*vs(n,r,t),c=255*vs(n,r,t-1/3);return new s(o,l,c)}if(this.space==="cmyk"){let{c:t,m:i,y:a,k:r}=this,n=255*(1-Math.min(1,t*(1-r)+r)),o=255*(1-Math.min(1,i*(1-r)+r)),l=255*(1-Math.min(1,a*(1-r)+r));return new s(n,o,l)}return this;var e}toArray(){let{_a:e,_b:t,_c:i,_d:a,space:r}=this;return[e,t,i,a,r]}toHex(){let[e,t,i]=this._clamped().map(kd);return`#${e}${t}${i}`}toRgb(){let[e,t,i]=this._clamped();return`rgb(${e},${t},${i})`}toString(){return this.toHex()}xyz(){let{_a:e,_b:t,_c:i}=this.rgb(),[a,r,n]=[e,t,i].map(x=>x/255),o=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92,l=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,c=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,h=(.4124*o+.3576*l+.1805*c)/.95047,d=(.2126*o+.7152*l+.0722*c)/1,u=(.0193*o+.1192*l+.9505*c)/1.08883,g=h>.008856?Math.pow(h,1/3):7.787*h+16/116,p=d>.008856?Math.pow(d,1/3):7.787*d+16/116,f=u>.008856?Math.pow(u,1/3):7.787*u+16/116;return new s(g,p,f,"xyz")}_clamped(){let{_a:e,_b:t,_c:i}=this.rgb(),{max:a,min:r,round:n}=Math;return[e,t,i].map(o=>a(0,r(n(o),255)))}},ne=class s{constructor(...e){this.init(...e)}clone(){return new s(this)}init(e,t){let r=Array.isArray(e)?{x:e[0],y:e[1]}:typeof e=="object"?{x:e.x,y:e.y}:{x:e,y:t};return this.x=r.x==null?0:r.x,this.y=r.y==null?0:r.y,this}toArray(){return[this.x,this.y]}transform(e){return this.clone().transformO(e)}transformO(e){Q.isMatrixLike(e)||(e=new Q(e));let{x:t,y:i}=this;return this.x=e.a*t+e.c*i+e.e,this.y=e.b*t+e.d*i+e.f,this}};function Rt(s,e,t){return Math.abs(e-s)<(t||1e-6)}var Q=class s{constructor(...e){this.init(...e)}static formatTransforms(e){let t=e.flip==="both"||e.flip===!0,i=e.flip&&(t||e.flip==="x")?-1:1,a=e.flip&&(t||e.flip==="y")?-1:1,r=e.skew&&e.skew.length?e.skew[0]:isFinite(e.skew)?e.skew:isFinite(e.skewX)?e.skewX:0,n=e.skew&&e.skew.length?e.skew[1]:isFinite(e.skew)?e.skew:isFinite(e.skewY)?e.skewY:0,o=e.scale&&e.scale.length?e.scale[0]*i:isFinite(e.scale)?e.scale*i:isFinite(e.scaleX)?e.scaleX*i:i,l=e.scale&&e.scale.length?e.scale[1]*a:isFinite(e.scale)?e.scale*a:isFinite(e.scaleY)?e.scaleY*a:a,c=e.shear||0,h=e.rotate||e.theta||0,d=new ne(e.origin||e.around||e.ox||e.originX,e.oy||e.originY),u=d.x,g=d.y,p=new ne(e.position||e.px||e.positionX||NaN,e.py||e.positionY||NaN),f=p.x,x=p.y,b=new ne(e.translate||e.tx||e.translateX,e.ty||e.translateY),m=b.x,v=b.y,A=new ne(e.relative||e.rx||e.relativeX,e.ry||e.relativeY);return{scaleX:o,scaleY:l,skewX:r,skewY:n,shear:c,theta:h,rx:A.x,ry:A.y,tx:m,ty:v,ox:u,oy:g,px:f,py:x}}static fromArray(e){return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}static isMatrixLike(e){return e.a!=null||e.b!=null||e.c!=null||e.d!=null||e.e!=null||e.f!=null}static matrixMultiply(e,t,i){let a=e.a*t.a+e.c*t.b,r=e.b*t.a+e.d*t.b,n=e.a*t.c+e.c*t.d,o=e.b*t.c+e.d*t.d,l=e.e+e.a*t.e+e.c*t.f,c=e.f+e.b*t.e+e.d*t.f;return i.a=a,i.b=r,i.c=n,i.d=o,i.e=l,i.f=c,i}around(e,t,i){return this.clone().aroundO(e,t,i)}aroundO(e,t,i){let a=e||0,r=t||0;return this.translateO(-a,-r).lmultiplyO(i).translateO(a,r)}clone(){return new s(this)}decompose(e=0,t=0){let i=this.a,a=this.b,r=this.c,n=this.d,o=this.e,l=this.f,c=i*n-a*r,h=c>0?1:-1,d=h*Math.sqrt(i*i+a*a),u=Math.atan2(h*a,h*i),g=180/Math.PI*u,p=Math.cos(u),f=Math.sin(u),x=(i*r+a*n)/c,b=r*d/(x*i-a)||n*d/(x*a+i);return{scaleX:d,scaleY:b,shear:x,rotate:g,translateX:o-e+e*p*d+t*(x*p*d-f*b),translateY:l-t+e*f*d+t*(x*f*d+p*b),originX:e,originY:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(e){if(e===this)return!0;let t=new s(e);return Rt(this.a,t.a)&&Rt(this.b,t.b)&&Rt(this.c,t.c)&&Rt(this.d,t.d)&&Rt(this.e,t.e)&&Rt(this.f,t.f)}flip(e,t){return this.clone().flipO(e,t)}flipO(e,t){return e==="x"?this.scaleO(-1,1,t,0):e==="y"?this.scaleO(1,-1,0,t):this.scaleO(-1,-1,e,t||e)}init(e){let t=s.fromArray([1,0,0,1,0,0]);return e=e instanceof we?e.matrixify():typeof e=="string"?s.fromArray(e.split(et).map(parseFloat)):Array.isArray(e)?s.fromArray(e):typeof e=="object"&&s.isMatrixLike(e)?e:typeof e=="object"?new s().transform(e):arguments.length===6?s.fromArray([].slice.call(arguments)):t,this.a=e.a!=null?e.a:t.a,this.b=e.b!=null?e.b:t.b,this.c=e.c!=null?e.c:t.c,this.d=e.d!=null?e.d:t.d,this.e=e.e!=null?e.e:t.e,this.f=e.f!=null?e.f:t.f,this}inverse(){return this.clone().inverseO()}inverseO(){let e=this.a,t=this.b,i=this.c,a=this.d,r=this.e,n=this.f,o=e*a-t*i;if(!o)throw new Error("Cannot invert "+this);let l=a/o,c=-t/o,h=-i/o,d=e/o,u=-(l*r+h*n),g=-(c*r+d*n);return this.a=l,this.b=c,this.c=h,this.d=d,this.e=u,this.f=g,this}lmultiply(e){return this.clone().lmultiplyO(e)}lmultiplyO(e){let t=e instanceof s?e:new s(e);return s.matrixMultiply(t,this,this)}multiply(e){return this.clone().multiplyO(e)}multiplyO(e){let t=e instanceof s?e:new s(e);return s.matrixMultiply(this,t,this)}rotate(e,t,i){return this.clone().rotateO(e,t,i)}rotateO(e,t=0,i=0){e=xs(e);let a=Math.cos(e),r=Math.sin(e),{a:n,b:o,c:l,d:c,e:h,f:d}=this;return this.a=n*a-o*r,this.b=o*a+n*r,this.c=l*a-c*r,this.d=c*a+l*r,this.e=h*a-d*r+i*r-t*a+t,this.f=d*a+h*r-t*r-i*a+i,this}scale(){return this.clone().scaleO(...arguments)}scaleO(e,t=e,i=0,a=0){arguments.length===3&&(a=i,i=t,t=e);let{a:r,b:n,c:o,d:l,e:c,f:h}=this;return this.a=r*e,this.b=n*t,this.c=o*e,this.d=l*t,this.e=c*e-i*e+i,this.f=h*t-a*t+a,this}shear(e,t,i){return this.clone().shearO(e,t,i)}shearO(e,t=0,i=0){let{a,b:r,c:n,d:o,e:l,f:c}=this;return this.a=a+r*e,this.c=n+o*e,this.e=l+c*e-i*e,this}skew(){return this.clone().skewO(...arguments)}skewO(e,t=e,i=0,a=0){arguments.length===3&&(a=i,i=t,t=e),e=xs(e),t=xs(t);let r=Math.tan(e),n=Math.tan(t),{a:o,b:l,c,d:h,e:d,f:u}=this;return this.a=o+l*r,this.b=l+o*n,this.c=c+h*r,this.d=h+c*n,this.e=d+u*r-a*r,this.f=u+d*n-i*n,this}skewX(e,t,i){return this.skew(e,0,t,i)}skewY(e,t,i){return this.skew(0,e,t,i)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(e){if(s.isMatrixLike(e))return new s(e).multiplyO(this);let t=s.formatTransforms(e),{x:i,y:a}=new ne(t.ox,t.oy).transform(this),r=new s().translateO(t.rx,t.ry).lmultiplyO(this).translateO(-i,-a).scaleO(t.scaleX,t.scaleY).skewO(t.skewX,t.skewY).shearO(t.shear).rotateO(t.theta).translateO(i,a);if(isFinite(t.px)||isFinite(t.py)){let n=new ne(i,a).transform(r),o=isFinite(t.px)?t.px-n.x:0,l=isFinite(t.py)?t.py-n.y:0;r.translateO(o,l)}return r.translateO(t.tx,t.ty),r}translate(e,t){return this.clone().translateO(e,t)}translateO(e,t){return this.e+=e||0,this.f+=t||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}};function rt(){if(!rt.nodes){let s=Se().size(2,0);s.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),s.attr("focusable","false"),s.attr("aria-hidden","true");let e=s.path().node;rt.nodes={svg:s,path:e}}if(!rt.nodes.svg.node.parentNode){let s=ae.document.body||ae.document.documentElement;rt.nodes.svg.addTo(s)}return rt.nodes}function Lo(s){return!(s.width||s.height||s.x||s.y)}se(Q,"Matrix");var xe=class s{constructor(...e){this.init(...e)}addOffset(){return this.x+=ae.window.pageXOffset,this.y+=ae.window.pageYOffset,new s(this)}init(e){return e=typeof e=="string"?e.split(et).map(parseFloat):Array.isArray(e)?e:typeof e=="object"?[e.left!=null?e.left:e.x,e.top!=null?e.top:e.y,e.width,e.height]:arguments.length===4?[].slice.call(arguments):[0,0,0,0],this.x=e[0]||0,this.y=e[1]||0,this.width=this.w=e[2]||0,this.height=this.h=e[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return Lo(this)}merge(e){let t=Math.min(this.x,e.x),i=Math.min(this.y,e.y),a=Math.max(this.x+this.width,e.x+e.width)-t,r=Math.max(this.y+this.height,e.y+e.height)-i;return new s(t,i,a,r)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(e){e instanceof Q||(e=new Q(e));let t=1/0,i=-1/0,a=1/0,r=-1/0;return[new ne(this.x,this.y),new ne(this.x2,this.y),new ne(this.x,this.y2),new ne(this.x2,this.y2)].forEach(function(n){n=n.transform(e),t=Math.min(t,n.x),i=Math.max(i,n.x),a=Math.min(a,n.y),r=Math.max(r,n.y)}),new s(t,a,i-t,r-a)}};function so(s,e,t){let i;try{if(i=e(s.node),Lo(i)&&(a=s.node)!==ae.document&&!(ae.document.documentElement.contains||function(r){for(;r.parentNode;)r=r.parentNode;return r===ae.document}).call(ae.document.documentElement,a))throw new Error("Element not in the dom")}catch{i=t(s)}var a;return i}J({viewbox:{viewbox(s,e,t,i){return s==null?new xe(this.attr("viewBox")):this.attr("viewBox",new xe(s,e,t,i))},zoom(s,e){let{width:t,height:i}=this.attr(["width","height"]);if((t||i)&&typeof t!="string"&&typeof i!="string"||(t=this.node.clientWidth,i=this.node.clientHeight),!t||!i)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");let a=this.viewbox(),r=t/a.width,n=i/a.height,o=Math.min(r,n);if(s==null)return o;let l=o/s;l===1/0&&(l=Number.MAX_SAFE_INTEGER/100),e=e||new ne(t/2/r+a.x,i/2/n+a.y);let c=new xe(a).transform(new Q({scale:l,origin:e}));return this.viewbox(c)}}}),se(xe,"Box");var Je=class extends Array{constructor(e=[],...t){if(super(e,...t),typeof e=="number")return this;this.length=0,this.push(...e)}};U([Je],{each(s,...e){return typeof s=="function"?this.map((t,i,a)=>s.call(t,t,i,a)):this.map(t=>t[s](...e))},toArray(){return Array.prototype.concat.apply([],this)}});var Ad=["toArray","constructor","each"];function Mt(s,e){return new Je($s((e||ae.document).querySelectorAll(s),function(t){return ze(t)}))}Je.extend=function(s){s=s.reduce((e,t)=>(Ad.includes(t)||t[0]==="_"||(t in Array.prototype&&(e["$"+t]=Array.prototype[t]),e[t]=function(...i){return this.each(t,...i)}),e),{}),U([Je],s)};var Sd=0,_o={};function Po(s){let e=s.getEventHolder();return e===ae.window&&(e=_o),e.events||(e.events={}),e.events}function Js(s){return s.getEventTarget()}function qe(s,e,t,i,a){let r=t.bind(i||s),n=Se(s),o=Po(n),l=Js(n);e=Array.isArray(e)?e:e.split(et),t._svgjsListenerId||(t._svgjsListenerId=++Sd),e.forEach(function(c){let h=c.split(".")[0],d=c.split(".")[1]||"*";o[h]=o[h]||{},o[h][d]=o[h][d]||{},o[h][d][t._svgjsListenerId]=r,l.addEventListener(h,r,a||!1)})}function Re(s,e,t,i){let a=Se(s),r=Po(a),n=Js(a);(typeof t!="function"||(t=t._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(et)).forEach(function(o){let l=o&&o.split(".")[0],c=o&&o.split(".")[1],h,d;if(t)r[l]&&r[l][c||"*"]&&(n.removeEventListener(l,r[l][c||"*"][t],i||!1),delete r[l][c||"*"][t]);else if(l&&c){if(r[l]&&r[l][c]){for(d in r[l][c])Re(n,[l,c].join("."),d);delete r[l][c]}}else if(c)for(o in r)for(h in r[o])c===h&&Re(n,[o,c].join("."));else if(l){if(r[l]){for(h in r[l])Re(n,[l,h].join("."));delete r[l]}}else{for(o in r)Re(n,o);(function(u){let g=u.getEventHolder();g===ae.window&&(g=_o),g.events&&(g.events={})})(a)}})}var At=class extends qs{addEventListener(){}dispatch(e,t,i){return function(a,r,n,o){let l=Js(a);return r instanceof ae.window.Event||(r=new ae.window.CustomEvent(r,{detail:n,cancelable:!0,...o})),l.dispatchEvent(r),r}(this,e,t,i)}dispatchEvent(e){let t=this.getEventHolder().events;if(!t)return!0;let i=t[e.type];for(let a in i)for(let r in i[a])i[a][r](e);return!e.defaultPrevented}fire(e,t,i){return this.dispatch(e,t,i),this}getEventHolder(){return this}getEventTarget(){return this}off(e,t,i){return Re(this,e,t,i),this}on(e,t,i,a){return qe(this,e,t,i,a),this}removeEventListener(){}};function ro(){}se(At,"EventTarget");var ys=400,Cd=">",Md=0,Ld={"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","text-anchor":"start"},Qe=class extends Array{constructor(...e){super(...e),this.init(...e)}clone(){return new this.constructor(this)}init(e){return typeof e=="number"||(this.length=0,this.push(...this.parse(e))),this}parse(e=[]){return e instanceof Array?e:e.trim().split(et).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){let e=[];return e.push(...this),e}},te=class s{constructor(...e){this.init(...e)}convert(e){return new s(this.value,e)}divide(e){return e=new s(e),new s(this/e,this.unit||e.unit)}init(e,t){return t=Array.isArray(e)?e[1]:t,e=Array.isArray(e)?e[0]:e,this.value=0,this.unit=t||"",typeof e=="number"?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:typeof e=="string"?(t=e.match(Mo))&&(this.value=parseFloat(t[1]),t[5]==="%"?this.value/=100:t[5]==="s"&&(this.value*=1e3),this.unit=t[5]):e instanceof s&&(this.value=e.valueOf(),this.unit=e.unit),this}minus(e){return e=new s(e),new s(this-e,this.unit||e.unit)}plus(e){return e=new s(e),new s(this+e,this.unit||e.unit)}times(e){return e=new s(e),new s(this*e,this.unit||e.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return(this.unit==="%"?~~(1e8*this.value)/1e6:this.unit==="s"?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}},_d=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Io=[],ot=class s extends At{constructor(e,t){super(),this.node=e,this.type=e.nodeName,t&&e!==t&&this.attr(t)}add(e,t){return(e=Se(e)).removeNamespace&&this.node instanceof ae.window.SVGElement&&e.removeNamespace(),t==null?this.node.appendChild(e.node):e.node!==this.node.childNodes[t]&&this.node.insertBefore(e.node,this.node.childNodes[t]),this}addTo(e,t){return Se(e).put(this,t)}children(){return new Je($s(this.node.children,function(e){return ze(e)}))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(e=!0,t=!0){this.writeDataToDom();let i=this.node.cloneNode(e);return t&&(i=Co(i)),new this.constructor(i)}each(e,t){let i=this.children(),a,r;for(a=0,r=i.length;a<r;a++)e.apply(i[a],[a,i]),t&&i[a].each(e,t);return this}element(e,t){return this.put(new s(ki(e),t))}first(){return ze(this.node.firstChild)}get(e){return ze(this.node.childNodes[e])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(e){return this.index(e)>=0}html(e,t){return this.xml(e,t,"http://www.w3.org/1999/xhtml")}id(e){return e!==void 0||this.node.id||(this.node.id=So(this.type)),this.attr("id",e)}index(e){return[].slice.call(this.node.childNodes).indexOf(e.node)}last(){return ze(this.node.lastChild)}matches(e){let t=this.node,i=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector||null;return i&&i.call(t,e)}parent(e){let t=this;if(!t.node.parentNode)return null;if(t=ze(t.node.parentNode),!e)return t;do if(typeof e=="string"?t.matches(e):t instanceof e)return t;while(t=ze(t.node.parentNode));return t}put(e,t){return e=Se(e),this.add(e,t),e}putIn(e,t){return Se(e).add(this,t)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(e){return this.node.removeChild(e.node),this}replace(e){return e=Se(e),this.node.parentNode&&this.node.parentNode.replaceChild(e.node,this.node),e}round(e=2,t=null){let i=10**e,a=this.attr(t);for(let r in a)typeof a[r]=="number"&&(a[r]=Math.round(a[r]*i)/i);return this.attr(a),this}svg(e,t){return this.xml(e,t,Us)}toString(){return this.id()}words(e){return this.node.textContent=e,this}wrap(e){let t=this.parent();if(!t)return this.addTo(e);let i=t.index(this);return t.put(e,i).put(this)}writeDataToDom(){return this.each(function(){this.writeDataToDom()}),this}xml(e,t,i){if(typeof e=="boolean"&&(i=t,t=e,e=null),e==null||typeof e=="function"){t=t==null||t,this.writeDataToDom();let o=this;if(e!=null){if(o=ze(o.node.cloneNode(!0)),t){let l=e(o);if(o=l||o,l===!1)return""}o.each(function(){let l=e(this),c=l||this;l===!1?this.remove():l&&this!==c&&this.replace(c)},!0)}return t?o.node.outerHTML:o.node.innerHTML}t=t!=null&&t;let a=ki("wrapper",i),r=ae.document.createDocumentFragment();a.innerHTML=e;for(let o=a.children.length;o--;)r.appendChild(a.firstElementChild);let n=this.parent();return t?this.replace(r)&&n:this.add(r)}};U(ot,{attr:function(s,e,t){if(s==null){s={},e=this.node.attributes;for(let i of e)s[i.nodeName]=ao.test(i.nodeValue)?parseFloat(i.nodeValue):i.nodeValue;return s}if(s instanceof Array)return s.reduce((i,a)=>(i[a]=this.attr(a),i),{});if(typeof s=="object"&&s.constructor===Object)for(e in s)this.attr(e,s[e]);else if(e===null)this.node.removeAttribute(s);else{if(e==null)return(e=this.node.getAttribute(s))==null?Ld[s]:ao.test(e)?parseFloat(e):e;typeof(e=Io.reduce((i,a)=>a(s,i,this),e))=="number"?e=new te(e):_d.has(s)&&Xe.isColor(e)?e=new Xe(e):e.constructor===Array&&(e=new Qe(e)),s==="leading"?this.leading&&this.leading(e):typeof t=="string"?this.node.setAttributeNS(t,s,e.toString()):this.node.setAttribute(s,e.toString()),!this.rebuild||s!=="font-size"&&s!=="x"||this.rebuild()}return this},find:function(s){return Mt(s,this.node)},findOne:function(s){return ze(this.node.querySelector(s))}}),se(ot,"Dom");var we=class extends ot{constructor(s,e){super(s,e),this.dom={},this.node.instance=this,(s.hasAttribute("data-svgjs")||s.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(s.getAttribute("data-svgjs"))??JSON.parse(s.getAttribute("svgjs:data"))??{})}center(s,e){return this.cx(s).cy(e)}cx(s){return s==null?this.x()+this.width()/2:this.x(s-this.width()/2)}cy(s){return s==null?this.y()+this.height()/2:this.y(s-this.height()/2)}defs(){let s=this.root();return s&&s.defs()}dmove(s,e){return this.dx(s).dy(e)}dx(s=0){return this.x(new te(s).plus(this.x()))}dy(s=0){return this.y(new te(s).plus(this.y()))}getEventHolder(){return this}height(s){return this.attr("height",s)}move(s,e){return this.x(s).y(e)}parents(s=this.root()){let e=typeof s=="string";e||(s=Se(s));let t=new Je,i=this;for(;(i=i.parent())&&i.node!==ae.document&&i.nodeName!=="#document-fragment"&&(t.push(i),e||i.node!==s.node)&&(!e||!i.matches(s));)if(i.node===this.root().node)return null;return t}reference(s){if(!(s=this.attr(s)))return null;let e=(s+"").match(md);return e?Se(e[1]):null}root(){let s=this.parent(function(e){return wt[e]}(Zs));return s&&s.root()}setData(s){return this.dom=s,this}size(s,e){let t=qt(this,s,e);return this.width(new te(t.width)).height(new te(t.height))}width(s){return this.attr("width",s)}writeDataToDom(){return Ao(this,this.dom),super.writeDataToDom()}x(s){return this.attr("x",s)}y(s){return this.attr("y",s)}};U(we,{bbox:function(){let s=so(this,e=>e.getBBox(),e=>{try{let t=e.clone().addTo(rt().svg).show(),i=t.node.getBBox();return t.remove(),i}catch(t){throw new Error(`Getting bbox of element "${e.node.nodeName}" is not possible: ${t.toString()}`)}});return new xe(s)},rbox:function(s){let e=so(this,i=>i.getBoundingClientRect(),i=>{throw new Error(`Getting rbox of element "${i.node.nodeName}" is not possible`)}),t=new xe(e);return s?t.transform(s.screenCTM().inverseO()):t.addOffset()},inside:function(s,e){let t=this.bbox();return s>t.x&&e>t.y&&s<t.x+t.width&&e<t.y+t.height},point:function(s,e){return new ne(s,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new Q(this.node.getCTM())},screenCTM:function(){try{if(typeof this.isRoot=="function"&&!this.isRoot()){let s=this.rect(1,1),e=s.node.getScreenCTM();return s.remove(),new Q(e)}return new Q(this.node.getScreenCTM())}catch{return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new Q}}}),se(we,"Element");var gi={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(s,e){return e==="color"?s:s+"-"+e}};["fill","stroke"].forEach(function(s){let e={},t;e[s]=function(i){if(i===void 0)return this.attr(s);if(typeof i=="string"||i instanceof Xe||Xe.isRgb(i)||i instanceof we)this.attr(s,i);else for(t=gi[s].length-1;t>=0;t--)i[gi[s][t]]!=null&&this.attr(gi.prefix(s,gi[s][t]),i[gi[s][t]]);return this},J(["Element","Runner"],e)}),J(["Element","Runner"],{matrix:function(s,e,t,i,a,r){return s==null?new Q(this):this.attr("transform",new Q(s,e,t,i,a,r))},rotate:function(s,e,t){return this.transform({rotate:s,ox:e,oy:t},!0)},skew:function(s,e,t,i){return arguments.length===1||arguments.length===3?this.transform({skew:s,ox:e,oy:t},!0):this.transform({skew:[s,e],ox:t,oy:i},!0)},shear:function(s,e,t){return this.transform({shear:s,ox:e,oy:t},!0)},scale:function(s,e,t,i){return arguments.length===1||arguments.length===3?this.transform({scale:s,ox:e,oy:t},!0):this.transform({scale:[s,e],ox:t,oy:i},!0)},translate:function(s,e){return this.transform({translate:[s,e]},!0)},relative:function(s,e){return this.transform({relative:[s,e]},!0)},flip:function(s="both",e="center"){return"xybothtrue".indexOf(s)===-1&&(e=s,s="both"),this.transform({flip:s,origin:e},!0)},opacity:function(s){return this.attr("opacity",s)}}),J("radius",{radius:function(s,e=s){return(this._element||this).type==="radialGradient"?this.attr("r",new te(s)):this.rx(s).ry(e)}}),J("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(s){return new ne(this.node.getPointAtLength(s))}}),J(["Element","Runner"],{font:function(s,e){if(typeof s=="object"){for(e in s)this.font(e,s[e]);return this}return s==="leading"?this.leading(e):s==="anchor"?this.attr("text-anchor",e):s==="size"||s==="family"||s==="weight"||s==="stretch"||s==="variant"||s==="style"?this.attr("font-"+s,e):this.attr(s,e)}});J("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce(function(s,e){return s[e]=function(t){return t===null?this.off(e):this.on(e,t),this},s},{})),J("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(vd).slice(0,-1).map(function(e){let t=e.trim().split("(");return[t[0],t[1].split(et).map(function(i){return parseFloat(i)})]}).reverse().reduce(function(e,t){return t[0]==="matrix"?e.lmultiply(Q.fromArray(t[1])):e[t[0]].apply(e,t[1])},new Q)},toParent:function(s,e){if(this===s)return this;if(Es(this.node))return this.addTo(s,e);let t=this.screenCTM(),i=s.screenCTM().inverse();return this.addTo(s,e).untransform().transform(i.multiply(t)),this},toRoot:function(s){return this.toParent(this.root(),s)},transform:function(s,e){if(s==null||typeof s=="string"){let i=new Q(this).decompose();return s==null?i:i[s]}Q.isMatrixLike(s)||(s={...s,origin:Ts(s,this)});let t=new Q(e===!0?this:e||!1).transform(s);return this.attr("transform",t)}});var Ce=class s extends we{flatten(){return this.each(function(){if(this instanceof s)return this.flatten().ungroup()}),this}ungroup(e=this.parent(),t=e.index(this)){return t=t===-1?e.children().length:t,this.each(function(i,a){return a[a.length-i-1].toParent(e,t)}),this.remove()}};se(Ce,"Container");var Bt=class extends Ce{constructor(e,t=e){super(he("defs",e),t)}flatten(){return this}ungroup(){return this}};se(Bt,"Defs");var Me=class extends we{};function Qs(s){return this.attr("rx",s)}function er(s){return this.attr("ry",s)}function To(s){return s==null?this.cx()-this.rx():this.cx(s+this.rx())}function Eo(s){return s==null?this.cy()-this.ry():this.cy(s+this.ry())}function Oo(s){return this.attr("cx",s)}function zo(s){return this.attr("cy",s)}function Ro(s){return s==null?2*this.rx():this.rx(new te(s).divide(2))}function Ho(s){return s==null?2*this.ry():this.ry(new te(s).divide(2))}se(Me,"Shape");var Pd=Object.freeze({__proto__:null,cx:Oo,cy:zo,height:Ho,rx:Qs,ry:er,width:Ro,x:To,y:Eo}),Dt=class extends Me{constructor(e,t=e){super(he("ellipse",e),t)}size(e,t){let i=qt(this,e,t);return this.rx(new te(i.width).divide(2)).ry(new te(i.height).divide(2))}};U(Dt,Pd),J("Container",{ellipse:ce(function(s=0,e=s){return this.put(new Dt).size(s,e).move(0,0)})}),se(Dt,"Ellipse");var ca=class extends ot{constructor(e=ae.document.createDocumentFragment()){super(e)}xml(e,t,i){if(typeof e=="boolean"&&(i=t,t=e,e=null),e==null||typeof e=="function"){let a=new ot(ki("wrapper",i));return a.add(this.node.cloneNode(!0)),a.xml(!1,i)}return super.xml(e,!1,i)}};function Xo(s,e){return(this._element||this).type==="radialGradient"?this.attr({fx:new te(s),fy:new te(e)}):this.attr({x1:new te(s),y1:new te(e)})}function Do(s,e){return(this._element||this).type==="radialGradient"?this.attr({cx:new te(s),cy:new te(e)}):this.attr({x2:new te(s),y2:new te(e)})}se(ca,"Fragment");var Id=Object.freeze({__proto__:null,from:Xo,to:Do}),kt=class extends Ce{constructor(e,t){super(he(e+"Gradient",typeof e=="string"?null:e),t)}attr(e,t,i){return e==="transform"&&(e="gradientTransform"),super.attr(e,t,i)}bbox(){return new xe}targets(){return Mt("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(e){return this.clear(),typeof e=="function"&&e.call(this,this),this}url(){return"url(#"+this.id()+")"}};U(kt,Id),J({Container:{gradient(...s){return this.defs().gradient(...s)}},Defs:{gradient:ce(function(s,e){return this.put(new kt(s)).update(e)})}}),se(kt,"Gradient");var St=class extends Ce{constructor(e,t=e){super(he("pattern",e),t)}attr(e,t,i){return e==="transform"&&(e="patternTransform"),super.attr(e,t,i)}bbox(){return new xe}targets(){return Mt("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(e){return this.clear(),typeof e=="function"&&e.call(this,this),this}url(){return"url(#"+this.id()+")"}};J({Container:{pattern(...s){return this.defs().pattern(...s)}},Defs:{pattern:ce(function(s,e,t){return this.put(new St).update(t).attr({x:0,y:0,width:s,height:e,patternUnits:"userSpaceOnUse"})})}}),se(St,"Pattern");var ra=class extends Me{constructor(s,e=s){super(he("image",s),e)}load(s,e){if(!s)return this;let t=new ae.window.Image;return qe(t,"load",function(i){let a=this.parent(St);this.width()===0&&this.height()===0&&this.size(t.width,t.height),a instanceof St&&a.width()===0&&a.height()===0&&a.size(this.width(),this.height()),typeof e=="function"&&e.call(this,i)},this),qe(t,"load error",function(){Re(t)}),this.attr("href",t.src=s,Zt)}},no;no=function(s,e,t){return s!=="fill"&&s!=="stroke"||wd.test(e)&&(e=t.root().defs().image(e)),e instanceof ra&&(e=t.root().defs().pattern(0,0,i=>{i.add(e)})),e},Io.push(no),J({Container:{image:ce(function(s,e){return this.put(new ra).size(0,0).load(s,e)})}}),se(ra,"Image");var Ge=class extends Qe{bbox(){let e=-1/0,t=-1/0,i=1/0,a=1/0;return this.forEach(function(r){e=Math.max(r[0],e),t=Math.max(r[1],t),i=Math.min(r[0],i),a=Math.min(r[1],a)}),new xe(i,a,e-i,t-a)}move(e,t){let i=this.bbox();if(e-=i.x,t-=i.y,!isNaN(e)&&!isNaN(t))for(let a=this.length-1;a>=0;a--)this[a]=[this[a][0]+e,this[a][1]+t];return this}parse(e=[0,0]){let t=[];(e=e instanceof Array?Array.prototype.concat.apply([],e):e.trim().split(et).map(parseFloat)).length%2!=0&&e.pop();for(let i=0,a=e.length;i<a;i+=2)t.push([e[i],e[i+1]]);return t}size(e,t){let i,a=this.bbox();for(i=this.length-1;i>=0;i--)a.width&&(this[i][0]=(this[i][0]-a.x)*e/a.width+a.x),a.height&&(this[i][1]=(this[i][1]-a.y)*t/a.height+a.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){let e=[];for(let t=0,i=this.length;t<i;t++)e.push(this[t].join(","));return e.join(" ")}transform(e){return this.clone().transformO(e)}transformO(e){Q.isMatrixLike(e)||(e=new Q(e));for(let t=this.length;t--;){let[i,a]=this[t];this[t][0]=e.a*i+e.c*a+e.e,this[t][1]=e.b*i+e.d*a+e.f}return this}},Td=Ge,tr=Object.freeze({__proto__:null,MorphArray:Td,height:function(s){let e=this.bbox();return s==null?e.height:this.size(e.width,s)},width:function(s){let e=this.bbox();return s==null?e.width:this.size(s,e.height)},x:function(s){return s==null?this.bbox().x:this.move(s,this.bbox().y)},y:function(s){return s==null?this.bbox().y:this.move(this.bbox().x,s)}}),yt=class extends Me{constructor(s,e=s){super(he("line",s),e)}array(){return new Ge([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(s,e){return this.attr(this.array().move(s,e).toLine())}plot(s,e,t,i){return s==null?this.array():(s=e!==void 0?{x1:s,y1:e,x2:t,y2:i}:new Ge(s).toLine(),this.attr(s))}size(s,e){let t=qt(this,s,e);return this.attr(this.array().size(t.width,t.height).toLine())}};U(yt,tr),J({Container:{line:ce(function(...s){return yt.prototype.plot.apply(this.put(new yt),s[0]!=null?s:[0,0,0,0])})}}),se(yt,"Line");var na=class extends Ce{constructor(s,e=s){super(he("marker",s),e)}height(s){return this.attr("markerHeight",s)}orient(s){return this.attr("orient",s)}ref(s,e){return this.attr("refX",s).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(s){return this.clear(),typeof s=="function"&&s.call(this,this),this}width(s){return this.attr("markerWidth",s)}};function Ht(s,e){return function(t){return t==null?this[s]:(this[s]=t,e&&e.call(this),this)}}J({Container:{marker(...s){return this.defs().marker(...s)}},Defs:{marker:ce(function(s,e,t){return this.put(new na).size(s,e).ref(s/2,e/2).viewbox(0,0,s,e).attr("orient","auto").update(t)})},marker:{marker(s,e,t,i){let a=["marker"];return s!=="all"&&a.push(s),a=a.join("-"),s=arguments[1]instanceof na?arguments[1]:this.defs().marker(e,t,i),this.attr(a,s)}}}),se(na,"Marker");var Ed={"-":function(s){return s},"<>":function(s){return-Math.cos(s*Math.PI)/2+.5},">":function(s){return Math.sin(s*Math.PI/2)},"<":function(s){return 1-Math.cos(s*Math.PI/2)},bezier:function(s,e,t,i){return function(a){return a<0?s>0?e/s*a:t>0?i/t*a:0:a>1?t<1?(1-i)/(1-t)*a+(i-t)/(1-t):s<1?(1-e)/(1-s)*a+(e-s)/(1-s):1:3*a*(1-a)**2*e+3*a**2*(1-a)*i+a**3}},steps:function(s,e="end"){e=e.split("-").reverse()[0];let t=s;return e==="none"?--t:e==="both"&&++t,(i,a=!1)=>{let r=Math.floor(i*s),n=i*r%1==0;return e!=="start"&&e!=="both"||++r,a&&n&&--r,i>=0&&r<0&&(r=0),i<=1&&r>t&&(r=t),r/t}}},Ai=class{done(){return!1}},Si=class extends Ai{constructor(e=Cd){super(),this.ease=Ed[e]||e}step(e,t,i){return typeof e!="number"?i<1?e:t:e+(t-e)*this.ease(i)}},Wt=class extends Ai{constructor(e){super(),this.stepper=e}done(e){return e.done}step(e,t,i,a){return this.stepper(e,t,i,a)}};function oo(){let s=(this._duration||500)/1e3,e=this._overshoot||0,t=Math.PI,i=Math.log(e/100+1e-10),a=-i/Math.sqrt(t*t+i*i),r=3.9/(a*s);this.d=2*a*r,this.k=r*r}U(class extends Wt{constructor(s=500,e=0){super(),this.duration(s).overshoot(e)}step(s,e,t,i){if(typeof s=="string")return s;if(i.done=t===1/0,t===1/0)return e;if(t===0)return s;t>100&&(t=16),t/=1e3;let a=i.velocity||0,r=-this.d*a-this.k*(s-e),n=s+a*t+r*t*t/2;return i.velocity=a+r*t,i.done=Math.abs(e-n)+Math.abs(a)<.002,i.done?e:n}},{duration:Ht("_duration",oo),overshoot:Ht("_overshoot",oo)});U(class extends Wt{constructor(s=.1,e=.01,t=0,i=1e3){super(),this.p(s).i(e).d(t).windup(i)}step(s,e,t,i){if(typeof s=="string")return s;if(i.done=t===1/0,t===1/0)return e;if(t===0)return s;let a=e-s,r=(i.integral||0)+a*t,n=(a-(i.error||0))/t,o=this._windup;return o!==!1&&(r=Math.max(-o,Math.min(r,o))),i.error=a,i.integral=r,i.done=Math.abs(a)<.001,i.done?e:s+(this.P*a+this.I*r+this.D*n)}},{windup:Ht("_windup"),p:Ht("P"),i:Ht("I"),d:Ht("D")});var Od={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},Os={M:function(s,e,t){return e.x=t.x=s[0],e.y=t.y=s[1],["M",e.x,e.y]},L:function(s,e){return e.x=s[0],e.y=s[1],["L",s[0],s[1]]},H:function(s,e){return e.x=s[0],["H",s[0]]},V:function(s,e){return e.y=s[0],["V",s[0]]},C:function(s,e){return e.x=s[4],e.y=s[5],["C",s[0],s[1],s[2],s[3],s[4],s[5]]},S:function(s,e){return e.x=s[2],e.y=s[3],["S",s[0],s[1],s[2],s[3]]},Q:function(s,e){return e.x=s[2],e.y=s[3],["Q",s[0],s[1],s[2],s[3]]},T:function(s,e){return e.x=s[0],e.y=s[1],["T",s[0],s[1]]},Z:function(s,e,t){return e.x=t.x,e.y=t.y,["Z"]},A:function(s,e){return e.x=s[5],e.y=s[6],["A",s[0],s[1],s[2],s[3],s[4],s[5],s[6]]}},ws="mlhvqtcsaz".split("");for(let s=0,e=ws.length;s<e;++s)Os[ws[s]]=function(t){return function(i,a,r){if(t==="H")i[0]=i[0]+a.x;else if(t==="V")i[0]=i[0]+a.y;else if(t==="A")i[5]=i[5]+a.x,i[6]=i[6]+a.y;else for(let n=0,o=i.length;n<o;++n)i[n]=i[n]+(n%2?a.y:a.x);return Os[t](i,a,r)}}(ws[s].toUpperCase());function zs(s){return s.segment.length&&s.segment.length-1===Od[s.segment[0].toUpperCase()]}function zd(s,e){s.inNumber&&mt(s,!1);let t=Ks.test(e);if(t)s.segment=[e];else{let i=s.lastCommand,a=i.toLowerCase(),r=i===a;s.segment=[a==="m"?r?"l":"L":i]}return s.inSegment=!0,s.lastCommand=s.segment[0],t}function mt(s,e){if(!s.inNumber)throw new Error("Parser Error");s.number&&s.segment.push(parseFloat(s.number)),s.inNumber=e,s.number="",s.pointSeen=!1,s.hasExponent=!1,zs(s)&&Rs(s)}function Rs(s){s.inSegment=!1,s.absolute&&(s.segment=function(e){let t=e.segment[0];return Os[t](e.segment.slice(1),e.p,e.p0)}(s)),s.segments.push(s.segment)}function Rd(s){if(!s.segment.length)return!1;let e=s.segment[0].toUpperCase()==="A",t=s.segment.length;return e&&(t===4||t===5)}function Hd(s){return s.lastToken.toUpperCase()==="E"}var Xd=new Set([" ",","," ",`
|
16
|
+
`,"\r","\f"]),Pe=class extends Qe{bbox(){return rt().path.setAttribute("d",this.toString()),new xe(rt.nodes.path.getBBox())}move(e,t){let i=this.bbox();if(e-=i.x,t-=i.y,!isNaN(e)&&!isNaN(t))for(let a,r=this.length-1;r>=0;r--)a=this[r][0],a==="M"||a==="L"||a==="T"?(this[r][1]+=e,this[r][2]+=t):a==="H"?this[r][1]+=e:a==="V"?this[r][1]+=t:a==="C"||a==="S"||a==="Q"?(this[r][1]+=e,this[r][2]+=t,this[r][3]+=e,this[r][4]+=t,a==="C"&&(this[r][5]+=e,this[r][6]+=t)):a==="A"&&(this[r][6]+=e,this[r][7]+=t);return this}parse(e="M0 0"){return Array.isArray(e)&&(e=Array.prototype.concat.apply([],e).toString()),function(t,i=!0){let a=0,r="",n={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:i,p0:new ne,p:new ne};for(;n.lastToken=r,r=t.charAt(a++);)if(n.inSegment||!zd(n,r))if(r!==".")if(isNaN(parseInt(r)))if(Xd.has(r))n.inNumber&&mt(n,!1);else if(r!=="-"&&r!=="+")if(r.toUpperCase()!=="E"){if(Ks.test(r)){if(n.inNumber)mt(n,!1);else{if(!zs(n))throw new Error("parser Error");Rs(n)}--a}}else n.number+=r,n.hasExponent=!0;else{if(n.inNumber&&!Hd(n)){mt(n,!1),--a;continue}n.number+=r,n.inNumber=!0}else{if(n.number==="0"||Rd(n)){n.inNumber=!0,n.number=r,mt(n,!0);continue}n.inNumber=!0,n.number+=r}else{if(n.pointSeen||n.hasExponent){mt(n,!1),--a;continue}n.inNumber=!0,n.pointSeen=!0,n.number+=r}return n.inNumber&&mt(n,!1),n.inSegment&&zs(n)&&Rs(n),n.segments}(e)}size(e,t){let i=this.bbox(),a,r;for(i.width=i.width===0?1:i.width,i.height=i.height===0?1:i.height,a=this.length-1;a>=0;a--)r=this[a][0],r==="M"||r==="L"||r==="T"?(this[a][1]=(this[a][1]-i.x)*e/i.width+i.x,this[a][2]=(this[a][2]-i.y)*t/i.height+i.y):r==="H"?this[a][1]=(this[a][1]-i.x)*e/i.width+i.x:r==="V"?this[a][1]=(this[a][1]-i.y)*t/i.height+i.y:r==="C"||r==="S"||r==="Q"?(this[a][1]=(this[a][1]-i.x)*e/i.width+i.x,this[a][2]=(this[a][2]-i.y)*t/i.height+i.y,this[a][3]=(this[a][3]-i.x)*e/i.width+i.x,this[a][4]=(this[a][4]-i.y)*t/i.height+i.y,r==="C"&&(this[a][5]=(this[a][5]-i.x)*e/i.width+i.x,this[a][6]=(this[a][6]-i.y)*t/i.height+i.y)):r==="A"&&(this[a][1]=this[a][1]*e/i.width,this[a][2]=this[a][2]*t/i.height,this[a][6]=(this[a][6]-i.x)*e/i.width+i.x,this[a][7]=(this[a][7]-i.y)*t/i.height+i.y);return this}toString(){return function(e){let t="";for(let i=0,a=e.length;i<a;i++)t+=e[i][0],e[i][1]!=null&&(t+=e[i][1],e[i][2]!=null&&(t+=" ",t+=e[i][2],e[i][3]!=null&&(t+=" ",t+=e[i][3],t+=" ",t+=e[i][4],e[i][5]!=null&&(t+=" ",t+=e[i][5],t+=" ",t+=e[i][6],e[i][7]!=null&&(t+=" ",t+=e[i][7])))));return t+" "}(this)}},Fo=s=>{let e=typeof s;return e==="number"?te:e==="string"?Xe.isColor(s)?Xe:et.test(s)?Ks.test(s)?Pe:Qe:Mo.test(s)?te:Ci:Hs.indexOf(s.constructor)>-1?s.constructor:Array.isArray(s)?Qe:e==="object"?Ct:Ci},Ue=class{constructor(e){this._stepper=e||new Si("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(e){return this._morphObj.morph(this._from,this._to,e,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce(function(e,t){return e&&t},!0)}from(e){return e==null?this._from:(this._from=this._set(e),this)}stepper(e){return e==null?this._stepper:(this._stepper=e,this)}to(e){return e==null?this._to:(this._to=this._set(e),this)}type(e){return e==null?this._type:(this._type=e,this)}_set(e){this._type||this.type(Fo(e));let t=new this._type(e);return this._type===Xe&&(t=this._to?t[this._to[4]]():this._from?t[this._from[4]]():t),this._type===Ct&&(t=this._to?t.align(this._to):this._from?t.align(this._from):t),t=t.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(t.length)).map(Object).map(function(i){return i.done=!0,i}),t}},Ci=class{constructor(...e){this.init(...e)}init(e){return e=Array.isArray(e)?e[0]:e,this.value=e,this}toArray(){return[this.value]}valueOf(){return this.value}},Mi=class s{constructor(...e){this.init(...e)}init(e){return Array.isArray(e)&&(e={scaleX:e[0],scaleY:e[1],shear:e[2],rotate:e[3],translateX:e[4],translateY:e[5],originX:e[6],originY:e[7]}),Object.assign(this,s.defaults,e),this}toArray(){let e=this;return[e.scaleX,e.scaleY,e.shear,e.rotate,e.translateX,e.translateY,e.originX,e.originY]}};Mi.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};var Dd=(s,e)=>s[0]<e[0]?-1:s[0]>e[0]?1:0,Ct=class{constructor(...e){this.init(...e)}align(e){let t=this.values;for(let i=0,a=t.length;i<a;++i){if(t[i+1]===e[i+1]){if(t[i+1]===Xe&&e[i+7]!==t[i+7]){let o=e[i+7],l=new Xe(this.values.splice(i+3,5))[o]().toArray();this.values.splice(i+3,0,...l)}i+=t[i+2]+2;continue}if(!e[i+1])return this;let r=new e[i+1]().toArray(),n=t[i+2]+3;t.splice(i,n,e[i],e[i+1],e[i+2],...r),i+=t[i+2]+2}return this}init(e){if(this.values=[],Array.isArray(e))return void(this.values=e.slice());e=e||{};let t=[];for(let i in e){let a=Fo(e[i]),r=new a(e[i]).toArray();t.push([i,a,r.length,...r])}return t.sort(Dd),this.values=t.reduce((i,a)=>i.concat(a),[]),this}toArray(){return this.values}valueOf(){let e={},t=this.values;for(;t.length;){let i=t.shift(),a=t.shift(),r=t.shift(),n=t.splice(0,r);e[i]=new a(n)}return e}},Hs=[Ci,Mi,Ct],nt=class extends Me{constructor(e,t=e){super(he("path",e),t)}array(){return this._array||(this._array=new Pe(this.attr("d")))}clear(){return delete this._array,this}height(e){return e==null?this.bbox().height:this.size(this.bbox().width,e)}move(e,t){return this.attr("d",this.array().move(e,t))}plot(e){return e==null?this.array():this.clear().attr("d",typeof e=="string"?e:this._array=new Pe(e))}size(e,t){let i=qt(this,e,t);return this.attr("d",this.array().size(i.width,i.height))}width(e){return e==null?this.bbox().width:this.size(e,this.bbox().height)}x(e){return e==null?this.bbox().x:this.move(e,this.bbox().y)}y(e){return e==null?this.bbox().y:this.move(this.bbox().x,e)}};nt.prototype.MorphArray=Pe,J({Container:{path:ce(function(s){return this.put(new nt).plot(s||new Pe)})}}),se(nt,"Path");var Yo=Object.freeze({__proto__:null,array:function(){return this._array||(this._array=new Ge(this.attr("points")))},clear:function(){return delete this._array,this},move:function(s,e){return this.attr("points",this.array().move(s,e))},plot:function(s){return s==null?this.array():this.clear().attr("points",typeof s=="string"?s:this._array=new Ge(s))},size:function(s,e){let t=qt(this,s,e);return this.attr("points",this.array().size(t.width,t.height))}}),Ze=class extends Me{constructor(e,t=e){super(he("polygon",e),t)}};J({Container:{polygon:ce(function(s){return this.put(new Ze).plot(s||new Ge)})}}),U(Ze,tr),U(Ze,Yo),se(Ze,"Polygon");var Ke=class extends Me{constructor(e,t=e){super(he("polyline",e),t)}};J({Container:{polyline:ce(function(s){return this.put(new Ke).plot(s||new Ge)})}}),U(Ke,tr),U(Ke,Yo),se(Ke,"Polyline");var Ft=class extends Me{constructor(e,t=e){super(he("rect",e),t)}};U(Ft,{rx:Qs,ry:er}),J({Container:{rect:ce(function(s,e){return this.put(new Ft).size(s,e)})}}),se(Ft,"Rect");var pi=class{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(e){let t=e.next!==void 0?e:{value:e,next:null,prev:null};return this._last?(t.prev=this._last,this._last.next=t,this._last=t):(this._last=t,this._first=t),t}remove(e){e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e===this._last&&(this._last=e.prev),e===this._first&&(this._first=e.next),e.prev=null,e.next=null}shift(){let e=this._first;return e?(this._first=e.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,e.value):null}},oe={nextDraw:null,frames:new pi,timeouts:new pi,immediates:new pi,timer:()=>ae.window.performance||ae.window.Date,transforms:[],frame(s){let e=oe.frames.push({run:s});return oe.nextDraw===null&&(oe.nextDraw=ae.window.requestAnimationFrame(oe._draw)),e},timeout(s,e){e=e||0;let t=oe.timer().now()+e,i=oe.timeouts.push({run:s,time:t});return oe.nextDraw===null&&(oe.nextDraw=ae.window.requestAnimationFrame(oe._draw)),i},immediate(s){let e=oe.immediates.push(s);return oe.nextDraw===null&&(oe.nextDraw=ae.window.requestAnimationFrame(oe._draw)),e},cancelFrame(s){s!=null&&oe.frames.remove(s)},clearTimeout(s){s!=null&&oe.timeouts.remove(s)},cancelImmediate(s){s!=null&&oe.immediates.remove(s)},_draw(s){let e=null,t=oe.timeouts.last();for(;(e=oe.timeouts.shift())&&(s>=e.time?e.run():oe.timeouts.push(e),e!==t););let i=null,a=oe.frames.last();for(;i!==a&&(i=oe.frames.shift());)i.run(s);let r=null;for(;r=oe.immediates.shift();)r();oe.nextDraw=oe.timeouts.first()||oe.frames.first()?ae.window.requestAnimationFrame(oe._draw):null}},Fd=function(s){let e=s.start,t=s.runner.duration();return{start:e,duration:t,end:e+t,runner:s.runner}},Yd=function(){let s=ae.window;return(s.performance||s.Date).now()},ha=class extends At{constructor(e=Yd){super(),this._timeSource=e,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){let e=this.getLastRunnerInfo(),t=e?e.runner.duration():0;return(e?e.start:this._time)+t}getEndTimeOfTimeline(){let e=this._runners.map(t=>t.start+t.runner.duration());return Math.max(0,...e)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(e){return this._runners[this._runnerIds.indexOf(e)]||null}pause(){return this._paused=!0,this._continue()}persist(e){return e==null?this._persist:(this._persist=e,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(e){let t=this.speed();if(e==null)return this.speed(-t);let i=Math.abs(t);return this.speed(e?-i:i)}schedule(e,t,i){if(e==null)return this._runners.map(Fd);let a=0,r=this.getEndTime();if(t=t||0,i==null||i==="last"||i==="after")a=r;else if(i==="absolute"||i==="start")a=t,t=0;else if(i==="now")a=this._time;else if(i==="relative"){let l=this.getRunnerInfoById(e.id);l&&(a=l.start+t,t=0)}else{if(i!=="with-last")throw new Error('Invalid value for the "when" parameter');{let l=this.getLastRunnerInfo();a=l?l.start:this._time}}e.unschedule(),e.timeline(this);let n=e.persist(),o={persist:n===null?this._persist:n,start:a+t,runner:e};return this._lastRunnerId=e.id,this._runners.push(o),this._runners.sort((l,c)=>l.start-c.start),this._runnerIds=this._runners.map(l=>l.runner.id),this.updateTime()._continue(),this}seek(e){return this.time(this._time+e)}source(e){return e==null?this._timeSource:(this._timeSource=e,this)}speed(e){return e==null?this._speed:(this._speed=e,this)}stop(){return this.time(0),this.pause()}time(e){return e==null?this._time:(this._time=e,this._continue(!0))}unschedule(e){let t=this._runnerIds.indexOf(e.id);return t<0||(this._runners.splice(t,1),this._runnerIds.splice(t,1),e.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(e=!1){return oe.cancelFrame(this._nextFrame),this._nextFrame=null,e?this._stepImmediate():(this._paused||(this._nextFrame=oe.frame(this._step)),this)}_stepFn(e=!1){let t=this._timeSource(),i=t-this._lastSourceTime;e&&(i=0);let a=this._speed*i+(this._time-this._lastStepTime);this._lastSourceTime=t,e||(this._time+=a,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let n=this._runners.length;n--;){let o=this._runners[n],l=o.runner;this._time-o.start<=0&&l.reset()}let r=!1;for(let n=0,o=this._runners.length;n<o;n++){let l=this._runners[n],c=l.runner,h=a,d=this._time-l.start;if(d<=0){r=!0;continue}d<h&&(h=d),c.active()&&(c.step(h).done?l.persist!==!0&&c.duration()-c.time()+this._time+l.persist<this._time&&(c.unschedule(),--n,--o):r=!0)}return r&&!(this._speed<0&&this._time===0)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}};J({Element:{timeline:function(s){return s==null?(this._timeline=this._timeline||new ha,this._timeline):(this._timeline=s,this)}}});var Ne=class s extends At{constructor(e){super(),this.id=s.id++,e=typeof(e=e??ys)=="function"?new Wt(e):e,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration=typeof e=="number"&&e,this._isDeclarative=e instanceof Wt,this._stepper=this._isDeclarative?e:new Si,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new Q,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(e,t,i){let a=1,r=!1,n=0;return t=t??Md,i=i||"last",typeof(e=e??ys)!="object"||e instanceof Ai||(t=e.delay??t,i=e.when??i,r=e.swing||r,a=e.times??a,n=e.wait??n,e=e.duration??ys),{duration:e,delay:t,swing:r,times:a,wait:n,when:i}}active(e){return e==null?this.enabled:(this.enabled=e,this)}addTransform(e){return this.transforms.lmultiplyO(e),this}after(e){return this.on("finished",e)}animate(e,t,i){let a=s.sanitise(e,t,i),r=new s(a.duration);return this._timeline&&r.timeline(this._timeline),this._element&&r.element(this._element),r.loop(a).schedule(a.delay,a.when)}clearTransform(){return this.transforms=new Q,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter(e=>!e.isTransform))}delay(e){return this.animate(0,e)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(e){return this.queue(null,e)}ease(e){return this._stepper=new Si(e),this}element(e){return e==null?this._element:(this._element=e,e._prepareRunner(),this)}finish(){return this.step(1/0)}loop(e,t,i){return typeof e=="object"&&(t=e.swing,i=e.wait,e=e.times),this._times=e||1/0,this._swing=t||!1,this._wait=i||0,this._times===!0&&(this._times=1/0),this}loops(e){let t=this._duration+this._wait;if(e==null){let r=Math.floor(this._time/t),n=(this._time-r*t)/this._duration;return Math.min(r+n,this._times)}let i=e%1,a=t*Math.floor(e)+this._duration*i;return this.time(a)}persist(e){return e==null?this._persist:(this._persist=e,this)}position(e){let t=this._time,i=this._duration,a=this._wait,r=this._times,n=this._swing,o=this._reverse,l;if(e==null){let d=function(g){let p=n*Math.floor(g%(2*(a+i))/(a+i)),f=p&&!o||!p&&o,x=Math.pow(-1,f)*(g%(a+i))/i+f;return Math.max(Math.min(x,1),0)},u=r*(a+i)-a;return l=t<=0?Math.round(d(1e-5)):t<u?d(t):Math.round(d(u-1e-5)),l}let c=Math.floor(this.loops()),h=n&&c%2==0;return l=c+(h&&!o||o&&h?e:1-e),this.loops(l)}progress(e){return e==null?Math.min(1,this._time/this.duration()):this.time(e*this.duration())}queue(e,t,i,a){return this._queue.push({initialiser:e||ro,runner:t||ro,retarget:i,isTransform:a,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(e){return this._reverse=e??!this._reverse,this}schedule(e,t,i){if(e instanceof ha||(i=t,t=e,e=this.timeline()),!e)throw Error("Runner cannot be scheduled without timeline");return e.schedule(this,t,i),this}step(e){if(!this.enabled)return this;e=e??16,this._time+=e;let t=this.position(),i=this._lastPosition!==t&&this._time>=0;this._lastPosition=t;let a=this.duration(),r=this._lastTime<=0&&this._time>0,n=this._lastTime<a&&this._time>=a;this._lastTime=this._time,r&&this.fire("start",this);let o=this._isDeclarative;this.done=!o&&!n&&this._time>=a,this._reseted=!1;let l=!1;return(i||o)&&(this._initialise(i),this.transforms=new Q,l=this._run(o?e:t),this.fire("step",this)),this.done=this.done||l&&o,n&&this.fire("finished",this),this}time(e){if(e==null)return this._time;let t=e-this._time;return this.step(t),this}timeline(e){return e===void 0?this._timeline:(this._timeline=e,this)}unschedule(){let e=this.timeline();return e&&e.unschedule(this),this}_initialise(e){if(e||this._isDeclarative)for(let t=0,i=this._queue.length;t<i;++t){let a=this._queue[t],r=this._isDeclarative||!a.initialised&&e;e=!a.finished,r&&e&&(a.initialiser.call(this),a.initialised=!0)}}_rememberMorpher(e,t){if(this._history[e]={morpher:t,caller:this._queue[this._queue.length-1]},this._isDeclarative){let i=this.timeline();i&&i.play()}}_run(e){let t=!0;for(let i=0,a=this._queue.length;i<a;++i){let r=this._queue[i],n=r.runner.call(this,e);r.finished=r.finished||n===!0,t=t&&r.finished}return t}_tryRetarget(e,t,i){if(this._history[e]){if(!this._history[e].caller.initialised){let r=this._queue.indexOf(this._history[e].caller);return this._queue.splice(r,1),!1}this._history[e].caller.retarget?this._history[e].caller.retarget.call(this,t,i):this._history[e].morpher.to(t),this._history[e].caller.finished=!1;let a=this.timeline();return a&&a.play(),!0}return!1}};Ne.id=0;var jt=class{constructor(e=new Q,t=-1,i=!0){this.transforms=e,this.id=t,this.done=i}clearTransformsFromQueue(){}};U([Ne,jt],{mergeWith(s){return new jt(s.transforms.lmultiply(this.transforms),s.id)}});var No=(s,e)=>s.lmultiplyO(e),Bo=s=>s.transforms;function Nd(){let s=this._transformationRunners.runners.map(Bo).reduce(No,new Q);this.transform(s),this._transformationRunners.merge(),this._transformationRunners.length()===1&&(this._frameId=null)}var Xs=class{constructor(){this.runners=[],this.ids=[]}add(e){if(this.runners.includes(e))return;let t=e.id+1;return this.runners.push(e),this.ids.push(t),this}clearBefore(e){let t=this.ids.indexOf(e+1)||1;return this.ids.splice(0,t,0),this.runners.splice(0,t,new jt).forEach(i=>i.clearTransformsFromQueue()),this}edit(e,t){let i=this.ids.indexOf(e+1);return this.ids.splice(i,1,e+1),this.runners.splice(i,1,t),this}getByID(e){return this.runners[this.ids.indexOf(e+1)]}length(){return this.ids.length}merge(){let e=null;for(let t=0;t<this.runners.length;++t){let i=this.runners[t];if(e&&i.done&&e.done&&(!i._timeline||!i._timeline._runnerIds.includes(i.id))&&(!e._timeline||!e._timeline._runnerIds.includes(e.id))){this.remove(i.id);let a=i.mergeWith(e);this.edit(e.id,a),e=a,--t}else e=i}return this}remove(e){let t=this.ids.indexOf(e+1);return this.ids.splice(t,1),this.runners.splice(t,1),this}};J({Element:{animate(s,e,t){let i=Ne.sanitise(s,e,t),a=this.timeline();return new Ne(i.duration).loop(i).element(this).timeline(a.play()).schedule(i.delay,i.when)},delay(s,e){return this.animate(0,s,e)},_clearTransformRunnersBefore(s){this._transformationRunners.clearBefore(s.id)},_currentTransform(s){return this._transformationRunners.runners.filter(e=>e.id<=s.id).map(Bo).reduce(No,new Q)},_addRunner(s){this._transformationRunners.add(s),oe.cancelImmediate(this._frameId),this._frameId=oe.immediate(Nd.bind(this))},_prepareRunner(){this._frameId==null&&(this._transformationRunners=new Xs().add(new jt(new Q(this))))}}});U(Ne,{attr(s,e){return this.styleAttr("attr",s,e)},css(s,e){return this.styleAttr("css",s,e)},styleAttr(s,e,t){if(typeof e=="string")return this.styleAttr(s,{[e]:t});let i=e;if(this._tryRetarget(s,i))return this;let a=new Ue(this._stepper).to(i),r=Object.keys(i);return this.queue(function(){a=a.from(this.element()[s](r))},function(n){return this.element()[s](a.at(n).valueOf()),a.done()},function(n){let o=Object.keys(n),l=(c=r,o.filter(d=>!c.includes(d)));var c;if(l.length){let d=this.element()[s](l),u=new Ct(a.from()).valueOf();Object.assign(u,d),a.from(u)}let h=new Ct(a.to()).valueOf();Object.assign(h,n),a.to(h),r=o,i=n}),this._rememberMorpher(s,a),this},zoom(s,e){if(this._tryRetarget("zoom",s,e))return this;let t=new Ue(this._stepper).to(new te(s));return this.queue(function(){t=t.from(this.element().zoom())},function(i){return this.element().zoom(t.at(i),e),t.done()},function(i,a){e=a,t.to(i)}),this._rememberMorpher("zoom",t),this},transform(s,e,t){if(e=s.relative||e,this._isDeclarative&&!e&&this._tryRetarget("transform",s))return this;let i=Q.isMatrixLike(s);t=s.affine!=null?s.affine:t??!i;let a=new Ue(this._stepper).type(t?Mi:Q),r,n,o,l,c;return this.queue(function(){n=n||this.element(),r=r||Ts(s,n),c=new Q(e?void 0:n),n._addRunner(this),e||n._clearTransformRunnersBefore(this)},function(h){e||this.clearTransform();let{x:d,y:u}=new ne(r).transform(n._currentTransform(this)),g=new Q({...s,origin:[d,u]}),p=this._isDeclarative&&o?o:c;if(t){g=g.decompose(d,u),p=p.decompose(d,u);let x=g.rotate,b=p.rotate,m=[x-360,x,x+360],v=m.map(S=>Math.abs(S-b)),A=Math.min(...v),y=v.indexOf(A);g.rotate=m[y]}e&&(i||(g.rotate=s.rotate||0),this._isDeclarative&&l&&(p.rotate=l)),a.from(p),a.to(g);let f=a.at(h);return l=f.rotate,o=new Q(f),this.addTransform(o),n._addRunner(this),a.done()},function(h){(h.origin||"center").toString()!==(s.origin||"center").toString()&&(r=Ts(h,n)),s={...h,origin:r}},!0),this._isDeclarative&&this._rememberMorpher("transform",a),this},x(s){return this._queueNumber("x",s)},y(s){return this._queueNumber("y",s)},ax(s){return this._queueNumber("ax",s)},ay(s){return this._queueNumber("ay",s)},dx(s=0){return this._queueNumberDelta("x",s)},dy(s=0){return this._queueNumberDelta("y",s)},dmove(s,e){return this.dx(s).dy(e)},_queueNumberDelta(s,e){if(e=new te(e),this._tryRetarget(s,e))return this;let t=new Ue(this._stepper).to(e),i=null;return this.queue(function(){i=this.element()[s](),t.from(i),t.to(i+e)},function(a){return this.element()[s](t.at(a)),t.done()},function(a){t.to(i+new te(a))}),this._rememberMorpher(s,t),this},_queueObject(s,e){if(this._tryRetarget(s,e))return this;let t=new Ue(this._stepper).to(e);return this.queue(function(){t.from(this.element()[s]())},function(i){return this.element()[s](t.at(i)),t.done()}),this._rememberMorpher(s,t),this},_queueNumber(s,e){return this._queueObject(s,new te(e))},cx(s){return this._queueNumber("cx",s)},cy(s){return this._queueNumber("cy",s)},move(s,e){return this.x(s).y(e)},amove(s,e){return this.ax(s).ay(e)},center(s,e){return this.cx(s).cy(e)},size(s,e){let t;return s&&e||(t=this._element.bbox()),s||(s=t.width/t.height*e),e||(e=t.height/t.width*s),this.width(s).height(e)},width(s){return this._queueNumber("width",s)},height(s){return this._queueNumber("height",s)},plot(s,e,t,i){if(arguments.length===4)return this.plot([s,e,t,i]);if(this._tryRetarget("plot",s))return this;let a=new Ue(this._stepper).type(this._element.MorphArray).to(s);return this.queue(function(){a.from(this._element.array())},function(r){return this._element.plot(a.at(r)),a.done()}),this._rememberMorpher("plot",a),this},leading(s){return this._queueNumber("leading",s)},viewbox(s,e,t,i){return this._queueObject("viewbox",new xe(s,e,t,i))},update(s){return typeof s!="object"?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(s.opacity!=null&&this.attr("stop-opacity",s.opacity),s.color!=null&&this.attr("stop-color",s.color),s.offset!=null&&this.attr("offset",s.offset),this)}}),U(Ne,{rx:Qs,ry:er,from:Xo,to:Do}),se(Ne,"Runner");var Li=class extends Ce{constructor(e,t=e){super(he("svg",e),t),this.namespace()}defs(){return this.isRoot()?ze(this.node.querySelector("defs"))||this.put(new Bt):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof ae.window.SVGElement)&&this.node.parentNode.nodeName!=="#document-fragment"}namespace(){return this.isRoot()?this.attr({xmlns:Us,version:"1.1"}).attr("xmlns:xlink",Zt,bs):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,bs).attr("xmlns:svgjs",null,bs)}root(){return this.isRoot()?this:super.root()}};J({Container:{nested:ce(function(){return this.put(new Li)})}}),se(Li,"Svg",!0);var Ds=class extends Ce{constructor(s,e=s){super(he("symbol",s),e)}};J({Container:{symbol:ce(function(){return this.put(new Ds)})}}),se(Ds,"Symbol");var Wo=Object.freeze({__proto__:null,amove:function(s,e){return this.ax(s).ay(e)},ax:function(s){return this.attr("x",s)},ay:function(s){return this.attr("y",s)},build:function(s){return this._build=!!s,this},center:function(s,e,t=this.bbox()){return this.cx(s,t).cy(e,t)},cx:function(s,e=this.bbox()){return s==null?e.cx:this.attr("x",this.attr("x")+s-e.cx)},cy:function(s,e=this.bbox()){return s==null?e.cy:this.attr("y",this.attr("y")+s-e.cy)},length:function(){return this.node.getComputedTextLength()},move:function(s,e,t=this.bbox()){return this.x(s,t).y(e,t)},plain:function(s){return this._build===!1&&this.clear(),this.node.appendChild(ae.document.createTextNode(s)),this},x:function(s,e=this.bbox()){return s==null?e.x:this.attr("x",this.attr("x")+s-e.x)},y:function(s,e=this.bbox()){return s==null?e.y:this.attr("y",this.attr("y")+s-e.y)}}),Ie=class extends Me{constructor(e,t=e){super(he("text",e),t),this.dom.leading=this.dom.leading??new te(1.3),this._rebuild=!0,this._build=!1}leading(e){return e==null?this.dom.leading:(this.dom.leading=new te(e),this.rebuild())}rebuild(e){if(typeof e=="boolean"&&(this._rebuild=e),this._rebuild){let t=this,i=0,a=this.dom.leading;this.each(function(r){if(Es(this.node))return;let n=ae.window.getComputedStyle(this.node).getPropertyValue("font-size"),o=a*new te(n);this.dom.newLined&&(this.attr("x",t.attr("x")),this.text()===`
|
17
|
+
`?i+=o:(this.attr("dy",r?o+i:0),i=0))}),this.fire("rebuild")}return this}setData(e){return this.dom=e,this.dom.leading=new te(e.leading||1.3),this}writeDataToDom(){return Ao(this,this.dom,{leading:1.3}),this}text(e){if(e===void 0){let t=this.node.childNodes,i=0;e="";for(let a=0,r=t.length;a<r;++a)t[a].nodeName==="textPath"||Es(t[a])?a===0&&(i=a+1):(a!==i&&t[a].nodeType!==3&&ze(t[a]).dom.newLined===!0&&(e+=`
|
18
|
+
`),e+=t[a].textContent);return e}if(this.clear().build(!0),typeof e=="function")e.call(this,this);else for(let t=0,i=(e=(e+"").split(`
|
19
|
+
`)).length;t<i;t++)this.newLine(e[t]);return this.build(!1).rebuild()}};U(Ie,Wo),J({Container:{text:ce(function(s=""){return this.put(new Ie).text(s)}),plain:ce(function(s=""){return this.put(new Ie).plain(s)})}}),se(Ie,"Text");var Yt=class extends Me{constructor(e,t=e){super(he("tspan",e),t),this._build=!1}dx(e){return this.attr("dx",e)}dy(e){return this.attr("dy",e)}newLine(){this.dom.newLined=!0;let e=this.parent();if(!(e instanceof Ie))return this;let t=e.index(this),i=ae.window.getComputedStyle(this.node).getPropertyValue("font-size"),a=e.dom.leading*new te(i);return this.dy(t?a:0).attr("x",e.x())}text(e){return e==null?this.node.textContent+(this.dom.newLined?`
|
20
|
+
`:""):(typeof e=="function"?(this.clear().build(!0),e.call(this,this),this.build(!1)):this.plain(e),this)}};U(Yt,Wo),J({Tspan:{tspan:ce(function(s=""){let e=new Yt;return this._build||this.clear(),this.put(e).text(s)})},Text:{newLine:function(s=""){return this.tspan(s).newLine()}}}),se(Yt,"Tspan");var xi=class extends Me{constructor(e,t=e){super(he("circle",e),t)}radius(e){return this.attr("r",e)}rx(e){return this.attr("r",e)}ry(e){return this.rx(e)}size(e){return this.radius(new te(e).divide(2))}};U(xi,{x:To,y:Eo,cx:Oo,cy:zo,width:Ro,height:Ho}),J({Container:{circle:ce(function(s=0){return this.put(new xi).size(s).move(0,0)})}}),se(xi,"Circle");var bi=class extends Ce{constructor(e,t=e){super(he("clipPath",e),t)}remove(){return this.targets().forEach(function(e){e.unclip()}),super.remove()}targets(){return Mt("svg [clip-path*="+this.id()+"]")}};J({Container:{clip:ce(function(){return this.defs().put(new bi)})},Element:{clipper(){return this.reference("clip-path")},clipWith(s){let e=s instanceof bi?s:this.parent().clip().add(s);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),se(bi,"ClipPath");var da=class extends we{constructor(e,t=e){super(he("foreignObject",e),t)}};J({Container:{foreignObject:ce(function(s,e){return this.put(new da).size(s,e)})}}),se(da,"ForeignObject");var jo=Object.freeze({__proto__:null,dmove:function(s,e){return this.children().forEach(t=>{let i;try{i=t.node instanceof zi().SVGSVGElement?new xe(t.attr(["x","y","width","height"])):t.bbox()}catch{return}let a=new Q(t),r=a.translate(s,e).transform(a.inverse()),n=new ne(i.x,i.y).transform(r);t.move(n.x,n.y)}),this},dx:function(s){return this.dmove(s,0)},dy:function(s){return this.dmove(0,s)},height:function(s,e=this.bbox()){return s==null?e.height:this.size(e.width,s,e)},move:function(s=0,e=0,t=this.bbox()){let i=s-t.x,a=e-t.y;return this.dmove(i,a)},size:function(s,e,t=this.bbox()){let i=qt(this,s,e,t),a=i.width/t.width,r=i.height/t.height;return this.children().forEach(n=>{let o=new ne(t).transform(new Q(n).inverse());n.scale(a,r,o.x,o.y)}),this},width:function(s,e=this.bbox()){return s==null?e.width:this.size(s,e.height,e)},x:function(s,e=this.bbox()){return s==null?e.x:this.move(s,e.y,e)},y:function(s,e=this.bbox()){return s==null?e.y:this.move(e.x,s,e)}}),je=class extends Ce{constructor(e,t=e){super(he("g",e),t)}};U(je,jo),J({Container:{group:ce(function(){return this.put(new je)})}}),se(je,"G");var Xt=class extends Ce{constructor(e,t=e){super(he("a",e),t)}target(e){return this.attr("target",e)}to(e){return this.attr("href",e,Zt)}};U(Xt,jo),J({Container:{link:ce(function(s){return this.put(new Xt).to(s)})},Element:{unlink(){let s=this.linker();if(!s)return this;let e=s.parent();if(!e)return this.remove();let t=e.index(s);return e.add(this,t),s.remove(),this},linkTo(s){let e=this.linker();return e||(e=new Xt,this.wrap(e)),typeof s=="function"?s.call(e,e):e.to(s),this},linker(){let s=this.parent();return s&&s.node.nodeName.toLowerCase()==="a"?s:null}}}),se(Xt,"A");var mi=class extends Ce{constructor(e,t=e){super(he("mask",e),t)}remove(){return this.targets().forEach(function(e){e.unmask()}),super.remove()}targets(){return Mt("svg [mask*="+this.id()+"]")}};J({Container:{mask:ce(function(){return this.defs().put(new mi)})},Element:{masker(){return this.reference("mask")},maskWith(s){let e=s instanceof mi?s:this.parent().mask().add(s);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),se(mi,"Mask");var ua=class extends we{constructor(e,t=e){super(he("stop",e),t)}update(e){return(typeof e=="number"||e instanceof te)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),e.opacity!=null&&this.attr("stop-opacity",e.opacity),e.color!=null&&this.attr("stop-color",e.color),e.offset!=null&&this.attr("offset",new te(e.offset)),this}};J({Gradient:{stop:function(s,e,t){return this.put(new ua).update(s,e,t)}}}),se(ua,"Stop");var vi=class extends we{constructor(e,t=e){super(he("style",e),t)}addText(e=""){return this.node.textContent+=e,this}font(e,t,i={}){return this.rule("@font-face",{fontFamily:e,src:t,...i})}rule(e,t){return this.addText(function(i,a){if(!i)return"";if(!a)return i;let r=i+"{";for(let n in a)r+=n.replace(/([A-Z])/g,function(o,l){return"-"+l.toLowerCase()})+":"+a[n]+";";return r+="}",r}(e,t))}};J("Dom",{style(s,e){return this.put(new vi).rule(s,e)},fontface(s,e,t){return this.put(new vi).font(s,e,t)}}),se(vi,"Style");var yi=class extends Ie{constructor(e,t=e){super(he("textPath",e),t)}array(){let e=this.track();return e?e.array():null}plot(e){let t=this.track(),i=null;return t&&(i=t.plot(e)),e==null?i:this}track(){return this.reference("href")}};J({Container:{textPath:ce(function(s,e){return s instanceof Ie||(s=this.text(s)),s.path(e)})},Text:{path:ce(function(s,e=!0){let t=new yi,i;if(s instanceof nt||(s=this.defs().path(s)),t.attr("href","#"+s,Zt),e)for(;i=this.node.firstChild;)t.node.appendChild(i);return this.put(t)}),textPath(){return this.findOne("textPath")}},Path:{text:ce(function(s){return s instanceof Ie||(s=new Ie().addTo(this.parent()).text(s)),s.path(this)}),targets(){return Mt("svg textPath").filter(s=>(s.attr("href")||"").includes(this.id()))}}}),yi.prototype.MorphArray=Pe,se(yi,"TextPath");var ga=class extends Me{constructor(e,t=e){super(he("use",e),t)}use(e,t){return this.attr("href",(t||"")+"#"+e,Zt)}};J({Container:{use:ce(function(s,e){return this.put(new ga).use(s,e)})}}),se(ga,"Use");var Bd=Se;U([Li,Ds,ra,St,na],_e("viewbox")),U([yt,Ke,Ze,nt],_e("marker")),U(Ie,_e("Text")),U(nt,_e("Path")),U(Bt,_e("Defs")),U([Ie,Yt],_e("Tspan")),U([Ft,Dt,kt,Ne],_e("radius")),U(At,_e("EventTarget")),U(ot,_e("Dom")),U(we,_e("Element")),U(Me,_e("Shape")),U([Ce,ca],_e("Container")),U(kt,_e("Gradient")),U(Ne,_e("Runner")),Je.extend([...new Set(wo)]),function(s=[]){Hs.push(...[].concat(s))}([te,Xe,xe,Q,Qe,Ge,Pe,ne]),U(Hs,{to(s){return new Ue().type(this.constructor).from(this.toArray()).to(s)},fromArray(s){return this.init(s),this},toConsumable(){return this.toArray()},morph(s,e,t,i,a){return this.fromArray(s.map(function(r,n){return i.step(r,e[n],t,a[n],a)}))}});var le=class extends we{constructor(e){super(he("filter",e),e),this.$source="SourceGraphic",this.$sourceAlpha="SourceAlpha",this.$background="BackgroundImage",this.$backgroundAlpha="BackgroundAlpha",this.$fill="FillPaint",this.$stroke="StrokePaint",this.$autoSetIn=!0}put(e,t){return!(e=super.put(e,t)).attr("in")&&this.$autoSetIn&&e.attr("in",this.$source),e.attr("result")||e.attr("result",e.id()),e}remove(){return this.targets().each("unfilter"),super.remove()}targets(){return Mt('svg [filter*="'+this.id()+'"]')}toString(){return"url(#"+this.id()+")"}},_i=class extends we{constructor(e,t){super(e,t),this.result(this.id())}in(e){if(e==null){let t=this.attr("in");return this.parent()&&this.parent().find(`[result="${t}"]`)[0]||t}return this.attr("in",e)}result(e){return this.attr("result",e)}toString(){return this.result()}},Oe=s=>function(...e){for(let t=s.length;t--;)e[t]!=null&&this.attr(s[t],e[t])},Wd={blend:Oe(["in","in2","mode"]),colorMatrix:Oe(["type","values"]),composite:Oe(["in","in2","operator"]),convolveMatrix:function(s){s=new Qe(s).toString(),this.attr({order:Math.sqrt(s.split(" ").length),kernelMatrix:s})},diffuseLighting:Oe(["surfaceScale","lightingColor","diffuseConstant","kernelUnitLength"]),displacementMap:Oe(["in","in2","scale","xChannelSelector","yChannelSelector"]),dropShadow:Oe(["in","dx","dy","stdDeviation"]),flood:Oe(["flood-color","flood-opacity"]),gaussianBlur:function(s=0,e=s){this.attr("stdDeviation",s+" "+e)},image:function(s){this.attr("href",s,Zt)},morphology:Oe(["operator","radius"]),offset:Oe(["dx","dy"]),specularLighting:Oe(["surfaceScale","lightingColor","diffuseConstant","specularExponent","kernelUnitLength"]),tile:Oe([]),turbulence:Oe(["baseFrequency","numOctaves","seed","stitchTiles","type"])};["blend","colorMatrix","componentTransfer","composite","convolveMatrix","diffuseLighting","displacementMap","dropShadow","flood","gaussianBlur","image","merge","morphology","offset","specularLighting","tile","turbulence"].forEach(s=>{let e=Ut(s),t=Wd[s];le[e+"Effect"]=class extends _i{constructor(i){super(he("fe"+e,i),i)}update(i){return t.apply(this,i),this}},le.prototype[s]=ce(function(i,...a){let r=new le[e+"Effect"];return i==null?this.put(r):(typeof i=="function"?i.call(r,r):a.unshift(i),this.put(r).update(a))})}),U(le,{merge(s){let e=this.put(new le.MergeEffect);return typeof s=="function"?(s.call(e,e),e):((s instanceof Array?s:[...arguments]).forEach(t=>{t instanceof le.MergeNode?e.put(t):e.mergeNode(t)}),e)},componentTransfer(s={}){let e=this.put(new le.ComponentTransferEffect);if(typeof s=="function")return s.call(e,e),e;s.r||s.g||s.b||s.a||(s={r:s,g:s,b:s,a:s});for(let t in s)e.add(new le["Func"+t.toUpperCase()](s[t]));return e}});["distantLight","pointLight","spotLight","mergeNode","FuncR","FuncG","FuncB","FuncA"].forEach(s=>{let e=Ut(s);le[e]=class extends _i{constructor(t){super(he("fe"+e,t),t)}}});["funcR","funcG","funcB","funcA"].forEach(function(s){let e=le[Ut(s)],t=ce(function(){return this.put(new e)});le.ComponentTransferEffect.prototype[s]=t});["distantLight","pointLight","spotLight"].forEach(s=>{let e=le[Ut(s)],t=ce(function(){return this.put(new e)});le.DiffuseLightingEffect.prototype[s]=t,le.SpecularLightingEffect.prototype[s]=t}),U(le.MergeEffect,{mergeNode(s){return this.put(new le.MergeNode).attr("in",s)}}),U(Bt,{filter:function(s){let e=this.put(new le);return typeof s=="function"&&s.call(e,e),e}}),U(Ce,{filter:function(s){return this.defs().filter(s)}}),U(we,{filterWith:function(s){let e=s instanceof le?s:this.defs().filter(s);return this.attr("filter",e)},unfilter:function(s){return this.attr("filter",null)},filterer(){return this.reference("filter")}});var jd={blend:function(s,e){return this.parent()&&this.parent().blend(this,s,e)},colorMatrix:function(s,e){return this.parent()&&this.parent().colorMatrix(s,e).in(this)},componentTransfer:function(s){return this.parent()&&this.parent().componentTransfer(s).in(this)},composite:function(s,e){return this.parent()&&this.parent().composite(this,s,e)},convolveMatrix:function(s){return this.parent()&&this.parent().convolveMatrix(s).in(this)},diffuseLighting:function(s,e,t,i){return this.parent()&&this.parent().diffuseLighting(s,t,i).in(this)},displacementMap:function(s,e,t,i){return this.parent()&&this.parent().displacementMap(this,s,e,t,i)},dropShadow:function(s,e,t){return this.parent()&&this.parent().dropShadow(this,s,e,t).in(this)},flood:function(s,e){return this.parent()&&this.parent().flood(s,e)},gaussianBlur:function(s,e){return this.parent()&&this.parent().gaussianBlur(s,e).in(this)},image:function(s){return this.parent()&&this.parent().image(s)},merge:function(s){return s=s instanceof Array?s:[...s],this.parent()&&this.parent().merge(this,...s)},morphology:function(s,e){return this.parent()&&this.parent().morphology(s,e).in(this)},offset:function(s,e){return this.parent()&&this.parent().offset(s,e).in(this)},specularLighting:function(s,e,t,i,a){return this.parent()&&this.parent().specularLighting(s,t,i,a).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(s,e,t,i,a){return this.parent()&&this.parent().turbulence(s,e,t,i,a).in(this)}};U(_i,jd),U(le.MergeEffect,{in:function(s){return s instanceof le.MergeNode?this.add(s,0):this.add(new le.MergeNode().in(s),0),this}}),U([le.CompositeEffect,le.BlendEffect,le.DisplacementMapEffect],{in2:function(s){if(s==null){let e=this.attr("in2");return this.parent()&&this.parent().find(`[result="${e}"]`)[0]||e}return this.attr("in2",s)}}),le.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]};var ye=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{key:"getDefaultFilter",value:function(e,t){var i=this.w;e.unfilter(!0),new le().size("120%","180%","-5%","-40%"),i.config.chart.dropShadow.enabled&&this.dropShadow(e,i.config.chart.dropShadow,t)}},{key:"applyFilter",value:function(e,t,i){var a,r=this,n=this.w;if(e.unfilter(!0),i!=="none"){var o,l,c=n.config.chart.dropShadow,h=i==="lighten"?2:.3;e.filterWith(function(d){d.colorMatrix({type:"matrix",values:`
|
21
|
+
`.concat(h,` 0 0 0 0
|
22
|
+
0 `).concat(h,` 0 0 0
|
23
|
+
0 0 `).concat(h,` 0 0
|
24
|
+
0 0 0 1 0
|
25
|
+
`),in:"SourceGraphic",result:"brightness"}),c.enabled&&r.addShadow(d,t,c,"brightness")}),!c.noUserSpaceOnUse&&((o=e.filterer())===null||o===void 0||(l=o.node)===null||l===void 0||l.setAttribute("filterUnits","userSpaceOnUse")),this._scaleFilterSize((a=e.filterer())===null||a===void 0?void 0:a.node)}else this.getDefaultFilter(e,t)}},{key:"addShadow",value:function(e,t,i,a){var r,n=this.w,o=i.blur,l=i.top,c=i.left,h=i.color,d=i.opacity;if(h=Array.isArray(h)?h[t]:h,((r=n.config.chart.dropShadow.enabledOnSeries)===null||r===void 0?void 0:r.length)>0&&n.config.chart.dropShadow.enabledOnSeries.indexOf(t)===-1)return e;e.offset({in:a,dx:c,dy:l,result:"offset"}),e.gaussianBlur({in:"offset",stdDeviation:o,result:"blur"}),e.flood({"flood-color":h,"flood-opacity":d,result:"flood"}),e.composite({in:"flood",in2:"blur",operator:"in",result:"shadow"}),e.merge(["shadow",a])}},{key:"dropShadow",value:function(e,t){var i,a,r,n,o,l=this,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,h=this.w;return e.unfilter(!0),T.isMsEdge()&&h.config.chart.type==="radialBar"||((i=h.config.chart.dropShadow.enabledOnSeries)===null||i===void 0?void 0:i.length)>0&&((r=h.config.chart.dropShadow.enabledOnSeries)===null||r===void 0?void 0:r.indexOf(c))===-1?e:(e.filterWith(function(d){l.addShadow(d,c,t,"SourceGraphic")}),t.noUserSpaceOnUse||(n=e.filterer())===null||n===void 0||(o=n.node)===null||o===void 0||o.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize((a=e.filterer())===null||a===void 0?void 0:a.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 r=a.config.states.active.filter;r!=="none"&&this.applyFilter(e,t,r.type)}}},{key:"_scaleFilterSize",value:function(e){e&&function(t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),s}(),H=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{key:"roundPathCorners",value:function(e,t){function i(k,M,O){var P=M.x-k.x,L=M.y-k.y,C=Math.sqrt(P*P+L*L);return a(k,M,Math.min(1,O/C))}function a(k,M,O){return{x:k.x+(M.x-k.x)*O,y:k.y+(M.y-k.y)*O}}function r(k,M){k.length>2&&(k[k.length-2]=M.x,k[k.length-1]=M.y)}function n(k){return{x:parseFloat(k[k.length-2]),y:parseFloat(k[k.length-1])}}e.indexOf("NaN")>-1&&(e="");var o=e.split(/[,\s]/).reduce(function(k,M){var O=M.match(/^([a-zA-Z])(.+)/);return O?(k.push(O[1]),k.push(O[2])):k.push(M),k},[]).reduce(function(k,M){return parseFloat(M)==M&&k.length?k[k.length-1].push(M):k.push([M]),k},[]),l=[];if(o.length>1){var c=n(o[0]),h=null;o[o.length-1][0]=="Z"&&o[0].length>2&&(h=["L",c.x,c.y],o[o.length-1]=h),l.push(o[0]);for(var d=1;d<o.length;d++){var u=l[l.length-1],g=o[d],p=g==h?o[1]:o[d+1];if(p&&u&&u.length>2&&g[0]=="L"&&p.length>2&&p[0]=="L"){var f,x,b=n(u),m=n(g),v=n(p);f=i(m,b,t),x=i(m,v,t),r(g,f),g.origPoint=m,l.push(g);var A=a(f,m,.5),y=a(m,x,.5),S=["C",A.x,A.y,y.x,y.y,x.x,x.y];S.origPoint=m,l.push(S)}else l.push(g)}if(h){var w=n(l[l.length-1]);l.push(["Z"]),r(l[0],w)}}else l=o;return l.reduce(function(k,M){return k+M.join(" ")+" "},"")}},{key:"drawLine",value:function(e,t,i,a){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:e,y1:t,x2:i,y2:a,stroke:r,"stroke-dasharray":n,"stroke-width":o,"stroke-linecap":l})}},{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,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,h=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,d=this.w.globals.dom.Paper.rect();return d.attr({x:e,y:t,width:i>0?i:0,height:a>0?a:0,rx:r,ry:r,opacity:o,"stroke-width":l!==null?l:0,stroke:c!==null?c:"none","stroke-dasharray":h}),d.node.setAttribute("fill",n),d}},{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";return this.w.globals.dom.Paper.polygon(e).attr({fill:a,stroke:t,"stroke-width":i})}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;e<0&&(e=0);var i=this.w.globals.dom.Paper.circle(2*e);return t!==null&&i.attr(t),i}},{key:"drawPath",value:function(e){var t=e.d,i=t===void 0?"":t,a=e.stroke,r=a===void 0?"#a8a8a8":a,n=e.strokeWidth,o=n===void 0?1:n,l=e.fill,c=e.fillOpacity,h=c===void 0?1:c,d=e.strokeOpacity,u=d===void 0?1:d,g=e.classes,p=e.strokeLinecap,f=p===void 0?null:p,x=e.strokeDashArray,b=x===void 0?0:x,m=this.w;return f===null&&(f=m.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(m.globals.gridHeight)),m.globals.dom.Paper.path(i).attr({fill:l,"fill-opacity":h,stroke:r,"stroke-opacity":u,"stroke-linecap":f,"stroke-width":o,"stroke-dasharray":b,class:g})}},{key:"group",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w.globals.dom.Paper.group();return e!==null&&t.attr(e),t}},{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,r,n){var o=["C",e,t,i,a,r,n].join(" ");return o}},{key:"quadraticCurve",value:function(e,t,i,a){return["Q",e,t,i,a].join(" ")}},{key:"arc",value:function(e,t,i,a,r,n,o){var l="A";arguments.length>7&&arguments[7]!==void 0&&arguments[7]&&(l="a");var c=[l,e,t,i,a,r,n,o].join(" ");return c}},{key:"renderPaths",value:function(e){var t,i=e.j,a=e.realIndex,r=e.pathFrom,n=e.pathTo,o=e.stroke,l=e.strokeWidth,c=e.strokeLinecap,h=e.fill,d=e.animationDelay,u=e.initialSpeed,g=e.dataChangeSpeed,p=e.className,f=e.chartType,x=e.shouldClipToGrid,b=x===void 0||x,m=e.bindEventsOnPaths,v=m===void 0||m,A=e.drawShadow,y=A===void 0||A,S=this.w,w=new ye(this.ctx),k=new $t(this.ctx),M=this.w.config.chart.animations.enabled,O=M&&this.w.config.chart.animations.dynamicAnimation.enabled;if(r&&r.startsWith("M 0 0")&&n){var P=n.match(/^M\s+[\d.-]+\s+[\d.-]+/);P&&(r=r.replace(/^M\s+0\s+0/,P[0]))}var L=!!(M&&!S.globals.resized||O&&S.globals.dataChanged&&S.globals.shouldAnimate);L?t=r:(t=n,S.globals.animationEnded=!0);var C=S.config.stroke.dashArray,_=0;_=Array.isArray(C)?C[a]:S.config.stroke.dashArray;var I=this.drawPath({d:t,stroke:o,strokeWidth:l,fill:h,fillOpacity:1,classes:p,strokeLinecap:c,strokeDashArray:_});I.attr("index",a),b&&(f==="bar"&&!S.globals.isHorizontal||S.globals.comboCharts?I.attr({"clip-path":"url(#gridRectBarMask".concat(S.globals.cuid,")")}):I.attr({"clip-path":"url(#gridRectMask".concat(S.globals.cuid,")")})),S.config.chart.dropShadow.enabled&&y&&w.dropShadow(I,S.config.chart.dropShadow,a),v&&(I.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,I)),I.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,I)),I.node.addEventListener("mousedown",this.pathMouseDown.bind(this,I))),I.attr({pathTo:n,pathFrom:r});var E={el:I,j:i,realIndex:a,pathFrom:r,pathTo:n,fill:h,strokeWidth:l,delay:d};return!M||S.globals.resized||S.globals.dataChanged?!S.globals.resized&&S.globals.dataChanged||k.showDelayedElements():k.animatePathsGradually(F(F({},E),{},{speed:u})),S.globals.dataChanged&&O&&L&&k.animatePathsGradually(F(F({},E),{},{speed:g})),I}},{key:"drawPattern",value:function(e,t,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;return this.w.globals.dom.Paper.pattern(t,i,function(n){e==="horizontalLines"?n.line(0,0,i,0).stroke({color:a,width:r+1}):e==="verticalLines"?n.line(0,0,0,t).stroke({color:a,width:r+1}):e==="slantedLines"?n.line(0,0,t,i).stroke({color:a,width:r}):e==="squares"?n.rect(t,i).fill("none").stroke({color:a,width:r}):e==="circles"&&n.circle(t).fill("none").stroke({color:a,width:r})})}},{key:"drawGradient",value:function(e,t,i,a,r){var n,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,c=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],h=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,d=this.w;t.length<9&&t.indexOf("#")===0&&(t=T.hexToRgba(t,a)),i.length<9&&i.indexOf("#")===0&&(i=T.hexToRgba(i,r));var u=0,g=1,p=1,f=null;l!==null&&(u=l[0]!==void 0?l[0]/100:0,g=l[1]!==void 0?l[1]/100:1,p=l[2]!==void 0?l[2]/100:1,f=l[3]!==void 0?l[3]/100:null);var x=!(d.config.chart.type!=="donut"&&d.config.chart.type!=="pie"&&d.config.chart.type!=="polarArea"&&d.config.chart.type!=="bubble");if(n=c&&c.length!==0?d.globals.dom.Paper.gradient(x?"radial":"linear",function(v){(Array.isArray(c[h])?c[h]:c).forEach(function(A){v.stop(A.offset/100,A.color,A.opacity)})}):d.globals.dom.Paper.gradient(x?"radial":"linear",function(v){v.stop(u,t,a),v.stop(g,i,r),v.stop(p,i,r),f!==null&&v.stop(f,t,a)}),x){var b=d.globals.gridWidth/2,m=d.globals.gridHeight/2;d.config.chart.type!=="bubble"?n.attr({gradientUnits:"userSpaceOnUse",cx:b,cy:m,r:o}):n.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else e==="vertical"?n.from(0,0).to(0,1):e==="diagonal"?n.from(0,0).to(1,1):e==="horizontal"?n.from(0,1).to(1,1):e==="diagonal2"&&n.from(1,0).to(0,1);return n}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,i=e.maxWidth,a=e.fontSize,r=e.fontFamily,n=this.getTextRects(t,a,r),o=n.width/t.length,l=Math.floor(i/o);return i<n.width?t.slice(0,l-3)+"...":t}},{key:"drawText",value:function(e){var t=this,i=e.x,a=e.y,r=e.text,n=e.textAnchor,o=e.fontSize,l=e.fontFamily,c=e.fontWeight,h=e.foreColor,d=e.opacity,u=e.maxWidth,g=e.cssClass,p=g===void 0?"":g,f=e.isPlainText,x=f===void 0||f,b=e.dominantBaseline,m=b===void 0?"auto":b,v=this.w;r===void 0&&(r="");var A=r;n||(n="start"),h&&h.length||(h=v.config.chart.foreColor),l=l||v.config.chart.fontFamily,c=c||"regular";var y,S={maxWidth:u,fontSize:o=o||"11px",fontFamily:l};return Array.isArray(r)?y=v.globals.dom.Paper.text(function(w){for(var k=0;k<r.length;k++)A=r[k],u&&(A=t.getTextBasedOnMaxWidth(F({text:r[k]},S))),k===0?w.tspan(A):w.tspan(A).newLine()}):(u&&(A=this.getTextBasedOnMaxWidth(F({text:r},S))),y=x?v.globals.dom.Paper.plain(r):v.globals.dom.Paper.text(function(w){return w.tspan(A)})),y.attr({x:i,y:a,"text-anchor":n,"dominant-baseline":m,"font-size":o,"font-family":l,"font-weight":c,fill:h,class:"apexcharts-text "+p}),y.node.style.fontFamily=l,y.node.style.opacity=d,y}},{key:"getMarkerPath",value:function(e,t,i,a){var r="";switch(i){case"cross":r="M ".concat(e-(a/=1.4)," ").concat(t-a," L ").concat(e+a," ").concat(t+a," M ").concat(e-a," ").concat(t+a," L ").concat(e+a," ").concat(t-a);break;case"plus":r="M ".concat(e-(a/=1.12)," ").concat(t," L ").concat(e+a," ").concat(t," M ").concat(e," ").concat(t-a," L ").concat(e," ").concat(t+a);break;case"star":case"sparkle":var n=5;a*=1.15,i==="sparkle"&&(a/=1.1,n=4);for(var o=Math.PI/n,l=0;l<=2*n;l++){var c=l*o,h=l%2==0?a:a/2;r+=(l===0?"M":"L")+(e+h*Math.sin(c))+","+(t-h*Math.cos(c))}r+="Z";break;case"triangle":r="M ".concat(e," ").concat(t-a,`
|
26
|
+
L `).concat(e+a," ").concat(t+a,`
|
27
|
+
L `).concat(e-a," ").concat(t+a,`
|
28
|
+
Z`);break;case"square":case"rect":r="M ".concat(e-(a/=1.125)," ").concat(t-a,`
|
29
|
+
L `).concat(e+a," ").concat(t-a,`
|
30
|
+
L `).concat(e+a," ").concat(t+a,`
|
31
|
+
L `).concat(e-a," ").concat(t+a,`
|
32
|
+
Z`);break;case"diamond":a*=1.05,r="M ".concat(e," ").concat(t-a,`
|
33
|
+
L `).concat(e+a," ").concat(t,`
|
34
|
+
L `).concat(e," ").concat(t+a,`
|
35
|
+
L `).concat(e-a," ").concat(t,`
|
36
|
+
Z`);break;case"line":r="M ".concat(e-(a/=1.1)," ").concat(t,`
|
37
|
+
L `).concat(e+a," ").concat(t);break;default:a*=2,r="M ".concat(e,", ").concat(t,`
|
38
|
+
m -`).concat(a/2,`, 0
|
39
|
+
a `).concat(a/2,",").concat(a/2," 0 1,0 ").concat(a,`,0
|
40
|
+
a `).concat(a/2,",").concat(a/2," 0 1,0 -").concat(a,",0")}return r}},{key:"drawMarkerShape",value:function(e,t,i,a,r){var n=this.drawPath({d:this.getMarkerPath(e,t,i,a,r),stroke:r.pointStrokeColor,strokeDashArray:r.pointStrokeDashArray,strokeWidth:r.pointStrokeWidth,fill:r.pointFillColor,fillOpacity:r.pointFillOpacity,strokeOpacity:r.pointStrokeOpacity});return n.attr({cx:e,cy:t,shape:r.shape,class:r.class?r.class:""}),n}},{key:"drawMarker",value:function(e,t,i){e=e||0;var a=i.pSize||0;return T.isNumber(t)||(a=0,t=0),this.drawMarkerShape(e,t,i?.shape,a,F(F({},i),i.shape==="line"||i.shape==="plus"||i.shape==="cross"?{pointStrokeColor:i.pointFillColor,pointStrokeOpacity:i.pointFillOpacity}:{}))}},{key:"pathMouseEnter",value:function(e,t){var i=this.w,a=new ye(this.ctx),r=parseInt(e.node.getAttribute("index"),10),n=parseInt(e.node.getAttribute("j"),10);if(typeof i.config.chart.events.dataPointMouseEnter=="function"&&i.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:r,dataPointIndex:n,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:r,dataPointIndex:n,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 o=i.config.states.hover.filter;a.applyFilter(e,r,o.type)}}},{key:"pathMouseLeave",value:function(e,t){var i=this.w,a=new ye(this.ctx),r=parseInt(e.node.getAttribute("index"),10),n=parseInt(e.node.getAttribute("j"),10);typeof i.config.chart.events.dataPointMouseLeave=="function"&&i.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:r,dataPointIndex:n,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:r,dataPointIndex:n,w:i}]),i.config.states.active.filter.type!=="none"&&e.node.getAttribute("selected")==="true"||i.config.states.hover.filter.type!=="none"&&a.getDefaultFilter(e,r)}},{key:"pathMouseDown",value:function(e,t){var i=this.w,a=new ye(this.ctx),r=parseInt(e.node.getAttribute("index"),10),n=parseInt(e.node.getAttribute("j"),10),o="false";if(e.node.getAttribute("selected")==="true"){if(e.node.setAttribute("selected","false"),i.globals.selectedDataPoints[r].indexOf(n)>-1){var l=i.globals.selectedDataPoints[r].indexOf(n);i.globals.selectedDataPoints[r].splice(l,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var c=i.globals.dom.Paper.find(".apexcharts-series path:not(.apexcharts-decoration-element)"),h=i.globals.dom.Paper.find(".apexcharts-series circle:not(.apexcharts-decoration-element), .apexcharts-series rect:not(.apexcharts-decoration-element)"),d=function(p){Array.prototype.forEach.call(p,function(f){f.node.setAttribute("selected","false"),a.getDefaultFilter(f,r)})};d(c),d(h)}e.node.setAttribute("selected","true"),o="true",i.globals.selectedDataPoints[r]===void 0&&(i.globals.selectedDataPoints[r]=[]),i.globals.selectedDataPoints[r].push(n)}if(o==="true"){var u=i.config.states.active.filter;if(u!=="none")a.applyFilter(e,r,u.type);else if(i.config.states.hover.filter!=="none"&&!i.globals.isTouchDevice){var g=i.config.states.hover.filter;a.applyFilter(e,r,g.type)}}else i.config.states.active.filter.type!=="none"&&(i.config.states.hover.filter.type==="none"||i.globals.isTouchDevice?a.getDefaultFilter(e,r):(g=i.config.states.hover.filter,a.applyFilter(e,r,g.type)));typeof i.config.chart.events.dataPointSelection=="function"&&i.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:n,w:i}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:n,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 r=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],n=this.w,o=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:i,foreColor:"#fff",opacity:0});a&&o.attr("transform",a),n.globals.dom.Paper.add(o);var l=o.bbox();return r||(l=o.node.getBoundingClientRect()),o.remove(),{width:l.width,height:l.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])}}]),s}(),ge=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=this.w,i=[];if(t.globals.series.length===0)return i;for(var a=0;a<t.globals.series[t.globals.maxValsInArrayIndex].length;a++){for(var r=0,n=0;n<t.globals.series.length;n++)t.globals.series[n][a]!==void 0&&e.indexOf(n)===-1&&(r+=t.globals.series[n][a]);i.push(r)}return i}},{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:"getStackedSeriesTotalsByGroups",value:function(){var e=this,t=this.w,i=[];return t.globals.seriesGroups.forEach(function(a){var r=[];t.config.series.forEach(function(o,l){a.indexOf(t.globals.seriesNames[l])>-1&&r.push(l)});var n=t.globals.series.map(function(o,l){return r.indexOf(l)===-1?l:-1}).filter(function(o){return o!==-1});i.push(e.getStackedSeriesTotals(n))}),i}},{key:"setSeriesYAxisMappings",value:function(){var e=this.w.globals,t=this.w.config,i=[],a=[],r=[],n=e.series.length>t.yaxis.length||t.yaxis.some(function(d){return Array.isArray(d.seriesName)});t.series.forEach(function(d,u){r.push(u),a.push(null)}),t.yaxis.forEach(function(d,u){i[u]=[]});var o=[];t.yaxis.forEach(function(d,u){var g=!1;if(d.seriesName){var p=[];Array.isArray(d.seriesName)?p=d.seriesName:p.push(d.seriesName),p.forEach(function(f){t.series.forEach(function(x,b){if(x.name===f){var m=b;u===b||n?!n||r.indexOf(b)>-1?i[u].push([u,b]):console.warn("Series '"+x.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(i[b].push([b,u]),m=u),g=!0,(m=r.indexOf(m))!==-1&&r.splice(m,1)}})})}g||o.push(u)}),i=i.map(function(d,u){var g=[];return d.forEach(function(p){a[p[1]]=p[0],g.push(p[1])}),g});for(var l=t.yaxis.length-1,c=0;c<o.length&&(l=o[c],i[l]=[],r);c++){var h=r[0];r.shift(),i[l].push(h),a[h]=l}r.forEach(function(d){i[l].push(d),a[d]=l}),e.seriesYAxisMap=i.map(function(d){return d}),e.seriesYAxisReverseMap=a.map(function(d){return d}),e.seriesYAxisMap.forEach(function(d,u){d.forEach(function(g){t.series[g]&&t.series[g].group===void 0&&(t.series[g].group="apexcharts-axis-".concat(u.toString()))})})}},{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,r){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&&(e.config.markers.hover.size>0?t=e.config.markers.hover.size:t+=e.config.markers.hover.sizeOffset),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 r=0;r<t.length;r++)a+=t[r];else a+=t;return a})}},{key:"getSeriesTotalsXRange",value:function(e,t){var i=this.w;return i.globals.series.map(function(a,r){for(var n=0,o=0;o<a.length;o++)i.globals.seriesX[r][o]>e&&i.globals.seriesX[r][o]<t&&(n+=a[o]);return n})}},{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 r=0;r<t.length;r++){var n=e.globals.stackedSeriesTotals[r],o=0;n&&(o=100*t[r]/n),a.push(o)}else{var l=100*t/e.globals.seriesTotals.reduce(function(c,h){return c+h},0);a.push(l)}return a})}},{key:"getCalculatedRatios",value:function(){var e,t,i,a=this,r=this.w,n=r.globals,o=[],l=0,c=[],h=.1,d=0;if(n.yRange=[],n.isMultipleYAxis)for(var u=0;u<n.minYArr.length;u++)n.yRange.push(Math.abs(n.minYArr[u]-n.maxYArr[u])),c.push(0);else n.yRange.push(Math.abs(n.minY-n.maxY));n.xRange=Math.abs(n.maxX-n.minX),n.zRange=Math.abs(n.maxZ-n.minZ);for(var g=0;g<n.yRange.length;g++)o.push(n.yRange[g]/n.gridHeight);if(t=n.xRange/n.gridWidth,e=n.yRange/n.gridWidth,i=n.xRange/n.gridHeight,(l=n.zRange/n.gridHeight*16)||(l=1),n.minY!==Number.MIN_VALUE&&Math.abs(n.minY)!==0&&(n.hasNegs=!0),r.globals.seriesYAxisReverseMap.length>0){var p=function(x,b){var m=r.config.yaxis[r.globals.seriesYAxisReverseMap[b]],v=x<0?-1:1;return x=Math.abs(x),m.logarithmic&&(x=a.getBaseLog(m.logBase,x)),-v*x/o[b]};if(n.isMultipleYAxis){c=[];for(var f=0;f<o.length;f++)c.push(p(n.minYArr[f],f))}else(c=[]).push(p(n.minY,0)),n.minY!==Number.MIN_VALUE&&Math.abs(n.minY)!==0&&(h=-n.minY/e,d=n.minX/t)}else(c=[]).push(0),h=0,d=0;return{yRatio:o,invertedYRatio:e,zRatio:l,xRatio:t,invertedXRatio:i,baseLineInvertedY:h,baseLineY:c,baseLineX:d}}},{key:"getLogSeries",value:function(e){var t=this,i=this.w;return i.globals.seriesLog=e.map(function(a,r){var n=i.globals.seriesYAxisReverseMap[r];return i.config.yaxis[n]&&i.config.yaxis[n].logarithmic?a.map(function(o){return o===null?null:t.getLogVal(i.config.yaxis[n].logBase,o,r)}):a}),i.globals.invalidLogScale?e:i.globals.seriesLog}},{key:"getLogValAtSeriesIndex",value:function(e,t){if(e===null)return null;var i=this.w,a=i.globals.seriesYAxisReverseMap[t];return i.config.yaxis[a]&&i.config.yaxis[a].logarithmic?this.getLogVal(i.config.yaxis[a].logBase,e,t):e}},{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,r=a.globals.minYArr[i]===0?-1:this.getBaseLog(e,a.globals.minYArr[i]),n=(a.globals.maxYArr[i]===0?0:this.getBaseLog(e,a.globals.maxYArr[i]))-r;return t<1?t/n:(this.getBaseLog(e,t)-r)/n}},{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(r,n){var o=i.globals.seriesYAxisReverseMap[n];if(i.config.yaxis[o]&&t.w.config.yaxis[o].logarithmic){var l,c=-Number.MAX_VALUE,h=Number.MIN_VALUE;return a.seriesLog.forEach(function(d,u){d.forEach(function(g){i.config.yaxis[u]&&i.config.yaxis[u].logarithmic&&(c=Math.max(g,c),h=Math.min(g,h))})}),l=Math.pow(a.yRange[n],Math.abs(h-c)/a.yRange[n]),a.yLogRatio[n]=l/a.gridHeight,l}}),a.invalidLogScale?e.slice():a.yLogRatio}},{key:"drawSeriesByGroup",value:function(e,t,i,a){var r=this.w,n=[];return e.series.length>0&&t.forEach(function(o){var l=[],c=[];e.i.forEach(function(h,d){r.config.series[h].group===o&&(l.push(e.series[d]),c.push(h))}),l.length>0&&n.push(a.draw(l,i,c))}),n}}],[{key:"checkComboSeries",value:function(e,t){var i=!1,a=0,r=0;return t===void 0&&(t="line"),e.length&&e[0].type!==void 0&&e.forEach(function(n){n.type!=="bar"&&n.type!=="column"&&n.type!=="candlestick"&&n.type!=="boxPlot"||a++,n.type!==void 0&&n.type!==t&&r++}),r>0&&(i=!0),{comboBarCount:a,comboCharts:i}}},{key:"extendArrayProps",value:function(e,t,i){var a,r,n,o,l,c;return(a=t)!==null&&a!==void 0&&a.yaxis&&(t=e.extendYAxis(t,i)),(r=t)!==null&&r!==void 0&&r.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),(n=t)!==null&&n!==void 0&&(o=n.annotations)!==null&&o!==void 0&&o.xaxis&&(t=e.extendXAxisAnnotations(t)),(l=t)!==null&&l!==void 0&&(c=l.annotations)!==null&&c!==void 0&&c.points&&(t=e.extendPointAnnotations(t))),t}}]),s}(),ba=function(){function s(e){N(this,s),this.w=e.w,this.annoCtx=e}return B(s,[{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,r=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(a,"']"));if(r!==null){var n=r.getBoundingClientRect();r.setAttribute("x",parseFloat(r.getAttribute("x"))-n.height+4);var o=e.label.position==="top"?n.width:-n.width;r.setAttribute("y",parseFloat(r.getAttribute("y"))+o);var l=this.annoCtx.graphics.rotateAroundCenter(r),c=l.x,h=l.y;r.setAttribute("transform","rotate(-90 ".concat(c," ").concat(h,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var i=this.w;if(!e||!t.label.text||!String(t.label.text).trim())return null;var a=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),r=e.getBoundingClientRect(),n=t.label.style.padding,o=n.left,l=n.right,c=n.top,h=n.bottom;if(t.label.orientation==="vertical"){var d=[o,l,c,h];c=d[0],h=d[1],o=d[2],l=d[3]}var u=r.left-a.left-o,g=r.top-a.top-c,p=this.annoCtx.graphics.drawRect(u-i.globals.barPadForNumericAxis,g,r.width+o+l,r.height+c+h,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&p.node.classList.add(t.id),p}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,i=function(a,r,n){var o=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-annotations .apexcharts-").concat(n,"-annotation-label[rel='").concat(r,"']"));if(o){var l=o.parentNode,c=e.addBackgroundToAnno(o,a);c&&(l.insertBefore(c.node,o),a.label.mouseEnter&&c.node.addEventListener("mouseenter",a.label.mouseEnter.bind(e,a)),a.label.mouseLeave&&c.node.addEventListener("mouseleave",a.label.mouseLeave.bind(e,a)),a.label.click&&c.node.addEventListener("click",a.label.click.bind(e,a)))}};t.config.annotations.xaxis.forEach(function(a,r){return i(a,r,"xaxis")}),t.config.annotations.yaxis.forEach(function(a,r){return i(a,r,"yaxis")}),t.config.annotations.points.forEach(function(a,r){return i(a,r,"point")})}},{key:"getY1Y2",value:function(e,t){var i,a=this.w,r=e==="y1"?t.y:t.y2,n=!1;if(this.annoCtx.invertAxis){var o=a.config.xaxis.convertedCatToNumeric?a.globals.categoryLabels:a.globals.labels,l=o.indexOf(r),c=a.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child(".concat(l+1,")"));i=c?parseFloat(c.getAttribute("y")):(a.globals.gridHeight/o.length-1)*(l+1)-a.globals.barHeight,t.seriesIndex!==void 0&&a.globals.barHeight&&(i-=a.globals.barHeight/2*(a.globals.series.length-1)-a.globals.barHeight*t.seriesIndex)}else{var h,d=a.globals.seriesYAxisMap[t.yAxisIndex][0],u=a.config.yaxis[t.yAxisIndex].logarithmic?new ge(this.annoCtx.ctx).getLogVal(a.config.yaxis[t.yAxisIndex].logBase,r,d)/a.globals.yLogRatio[d]:(r-a.globals.minYArr[d])/(a.globals.yRange[d]/a.globals.gridHeight);i=a.globals.gridHeight-Math.min(Math.max(u,0),a.globals.gridHeight),n=u>a.globals.gridHeight||u<0,!t.marker||t.y!==void 0&&t.y!==null||(i=0),(h=a.config.yaxis[t.yAxisIndex])!==null&&h!==void 0&&h.reversed&&(i=u)}return typeof r=="string"&&r.includes("px")&&(i=parseFloat(r)),{yP:i,clipped:n}}},{key:"getX1X2",value:function(e,t){var i=this.w,a=e==="x1"?t.x:t.x2,r=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,n=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,o=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,l=!1,c=this.annoCtx.inversedReversedAxis?(n-a)/(o/i.globals.gridWidth):(a-r)/(o/i.globals.gridWidth);return i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||i.config.chart.sparkline.enabled||(c=this.getStringX(a)),typeof a=="string"&&a.includes("px")&&(c=parseFloat(a)),a==null&&t.marker&&(c=i.globals.gridWidth),t.seriesIndex!==void 0&&i.globals.barWidth&&!this.annoCtx.invertAxis&&(c-=i.globals.barWidth/2*(i.globals.series.length-1)-i.globals.barWidth*t.seriesIndex),typeof c!="number"&&(c=0,l=!0),parseFloat(c.toFixed(10))>parseFloat(i.globals.gridWidth.toFixed(10))?(c=i.globals.gridWidth,l=!0):c<0&&(c=0,l=!0),{x:c,clipped:l}}},{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.map(function(n){return Array.isArray(n)?n.join(" "):n}).indexOf(e),r=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child(".concat(a+1,")"));return r&&(i=parseFloat(r.getAttribute("x"))),i}}]),s}(),Gd=function(){function s(e){N(this,s),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new ba(this.annoCtx)}return B(s,[{key:"addXaxisAnnotation",value:function(e,t,i){var a,r=this.w,n=this.helpers.getX1X2("x1",e),o=n.x,l=n.clipped,c=!0,h=e.label.text,d=e.strokeDashArray;if(T.isNumber(o)){if(e.x2===null||e.x2===void 0){if(!l){var u=this.annoCtx.graphics.drawLine(o+e.offsetX,0+e.offsetY,o+e.offsetX,r.globals.gridHeight+e.offsetY,e.borderColor,d,e.borderWidth);t.appendChild(u.node),e.id&&u.node.classList.add(e.id)}}else{var g=this.helpers.getX1X2("x2",e);if(a=g.x,c=g.clipped,a<o){var p=o;o=a,a=p}var f=this.annoCtx.graphics.drawRect(o+e.offsetX,0+e.offsetY,a-o,r.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,d);f.node.classList.add("apexcharts-annotation-rect"),f.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")")),t.appendChild(f.node),e.id&&f.node.classList.add(e.id)}if(!l||!c){var x=this.annoCtx.graphics.getTextRects(h,parseFloat(e.label.style.fontSize)),b=e.label.position==="top"?4:e.label.position==="center"?r.globals.gridHeight/2+(e.label.orientation==="vertical"?x.width/2:0):r.globals.gridHeight,m=this.annoCtx.graphics.drawText({x:o+e.label.offsetX,y:b+e.label.offsetY-(e.label.orientation==="vertical"?e.label.position==="top"?x.width/2-12:-x.width/2:0),text:h,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:"")});m.attr({rel:i}),t.appendChild(m.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,r){e.addXaxisAnnotation(a,i.node,r)}),i}}]),s}(),ve=function(){function s(e){N(this,s),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 B(s,[{key:"isValidDate",value:function(e){return typeof e!="number"&&!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,r=["\0"].concat(me(i.months)),n=[""].concat(me(i.shortMonths)),o=[""].concat(me(i.days)),l=[""].concat(me(i.shortDays));function c(k,M){var O=k+"";for(M=M||2;O.length<M;)O="0"+O;return O}var h=a?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+h)).replace(/(^|[^\\])yy/g,"$1"+h.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+h);var d=(a?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+r[0])).replace(/(^|[^\\])MMM/g,"$1"+n[0])).replace(/(^|[^\\])MM/g,"$1"+c(d))).replace(/(^|[^\\])M/g,"$1"+d);var u=a?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+o[0])).replace(/(^|[^\\])ddd/g,"$1"+l[0])).replace(/(^|[^\\])dd/g,"$1"+c(u))).replace(/(^|[^\\])d/g,"$1"+u);var g=a?e.getUTCHours():e.getHours(),p=g>12?g-12:g===0?12:g;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+c(g))).replace(/(^|[^\\])H/g,"$1"+g)).replace(/(^|[^\\])hh+/g,"$1"+c(p))).replace(/(^|[^\\])h/g,"$1"+p);var f=a?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+c(f))).replace(/(^|[^\\])m/g,"$1"+f);var x=a?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+c(x))).replace(/(^|[^\\])s/g,"$1"+x);var b=a?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+c(b,3)),b=Math.round(b/10),t=t.replace(/(^|[^\\])ff/g,"$1"+c(b)),b=Math.round(b/10);var m=g<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+b)).replace(/(^|[^\\])TT+/g,"$1"+m)).replace(/(^|[^\\])T/g,"$1"+m.charAt(0));var v=m.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+v)).replace(/(^|[^\\])t/g,"$1"+v.charAt(0));var A=-e.getTimezoneOffset(),y=a||!A?"Z":A>0?"+":"-";if(!a){var S=(A=Math.abs(A))%60;y+=c(Math.floor(A/60))+":"+c(S)}t=t.replace(/(^|[^\\])K/g,"$1"+y);var w=(a?e.getUTCDay():e.getDay())+1;return t=(t=(t=(t=(t=t.replace(new RegExp(o[0],"g"),o[w])).replace(new RegExp(l[0],"g"),l[w])).replace(new RegExp(r[0],"g"),r[d])).replace(new RegExp(n[0],"g"),n[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 r=this.getDate(e),n=this.getDate(t),o=this.formatDate(r,"yyyy MM dd HH mm ss fff").split(" "),l=this.formatDate(n,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(o[6],10),maxMillisecond:parseInt(l[6],10),minSecond:parseInt(o[5],10),maxSecond:parseInt(l[5],10),minMinute:parseInt(o[4],10),maxMinute:parseInt(l[4],10),minHour:parseInt(o[3],10),maxHour:parseInt(l[3],10),minDate:parseInt(o[2],10),maxDate:parseInt(l[2],10),minMonth:parseInt(o[1],10)-1,maxMonth:parseInt(l[1],10)-1,minYear:parseInt(o[0],10),maxYear:parseInt(l[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=T.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}}]),s}(),Ri=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return B(s,[{key:"xLabelFormat",value:function(e,t,i,a){var r=this.w;if(r.config.xaxis.type==="datetime"&&r.config.xaxis.labels.formatter===void 0&&r.config.tooltip.x.formatter===void 0){var n=new ve(this.ctx);return n.formatDate(n.getDate(t),r.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;if(T.isNumber(e))if(a.globals.yValueDecimal!==0)e=e.toFixed(t.decimalsInFloat!==void 0?t.decimalsInFloat:a.globals.yValueDecimal);else{var r=e.toFixed(0);e=e==r?r:e.toFixed(1)}return 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(T.isNumber(i)){if(!t.config.xaxis.convertedCatToNumeric&&t.config.xaxis.type==="numeric"){if(T.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(r){return t.globals.xyCharts?Array.isArray(r)?r.map(function(n){return e.defaultYFormatter(n,i,a)}):e.defaultYFormatter(r,i,a):r}}),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}}}]),s}(),lt=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{key:"getLabel",value:function(e,t,i,a){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",o=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],l=this.w,c=e[a]===void 0?"":e[a],h=c,d=l.globals.xLabelFormatter,u=l.config.xaxis.labels.formatter,g=!1,p=new Ri(this.ctx),f=c;o&&(h=p.xLabelFormat(d,c,f,{i:a,dateFormatter:new ve(this.ctx).formatDate,w:l}),u!==void 0&&(h=u(c,e[a],{i:a,dateFormatter:new ve(this.ctx).formatDate,w:l})));var x,b;t.length>0?(x=t[a].unit,b=null,t.forEach(function(y){y.unit==="month"?b="year":y.unit==="day"?b="month":y.unit==="hour"?b="day":y.unit==="minute"&&(b="hour")}),g=b===x,i=t[a].position,h=t[a].value):l.config.xaxis.type==="datetime"&&u===void 0&&(h=""),h===void 0&&(h=""),h=Array.isArray(h)?h:h.toString();var m=new H(this.ctx),v={};v=l.globals.rotateXLabels&&o?m.getTextRects(h,parseInt(n,10),null,"rotate(".concat(l.config.xaxis.labels.rotate," 0 0)"),!1):m.getTextRects(h,parseInt(n,10));var A=!l.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(h)&&(String(h)==="NaN"||r.indexOf(h)>=0&&A)&&(h=""),{x:i,text:h,textRect:v,isBold:g}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,i){var a=this.w,r=a.config.xaxis.tickAmount;return r==="dataPoints"&&(r=Math.round(a.globals.gridWidth/120)),r>i||e%Math.round(i/(r+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,i,a,r){var n=this.w;if(e===0&&n.globals.skipFirstTimelinelabel&&(t.text=""),e===i-1&&n.globals.skipLastTimelinelabel&&(t.text=""),n.config.xaxis.labels.hideOverlappingLabels&&a.length>0){var o=r[r.length-1];t.x<o.textRect.width/(n.globals.rotateXLabels?Math.abs(n.config.xaxis.labels.rotate)/12:1.01)+o.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:"yAxisAllSeriesCollapsed",value:function(e){var t=this.w.globals;return!t.seriesYAxisMap[e].some(function(i){return t.collapsedSeriesIndices.indexOf(i)===-1})}},{key:"translateYAxisIndex",value:function(e){var t=this.w,i=t.globals,a=t.config.yaxis;return i.series.length>a.length||a.some(function(r){return Array.isArray(r.seriesName)})?e:i.seriesYAxisReverseMap[e]}},{key:"isYAxisHidden",value:function(e){var t=this.w,i=t.config.yaxis[e];if(!i.show||this.yAxisAllSeriesCollapsed(e))return!0;if(!i.showForNullSeries){var a=t.globals.seriesYAxisMap[e],r=new ge(this.ctx);return a.every(function(n){return r.isSeriesNull(n)})}return!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,r,n,o){var l=this.w,c=new H(this.ctx),h=l.globals.translateY+l.config.yaxis[r].labels.offsetY;if(l.globals.isBarHorizontal?h=0:l.config.chart.type==="heatmap"&&(h+=n/2),a.show&&t>0){l.config.yaxis[r].opposite===!0&&(e+=a.width);for(var d=t;d>=0;d--){var u=c.drawLine(e+i.offsetX-a.width+a.offsetX,h+a.offsetY,e+i.offsetX+a.offsetX,h+a.offsetY,a.color);o.add(u),h+=n}}}}]),s}(),Vd=function(){function s(e){N(this,s),this.w=e.w,this.annoCtx=e,this.helpers=new ba(this.annoCtx),this.axesUtils=new lt(this.annoCtx)}return B(s,[{key:"addYaxisAnnotation",value:function(e,t,i){var a,r=this.w,n=e.strokeDashArray,o=this.helpers.getY1Y2("y1",e),l=o.yP,c=o.clipped,h=!0,d=!1,u=e.label.text;if(e.y2===null||e.y2===void 0){if(!c){d=!0;var g=this.annoCtx.graphics.drawLine(0+e.offsetX,l+e.offsetY,this._getYAxisAnnotationWidth(e),l+e.offsetY,e.borderColor,n,e.borderWidth);t.appendChild(g.node),e.id&&g.node.classList.add(e.id)}}else{if(a=(o=this.helpers.getY1Y2("y2",e)).yP,h=o.clipped,a>l){var p=l;l=a,a=p}if(!c||!h){d=!0;var f=this.annoCtx.graphics.drawRect(0+e.offsetX,a+e.offsetY,this._getYAxisAnnotationWidth(e),l-a,0,e.fillColor,e.opacity,1,e.borderColor,n);f.node.classList.add("apexcharts-annotation-rect"),f.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")")),t.appendChild(f.node),e.id&&f.node.classList.add(e.id)}}if(d){var x=e.label.position==="right"?r.globals.gridWidth:e.label.position==="center"?r.globals.gridWidth/2:0,b=this.annoCtx.graphics.drawText({x:x+e.label.offsetX,y:(a??l)+e.label.offsetY-3,text:u,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:"")});b.attr({rel:i}),t.appendChild(b.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.forEach(function(a,r){a.yAxisIndex=e.axesUtils.translateYAxisIndex(a.yAxisIndex),e.axesUtils.isYAxisHidden(a.yAxisIndex)&&e.axesUtils.yAxisAllSeriesCollapsed(a.yAxisIndex)||e.addYaxisAnnotation(a,i.node,r)}),i}}]),s}(),$d=function(){function s(e){N(this,s),this.w=e.w,this.annoCtx=e,this.helpers=new ba(this.annoCtx)}return B(s,[{key:"addPointAnnotation",value:function(e,t,i){if(!(this.w.globals.collapsedSeriesIndices.indexOf(e.seriesIndex)>-1)){var a=this.helpers.getX1X2("x1",e),r=a.x,n=a.clipped,o=(a=this.helpers.getY1Y2("y1",e)).yP,l=a.clipped;if(T.isNumber(r)&&!l&&!n){var c={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:"")},h=this.annoCtx.graphics.drawMarker(r+e.marker.offsetX,o+e.marker.offsetY,c);t.appendChild(h.node);var d=e.label.text?e.label.text:"",u=this.annoCtx.graphics.drawText({x:r+e.label.offsetX,y:o+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:d,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(u.attr({rel:i}),t.appendChild(u.node),e.customSVG.SVG){var g=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});g.attr({transform:"translate(".concat(r+e.customSVG.offsetX,", ").concat(o+e.customSVG.offsetY,")")}),g.node.innerHTML=e.customSVG.SVG,t.appendChild(g.node)}if(e.image.path){var p=e.image.width?e.image.width:20,f=e.image.height?e.image.height:20;h=this.annoCtx.addImage({x:r+e.image.offsetX-p/2,y:o+e.image.offsetY-f/2,width:p,height:f,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&h.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&h.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&h.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,r){e.addPointAnnotation(a,i.node,r)}),i}}]),s}(),Go={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"}}},vt=function(){function s(){N(this,s),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,showDuplicates:!1,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,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 B(s,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"",locales:[Go],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.7},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",categoryFormatter:void 0,valueFormatter:void 0},png:{filename:void 0},svg:{filename:void 0},scale:void 0,width:void 0},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,allowMouseWheelZoom:!0,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{line:{isSlopeChart:!1,colors:{threshold:0,colorAboveThreshold:void 0,colorBelowThreshold:void 0}},area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0},seriesTitle:{show:!0,offsetY:1,offsetX:1,borderColor:"#000",borderWidth:1,borderRadius:2,style:{background:"rgba(0, 0, 0, 0.6)",color:"#fff",fontSize:"12px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:6,right:6,top:2,bottom:2}}}},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+"%"}}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(e){return e},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(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",backgroundColor:void 0,borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},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:[],clusterGroupedSeries:!0,clusterGroupedSeriesOrientation:"vertical",labels:{colors:void 0,useSeriesColors:!1},markers:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},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",offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 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:{hover:{filter:{type:"lighten"}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken"}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(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},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.8}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),s}(),Ud=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w,this.graphics=new H(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new ba(this),this.xAxisAnnotations=new Gd(this),this.yAxisAnnotations=new Vd(this),this.pointsAnnotations=new $d(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 B(s,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts&&e.globals.dataPoints){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),a=this.pointsAnnotations.drawPointAnnotations(),r=e.config.chart.animations.enabled,n=[t,i,a],o=[i.node,t.node,a.node],l=0;l<3;l++)e.globals.dom.elGraphical.add(n[l]),!r||e.globals.resized||e.globals.dataChanged||e.config.chart.type!=="scatter"&&e.config.chart.type!=="bubble"&&e.globals.dataPoints>1&&o[l].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:o[l],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,r=e.text,n=e.textAnchor,o=e.foreColor,l=e.fontSize,c=e.fontFamily,h=e.fontWeight,d=e.cssClass,u=e.backgroundColor,g=e.borderWidth,p=e.strokeDashArray,f=e.borderRadius,x=e.borderColor,b=e.appendTo,m=b===void 0?".apexcharts-svg":b,v=e.paddingLeft,A=v===void 0?4:v,y=e.paddingRight,S=y===void 0?4:y,w=e.paddingBottom,k=w===void 0?2:w,M=e.paddingTop,O=M===void 0?2:M,P=this.w,L=this.graphics.drawText({x:i,y:a,text:r,textAnchor:n||"start",fontSize:l||"12px",fontWeight:h||"regular",fontFamily:c||P.config.chart.fontFamily,foreColor:o||P.config.chart.foreColor,cssClass:d}),C=P.globals.dom.baseEl.querySelector(m);C&&C.appendChild(L.node);var _=L.bbox();if(r){var I=this.graphics.drawRect(_.x-A,_.y-O,_.width+A+S,_.height+k+O,f,u||"transparent",1,g,x,p);C.insertBefore(I.node,L.node)}}},{key:"addImage",value:function(e,t){var i=this.w,a=e.path,r=e.x,n=r===void 0?0:r,o=e.y,l=o===void 0?0:o,c=e.width,h=c===void 0?20:c,d=e.height,u=d===void 0?20:d,g=e.appendTo,p=g===void 0?".apexcharts-svg":g,f=i.globals.dom.Paper.image(a);f.size(h,u).move(n,l);var x=i.globals.dom.baseEl.querySelector(p);return x&&x.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,r=e.type,n=e.contextMethod,o=a,l=o.w,c=l.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations")),h=c.childNodes.length+1,d=new vt,u=Object.assign({},r==="xaxis"?d.xAxisAnnotation:r==="yaxis"?d.yAxisAnnotation:d.pointAnnotation),g=T.extend(u,t);switch(r){case"xaxis":this.addXaxisAnnotation(g,c,h);break;case"yaxis":this.addYaxisAnnotation(g,c,h);break;case"point":this.addPointAnnotation(g,c,h)}var p=l.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(h,"']")),f=this.helpers.addBackgroundToAnno(p,g);return f&&c.insertBefore(f.node,p),i&&l.globals.memory.methodsToExec.push({context:o,id:g.id?g.id:T.randomId(),method:n,label:"addAnnotation",params:t}),a}},{key:"clearAnnotations",value:function(e){for(var t=e.w,i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations"),a=t.globals.memory.methodsToExec.length-1;a>=0;a--)t.globals.memory.methodsToExec[a].label!=="addText"&&t.globals.memory.methodsToExec[a].label!=="addAnnotation"||t.globals.memory.methodsToExec.splice(a,1);i=T.listToArray(i),Array.prototype.forEach.call(i,function(r){for(;r.firstChild;)r.removeChild(r.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(r,n){r.id===t&&i.globals.memory.methodsToExec.splice(n,1)}),Object.keys(i.config.annotations).forEach(function(r){var n=i.config.annotations[r];Array.isArray(n)&&(i.config.annotations[r]=n.filter(function(o){return o.id!==t}))}),Array.prototype.forEach.call(a,function(r){r.parentElement.removeChild(r)}))}}]),s}(),ks=function(s){var e,t=s.isTimeline,i=s.ctx,a=s.seriesIndex,r=s.dataPointIndex,n=s.y1,o=s.y2,l=s.w,c=l.globals.seriesRangeStart[a][r],h=l.globals.seriesRangeEnd[a][r],d=l.globals.labels[r],u=l.config.series[a].name?l.config.series[a].name:"",g=l.globals.ttKeyFormatter,p=l.config.tooltip.y.title.formatter,f={w:l,seriesIndex:a,dataPointIndex:r,start:c,end:h};typeof p=="function"&&(u=p(u,f)),(e=l.config.series[a].data[r])!==null&&e!==void 0&&e.x&&(d=l.config.series[a].data[r].x),t||l.config.xaxis.type==="datetime"&&(d=new Ri(i).xLabelFormat(l.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new ve(i).formatDate,w:l})),typeof g=="function"&&(d=g(d,f)),Number.isFinite(n)&&Number.isFinite(o)&&(c=n,h=o);var x="",b="",m=l.globals.colors[a];if(l.config.tooltip.x.formatter===void 0)if(l.config.xaxis.type==="datetime"){var v=new ve(i);x=v.formatDate(v.getDate(c),l.config.tooltip.x.format),b=v.formatDate(v.getDate(h),l.config.tooltip.x.format)}else x=c,b=h;else x=l.config.tooltip.x.formatter(c),b=l.config.tooltip.x.formatter(h);return{start:c,end:h,startVal:x,endVal:b,ylabel:d,color:m,seriesName:u}},As=function(s){var e=s.color,t=s.seriesName,i=s.ylabel,a=s.start,r=s.end,n=s.seriesIndex,o=s.dataPointIndex,l=s.ctx.tooltip.tooltipLabels.getFormatters(n);a=l.yLbFormatter(a),r=l.yLbFormatter(r);var c=l.yLbFormatter(s.w.globals.series[n][o]),h=`<span class="value start-value">
|
41
|
+
`.concat(a,`
|
42
|
+
</span> <span class="separator">-</span> <span class="value end-value">
|
43
|
+
`).concat(r,`
|
44
|
+
</span>`);return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+e+'">'+(t||"")+'</span></div><div> <span class="category">'+i+": </span> "+(s.w.globals.comboCharts?s.w.config.series[n].type==="rangeArea"||s.w.config.series[n].type==="rangeBar"?h:"<span>".concat(c,"</span>"):h)+" </div></div>"},Pi=function(){function s(e){N(this,s),this.opts=e}return B(s,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{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.hideYAxis(),T.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:"slope",value:function(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter:function(e,t){var i=t.w.config.series[t.seriesIndex].name;return e!==null?i+": "+e:""},background:{enabled:!1},offsetX:-5},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{position:"top",labels:{style:{fontSize:14,fontWeight:900}},tooltip:{enabled:!1},crosshairs:{show:!1}},markers:{size:8,hover:{sizeOffset:1}},legend:{show:!1},tooltip:{shared:!1,intersect:!0,followCursor:!0},stroke:{width:5,curve:"straight"}}}},{key:"bar",value:function(){return{chart:{stacked:!1},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"square"},fill:{opacity:.85},legend:{markers:{shape:"square"}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),F(F({},this.bar()),{},{chart:{animations:{speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,a=t.dataPointIndex,r=t.w;return e._getBoxTooltip(r,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,r=t.w;return e._getBoxTooltip(r,i,a,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:7,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,t){t.ctx;var i=t.seriesIndex,a=t.dataPointIndex,r=t.w,n=function(){var o=r.globals.seriesRangeStart[i][a];return r.globals.seriesRangeEnd[i][a]-o};return r.globals.comboCharts?r.config.series[i].type==="rangeBar"||r.config.series[i].type==="rangeArea"?n():e:n()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},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=ks(F(F({},t),{},{isTimeline:!0})),a=i.color,r=i.seriesName,n=i.ylabel,o=i.startVal,l=i.endVal;return As(F(F({},t),{},{color:a,seriesName:r,ylabel:n,start:o,end:l}))}(e):function(t){var i=ks(t),a=i.color,r=i.seriesName,n=i.ylabel,o=i.start,l=i.end;return As(F(F({},t),{},{color:a,seriesName:r,ylabel:n,start:o,end:l}))}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(e){var t,i;return(t=e.plotOptions.bar)!==null&&t!==void 0&&t.barHeight||(e.plotOptions.bar.barHeight=2),(i=e.plotOptions.bar)!==null&&i!==void 0&&i.columnWidth||(e.plotOptions.bar.columnWidth=2),e}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(e){return function(t){var i=ks(t),a=i.color,r=i.seriesName,n=i.ylabel,o=i.start,l=i.end;return As(F(F({},t),{},{color:a,seriesName:r,ylabel:n,start:o,end:l}))}(e)}}}}},{key:"brush",value:function(e){return T.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:"stackedBars",value:function(){var e=this.bar();return F(F({},e),{},{plotOptions:F(F({},e.plotOptions),{},{bar:F(F({},e.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{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(n){return T.isNumber(n)?Math.floor(n):n};var a=e.xaxis.labels.formatter,r=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return i&&i.length&&(r=i.map(function(n){return Array.isArray(n)?n:String(n)})),r&&r.length&&(e.xaxis.labels.formatter=function(n){return T.isNumber(n)?a(r[Math.floor(n)-1]):a(n)}),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"}},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:{opacity:1,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"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{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"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"polarArea",value:function(){return{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"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{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:5,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},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},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"_getBoxTooltip",value:function(e,t,i,a,r){var n=e.globals.seriesCandleO[t][i],o=e.globals.seriesCandleH[t][i],l=e.globals.seriesCandleM[t][i],c=e.globals.seriesCandleL[t][i],h=e.globals.seriesCandleC[t][i];return e.config.series[t].type&&e.config.series[t].type!==r?`<div class="apexcharts-custom-tooltip">
|
45
|
+
`.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": <strong>").concat(e.globals.series[t][i],`</strong>
|
46
|
+
</div>`):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(a[0],': <span class="value">')+n+"</span></div>"+"<div>".concat(a[1],': <span class="value">')+o+"</span></div>"+(l?"<div>".concat(a[2],': <span class="value">')+l+"</span></div>":"")+"<div>".concat(a[3],': <span class="value">')+c+"</span></div>"+"<div>".concat(a[4],': <span class="value">')+h+"</span></div></div>"}}]),s}(),Ii=function(){function s(e){N(this,s),this.opts=e}return B(s,[{key:"init",value:function(e){var t=e.responsiveOverride,i=this.opts,a=new vt,r=new Pi(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var n=a.init(),o={};if(i&&Nt(i)==="object"){var l,c,h,d,u,g,p,f,x,b,m={};m=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)!==-1?r[i.chart.type]():r.line(),(l=i.plotOptions)!==null&&l!==void 0&&(c=l.bar)!==null&&c!==void 0&&c.isFunnel&&(m=r.funnel()),i.chart.stacked&&i.chart.type==="bar"&&(m=r.stackedBars()),(h=i.chart.brush)!==null&&h!==void 0&&h.enabled&&(m=r.brush(m)),(d=i.plotOptions)!==null&&d!==void 0&&(u=d.line)!==null&&u!==void 0&&u.isSlopeChart&&(m=r.slope()),i.chart.stacked&&i.chart.stackType==="100%"&&(i=r.stacked100(i)),(g=i.plotOptions)!==null&&g!==void 0&&(p=g.bar)!==null&&p!==void 0&&p.isDumbbell&&(i=r.dumbbell(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},t||(i.xaxis.convertedCatToNumeric=!1),((f=(i=this.checkForCatToNumericXAxis(this.chartType,m,i)).chart.sparkline)!==null&&f!==void 0&&f.enabled||(x=window.Apex.chart)!==null&&x!==void 0&&(b=x.sparkline)!==null&&b!==void 0&&b.enabled)&&(m=r.sparkline(m)),o=T.extend(n,m)}var v=T.extend(o,window.Apex);return n=T.extend(v,i),n=this.handleUserInputErrors(n)}},{key:"checkForCatToNumericXAxis",value:function(e,t,i){var a,r,n=new Pi(i),o=(e==="bar"||e==="boxPlot")&&((a=i.plotOptions)===null||a===void 0||(r=a.bar)===null||r===void 0?void 0:r.horizontal),l=e==="pie"||e==="polarArea"||e==="donut"||e==="radar"||e==="radialBar"||e==="heatmap",c=i.xaxis.type!=="datetime"&&i.xaxis.type!=="numeric",h=i.xaxis.tickPlacement?i.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return o||l||!c||h==="between"||(i=n.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(e,t){var i=new vt;(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=T.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[T.extend(i.yAxis,e.yaxis)]:e.yaxis=T.extendArray(e.yaxis,i.yAxis);var a=!1;e.yaxis.forEach(function(n){n.logarithmic&&(a=!0)});var r=e.series;return t&&!r&&(r=t.config.series),a&&r.length!==e.yaxis.length&&r.length&&(e.yaxis=r.map(function(n,o){if(n.name||(r[o].name="series-".concat(o+1)),e.yaxis[o])return e.yaxis[o].seriesName=r[o].name,e.yaxis[o];var l=T.extend(i.yAxis,e.yaxis[0]);return l.show=!1,l})),a&&r.length>1&&r.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),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 vt;return e.annotations.yaxis=T.extendArray(e.annotations.yaxis!==void 0?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new vt;return e.annotations.xaxis=T.extendArray(e.annotations.xaxis!==void 0?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new vt;return e.annotations.points=T.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.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}}]),s}(),Vo=function(){function s(){N(this,s)}return B(s,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],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.hasXaxisGroups=!1,e.groups=[],e.barGroups=[],e.lineGroups=[],e.areaGroups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.lastWheelExecution=0,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,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,e.multiAxisTickAmount=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:[],invalidLogScale:!1,ignoreYAxisIndexes:[],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,isSlopeChart:e.plotOptions.line.isSlopeChart,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,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,niceScaleAllowedMagMsd:[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],niceScaleDefaultTicks:[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24],seriesYAxisMap:[],seriesYAxisReverseMap:[]}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=T.extend({},e),t.initialSeries=T.clone(e.series),t.lastXAxis=T.clone(t.initialConfig.xaxis),t.lastYAxis=T.clone(t.initialConfig.yaxis),t}}]),s}(),qd=function(){function s(e){N(this,s),this.opts=e}return B(s,[{key:"init",value:function(){var e=new Ii(this.opts).init({responsiveOverride:!1});return{config:e,globals:new Vo().init(e)}}}]),s}(),Be=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}return B(s,[{key:"clippedImgArea",value:function(e){var t=this.w,i=t.config,a=parseInt(t.globals.gridWidth,10),r=parseInt(t.globals.gridHeight,10),n=a>r?a:r,o=e.image,l=0,c=0;e.width===void 0&&e.height===void 0?i.fill.image.width!==void 0&&i.fill.image.height!==void 0?(l=i.fill.image.width+1,c=i.fill.image.height):(l=n+1,c=n):(l=e.width,c=e.height);var h=document.createElementNS(t.globals.SVGNS,"pattern");H.setAttrs(h,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:l+"px",height:c+"px"});var d=document.createElementNS(t.globals.SVGNS,"image");h.appendChild(d),d.setAttributeNS(window.SVG.xlink,"href",o),H.setAttrs(d,{x:0,y:0,preserveAspectRatio:"none",width:l+"px",height:c+"px"}),d.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(h)}},{key:"getSeriesIndex",value:function(e){var t=this.w,i=t.config.chart.type;return(i==="bar"||i==="rangeBar")&&t.config.plotOptions.bar.distributed||i==="heatmap"||i==="treemap"?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"computeColorStops",value:function(e,t){var i,a=this.w,r=null,n=null,o=fi(e);try{for(o.s();!(i=o.n()).done;){var l=i.value;l>=t.threshold?(r===null||l>r)&&(r=l):(n===null||l<n)&&(n=l)}}catch(d){o.e(d)}finally{o.f()}r===null&&(r=t.threshold),n===null&&(n=t.threshold);var c=r-t.threshold+(t.threshold-n);c===0&&(c=1);var h=100-(t.threshold-n)/c*100;return[{offset:h=Math.max(0,Math.min(h,100)),color:t.colorAboveThreshold,opacity:a.config.fill.opacity},{offset:0,color:t.colorBelowThreshold,opacity:a.config.fill.opacity}]}},{key:"fillPath",value:function(e){var t,i,a,r=this.w;this.opts=e;var n,o,l,c=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var h=c.plotOptions.line.colors.colorAboveThreshold&&c.plotOptions.line.colors.colorBelowThreshold,d=this.getFillColors()[this.seriesIndex];r.globals.seriesColors[this.seriesIndex]!==void 0&&(d=r.globals.seriesColors[this.seriesIndex]),typeof d=="function"&&(d=d({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:r}));var u,g,p,f=e.fillType?e.fillType:this.getFillType(this.seriesIndex),x=Array.isArray(c.fill.opacity)?c.fill.opacity[this.seriesIndex]:c.fill.opacity,b=f==="gradient"||h;e.color&&(d=e.color),(t=r.config.series[this.seriesIndex])!==null&&t!==void 0&&(i=t.data)!==null&&i!==void 0&&(a=i[e.dataPointIndex])!==null&&a!==void 0&&a.fillColor&&(d=(u=r.config.series[this.seriesIndex])===null||u===void 0||(g=u.data)===null||g===void 0||(p=g[e.dataPointIndex])===null||p===void 0?void 0:p.fillColor),d||(d="#fff",console.warn("undefined color - ApexCharts"));var m=d;if(d.indexOf("rgb")===-1?d.indexOf("#")===-1?m=d:d.length<9&&(m=T.hexToRgba(d,x)):d.indexOf("rgba")>-1?x=T.getOpacityFromRGBA(d):m=T.hexToRgba(T.rgb2hex(d),x),e.opacity&&(x=e.opacity),f==="pattern"&&(o=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:o,fillColor:d,fillOpacity:x,defaultColor:m})),b){var v=me(c.fill.gradient.colorStops)||[],A=c.fill.gradient.type;h&&(v[this.seriesIndex]=this.computeColorStops(r.globals.series[this.seriesIndex],c.plotOptions.line.colors),A="vertical"),l=this.handleGradientFill({type:A,fillConfig:e.fillConfig,fillColor:d,fillOpacity:x,colorStops:v,i:this.seriesIndex})}if(f==="image"){var y=c.fill.image.src,S=e.patternID?e.patternID:"",w="pattern".concat(r.globals.cuid).concat(e.seriesNumber+1).concat(S);this.patternIDs.indexOf(w)===-1&&(this.clippedImgArea({opacity:x,image:Array.isArray(y)?e.seriesNumber<y.length?y[e.seriesNumber]:y[0]:y,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:w}),this.patternIDs.push(w)),n="url(#".concat(w,")")}else n=b?l:f==="pattern"?o:m;return e.solid&&(n=m),n}},{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){var t=e.fillConfig,i=e.patternFill,a=e.fillColor,r=e.fillOpacity,n=e.defaultColor,o=this.w.config.fill;t&&(o=t);var l=this.opts,c=new H(this.ctx),h=Array.isArray(o.pattern.strokeWidth)?o.pattern.strokeWidth[this.seriesIndex]:o.pattern.strokeWidth,d=a;return Array.isArray(o.pattern.style)?i=o.pattern.style[l.seriesNumber]!==void 0?c.drawPattern(o.pattern.style[l.seriesNumber],o.pattern.width,o.pattern.height,d,h,r):n:i=c.drawPattern(o.pattern.style,o.pattern.width,o.pattern.height,d,h,r),i}},{key:"handleGradientFill",value:function(e){var t=e.type,i=e.fillColor,a=e.fillOpacity,r=e.fillConfig,n=e.colorStops,o=e.i,l=this.w.config.fill;r&&(l=F(F({},l),r));var c=this.opts,h=new H(this.ctx),d=new T;t=t||l.gradient.type;var u,g=i,p=l.gradient.opacityFrom===void 0?a:Array.isArray(l.gradient.opacityFrom)?l.gradient.opacityFrom[o]:l.gradient.opacityFrom;g.indexOf("rgba")>-1&&(p=T.getOpacityFromRGBA(g));var f=l.gradient.opacityTo===void 0?a:Array.isArray(l.gradient.opacityTo)?l.gradient.opacityTo[o]:l.gradient.opacityTo;if(l.gradient.gradientToColors===void 0||l.gradient.gradientToColors.length===0)u=l.gradient.shade==="dark"?d.shadeColor(-1*parseFloat(l.gradient.shadeIntensity),i.indexOf("rgb")>-1?T.rgb2hex(i):i):d.shadeColor(parseFloat(l.gradient.shadeIntensity),i.indexOf("rgb")>-1?T.rgb2hex(i):i);else if(l.gradient.gradientToColors[c.seriesNumber]){var x=l.gradient.gradientToColors[c.seriesNumber];u=x,x.indexOf("rgba")>-1&&(f=T.getOpacityFromRGBA(x))}else u=i;if(l.gradient.gradientFrom&&(g=l.gradient.gradientFrom),l.gradient.gradientTo&&(u=l.gradient.gradientTo),l.gradient.inverseColors){var b=g;g=u,u=b}return g.indexOf("rgb")>-1&&(g=T.rgb2hex(g)),u.indexOf("rgb")>-1&&(u=T.rgb2hex(u)),h.drawGradient(t,g,u,p,f,c.size,l.gradient.stops,n,o)}}]),s}(),Kt=function(){function s(e,t){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{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){var t=e.pointsPos,i=e.seriesIndex,a=e.j,r=e.pSize,n=e.alwaysDrawMarker,o=n!==void 0&&n,l=e.isVirtualPoint,c=l!==void 0&&l,h=this.w,d=i,u=t,g=null,p=new H(this.ctx),f=h.config.markers.discrete&&h.config.markers.discrete.length;if(Array.isArray(u.x))for(var x=0;x<u.x.length;x++){var b=void 0,m=a,v=!T.isNumber(u.y[x]);h.globals.markers.largestSize===0&&h.globals.hasNullValues&&h.globals.series[d][a+1]!==null&&!c&&(v=!0),a===1&&x===0&&(m=0),a===1&&x===1&&(m=1);var A="apexcharts-marker";if(h.config.chart.type!=="line"&&h.config.chart.type!=="area"||h.globals.comboCharts||h.config.tooltip.intersect||(A+=" no-pointer-events"),(Array.isArray(h.config.markers.size)?h.globals.markers.size[i]>0:h.config.markers.size>0)||o||f){v||(A+=" w".concat(T.randomId()));var y=this.getMarkerConfig({cssClass:A,seriesIndex:i,dataPointIndex:m});h.config.series[d].data[m]&&(h.config.series[d].data[m].fillColor&&(y.pointFillColor=h.config.series[d].data[m].fillColor),h.config.series[d].data[m].strokeColor&&(y.pointStrokeColor=h.config.series[d].data[m].strokeColor)),r!==void 0&&(y.pSize=r),(u.x[x]<-h.globals.markers.largestSize||u.x[x]>h.globals.gridWidth+h.globals.markers.largestSize||u.y[x]<-h.globals.markers.largestSize||u.y[x]>h.globals.gridHeight+h.globals.markers.largestSize)&&(y.pSize=0),!v&&((h.globals.markers.size[i]>0||o||f)&&!g&&(g=p.group({class:o||f?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(h.globals.cuid,")")),(b=p.drawMarker(u.x[x],u.y[x],y)).attr("rel",m),b.attr("j",m),b.attr("index",i),b.node.setAttribute("default-marker-size",y.pSize),new ye(this.ctx).setSelectionFilter(b,i,m),this.addEvents(b),g&&g.add(b))}else h.globals.pointsArray[i]===void 0&&(h.globals.pointsArray[i]=[]),h.globals.pointsArray[i].push([u.x[x],u.y[x]])}return g}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,i=e.seriesIndex,a=e.dataPointIndex,r=a===void 0?null:a,n=e.radius,o=n===void 0?null:n,l=e.size,c=l===void 0?null:l,h=e.strokeWidth,d=h===void 0?null:h,u=this.w,g=this.getMarkerStyle(i),p=c===null?u.globals.markers.size[i]:c,f=u.config.markers;return r!==null&&f.discrete.length&&f.discrete.map(function(x){x.seriesIndex===i&&x.dataPointIndex===r&&(g.pointStrokeColor=x.strokeColor,g.pointFillColor=x.fillColor,p=x.size,g.pointShape=x.shape)}),{pSize:o===null?p:o,pRadius:o!==null?o:f.radius,pointStrokeWidth:d!==null?d:Array.isArray(f.strokeWidth)?f.strokeWidth[i]:f.strokeWidth,pointStrokeColor:g.pointStrokeColor,pointFillColor:g.pointFillColor,shape:g.pointShape||(Array.isArray(f.shape)?f.shape[i]:f.shape),class:t,pointStrokeOpacity:Array.isArray(f.strokeOpacity)?f.strokeOpacity[i]:f.strokeOpacity,pointStrokeDashArray:Array.isArray(f.strokeDashArray)?f.strokeDashArray[i]:f.strokeDashArray,pointFillOpacity:Array.isArray(f.fillOpacity)?f.fillOpacity[i]:f.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(e){var t=this.w,i=new H(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}}}]),s}(),$o=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled}return B(s,[{key:"draw",value:function(e,t,i){var a=this.w,r=new H(this.ctx),n=i.realIndex,o=i.pointsPos,l=i.zRatio,c=i.elParent,h=r.group({class:"apexcharts-series-markers apexcharts-series-".concat(a.config.chart.type)});if(h.attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(o.x))for(var d=0;d<o.x.length;d++){var u=t+1,g=!0;t===0&&d===0&&(u=0),t===0&&d===1&&(u=1);var p=a.globals.markers.size[n];if(l!==1/0){var f=a.config.plotOptions.bubble;p=a.globals.seriesZ[n][u],f.zScaling&&(p/=l),f.minBubbleRadius&&p<f.minBubbleRadius&&(p=f.minBubbleRadius),f.maxBubbleRadius&&p>f.maxBubbleRadius&&(p=f.maxBubbleRadius)}var x=o.x[d],b=o.y[d];if(p=p||0,b!==null&&a.globals.series[n][u]!==void 0||(g=!1),g){var m=this.drawPoint(x,b,p,n,u,t);h.add(m)}c.add(h)}}},{key:"drawPoint",value:function(e,t,i,a,r,n){var o=this.w,l=a,c=new $t(this.ctx),h=new ye(this.ctx),d=new Be(this.ctx),u=new Kt(this.ctx),g=new H(this.ctx),p=u.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:r,radius:o.config.chart.type==="bubble"||o.globals.comboCharts&&o.config.series[a]&&o.config.series[a].type==="bubble"?i:null}),f=d.fillPath({seriesNumber:a,dataPointIndex:r,color:p.pointFillColor,patternUnits:"objectBoundingBox",value:o.globals.series[a][n]}),x=g.drawMarker(e,t,p);if(o.config.series[l].data[r]&&o.config.series[l].data[r].fillColor&&(f=o.config.series[l].data[r].fillColor),x.attr({fill:f}),o.config.chart.dropShadow.enabled){var b=o.config.chart.dropShadow;h.dropShadow(x,b,a)}if(!this.initialAnim||o.globals.dataChanged||o.globals.resized)o.globals.animationEnded=!0;else{var m=o.config.chart.animations.speed;c.animateMarker(x,m,o.globals.easing,function(){window.setTimeout(function(){c.animationCompleted(x)},100)})}return x.attr({rel:r,j:r,index:a,"default-marker-size":p.pSize}),h.setSelectionFilter(x,a,r),u.addEvents(x),x.node.classList.add("apexcharts-marker"),x}},{key:"centerTextInBubble",value:function(e){var t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}]),s}(),Gt=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{key:"dataLabelsCorrection",value:function(e,t,i,a,r,n,o){var l=this.w,c=!1,h=new H(this.ctx).getTextRects(i,o),d=h.width,u=h.height;t<0&&(t=0),t>l.globals.gridHeight+u&&(t=l.globals.gridHeight+u/2),l.globals.dataLabelsRects[a]===void 0&&(l.globals.dataLabelsRects[a]=[]),l.globals.dataLabelsRects[a].push({x:e,y:t,width:d,height:u});var g=l.globals.dataLabelsRects[a].length-2,p=l.globals.lastDrawnDataLabelsIndexes[a]!==void 0?l.globals.lastDrawnDataLabelsIndexes[a][l.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;if(l.globals.dataLabelsRects[a][g]!==void 0){var f=l.globals.dataLabelsRects[a][p];(e>f.x+f.width||t>f.y+f.height||t+u<f.y||e+d<f.x)&&(c=!0)}return(r===0||n)&&(c=!0),{x:e,y:t,textRects:h,drawnextLabel:c}}},{key:"drawDataLabel",value:function(e){var t=this,i=e.type,a=e.pos,r=e.i,n=e.j,o=e.isRangeStart,l=e.strokeWidth,c=l===void 0?2:l,h=this.w,d=new H(this.ctx),u=h.config.dataLabels,g=0,p=0,f=n,x=null;if(h.globals.collapsedSeriesIndices.indexOf(r)!==-1||!u.enabled||!Array.isArray(a.x))return x;x=d.group({class:"apexcharts-data-labels"});for(var b=0;b<a.x.length;b++)if(g=a.x[b]+u.offsetX,p=a.y[b]+u.offsetY+c,!isNaN(g)){n===1&&b===0&&(f=0),n===1&&b===1&&(f=1);var m=h.globals.series[r][f];i==="rangeArea"&&(m=o?h.globals.seriesRangeStart[r][f]:h.globals.seriesRangeEnd[r][f]);var v="",A=function(S){return h.config.dataLabels.formatter(S,{ctx:t.ctx,seriesIndex:r,dataPointIndex:f,w:h})};h.config.chart.type==="bubble"?(v=A(m=h.globals.seriesZ[r][f]),p=a.y[b],p=new $o(this.ctx).centerTextInBubble(p,r,f).y):m!==void 0&&(v=A(m));var y=h.config.dataLabels.textAnchor;h.globals.isSlopeChart&&(y=f===0?"end":f===h.config.series[r].data.length-1?"start":"middle"),this.plotDataLabelsText({x:g,y:p,text:v,i:r,j:f,parent:x,offsetCorrection:!0,dataLabelsConfig:h.config.dataLabels,textAnchor:y})}return x}},{key:"plotDataLabelsText",value:function(e){var t=this.w,i=new H(this.ctx),a=e.x,r=e.y,n=e.i,o=e.j,l=e.text,c=e.textAnchor,h=e.fontSize,d=e.parent,u=e.dataLabelsConfig,g=e.color,p=e.alwaysDrawDataLabel,f=e.offsetCorrection,x=e.className,b=null;if(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(n)<0)return b;var m={x:a,y:r,drawnextLabel:!0,textRects:null};f&&(m=this.dataLabelsCorrection(a,r,l,n,o,p,parseInt(u.style.fontSize,10))),t.globals.zoomed||(a=m.x,r=m.y),m.textRects&&(a<-20-m.textRects.width||a>t.globals.gridWidth+m.textRects.width+30)&&(l="");var v=t.globals.dataLabels.style.colors[n];((t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(v=t.globals.dataLabels.style.colors[o]),typeof v=="function"&&(v=v({series:t.globals.series,seriesIndex:n,dataPointIndex:o,w:t})),g&&(v=g);var A=u.offsetX,y=u.offsetY;if(t.config.chart.type!=="bar"&&t.config.chart.type!=="rangeBar"||(A=0,y=0),t.globals.isSlopeChart&&(o!==0&&(A=-2*u.offsetX+5),o!==0&&o!==t.config.series[n].data.length-1&&(A=0)),m.drawnextLabel){if((b=i.drawText({width:100,height:parseInt(u.style.fontSize,10),x:a+A,y:r+y,foreColor:v,textAnchor:c||u.textAnchor,text:l,fontSize:h||u.style.fontSize,fontFamily:u.style.fontFamily,fontWeight:u.style.fontWeight||"normal"})).attr({class:x||"apexcharts-datalabel",cx:a,cy:r}),u.dropShadow.enabled){var S=u.dropShadow;new ye(this.ctx).dropShadow(b,S)}d.add(b),t.globals.lastDrawnDataLabelsIndexes[n]===void 0&&(t.globals.lastDrawnDataLabelsIndexes[n]=[]),t.globals.lastDrawnDataLabelsIndexes[n].push(o)}return b}},{key:"addBackgroundToDataLabel",value:function(e,t){var i=this.w,a=i.config.dataLabels.background,r=a.padding,n=a.padding/2,o=t.width,l=t.height,c=new H(this.ctx).drawRect(t.x-r,t.y-n/2,o+2*r,l+n,a.borderRadius,i.config.chart.background!=="transparent"&&i.config.chart.background?i.config.chart.background:"#fff",a.opacity,a.borderWidth,a.borderColor);return a.dropShadow.enabled&&new ye(this.ctx).dropShadow(c,a.dropShadow),c}},{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],r=a.getBBox(),n=null;if(r.width&&r.height&&(n=this.addBackgroundToDataLabel(a,r)),n){a.parentNode.insertBefore(n.node,a);var o=e.config.dataLabels.background.backgroundColor||a.getAttribute("fill");e.config.chart.animations.enabled&&!e.globals.resized&&!e.globals.dataChanged?n.animate().attr({fill:o}):n.attr({fill:o}),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)}}]),s}(),He=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w,this.legendInactiveClass="legend-mouseover-inactive"}return B(s,[{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(T.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(r){for(var n=0;n<r.length;n++)r[n].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,r=T.clone(a.globals.initialSeries);a.globals.previousPaths=[],i?(a.globals.collapsedSeries=[],a.globals.ancillaryCollapsedSeries=[],a.globals.collapsedSeriesIndices=[],a.globals.ancillaryCollapsedSeriesIndices=[]):r=this.emptyCollapsedSeries(r),a.config.series=r,e&&(t&&(a.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(r,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:"highlightSeries",value:function(e){var t=this.w,i=this.getSeriesByName(e),a=parseInt(i?.getAttribute("data:realIndex"),10),r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),n=null,o=null,l=null;if(t.globals.axisCharts||t.config.chart.type==="radialBar")if(t.globals.axisCharts){n=t.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(a,"']")),o=t.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(a,"']"));var c=t.globals.seriesYAxisReverseMap[a];l=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(c,"']"))}else n=t.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(a+1,"']"));else n=t.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(a+1,"'] path"));for(var h=0;h<r.length;h++)r[h].classList.add(this.legendInactiveClass);if(n)t.globals.axisCharts||n.parentNode.classList.remove(this.legendInactiveClass),n.classList.remove(this.legendInactiveClass),o!==null&&o.classList.remove(this.legendInactiveClass),l!==null&&l.classList.remove(this.legendInactiveClass);else for(var d=0;d<r.length;d++)r[d].classList.remove(this.legendInactiveClass)}},{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, .apexcharts-yaxis");if(e.type==="mousemove"){var r=parseInt(t.getAttribute("rel"),10)-1;this.highlightSeries(i.globals.seriesNames[r])}else if(e.type==="mouseout")for(var n=0;n<a.length;n++)a[n].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var i=this,a=this.w,r=a.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),n=function(c){for(var h=0;h<r.length;h++)r[h].classList[c](i.legendInactiveClass)};if(e.type==="mousemove"){var o=parseInt(t.getAttribute("rel"),10)-1;n("add");var l=a.config.plotOptions.heatmap.colorScale.ranges;(function(c,h){for(var d=0;d<r.length;d++){var u=Number(r[d].getAttribute("val"));u>=c.from&&(u<c.to||c.to===h&&u===h)&&r[d].classList.remove(i.legendInactiveClass)}})(l[o],l.reduce(function(c,h){return Math.max(c,h.to)},0))}else e.type==="mouseout"&&n("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"asc",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=this.w,a=0;if(i.config.series.length>1){for(var r=i.config.series.map(function(o,l){return o.data&&o.data.length>0&&i.globals.collapsedSeriesIndices.indexOf(l)===-1&&(!i.globals.comboCharts||t.length===0||t.length&&t.indexOf(i.config.series[l].type)>-1)?l:-1}),n=e==="asc"?0:r.length-1;e==="asc"?n<r.length:n>=0;e==="asc"?n++:n--)if(r[n]!==-1){a=r[n];break}}return a}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(e,t){return e.type==="bar"||e.type==="column"?t:-1}).filter(function(e){return e!==-1}):this.w.config.series.map(function(e,t){return t})}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(n,o,l){for(var c=n[o].childNodes,h={type:l,paths:[],realIndex:n[o].getAttribute("data:realIndex")},d=0;d<c.length;d++)if(c[d].hasAttribute("pathTo")){var u=c[d].getAttribute("pathTo");h.paths.push({d:u})}e.globals.previousPaths.push(h)}e.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(n){for(var o,l=(o=n,e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(o,"-series .apexcharts-series"))),c=0;c<l.length;c++)t(l,c,n)});var i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(i.length>0)for(var a=function(n){for(var o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(n,"'] rect")),l=[],c=function(d){var u=function(p){return o[d].getAttribute(p)},g={x:parseFloat(u("x")),y:parseFloat(u("y")),width:parseFloat(u("width")),height:parseFloat(u("height"))};l.push({rect:g,color:o[d].getAttribute("color")})},h=0;h<o.length;h++)c(h);e.globals.previousPaths.push(l)},r=0;r<i.length;r++)a(r);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{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 H(this.ctx),a=e.globals.svgWidth/2,r=e.globals.svgHeight/2,n="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,t.align==="left"?(a=10,n="start"):t.align==="right"&&(a=e.globals.svgWidth-10,n="end"),t.verticalAlign==="top"?r=50:t.verticalAlign==="bottom"&&(r=e.globals.svgHeight-50),a+=t.offsetX,r=r+parseInt(t.style.fontSize,10)+2+t.offsetY,t.text!==void 0&&t.text!==""){var o=i.drawText({x:a,y:r,text:t.text,textAnchor:n,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,class:"apexcharts-text-nodata"});e.globals.dom.Paper.add(o)}}},{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}}]),s}(),ir=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new ge(this.ctx)}return B(s,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new He(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 He(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,r=i.chart.type==="boxPlot"||i.series[t].type==="boxPlot",n=0;n<e[t].data.length;n++)if(e[t].data[n][1]!==void 0&&(Array.isArray(e[t].data[n][1])&&e[t].data[n][1].length===4&&!r?this.twoDSeries.push(T.parseNumber(e[t].data[n][1][3])):e[t].data[n].length>=5?this.twoDSeries.push(T.parseNumber(e[t].data[n][4])):this.twoDSeries.push(T.parseNumber(e[t].data[n][1])),a.dataFormatXNumeric=!0),i.xaxis.type==="datetime"){var o=new Date(e[t].data[n][0]);o=new Date(o).getTime(),this.twoDSeriesX.push(o)}else this.twoDSeriesX.push(e[t].data[n][0]);for(var l=0;l<e[t].data.length;l++)e[t].data[l][2]!==void 0&&(this.threeDSeries.push(e[t].data[l][2]),a.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var i=this.w.config,a=this.w.globals,r=new ve(this.ctx),n=t;a.collapsedSeriesIndices.indexOf(t)>-1&&(n=this.activeSeriesIndex);for(var o=0;o<e[t].data.length;o++)e[t].data[o].y!==void 0&&(Array.isArray(e[t].data[o].y)?this.twoDSeries.push(T.parseNumber(e[t].data[o].y[e[t].data[o].y.length-1])):this.twoDSeries.push(T.parseNumber(e[t].data[o].y))),e[t].data[o].goals!==void 0&&Array.isArray(e[t].data[o].goals)?(this.seriesGoals[t]===void 0&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[o].goals)):(this.seriesGoals[t]===void 0&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var l=0;l<e[n].data.length;l++){var c=typeof e[n].data[l].x=="string",h=Array.isArray(e[n].data[l].x),d=!h&&!!r.isValidDate(e[n].data[l].x);if(c||d)if(c||i.xaxis.convertedCatToNumeric){var u=a.isBarHorizontal&&a.isRangeData;i.xaxis.type!=="datetime"||u?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[n].data[l].x),isNaN(e[n].data[l].x)||this.w.config.xaxis.type==="category"||typeof e[n].data[l].x=="string"||(a.isXNumeric=!0)):this.twoDSeriesX.push(r.parseDate(e[n].data[l].x))}else i.xaxis.type==="datetime"?this.twoDSeriesX.push(r.parseDate(e[n].data[l].x.toString())):(a.dataFormatXNumeric=!0,a.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[n].data[l].x)));else h?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[n].data[l].x)):(a.isXNumeric=!0,a.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[n].data[l].x))}if(e[t].data[0]&&e[t].data[0].z!==void 0){for(var g=0;g<e[t].data.length;g++)this.threeDSeries.push(e[t].data[g].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[t]=a.start===void 0?[]:a.start,i.seriesRangeEnd[t]=a.end===void 0?[]:a.end,i.seriesRange[t]=a.rangeUniques,i.seriesRange.forEach(function(r,n){r&&r.forEach(function(o,l){o.y.forEach(function(c,h){for(var d=0;d<o.y.length;d++)if(h!==d){var u=c.y1,g=c.y2,p=o.y[d].y1;u<=o.y[d].y2&&p<=g&&(o.overlaps.indexOf(c.rangeName)<0&&o.overlaps.push(c.rangeName),o.overlaps.indexOf(o.y[d].rangeName)<0&&o.overlaps.push(o.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=[],r=[],n=t[i].data.filter(function(h,d,u){return d===u.findIndex(function(g){return g.x===h.x})}).map(function(h,d){return{x:h.x,overlaps:[],y:[]}});if(e==="array")for(var o=0;o<t[i].data.length;o++)Array.isArray(t[i].data[o])?(a.push(t[i].data[o][1][0]),r.push(t[i].data[o][1][1])):(a.push(t[i].data[o]),r.push(t[i].data[o]));else if(e==="xy")for(var l=function(h){var d=Array.isArray(t[i].data[h].y),u=T.randomId(),g=t[i].data[h].x,p={y1:d?t[i].data[h].y[0]:t[i].data[h].y,y2:d?t[i].data[h].y[1]:t[i].data[h].y,rangeName:u};t[i].data[h].rangeName=u;var f=n.findIndex(function(x){return x.x===g});n[f].y.push(p),a.push(p.y1),r.push(p.y2)},c=0;c<t[i].data.length;c++)l(c);return{start:a,end:r,rangeUniques:n}}},{key:"handleCandleStickBoxDataFormat",value:function(e,t,i){var a=this.w,r=a.config.chart.type==="boxPlot"||a.config.series[i].type==="boxPlot",n=[],o=[],l=[],c=[],h=[];if(e==="array")if(r&&t[i].data[0].length===6||!r&&t[i].data[0].length===5)for(var d=0;d<t[i].data.length;d++)n.push(t[i].data[d][1]),o.push(t[i].data[d][2]),r?(l.push(t[i].data[d][3]),c.push(t[i].data[d][4]),h.push(t[i].data[d][5])):(c.push(t[i].data[d][3]),h.push(t[i].data[d][4]));else for(var u=0;u<t[i].data.length;u++)Array.isArray(t[i].data[u][1])&&(n.push(t[i].data[u][1][0]),o.push(t[i].data[u][1][1]),r?(l.push(t[i].data[u][1][2]),c.push(t[i].data[u][1][3]),h.push(t[i].data[u][1][4])):(c.push(t[i].data[u][1][2]),h.push(t[i].data[u][1][3])));else if(e==="xy")for(var g=0;g<t[i].data.length;g++)Array.isArray(t[i].data[g].y)&&(n.push(t[i].data[g].y[0]),o.push(t[i].data[g].y[1]),r?(l.push(t[i].data[g].y[2]),c.push(t[i].data[g].y[3]),h.push(t[i].data[g].y[4])):(c.push(t[i].data[g].y[2]),h.push(t[i].data[g].y[3])));return{o:n,h:o,m:l,l:c,c:h}}},{key:"parseDataAxisCharts",value:function(e){var t=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.ctx,a=this.w.config,r=this.w.globals,n=new ve(i),o=a.labels.length>0?a.labels.slice():a.xaxis.categories.slice();r.isRangeBar=a.chart.type==="rangeBar"&&r.isBarHorizontal,r.hasXaxisGroups=a.xaxis.type==="category"&&a.xaxis.group.groups.length>0,r.hasXaxisGroups&&(r.groups=a.xaxis.group.groups),e.forEach(function(g,p){g.name!==void 0?r.seriesNames.push(g.name):r.seriesNames.push("series-"+parseInt(p+1,10))}),this.coreUtils.setSeriesYAxisMappings();var l=[],c=me(new Set(a.series.map(function(g){return g.group})));a.series.forEach(function(g,p){var f=c.indexOf(g.group);l[f]||(l[f]=[]),l[f].push(r.seriesNames[p])}),r.seriesGroups=l;for(var h=function(){for(var g=0;g<o.length;g++)if(typeof o[g]=="string"){if(!n.isValidDate(o[g]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");t.twoDSeriesX.push(n.parseDate(o[g]))}else t.twoDSeriesX.push(o[g])},d=0;d<e.length;d++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],e[d].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[d].type!=="rangeBar"&&e[d].type!=="rangeArea"||(r.isRangeData=!0,this.handleRangeData(e,d)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,d):this.isFormatXY()&&this.handleFormatXY(e,d),a.chart.type!=="candlestick"&&e[d].type!=="candlestick"&&a.chart.type!=="boxPlot"&&e[d].type!=="boxPlot"||this.handleCandleStickBoxData(e,d),r.series.push(this.twoDSeries),r.labels.push(this.twoDSeriesX),r.seriesX.push(this.twoDSeriesX),r.seriesGoals=this.seriesGoals,d!==this.activeSeriesIndex||this.fallbackToCategory||(r.isXNumeric=!0);else{a.xaxis.type==="datetime"?(r.isXNumeric=!0,h(),r.seriesX.push(this.twoDSeriesX)):a.xaxis.type==="numeric"&&(r.isXNumeric=!0,o.length>0&&(this.twoDSeriesX=o,r.seriesX.push(this.twoDSeriesX))),r.labels.push(this.twoDSeriesX);var u=e[d].data.map(function(g){return T.parseNumber(g)});r.series.push(u)}r.seriesZ.push(this.threeDSeries),e[d].color!==void 0?r.seriesColors.push(e[d].color):r.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.seriesRange.length&&(i.seriesRange.map(function(a){a.forEach(function(r){i.labels.indexOf(r.x)<0&&r.x&&i.labels.push(r.x)})}),i.labels=Array.from(new Set(i.labels.map(JSON.stringify)),JSON.parse)),t.xaxis.convertedCatToNumeric&&(new Pi(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 r=i.series.map(function(d,u){return d.data.filter(function(g,p,f){return f.findIndex(function(x){return x.x===g.x})===p})}),n=r.reduce(function(d,u,g,p){return p[d].length>u.length?d:g},0),o=0;o<r[n].length;o++)a.push(o+1);else for(var l=0;l<t.series[t.maxValsInArrayIndex].length;l++)a.push(l+1);t.seriesX=[];for(var c=0;c<e.length;c++)t.seriesX.push(a);this.w.globals.isBarHorizontal||(t.isXNumeric=!0)}if(a.length===0){a=t.axisCharts?[]:t.series.map(function(d,u){return u+1});for(var h=0;h<e.length;h++)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.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),i.chart.stacked){var r=new He(this.ctx);a.series=r.setNullSeriesToZeroValues(a.series)}this.coreUtils.getSeriesTotals(),a.axisCharts&&(a.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),a.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),a.dataFormatXNumeric||a.isXNumeric&&(i.xaxis.type!=="numeric"||i.labels.length!==0||i.xaxis.categories.length!==0)||this.handleExternalLabelsData(e);for(var n=this.coreUtils.getCategoryLabels(a.labels),o=0;o<n.length;o++)if(Array.isArray(n[o])){a.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this.w,t=[];e.globals.seriesYAxisMap.forEach(function(i,a){var r=0;i.forEach(function(n){e.globals.collapsedSeriesIndices.indexOf(n)!==-1&&r++}),r>0&&r==i.length&&t.push(a)}),e.globals.ignoreYAxisIndexes=t.map(function(i){return i})}}]),s}(),wi=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{key:"svgStringToNode",value:function(e){return new DOMParser().parseFromString(e,"image/svg+xml").documentElement}},{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:"getSvgString",value:function(e){var t=this;return new Promise(function(i){var a=t.w,r=e||a.config.chart.toolbar.export.scale||a.config.chart.toolbar.export.width/a.globals.svgWidth;r||(r=1);var n=a.globals.svgWidth*r,o=a.globals.svgHeight*r,l=a.globals.dom.elWrap.cloneNode(!0);l.style.width=n+"px",l.style.height=o+"px";var c=new XMLSerializer().serializeToString(l),h=`
|
47
|
+
<svg xmlns="http://www.w3.org/2000/svg"
|
48
|
+
version="1.1"
|
49
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
50
|
+
class="apexcharts-svg"
|
51
|
+
xmlns:data="ApexChartsNS"
|
52
|
+
transform="translate(0, 0)"
|
53
|
+
width="`.concat(a.globals.svgWidth,'px" height="').concat(a.globals.svgHeight,`px">
|
54
|
+
<foreignObject width="100%" height="100%">
|
55
|
+
<div xmlns="http://www.w3.org/1999/xhtml" style="width:`).concat(n,"px; height:").concat(o,`px;">
|
56
|
+
<style type="text/css">
|
57
|
+
.apexcharts-tooltip, .apexcharts-toolbar, .apexcharts-xaxistooltip, .apexcharts-yaxistooltip, .apexcharts-xcrosshairs, .apexcharts-ycrosshairs, .apexcharts-zoom-rect, .apexcharts-selection-rect {
|
58
|
+
display: none;
|
59
|
+
}
|
60
|
+
</style>
|
61
|
+
`).concat(c,`
|
62
|
+
</div>
|
63
|
+
</foreignObject>
|
64
|
+
</svg>
|
65
|
+
`),d=t.svgStringToNode(h);r!==1&&t.scaleSvgNode(d,r),t.convertImagesToBase64(d).then(function(){h=new XMLSerializer().serializeToString(d),i(h.replace(/ /g," "))})})}},{key:"convertImagesToBase64",value:function(e){var t=this,i=e.getElementsByTagName("image"),a=Array.from(i).map(function(r){var n=r.getAttributeNS("http://www.w3.org/1999/xlink","href");return n&&!n.startsWith("data:")?t.getBase64FromUrl(n).then(function(o){r.setAttributeNS("http://www.w3.org/1999/xlink","href",o)}).catch(function(o){console.error("Error converting image to base64:",o)}):Promise.resolve()});return Promise.all(a)}},{key:"getBase64FromUrl",value:function(e){return new Promise(function(t,i){var a=new Image;a.crossOrigin="Anonymous",a.onload=function(){var r=document.createElement("canvas");r.width=a.width,r.height=a.height,r.getContext("2d").drawImage(a,0,0),t(r.toDataURL())},a.onerror=i,a.src=e})}},{key:"svgUrl",value:function(){var e=this;return new Promise(function(t){e.getSvgString().then(function(i){var a=new Blob([i],{type:"image/svg+xml;charset=utf-8"});t(URL.createObjectURL(a))})})}},{key:"dataURI",value:function(e){var t=this;return new Promise(function(i){var a=t.w,r=e?e.scale||e.width/a.globals.svgWidth:1,n=document.createElement("canvas");n.width=a.globals.svgWidth*r,n.height=parseInt(a.globals.dom.elWrap.style.height,10)*r;var o=a.config.chart.background!=="transparent"&&a.config.chart.background?a.config.chart.background:"#fff",l=n.getContext("2d");l.fillStyle=o,l.fillRect(0,0,n.width*r,n.height*r),t.getSvgString(r).then(function(c){var h="data:image/svg+xml,"+encodeURIComponent(c),d=new Image;d.crossOrigin="anonymous",d.onload=function(){if(l.drawImage(d,0,0),n.msToBlob){var u=n.msToBlob();i({blob:u})}else{var g=n.toDataURL("image/png");i({imgURI:g})}},d.src=h})})}},{key:"exportToSVG",value:function(){var e=this;this.svgUrl().then(function(t){e.triggerDownload(t,e.w.config.chart.toolbar.export.svg.filename,".svg")})}},{key:"exportToPng",value:function(){var e=this,t=this.w.config.chart.toolbar.export.scale,i=this.w.config.chart.toolbar.export.width,a=t?{scale:t}:i?{width:i}:void 0;this.dataURI(a).then(function(r){var n=r.imgURI,o=r.blob;o?navigator.msSaveOrOpenBlob(o,e.w.globals.chartID+".png"):e.triggerDownload(n,e.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(e){var t=this,i=e.series,a=e.fileName,r=e.columnDelimiter,n=r===void 0?",":r,o=e.lineDelimiter,l=o===void 0?`
|
66
|
+
`:o,c=this.w;i||(i=c.config.series);var h=[],d=[],u="",g=c.globals.series.map(function(y,S){return c.globals.collapsedSeriesIndices.indexOf(S)===-1?y:[]}),p=function(y){return typeof c.config.chart.toolbar.export.csv.categoryFormatter=="function"?c.config.chart.toolbar.export.csv.categoryFormatter(y):c.config.xaxis.type==="datetime"&&String(y).length>=10?new Date(y).toDateString():T.isNumber(y)?y:y.split(n).join("")},f=function(y){return typeof c.config.chart.toolbar.export.csv.valueFormatter=="function"?c.config.chart.toolbar.export.csv.valueFormatter(y):y},x=Math.max.apply(Math,me(i.map(function(y){return y.data?y.data.length:0}))),b=new ir(this.ctx),m=new lt(this.ctx),v=function(y){var S="";if(c.globals.axisCharts){if(c.config.xaxis.type==="category"||c.config.xaxis.convertedCatToNumeric)if(c.globals.isBarHorizontal){var w=c.globals.yLabelFormatters[0],k=new He(t.ctx).getActiveConfigSeriesIndex();S=w(c.globals.labels[y],{seriesIndex:k,dataPointIndex:y,w:c})}else S=m.getLabel(c.globals.labels,c.globals.timescaleLabels,0,y).text;c.config.xaxis.type==="datetime"&&(c.config.xaxis.categories.length?S=c.config.xaxis.categories[y]:c.config.labels.length&&(S=c.config.labels[y]))}else S=c.config.labels[y];return S===null?"nullvalue":(Array.isArray(S)&&(S=S.join(" ")),T.isNumber(S)?S:S.split(n).join(""))},A=function(y,S){if(h.length&&S===0&&d.push(h.join(n)),y.data){y.data=y.data.length&&y.data||me(Array(x)).map(function(){return""});for(var w=0;w<y.data.length;w++){h=[];var k=v(w);if(k!=="nullvalue"){if(k||(b.isFormatXY()?k=i[S].data[w].x:b.isFormat2DArray()&&(k=i[S].data[w]?i[S].data[w][0]:"")),S===0){h.push(p(k));for(var M=0;M<c.globals.series.length;M++){var O,P=b.isFormatXY()?(O=i[M].data[w])===null||O===void 0?void 0:O.y:g[M][w];h.push(f(P))}}(c.config.chart.type==="candlestick"||y.type&&y.type==="candlestick")&&(h.pop(),h.push(c.globals.seriesCandleO[S][w]),h.push(c.globals.seriesCandleH[S][w]),h.push(c.globals.seriesCandleL[S][w]),h.push(c.globals.seriesCandleC[S][w])),(c.config.chart.type==="boxPlot"||y.type&&y.type==="boxPlot")&&(h.pop(),h.push(c.globals.seriesCandleO[S][w]),h.push(c.globals.seriesCandleH[S][w]),h.push(c.globals.seriesCandleM[S][w]),h.push(c.globals.seriesCandleL[S][w]),h.push(c.globals.seriesCandleC[S][w])),c.config.chart.type==="rangeBar"&&(h.pop(),h.push(c.globals.seriesRangeStart[S][w]),h.push(c.globals.seriesRangeEnd[S][w])),h.length&&d.push(h.join(n))}}}};h.push(c.config.chart.toolbar.export.csv.headerCategory),c.config.chart.type==="boxPlot"?(h.push("minimum"),h.push("q1"),h.push("median"),h.push("q3"),h.push("maximum")):c.config.chart.type==="candlestick"?(h.push("open"),h.push("high"),h.push("low"),h.push("close")):c.config.chart.type==="rangeBar"?(h.push("minimum"),h.push("maximum")):i.map(function(y,S){var w=(y.name?y.name:"series-".concat(S))+"";c.globals.axisCharts&&h.push(w.split(n).join("")?w.split(n).join(""):"series-".concat(S))}),c.globals.axisCharts||(h.push(c.config.chart.toolbar.export.csv.headerValue),d.push(h.join(n))),c.globals.allSeriesHasEqualX||!c.globals.axisCharts||c.config.xaxis.categories.length||c.config.labels.length?i.map(function(y,S){c.globals.axisCharts?A(y,S):((h=[]).push(p(c.globals.labels[S])),h.push(f(g[S])),d.push(h.join(n)))}):function(){var y=new Set,S={};i.forEach(function(w,k){w?.data.forEach(function(M){var O,P;if(b.isFormatXY())O=M.x,P=M.y;else{if(!b.isFormat2DArray())return;O=M[0],P=M[1]}S[O]||(S[O]=Array(i.length).fill("")),S[O][k]=f(P),y.add(O)})}),h.length&&d.push(h.join(n)),Array.from(y).sort().forEach(function(w){d.push([p(w),S[w].join(n)])})}(),u+=d.join(l),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+u),a||c.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)}}]),s}(),Ti=function(){function s(e,t){N(this,s),this.ctx=e,this.elgrid=t,this.w=e.w;var i=this.w;this.axesUtils=new lt(e),this.xaxisLabels=i.globals.labels.slice(),i.globals.timescaleLabels.length>0&&!i.globals.isBarHorizontal&&(this.xaxisLabels=i.globals.timescaleLabels.slice()),i.config.xaxis.overwriteCategories&&(this.xaxisLabels=i.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],i.config.xaxis.position==="top"?this.offY=0:this.offY=i.globals.gridHeight,this.offY=this.offY+i.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=i.config.chart.type==="bar"&&i.config.plotOptions.bar.horizontal,this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.xaxisBorderWidth=i.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=i.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=i.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=i.config.xaxis.axisBorder.height,this.yaxis=i.config.yaxis[0]}return B(s,[{key:"drawXaxis",value:function(){var e=this.w,t=new H(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 r=[],n=0;n<this.xaxisLabels.length;n++)r.push(this.xaxisLabels[n]);if(this.drawXAxisLabelAndGroup(!0,t,a,r,e.globals.isXNumeric,function(p,f){return f}),e.globals.hasXaxisGroups){var o=e.globals.groups;r=[];for(var l=0;l<o.length;l++)r.push(o[l].title);var c={};e.config.xaxis.group.style&&(c.xaxisFontSize=e.config.xaxis.group.style.fontSize,c.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,c.xaxisForeColors=e.config.xaxis.group.style.colors,c.fontWeight=e.config.xaxis.group.style.fontWeight,c.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,a,r,!1,function(p,f){return o[p].cols*f},c)}if(e.config.xaxis.title.text!==void 0){var h=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.config.xaxis.position==="bottom"?e.globals.xAxisLabelsHeight:-e.globals.xAxisLabelsHeight-10)+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});h.add(d),i.add(h)}if(e.config.xaxis.axisBorder.show){var u=e.globals.barPadForNumericAxis,g=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-u,this.offY,this.xaxisBorderWidth+u,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(g):i.add(g)}return i}},{key:"drawXAxisLabelAndGroup",value:function(e,t,i,a,r,n){var o,l=this,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},h=[],d=[],u=this.w,g=c.xaxisFontSize||this.xaxisFontSize,p=c.xaxisFontFamily||this.xaxisFontFamily,f=c.xaxisForeColors||this.xaxisForeColors,x=c.fontWeight||u.config.xaxis.labels.style.fontWeight,b=c.cssClass||u.config.xaxis.labels.style.cssClass,m=u.globals.padHorizontal,v=a.length,A=u.config.xaxis.type==="category"?u.globals.dataPoints:v;if(A===0&&v>A&&(A=v),r){var y=Math.max(Number(u.config.xaxis.tickAmount)||1,A>1?A-1:A);o=u.globals.gridWidth/Math.min(y,v-1),m=m+n(0,o)/2+u.config.xaxis.labels.offsetX}else o=u.globals.gridWidth/A,m=m+n(0,o)+u.config.xaxis.labels.offsetX;for(var S=function(k){var M=m-n(k,o)/2+u.config.xaxis.labels.offsetX;k===0&&v===1&&o/2===m&&A===1&&(M=u.globals.gridWidth/2);var O=l.axesUtils.getLabel(a,u.globals.timescaleLabels,M,k,h,g,e),P=28;if(u.globals.rotateXLabels&&e&&(P=22),u.config.xaxis.title.text&&u.config.xaxis.position==="top"&&(P+=parseFloat(u.config.xaxis.title.style.fontSize)+2),e||(P=P+parseFloat(g)+(u.globals.xAxisLabelsHeight-u.globals.xAxisGroupLabelsHeight)+(u.globals.rotateXLabels?10:0)),O=u.config.xaxis.tickAmount!==void 0&&u.config.xaxis.tickAmount!=="dataPoints"&&u.config.xaxis.type!=="datetime"?l.axesUtils.checkLabelBasedOnTickamount(k,O,v):l.axesUtils.checkForOverflowingLabels(k,O,v,h,d),u.config.xaxis.labels.show){var L=t.drawText({x:O.x,y:l.offY+u.config.xaxis.labels.offsetY+P-(u.config.xaxis.position==="top"?u.globals.xAxisHeight+u.config.xaxis.axisTicks.height-2:0),text:O.text,textAnchor:"middle",fontWeight:O.isBold?600:x,fontSize:g,fontFamily:p,foreColor:Array.isArray(f)?e&&u.config.xaxis.convertedCatToNumeric?f[u.globals.minX+k-1]:f[k]:f,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+b});if(i.add(L),L.on("click",function(_){if(typeof u.config.chart.events.xAxisLabelClick=="function"){var I=Object.assign({},u,{labelIndex:k});u.config.chart.events.xAxisLabelClick(_,l.ctx,I)}}),e){var C=document.createElementNS(u.globals.SVGNS,"title");C.textContent=Array.isArray(O.text)?O.text.join(" "):O.text,L.node.appendChild(C),O.text!==""&&(h.push(O.text),d.push(O))}}k<v-1&&(m+=n(k+1,o))},w=0;w<=v-1;w++)S(w)}},{key:"drawXaxisInversed",value:function(e){var t,i,a=this,r=this.w,n=new H(this.ctx),o=r.config.yaxis[0].opposite?r.globals.translateYAxisX[e]:0,l=n.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),c=n.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+o+", 0)"});l.add(c);var h=[];if(r.config.yaxis[e].show)for(var d=0;d<this.xaxisLabels.length;d++)h.push(this.xaxisLabels[d]);t=r.globals.gridHeight/h.length,i=-t/2.2;var u=r.globals.yLabelFormatters[0],g=r.config.yaxis[0].labels;if(g.show)for(var p=function(y){var S=h[y]===void 0?"":h[y];S=u(S,{seriesIndex:e,dataPointIndex:y,w:r});var w=a.axesUtils.getYAxisForeColor(g.style.colors,e),k=0;Array.isArray(S)&&(k=S.length/2*parseInt(g.style.fontSize,10));var M=g.offsetX-15,O="end";a.yaxis.opposite&&(O="start"),r.config.yaxis[0].labels.align==="left"?(M=g.offsetX,O="start"):r.config.yaxis[0].labels.align==="center"?(M=g.offsetX,O="middle"):r.config.yaxis[0].labels.align==="right"&&(O="end");var P=n.drawText({x:M,y:i+t+g.offsetY-k,text:S,textAnchor:O,foreColor:Array.isArray(w)?w[y]:w,fontSize:g.style.fontSize,fontFamily:g.style.fontFamily,fontWeight:g.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+g.style.cssClass,maxWidth:g.maxWidth});c.add(P),P.on("click",function(_){if(typeof r.config.chart.events.xAxisLabelClick=="function"){var I=Object.assign({},r,{labelIndex:y});r.config.chart.events.xAxisLabelClick(_,a.ctx,I)}});var L=document.createElementNS(r.globals.SVGNS,"title");if(L.textContent=Array.isArray(S)?S.join(" "):S,P.node.appendChild(L),r.config.yaxis[e].labels.rotate!==0){var C=n.rotateAroundCenter(P.node);P.node.setAttribute("transform","rotate(".concat(r.config.yaxis[e].labels.rotate," 0 ").concat(C.y,")"))}i+=t},f=0;f<=h.length-1;f++)p(f);if(r.config.yaxis[0].title.text!==void 0){var x=n.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+o+", 0)"}),b=n.drawText({x:r.config.yaxis[0].title.offsetX,y:r.globals.gridHeight/2+r.config.yaxis[0].title.offsetY,text:r.config.yaxis[0].title.text,textAnchor:"middle",foreColor:r.config.yaxis[0].title.style.color,fontSize:r.config.yaxis[0].title.style.fontSize,fontWeight:r.config.yaxis[0].title.style.fontWeight,fontFamily:r.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+r.config.yaxis[0].title.style.cssClass});x.add(b),l.add(x)}var m=0;this.isCategoryBarHorizontal&&r.config.yaxis[0].opposite&&(m=r.globals.gridWidth);var v=r.config.xaxis.axisBorder;if(v.show){var A=n.drawLine(r.globals.padHorizontal+v.offsetX+m,1+v.offsetY,r.globals.padHorizontal+v.offsetX+m,r.globals.gridHeight+v.offsetY,v.color,0);this.elgrid&&this.elgrid.elGridBorders&&r.config.grid.show?this.elgrid.elGridBorders.add(A):l.add(A)}return r.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(m,h.length,r.config.yaxis[0].axisBorder,r.config.yaxis[0].axisTicks,0,t,l),l}},{key:"drawXaxisTicks",value:function(e,t,i){var a=this.w,r=e;if(!(e<0||e-2>a.globals.gridWidth)){var n=this.offY+a.config.xaxis.axisTicks.offsetY;if(t=t+n+a.config.xaxis.axisTicks.height,a.config.xaxis.position==="top"&&(t=n-a.config.xaxis.axisTicks.height),a.config.xaxis.axisTicks.show){var o=new H(this.ctx).drawLine(e+a.config.xaxis.axisTicks.offsetX,n+a.config.xaxis.offsetY,r+a.config.xaxis.axisTicks.offsetX,t+a.config.xaxis.offsetY,a.config.xaxis.axisTicks.color);i.add(o),o.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 r=0;r<i;r++)a=this.xaxisLabels[r].position,t.push(a);else for(var n=i,o=0;o<n;o++){var l=n;e.globals.isXNumeric&&e.config.chart.type!=="bar"&&(l-=1),a+=e.globals.gridWidth/l,t.push(a)}return t}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,t=new H(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)"),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(e.globals.rotateXLabels||e.config.xaxis.labels.rotateAlways)for(var o=0;o<a.length;o++){var l=t.rotateAroundCenter(a[o]);l.y=l.y-1,l.x=l.x+1,a[o].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(l.x," ").concat(l.y,")")),a[o].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var c=a[o].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(c,function(g){t.placeTextWithEllipsis(g,g.textContent,e.globals.xAxisLabelsHeight-(e.config.legend.position==="bottom"?20:10))})}else(function(){for(var g=e.globals.gridWidth/(e.globals.labels.length+1),p=0;p<a.length;p++){var f=a[p].childNodes;e.config.xaxis.labels.trim&&e.config.xaxis.type!=="datetime"&&Array.prototype.forEach.call(f,function(x){t.placeTextWithEllipsis(x,x.textContent,g)})}})();if(r.length>0){var h=r[r.length-1].getBBox(),d=r[0].getBBox();h.x<-20&&r[r.length-1].parentNode.removeChild(r[r.length-1]),d.x+d.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&r[0].parentNode.removeChild(r[0]);for(var u=0;u<n.length;u++)t.placeTextWithEllipsis(n[u],n[u].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),s}(),Uo=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w;var t=this.w;this.xaxisLabels=t.globals.labels.slice(),this.axesUtils=new lt(e),this.isRangeBar=t.globals.seriesRange.length&&t.globals.isBarHorizontal,t.globals.timescaleLabels.length>0&&(this.xaxisLabels=t.globals.timescaleLabels.slice())}return B(s,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w,i=new H(this.ctx);e||(e=i.group({class:"apexcharts-grid"}));var a=i.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),r=i.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(r),e.add(a),e}},{key:"drawGrid",value:function(){if(this.w.globals.axisCharts){var e=this.renderGrid();return this.drawGridArea(e.el),e}return null}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,i=new H(this.ctx),a=Array.isArray(e.config.stroke.width)?Math.max.apply(Math,me(e.config.stroke.width)):e.config.stroke.width,r=function(h){var d=document.createElementNS(t.SVGNS,"clipPath");return d.setAttribute("id",h),d};t.dom.elGridRectMask=r("gridRectMask".concat(t.cuid)),t.dom.elGridRectBarMask=r("gridRectBarMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=r("gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=r("forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=r("nonForecastMask".concat(t.cuid));var n=0,o=0;(["bar","rangeBar","candlestick","boxPlot"].includes(e.config.chart.type)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(n=Math.max(e.config.grid.padding.left,t.barPadForNumericAxis),o=Math.max(e.config.grid.padding.right,t.barPadForNumericAxis)),t.dom.elGridRect=i.drawRect(-a/2-2,-a/2-2,t.gridWidth+a+4,t.gridHeight+a+4,0,"#fff"),t.dom.elGridRectBar=i.drawRect(-a/2-n-2,-a/2-2,t.gridWidth+a+o+n+4,t.gridHeight+a+4,0,"#fff");var l=e.globals.markers.largestSize;t.dom.elGridRectMarker=i.drawRect(-l,-l,t.gridWidth+2*l,t.gridHeight+2*l,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectBarMask.appendChild(t.dom.elGridRectBar.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.elGridRectBarMask),c.appendChild(t.dom.elGridRectMarkerMask),c.appendChild(t.dom.elForecastMask),c.appendChild(t.dom.elNonForecastMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,i=e.x1,a=e.y1,r=e.x2,n=e.y2,o=e.xCount,l=e.parent,c=this.w;if(!(t===0&&c.globals.skipFirstTimelinelabel||t===o-1&&c.globals.skipLastTimelinelabel&&!c.config.xaxis.labels.formatter||c.config.chart.type==="radar")){c.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:i,y1:a,x2:r,y2:n,xCount:o,parent:l});var h=0;if(c.globals.hasXaxisGroups&&c.config.xaxis.tickPlacement==="between"){var d=c.globals.groups;if(d){for(var u=0,g=0;u<t&&g<d.length;g++)u+=d[g].cols;u===t&&(h=.6*c.globals.xAxisLabelsHeight)}}new Ti(this.ctx).drawXaxisTicks(i,h,c.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(e){var t=e.i,i=e.x1,a=e.y1,r=e.x2,n=e.y2,o=e.xCount,l=e.parent,c=this.w,h=l.node.classList.contains("apexcharts-gridlines-horizontal"),d=c.globals.barPadForNumericAxis,u=a===0&&n===0||i===0&&r===0||a===c.globals.gridHeight&&n===c.globals.gridHeight||c.globals.isBarHorizontal&&(t===0||t===o-1),g=new H(this).drawLine(i-(h?d:0),a,r+(h?d:0),n,c.config.grid.borderColor,c.config.grid.strokeDashArray);g.node.classList.add("apexcharts-gridline"),u&&c.config.grid.show?this.elGridBorders.add(g):l.add(g)}},{key:"_drawGridBandRect",value:function(e){var t=e.c,i=e.x1,a=e.y1,r=e.x2,n=e.y2,o=e.type,l=this.w,c=new H(this.ctx),h=l.globals.barPadForNumericAxis,d=l.config.grid[o].colors[t],u=c.drawRect(i-(o==="row"?h:0),a,r+(o==="row"?2*h:0),n,0,d,l.config.grid[o].opacity);this.elg.add(u),u.attr("clip-path","url(#gridRectMask".concat(l.globals.cuid,")")),u.node.classList.add("apexcharts-grid-".concat(o))}},{key:"_drawXYLines",value:function(e){var t=this,i=e.xCount,a=e.tickAmount,r=this.w;if(r.config.grid.xaxis.lines.show||r.config.xaxis.axisTicks.show){var n,o=r.globals.padHorizontal,l=r.globals.gridHeight;r.globals.timescaleLabels.length?function(p){for(var f=p.xC,x=p.x1,b=p.y1,m=p.x2,v=p.y2,A=0;A<f;A++)x=t.xaxisLabels[A].position,m=t.xaxisLabels[A].position,t._drawGridLines({i:A,x1:x,y1:b,x2:m,y2:v,xCount:i,parent:t.elgridLinesV})}({xC:i,x1:o,y1:0,x2:n,y2:l}):(r.globals.isXNumeric&&(i=r.globals.xAxisScale.result.length),function(p){for(var f=p.xC,x=p.x1,b=p.y1,m=p.x2,v=p.y2,A=0;A<f+(r.globals.isXNumeric?0:1);A++)A===0&&f===1&&r.globals.dataPoints===1&&(m=x=r.globals.gridWidth/2),t._drawGridLines({i:A,x1:x,y1:b,x2:m,y2:v,xCount:i,parent:t.elgridLinesV}),m=x+=r.globals.gridWidth/(r.globals.isXNumeric?f-1:f)}({xC:i,x1:o,y1:0,x2:n,y2:l}))}if(r.config.grid.yaxis.lines.show){var c=0,h=0,d=r.globals.gridWidth,u=a+1;this.isRangeBar&&(u=r.globals.labels.length);for(var g=0;g<u+(this.isRangeBar?1:0);g++)this._drawGridLine({i:g,xCount:u+(this.isRangeBar?1:0),x1:0,y1:c,x2:d,y2:h,parent:this.elgridLinesH}),h=c+=r.globals.gridHeight/(this.isRangeBar?u: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,r=i.globals.padHorizontal,n=i.globals.gridHeight,o=0;o<t+1;o++)i.config.grid.xaxis.lines.show&&this._drawGridLine({i:o,xCount:t+1,x1:r,y1:0,x2:a,y2:n,parent:this.elgridLinesV}),new Ti(this.ctx).drawXaxisTicks(r,0,i.globals.dom.elGraphical),a=r+=i.globals.gridWidth/t;if(i.config.grid.yaxis.lines.show)for(var l=0,c=0,h=i.globals.gridWidth,d=0;d<i.globals.dataPoints+1;d++)this._drawGridLine({i:d,xCount:i.globals.dataPoints+1,x1:0,y1:l,x2:h,y2:c,parent:this.elgridLinesH}),c=l+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var e=this.w,t=e.globals,i=new H(this.ctx);this.elg=i.group({class:"apexcharts-grid"}),this.elgridLinesH=i.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=i.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=i.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),e.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var a=0;a<t.seriesYAxisMap.length&&t.ignoreYAxisIndexes.includes(a);)a++;a===t.seriesYAxisMap.length&&(a=0);var r,n=t.yAxisScale[a].result.length-1;if(!t.isBarHorizontal||this.isRangeBar){var o,l,c;r=this.xaxisLabels.length,this.isRangeBar&&(n=t.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(r=e.config.xaxis.tickAmount),((o=t.yAxisScale)===null||o===void 0||(l=o[a])===null||l===void 0||(c=l.result)===null||c===void 0?void 0:c.length)>0&&e.config.xaxis.type!=="datetime"&&(r=t.yAxisScale[a].result.length-1)),this._drawXYLines({xCount:r,tickAmount:n})}else r=n,n=t.xTickAmount,this._drawInvertedXYLines({xCount:r,tickAmount:n});return this.drawGridBands(r,n),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:t.gridWidth/r}}},{key:"drawGridBands",value:function(e,t){var i,a,r=this,n=this.w;if(((i=n.config.grid.row.colors)===null||i===void 0?void 0:i.length)>0&&function(p,f,x,b,m,v){for(var A=0,y=0;A<f;A++,y++)y>=n.config.grid[p].colors.length&&(y=0),r._drawGridBandRect({c:y,x1:x,y1:b,x2:m,y2:v,type:p}),b+=n.globals.gridHeight/t}("row",t,0,0,n.globals.gridWidth,n.globals.gridHeight/t),((a=n.config.grid.column.colors)===null||a===void 0?void 0:a.length)>0){var o=n.globals.isBarHorizontal||n.config.xaxis.tickPlacement!=="on"||n.config.xaxis.type!=="category"&&!n.config.xaxis.convertedCatToNumeric?e:e-1;n.globals.isXNumeric&&(o=n.globals.xAxisScale.result.length-1);for(var l=n.globals.padHorizontal,c=n.globals.padHorizontal+n.globals.gridWidth/o,h=n.globals.gridHeight,d=0,u=0;d<e;d++,u++){var g;u>=n.config.grid.column.colors.length&&(u=0),n.config.xaxis.type==="datetime"&&(l=this.xaxisLabels[d].position,c=(((g=this.xaxisLabels[d+1])===null||g===void 0?void 0:g.position)||n.globals.gridWidth)-this.xaxisLabels[d].position),this._drawGridBandRect({c:u,x1:l,y1:0,x2:c,y2:h,type:"column"}),l+=n.globals.gridWidth/o}}}}]),s}(),qo=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w,this.coreUtils=new ge(this.ctx)}return B(s,[{key:"niceScale",value:function(e,t){var i,a,r,n,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=1e-11,c=this.w,h=c.globals;h.isBarHorizontal?(i=c.config.xaxis,a=Math.max((h.svgWidth-100)/25,2)):(i=c.config.yaxis[o],a=Math.max((h.svgHeight-100)/15,2)),T.isNumber(a)||(a=10),r=i.min!==void 0&&i.min!==null,n=i.max!==void 0&&i.min!==null;var d=i.stepSize!==void 0&&i.stepSize!==null,u=i.tickAmount!==void 0&&i.tickAmount!==null,g=u?i.tickAmount:h.niceScaleDefaultTicks[Math.min(Math.round(a/2),h.niceScaleDefaultTicks.length-1)];if(h.isMultipleYAxis&&!u&&h.multiAxisTickAmount>0&&(g=h.multiAxisTickAmount,u=!0),g=g==="dataPoints"?h.dataPoints-1:Math.abs(Math.round(g)),(e===Number.MIN_VALUE&&t===0||!T.isNumber(e)&&!T.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)&&(e=T.isNumber(i.min)?i.min:0,t=T.isNumber(i.max)?i.max:e+g,h.allSeriesCollapsed=!1),e>t){console.warn("axis.min cannot be greater than axis.max: swapping min and max");var p=t;t=e,e=p}else e===t&&(e=e===0?0:e-1,t=t===0?2:t+1);var f=[];g<1&&(g=1);var x=g,b=Math.abs(t-e);!r&&e>0&&e/b<.15&&(e=0,r=!0),!n&&t<0&&-t/b<.15&&(t=0,n=!0);var m=(b=Math.abs(t-e))/x,v=m,A=Math.floor(Math.log10(v)),y=Math.pow(10,A),S=Math.ceil(v/y);if(m=v=(S=h.niceScaleAllowedMagMsd[h.yValueDecimal===0?0:1][S])*y,h.isBarHorizontal&&i.stepSize&&i.type!=="datetime"?(m=i.stepSize,d=!0):d&&(m=i.stepSize),d&&i.forceNiceScale){var w=Math.floor(Math.log10(m));m*=Math.pow(10,A-w)}if(r&&n){var k=b/x;if(u)if(d)if(T.mod(b,m)!=0){var M=T.getGCD(m,k);m=k/M<10?M:k}else T.mod(m,k)==0?m=k:(k=m,u=!1);else m=k;else if(d)T.mod(b,m)==0?k=m:m=k;else if(T.mod(b,m)==0)k=m;else{k=b/(x=Math.ceil(b/m));var O=T.getGCD(b,m);b/O<a&&(k=O),m=k}x=Math.round(b/m)}else{if(r||n){if(n)if(u)e=t-m*x;else{var P=e;e=m*Math.floor(e/m),Math.abs(t-e)/T.getGCD(b,m)>a&&(e=t-m*g,e+=m*Math.floor((P-e)/m))}else if(r)if(u)t=e+m*x;else{var L=t;t=m*Math.ceil(t/m),Math.abs(t-e)/T.getGCD(b,m)>a&&(t=e+m*g,t+=m*Math.ceil((L-t)/m))}}else if(h.isMultipleYAxis&&u){var C=m*Math.floor(e/m),_=C+m*x;_<t&&(m*=2),_=t,t=(e=C)+m*x,b=Math.abs(t-e),e>0&&e<Math.abs(_-t)&&(e=0,t=m*x),t<0&&-t<Math.abs(C-e)&&(t=0,e=-m*x)}else e=m*Math.floor(e/m),t=m*Math.ceil(t/m);b=Math.abs(t-e),m=T.getGCD(b,m),x=Math.round(b/m)}if(u||r||n||(x=Math.ceil((b-l)/(m+l)))>16&&T.getPrimeFactors(x).length<2&&x++,!u&&i.forceNiceScale&&h.yValueDecimal===0&&x>b&&(x=b,m=Math.round(b/x)),x>a&&(!u&&!d||i.forceNiceScale)){var I=T.getPrimeFactors(x),E=I.length-1,z=x;e:for(var R=0;R<E;R++)for(var X=0;X<=E-R;X++){for(var D=Math.min(X+R,E),Y=z,G=1,K=X;K<=D;K++)G*=I[K];if((Y/=G)<a){z=Y;break e}}m=z===x?b:b/z,x=Math.round(b/m)}h.isMultipleYAxis&&h.multiAxisTickAmount==0&&h.ignoreYAxisIndexes.indexOf(o)<0&&(h.multiAxisTickAmount=x);var q=e-m,ie=m*l;do q+=m,f.push(T.stripNumber(q,7));while(t-q>ie);return{result:f,niceMin:f[0],niceMax:f[f.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?arguments[3]:0,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,n=Math.abs(t-e),o=[];if(e===t)return{result:o=[e],niceMin:o[0],niceMax:o[o.length-1]};(i=this._adjustTicksForSmallRange(i,a,n))==="dataPoints"&&(i=this.w.globals.dataPoints-1),r||(r=n/i),r=Math.round(100*(r+Number.EPSILON))/100,i===Number.MAX_VALUE&&(i=5,r=1);for(var l=e;i>=0;)o.push(l),l=T.preciseAddition(l,r),i-=1;return{result:o,niceMin:o[0],niceMax:o[o.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=[],r=Math.ceil(Math.log(t)/Math.log(i)+1),n=Math.floor(Math.log(e)/Math.log(i));n<r;n++)a.push(Math.pow(i,n));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=[],r=Math.log(t)/Math.log(i),n=Math.log(e)/Math.log(i),o=r-n,l=Math.round(o),c=o/l,h=0,d=n;h<l;h++,d+=c)a.push(Math.pow(i,d));return a.push(Math.pow(i,r)),{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 r=Number(this.w.config.yaxis[t].labels.formatter(1));T.isNumber(r)&&this.w.globals.yValueDecimal===0&&(a=Math.ceil(i))}return a<e?a:e}},{key:"setYScaleForIndex",value:function(e,t,i){var a=this.w.globals,r=this.w.config,n=a.isBarHorizontal?r.xaxis:r.yaxis[e];a.yAxisScale[e]===void 0&&(a.yAxisScale[e]=[]);var o=Math.abs(i-t);n.logarithmic&&o<=5&&(a.invalidLogScale=!0),n.logarithmic&&o>5?(a.allSeriesCollapsed=!1,a.yAxisScale[e]=n.forceNiceScale?this.logarithmicScaleNice(t,i,n.logBase):this.logarithmicScale(t,i,n.logBase)):i!==-Number.MAX_VALUE&&T.isNumber(i)&&t!==Number.MAX_VALUE&&T.isNumber(t)?(a.allSeriesCollapsed=!1,a.yAxisScale[e]=this.niceScale(t,i,e)):a.yAxisScale[e]=this.niceScale(Number.MIN_VALUE,0,e)}},{key:"setXScale",value:function(e,t){var i=this.w,a=i.globals;if(t!==-Number.MAX_VALUE&&T.isNumber(t)){var r=a.xTickAmount;a.xAxisScale=this.linearScale(e,t,r,0,i.config.xaxis.stepSize)}else a.xAxisScale=this.linearScale(0,10,10);return a.xAxisScale}},{key:"scaleMultipleYAxes",value:function(){var e=this,t=this.w.config,i=this.w.globals;this.coreUtils.setSeriesYAxisMappings();var a=i.seriesYAxisMap,r=i.minYArr,n=i.maxYArr;i.allSeriesCollapsed=!0,i.barGroups=[],a.forEach(function(o,l){var c=[];o.forEach(function(h){var d,u=(d=t.series[h])===null||d===void 0?void 0:d.group;c.indexOf(u)<0&&c.push(u)}),o.length>0?function(){var h,d,u=Number.MAX_VALUE,g=-Number.MAX_VALUE,p=u,f=g;if(t.chart.stacked)(function(){var m=new Array(i.dataPoints).fill(0),v=[],A=[],y=[];c.forEach(function(){v.push(m.map(function(){return Number.MIN_VALUE})),A.push(m.map(function(){return Number.MIN_VALUE})),y.push(m.map(function(){return Number.MIN_VALUE}))});for(var S=function(k){!h&&t.series[o[k]].type&&(h=t.series[o[k]].type);var M=o[k];d=t.series[M].group?t.series[M].group:"axis-".concat(l),!(i.collapsedSeriesIndices.indexOf(M)<0&&i.ancillaryCollapsedSeriesIndices.indexOf(M)<0)||(i.allSeriesCollapsed=!1,c.forEach(function(O,P){if(t.series[M].group===O)for(var L=0;L<i.series[M].length;L++){var C=i.series[M][L];C>=0?A[P][L]+=C:y[P][L]+=C,v[P][L]+=C,p=Math.min(p,C),f=Math.max(f,C)}})),h!=="bar"&&h!=="column"||i.barGroups.push(d)},w=0;w<o.length;w++)S(w);h||(h=t.chart.type),h==="bar"||h==="column"?c.forEach(function(k,M){u=Math.min(u,Math.min.apply(null,y[M])),g=Math.max(g,Math.max.apply(null,A[M]))}):(c.forEach(function(k,M){p=Math.min(p,Math.min.apply(null,v[M])),f=Math.max(f,Math.max.apply(null,v[M]))}),u=p,g=f),u===Number.MIN_VALUE&&g===Number.MIN_VALUE&&(g=-Number.MAX_VALUE)})();else for(var x=0;x<o.length;x++){var b=o[x];u=Math.min(u,r[b]),g=Math.max(g,n[b]),!(i.collapsedSeriesIndices.indexOf(b)<0&&i.ancillaryCollapsedSeriesIndices.indexOf(b)<0)||(i.allSeriesCollapsed=!1)}t.yaxis[l].min!==void 0&&(u=typeof t.yaxis[l].min=="function"?t.yaxis[l].min(u):t.yaxis[l].min),t.yaxis[l].max!==void 0&&(g=typeof t.yaxis[l].max=="function"?t.yaxis[l].max(g):t.yaxis[l].max),i.barGroups=i.barGroups.filter(function(m,v,A){return A.indexOf(m)===v}),e.setYScaleForIndex(l,u,g),o.forEach(function(m){r[m]=i.yAxisScale[l].niceMin,n[m]=i.yAxisScale[l].niceMax})}():e.setYScaleForIndex(l,0,-Number.MAX_VALUE)})}}]),s}(),Fs=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w,this.scales=new qo(e)}return B(s,[{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,r=this.w.config,n=this.w.globals,o=-Number.MAX_VALUE,l=Number.MIN_VALUE;a===null&&(a=e+1);var c=n.series,h=c,d=c;r.chart.type==="candlestick"?(h=n.seriesCandleL,d=n.seriesCandleH):r.chart.type==="boxPlot"?(h=n.seriesCandleO,d=n.seriesCandleC):n.isRangeData&&(h=n.seriesRangeStart,d=n.seriesRangeEnd);var u=!1;if(n.seriesX.length>=a){var g,p=(g=n.brushSource)===null||g===void 0?void 0:g.w.config.chart.brush;(r.chart.zoom.enabled&&r.chart.zoom.autoScaleYaxis||p!=null&&p.enabled&&p!=null&&p.autoScaleYaxis)&&(u=!0)}for(var f=e;f<a;f++){n.dataPoints=Math.max(n.dataPoints,c[f].length);var x=r.series[f].type;n.categoryLabels.length&&(n.dataPoints=n.categoryLabels.filter(function(M){return M!==void 0}).length),n.labels.length&&r.xaxis.type!=="datetime"&&n.series.reduce(function(M,O){return M+O.length},0)!==0&&(n.dataPoints=Math.max(n.dataPoints,n.labels.length));var b=0,m=c[f].length-1;if(u){if(r.xaxis.min)for(;b<m&&n.seriesX[f][b]<r.xaxis.min;b++);if(r.xaxis.max)for(;m>b&&n.seriesX[f][m]>r.xaxis.max;m--);}for(var v=b;v<=m&&v<n.series[f].length;v++){var A=c[f][v];if(A!==null&&T.isNumber(A)){var y,S,w,k;switch(((y=d[f])===null||y===void 0?void 0:y[v])!==void 0&&(o=Math.max(o,d[f][v]),t=Math.min(t,d[f][v])),((S=h[f])===null||S===void 0?void 0:S[v])!==void 0&&(t=Math.min(t,h[f][v]),i=Math.max(i,h[f][v])),x){case"candlestick":n.seriesCandleC[f][v]!==void 0&&(o=Math.max(o,n.seriesCandleH[f][v]),t=Math.min(t,n.seriesCandleL[f][v]));break;case"boxPlot":n.seriesCandleC[f][v]!==void 0&&(o=Math.max(o,n.seriesCandleC[f][v]),t=Math.min(t,n.seriesCandleO[f][v]))}x&&x!=="candlestick"&&x!=="boxPlot"&&x!=="rangeArea"&&x!=="rangeBar"&&(o=Math.max(o,n.series[f][v]),t=Math.min(t,n.series[f][v])),n.seriesGoals[f]&&n.seriesGoals[f][v]&&Array.isArray(n.seriesGoals[f][v])&&n.seriesGoals[f][v].forEach(function(M){o=Math.max(o,M.value),t=Math.min(t,M.value)}),i=o,A=T.noExponents(A),T.isFloat(A)&&(n.yValueDecimal=Math.max(n.yValueDecimal,A.toString().split(".")[1].length)),l>((w=h[f])===null||w===void 0?void 0:w[v])&&((k=h[f])===null||k===void 0?void 0:k[v])<0&&(l=h[f][v])}else n.hasNullValues=!0}x!=="bar"&&x!=="column"||(l<0&&o<0&&(o=0,i=Math.max(i,0)),l===Number.MIN_VALUE&&(l=0,t=Math.min(t,0)))}return r.chart.type==="rangeBar"&&n.seriesRangeStart.length&&n.isBarHorizontal&&(l=t),r.chart.type==="bar"&&(l<0&&o<0&&(o=0),l===Number.MIN_VALUE&&(l=0)),{minY:l,maxY:o,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,a=Number.MAX_VALUE;if(e.isMultipleYAxis){a=Number.MAX_VALUE;for(var r=0;r<e.series.length;r++)i=this.getMinYMaxY(r),e.minYArr[r]=i.lowestY,e.maxYArr[r]=i.highestY,a=Math.min(a,i.lowestY)}return i=this.getMinYMaxY(0,a,null,e.series.length),t.chart.type==="bar"?(e.minY=i.minY,e.maxY=i.maxY):(e.minY=i.lowestY,e.maxY=i.highestY),a=i.lowestY,t.chart.stacked&&this._setStackedMinMax(),t.chart.type==="line"||t.chart.type==="area"||t.chart.type==="scatter"||t.chart.type==="candlestick"||t.chart.type==="boxPlot"||t.chart.type==="rangeBar"&&!e.isBarHorizontal?e.minY===Number.MIN_VALUE&&a!==-Number.MAX_VALUE&&a!==e.maxY&&(e.minY=a):e.minY=e.minY!==Number.MIN_VALUE?Math.min(i.minY,e.minY):i.minY,t.yaxis.forEach(function(n,o){n.max!==void 0&&(typeof n.max=="number"?e.maxYArr[o]=n.max:typeof n.max=="function"&&(e.maxYArr[o]=n.max(e.isMultipleYAxis?e.maxYArr[o]:e.maxY)),e.maxY=e.maxYArr[o]),n.min!==void 0&&(typeof n.min=="number"?e.minYArr[o]=n.min:typeof n.min=="function"&&(e.minYArr[o]=n.min(e.isMultipleYAxis?e.minYArr[o]===Number.MIN_VALUE?0:e.minYArr[o]:e.minY)),e.minY=e.minYArr[o])}),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.scaleMultipleYAxes(),e.minY=a):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.minY,e.maxYArr[0]=e.maxY),e.barGroups=[],e.lineGroups=[],e.areaGroups=[],t.series.forEach(function(n){switch(n.type||t.chart.type){case"bar":case"column":e.barGroups.push(n.group);break;case"line":e.lineGroups.push(n.group);break;case"area":e.areaGroups.push(n.group)}}),e.barGroups=e.barGroups.filter(function(n,o,l){return l.indexOf(n)===o}),e.lineGroups=e.lineGroups.filter(function(n,o,l){return l.indexOf(n)===o}),e.areaGroups=e.areaGroups.filter(function(n,o,l){return l.indexOf(n)===o}),{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 l=0;l<e.series.length;l++)if(e.labels[l])for(var c=0;c<e.labels[l].length;c++)e.labels[l][c]!==null&&T.isNumber(e.labels[l][c])&&(e.maxX=Math.max(e.maxX,e.labels[l][c]),e.initialMaxX=Math.max(e.maxX,e.labels[l][c]),e.minX=Math.min(e.minX,e.labels[l][c]),e.initialMinX=Math.min(e.minX,e.labels[l][c]))}(),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=10;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);else if(t.xaxis.tickAmount==="dataPoints"){if(e.series.length>1&&(a=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric){var r=Math.round(e.maxX-e.minX);r<30&&(a=r-1)}}else a=t.xaxis.tickAmount;if(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 n=[],o=e.minX-1;o<e.maxX;o++)n.push(o+1);e.xAxisScale={result:n,niceMin:n[0],niceMax:n[n.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(0,a,a,0,t.xaxis.stepSize),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,a-1,0,t.xaxis.stepSize),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&&T.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 ve(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 r=i.getDate(e.maxX);t.xaxis.labels.datetimeUTC?r.setUTCDate(r.getUTCDate()+2):r.setDate(r.getDate()+2),e.maxX=new Date(r).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){if(t.length){t.length===1&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var a=t.slice();a.sort(function(r,n){return r-n}),a.forEach(function(r,n){if(n>0){var o=r-a[n-1];o>0&&(e.minXDiff=Math.min(o,e.minXDiff))}}),e.dataPoints!==1&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)}})}},{key:"_setStackedMinMax",value:function(){var e=this,t=this.w.globals;if(t.series.length){var i=t.seriesGroups;i.length||(i=[this.w.globals.seriesNames.map(function(n){return n})]);var a={},r={};i.forEach(function(n){a[n]=[],r[n]=[],e.w.config.series.map(function(o,l){return n.indexOf(t.seriesNames[l])>-1?l:null}).filter(function(o){return o!==null}).forEach(function(o){for(var l=0;l<t.series[t.maxValsInArrayIndex].length;l++){var c,h,d,u;a[n][l]===void 0&&(a[n][l]=0,r[n][l]=0),(e.w.config.chart.stacked&&!t.comboCharts||e.w.config.chart.stacked&&t.comboCharts&&(!e.w.config.chart.stackOnlyBar||((c=e.w.config.series)===null||c===void 0||(h=c[o])===null||h===void 0?void 0:h.type)==="bar"||((d=e.w.config.series)===null||d===void 0||(u=d[o])===null||u===void 0?void 0:u.type)==="column"))&&t.series[o][l]!==null&&T.isNumber(t.series[o][l])&&(t.series[o][l]>0?a[n][l]+=parseFloat(t.series[o][l])+1e-4:r[n][l]+=parseFloat(t.series[o][l]))}})}),Object.entries(a).forEach(function(n){var o=vo(n,1)[0];a[o].forEach(function(l,c){t.maxY=Math.max(t.maxY,a[o][c]),t.minY=Math.min(t.minY,r[o][c])})})}}}]),s}(),ar=function(){function s(e,t){N(this,s),this.ctx=e,this.elgrid=t,this.w=e.w;var i=this.w;this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.axisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=i.config.chart.type==="bar"&&i.config.plotOptions.bar.horizontal,this.xAxisoffX=i.config.xaxis.position==="bottom"?i.globals.gridHeight:0,this.drawnLabels=[],this.axesUtils=new lt(e)}return B(s,[{key:"drawYaxis",value:function(e){var t=this.w,i=new H(this.ctx),a=t.config.yaxis[e].labels.style,r=a.fontSize,n=a.fontFamily,o=a.fontWeight,l=i.group({class:"apexcharts-yaxis",rel:e,transform:"translate(".concat(t.globals.translateYAxisX[e],", 0)")});if(this.axesUtils.isYAxisHidden(e))return l;var c=i.group({class:"apexcharts-yaxis-texts-g"});l.add(c);var h=t.globals.yAxisScale[e].result.length-1,d=t.globals.gridHeight/h,u=t.globals.yLabelFormatters[e],g=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice());if(t.config.yaxis[e].labels.show){var p=t.globals.translateY+t.config.yaxis[e].labels.offsetY;t.globals.isBarHorizontal?p=0:t.config.chart.type==="heatmap"&&(p-=d/2),p+=parseInt(r,10)/3;for(var f=h;f>=0;f--){var x=u(g[f],f,t),b=t.config.yaxis[e].labels.padding;t.config.yaxis[e].opposite&&t.config.yaxis.length!==0&&(b*=-1);var m=this.getTextAnchor(t.config.yaxis[e].labels.align,t.config.yaxis[e].opposite),v=this.axesUtils.getYAxisForeColor(a.colors,e),A=Array.isArray(v)?v[f]:v,y=T.listToArray(t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-label tspan"))).map(function(w){return w.textContent}),S=i.drawText({x:b,y:p,text:y.includes(x)&&!t.config.yaxis[e].labels.showDuplicates?"":x,textAnchor:m,fontSize:r,fontFamily:n,fontWeight:o,maxWidth:t.config.yaxis[e].labels.maxWidth,foreColor:A,isPlainText:!1,cssClass:"apexcharts-yaxis-label ".concat(a.cssClass)});c.add(S),this.addTooltip(S,x),t.config.yaxis[e].labels.rotate!==0&&this.rotateLabel(i,S,firstLabel,t.config.yaxis[e].labels.rotate),p+=d}}return this.addYAxisTitle(i,l,e),this.addAxisBorder(i,l,e,h,d),l}},{key:"getTextAnchor",value:function(e,t){return e==="left"?"start":e==="center"?"middle":e==="right"?"end":t?"start":"end"}},{key:"addTooltip",value:function(e,t){var i=document.createElementNS(this.w.globals.SVGNS,"title");i.textContent=Array.isArray(t)?t.join(" "):t,e.node.appendChild(i)}},{key:"rotateLabel",value:function(e,t,i,a){var r=e.rotateAroundCenter(i.node),n=e.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(".concat(a," ").concat(r.x," ").concat(n.y,")"))}},{key:"addYAxisTitle",value:function(e,t,i){var a=this.w;if(a.config.yaxis[i].title.text!==void 0){var r=e.group({class:"apexcharts-yaxis-title"}),n=a.config.yaxis[i].opposite?a.globals.translateYAxisX[i]:0,o=e.drawText({x:n,y:a.globals.gridHeight/2+a.globals.translateY+a.config.yaxis[i].title.offsetY,text:a.config.yaxis[i].title.text,textAnchor:"end",foreColor:a.config.yaxis[i].title.style.color,fontSize:a.config.yaxis[i].title.style.fontSize,fontWeight:a.config.yaxis[i].title.style.fontWeight,fontFamily:a.config.yaxis[i].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text ".concat(a.config.yaxis[i].title.style.cssClass)});r.add(o),t.add(r)}}},{key:"addAxisBorder",value:function(e,t,i,a,r){var n=this.w,o=n.config.yaxis[i].axisBorder,l=31+o.offsetX;if(n.config.yaxis[i].opposite&&(l=-31-o.offsetX),o.show){var c=e.drawLine(l,n.globals.translateY+o.offsetY-2,l,n.globals.gridHeight+n.globals.translateY+o.offsetY+2,o.color,0,o.width);t.add(c)}n.config.yaxis[i].axisTicks.show&&this.axesUtils.drawYAxisTicks(l,a,o,n.config.yaxis[i].axisTicks,i,r,t)}},{key:"drawYaxisInversed",value:function(e){var t=this.w,i=new H(this.ctx),a=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),r=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});a.add(r);var n=t.globals.yAxisScale[e].result.length-1,o=t.globals.gridWidth/n+.1,l=o+t.config.xaxis.labels.offsetX,c=t.globals.xLabelFormatter,h=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice()),d=t.globals.timescaleLabels;if(d.length>0&&(this.xaxisLabels=d.slice(),n=(h=d.slice()).length),t.config.xaxis.labels.show)for(var u=d.length?0:n;d.length?u<d.length:u>=0;d.length?u++:u--){var g=c(h[u],u,t),p=t.globals.gridWidth+t.globals.padHorizontal-(l-o+t.config.xaxis.labels.offsetX);if(d.length){var f=this.axesUtils.getLabel(h,d,p,u,this.drawnLabels,this.xaxisFontSize);p=f.x,g=f.text,this.drawnLabels.push(f.text),u===0&&t.globals.skipFirstTimelinelabel&&(g=""),u===h.length-1&&t.globals.skipLastTimelinelabel&&(g="")}var x=i.drawText({x:p,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:g,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 ".concat(t.config.xaxis.labels.style.cssClass)});r.add(x),x.tspan(g),this.addTooltip(x,g),l+=o}return this.inversedYAxisTitleText(a),this.inversedYAxisBorder(a),a}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,i=new H(this.ctx),a=t.config.xaxis.axisBorder;if(a.show){var r=0;t.config.chart.type==="bar"&&t.globals.isXNumeric&&(r-=15);var n=i.drawLine(t.globals.padHorizontal+r+a.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,a.color,0,a.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(n):e.add(n)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,i=new H(this.ctx);if(t.config.xaxis.title.text!==void 0){var a=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),r=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 ".concat(t.config.xaxis.title.style.cssClass)});a.add(r),e.add(a)}}},{key:"yAxisTitleRotate",value:function(e,t){var i=this.w,a=new H(this.ctx),r=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g")),n=r?r.getBoundingClientRect():{width:0,height:0},o=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text")),l=o?o.getBoundingClientRect():{width:0,height:0};if(o){var c=this.xPaddingForYAxisTitle(e,n,l,t);o.setAttribute("x",c.xPos-(t?10:0));var h=a.rotateAroundCenter(o);o.setAttribute("transform","rotate(".concat(t?-1*i.config.yaxis[e].title.rotate:i.config.yaxis[e].title.rotate," ").concat(h.x," ").concat(h.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,i,a){var r=this.w,n=0,o=10;return r.config.yaxis[e].title.text===void 0||e<0?{xPos:n,padd:0}:(a?n=t.width+r.config.yaxis[e].title.offsetX+i.width/2+o/2:(n=-1*t.width+r.config.yaxis[e].title.offsetX+o/2+i.width/2,r.globals.isBarHorizontal&&(o=25,n=-1*t.width-r.config.yaxis[e].title.offsetX-o)),{xPos:n,padd:o})}},{key:"setYAxisXPosition",value:function(e,t){var i=this.w,a=0,r=0,n=18,o=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.forEach(function(l,c){var h=i.globals.ignoreYAxisIndexes.includes(c)||!l.show||l.floating||e[c].width===0,d=e[c].width+t[c].width;l.opposite?i.globals.isBarHorizontal?(r=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[c]=r-l.labels.offsetX):(r=i.globals.gridWidth+i.globals.translateX+o,h||(o+=d+20),i.globals.translateYAxisX[c]=r-l.labels.offsetX+20):(a=i.globals.translateX-n,h||(n+=d+20),i.globals.translateYAxisX[c]=a+l.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var e=this.w;T.listToArray(e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach(function(t,i){var a=e.config.yaxis[i];if(a&&!a.floating&&a.labels.align!==void 0){var r=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-texts-g")),n=T.listToArray(e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-label"))),o=r.getBoundingClientRect();n.forEach(function(l){l.setAttribute("text-anchor",a.labels.align)}),a.labels.align!=="left"||a.opposite?a.labels.align==="center"?r.setAttribute("transform","translate(".concat(o.width/2*(a.opposite?1:-1),", 0)")):a.labels.align==="right"&&a.opposite&&r.setAttribute("transform","translate(".concat(o.width,", 0)")):r.setAttribute("transform","translate(-".concat(o.width,", 0)"))}})}}]),s}(),Zd=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w,this.documentEvent=T.bind(this.documentEvent,this)}return B(s,[{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],r=a.length,n=0;n<r;n++)a[n].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(r){a.addEventListener(r,function(n){var o=n.target.getAttribute("i")===null&&t.globals.capturedSeriesIndex!==-1?t.globals.capturedSeriesIndex:n.target.getAttribute("i"),l=n.target.getAttribute("j")===null&&t.globals.capturedDataPointIndex!==-1?t.globals.capturedDataPointIndex:n.target.getAttribute("j"),c=Object.assign({},t,{seriesIndex:t.globals.axisCharts?o:0,dataPointIndex:l});n.type==="mousemove"||n.type==="touchmove"?typeof t.config.chart.events.mouseMove=="function"&&t.config.chart.events.mouseMove(n,i,c):n.type==="mouseleave"||n.type==="touchleave"?typeof t.config.chart.events.mouseLeave=="function"&&t.config.chart.events.mouseLeave(n,i,c):(n.type==="mouseup"&&n.which===1||n.type==="touchend")&&(typeof t.config.chart.events.click=="function"&&t.config.chart.events.click(n,i,c),i.ctx.events.fireEvent("click",[n,i,c]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(r){t.globals.dom.baseEl.addEventListener(r,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}}]),s}(),Kd=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{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(r){return r.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=T.extend(Go,i);this.w.globals.locale=a.options}}]),s}(),Jd=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{key:"drawAxis",value:function(e,t){var i,a,r=this,n=this.w.globals,o=this.w.config,l=new Ti(this.ctx,t),c=new ar(this.ctx,t);n.axisCharts&&e!=="radar"&&(n.isBarHorizontal?(a=c.drawYaxisInversed(0),i=l.drawXaxisInversed(0),n.dom.elGraphical.add(i),n.dom.elGraphical.add(a)):(i=l.drawXaxis(),n.dom.elGraphical.add(i),o.yaxis.map(function(h,d){if(n.ignoreYAxisIndexes.indexOf(d)===-1&&(a=c.drawYaxis(d),n.dom.Paper.add(a),r.w.config.grid.position==="back")){var u=n.dom.Paper.children()[1];u.remove(),n.dom.Paper.add(u)}})))}}]),s}(),Ys=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new H(this.ctx),i=new ye(this.ctx),a=e.config.xaxis.crosshairs.fill.gradient,r=e.config.xaxis.crosshairs.dropShadow,n=e.config.xaxis.crosshairs.fill.type,o=a.colorFrom,l=a.colorTo,c=a.opacityFrom,h=a.opacityTo,d=a.stops,u=r.enabled,g=r.left,p=r.top,f=r.blur,x=r.color,b=r.opacity,m=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){n==="gradient"&&(m=t.drawGradient("vertical",o,l,c,h,null,d,null));var v=t.drawRect();e.config.xaxis.crosshairs.width===1&&(v=t.drawLine());var A=e.globals.gridHeight;(!T.isNumber(A)||A<0)&&(A=0);var y=e.config.xaxis.crosshairs.width;(!T.isNumber(y)||y<0)&&(y=0),v.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:A,width:y,height:A,fill:m,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}),u&&(v=i.dropShadow(v,{left:g,top:p,blur:f,color:x,opacity:b})),e.globals.dom.elGraphical.add(v)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new H(this.ctx),i=e.config.yaxis[0].crosshairs,a=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var r=t.drawLine(-a,0,e.globals.gridWidth+a,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);r.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(r)}var n=t.drawLine(-a,0,e.globals.gridWidth+a,0,i.stroke.color,0,0);n.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(n)}}]),s}(),Qd=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{key:"checkResponsiveConfig",value:function(e){var t=this,i=this.w,a=i.config;if(a.responsive.length!==0){var r=a.responsive.slice();r.sort(function(c,h){return c.breakpoint>h.breakpoint?1:h.breakpoint>c.breakpoint?-1:0}).reverse();var n=new Ii({}),o=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=r[0].breakpoint,d=window.innerWidth>0?window.innerWidth:screen.width;if(d>h){var u=T.clone(i.globals.initialConfig);u.series=T.clone(i.config.series);var g=ge.extendArrayProps(n,u,i);c=T.extend(g,c),c=T.extend(i.config,c),t.overrideResponsiveOptions(c)}else for(var p=0;p<r.length;p++)d<r[p].breakpoint&&(c=ge.extendArrayProps(n,r[p].options,i),c=T.extend(i.config,c),t.overrideResponsiveOptions(c))};if(e){var l=ge.extendArrayProps(n,e,i);l=T.extend(i.config,l),o(l=T.extend(l,e))}else o({})}}},{key:"overrideResponsiveOptions",value:function(e){var t=new Ii(e).init({responsiveOverride:!0});this.w.config=t}}]),s}(),eu=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed()}return B(s,[{key:"checkHeatmapDistributed",value:function(){var e=this.w.config,t=e.chart,i=e.plotOptions;return t.type==="treemap"&&i.treemap&&i.treemap.distributed||t.type==="heatmap"&&i.heatmap&&i.heatmap.distributed}},{key:"checkBarDistributed",value:function(){var e=this.w.config,t=e.chart,i=e.plotOptions;return i.bar&&i.bar.distributed&&(t.type==="bar"||t.type==="rangeBar")}},{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e=this.w,t=new T;e.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(e.config.theme.mode||"light"));var i=me(e.config.colors||e.config.fill.colors||[]);e.globals.colors=this.getColors(i),this.applySeriesColors(e.globals.seriesColors,e.globals.colors),e.config.theme.monochrome.enabled&&(e.globals.colors=this.getMonochromeColors(e.config.theme.monochrome,e.globals.series,t));var a=e.globals.colors.slice();this.pushExtraColors(e.globals.colors),this.applyColorTypes(["fill","stroke"],a),this.applyDataLabelsColors(a),this.applyRadarPolygonsColors(),this.applyMarkersColors(a)}},{key:"getColors",value:function(e){var t=this,i=this.w;return e&&e.length!==0?Array.isArray(e)&&e.length>0&&typeof e[0]=="function"?(this.isColorFn=!0,i.config.series.map(function(a,r){var n=e[r]||e[0];return typeof n=="function"?n({value:i.globals.axisCharts?i.globals.series[r][0]||0:i.globals.series[r],seriesIndex:r,dataPointIndex:r,w:t.w}):n})):e:this.predefined()}},{key:"applySeriesColors",value:function(e,t){e.forEach(function(i,a){i&&(t[a]=i)})}},{key:"getMonochromeColors",value:function(e,t,i){var a=e.color,r=e.shadeIntensity,n=e.shadeTo,o=this.isBarDistributed||this.isHeatmapDistributed?t[0].length*t.length:t.length,l=1/(o/r),c=0;return Array.from({length:o},function(){var h=n==="dark"?i.shadeColor(-1*c,a):i.shadeColor(c,a);return c+=l,h})}},{key:"applyColorTypes",value:function(e,t){var i=this,a=this.w;e.forEach(function(r){a.globals[r].colors=a.config[r].colors===void 0?i.isColorFn?a.config.colors:t:a.config[r].colors.slice(),i.pushExtraColors(a.globals[r].colors)})}},{key:"applyDataLabelsColors",value:function(e){var t=this.w;t.globals.dataLabels.style.colors=t.config.dataLabels.style.colors===void 0?e:t.config.dataLabels.style.colors.slice(),this.pushExtraColors(t.globals.dataLabels.style.colors,50)}},{key:"applyRadarPolygonsColors",value:function(){var e=this.w;e.globals.radarPolygons.fill.colors=e.config.plotOptions.radar.polygons.fill.colors===void 0?[e.config.theme.mode==="dark"?"#343A3F":"none"]:e.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(e.globals.radarPolygons.fill.colors,20)}},{key:"applyMarkersColors",value:function(e){var t=this.w;t.globals.markers.colors=t.config.markers.colors===void 0?e: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,r=t||a.globals.series.length;if(i===null&&(i=this.isBarDistributed||this.isHeatmapDistributed||a.config.chart.type==="heatmap"&&a.config.plotOptions.heatmap&&a.config.plotOptions.heatmap.colorScale.inverse),i&&a.globals.series.length&&(r=a.globals.series[a.globals.maxValsInArrayIndex].length*a.globals.series.length),e.length<r)for(var n=r-e.length,o=0;o<n;o++)e.push(e[o])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var t=e.theme.mode,i=t==="dark"?"palette4":t==="light"?"palette1":e.theme.palette||"palette1",a=t==="dark"?"#f6f7f8":t==="light"?"#373d3f":e.chart.foreColor||"#373d3f";return e.tooltip.theme=t||"light",e.chart.foreColor=a,e.theme.palette=i,e}},{key:"predefined",value:function(){var e={palette1:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"],palette2:["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"],palette3:["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"],palette4:["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"],palette5:["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"],palette6:["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"],palette7:["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"],palette8:["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"],palette9:["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"],palette10:["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"],default:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"]};return e[this.w.config.theme.palette]||e.default}}]),s}(),tu=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{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,r=i.offsetY,n="middle";if(i.align==="left"?(a=10,n="start"):i.align==="right"&&(a=t.globals.svgWidth-10,n="end"),a+=i.offsetX,r=r+parseInt(i.style.fontSize,10)+i.margin/2,i.text!==void 0){var o=new H(this.ctx).drawText({x:a,y:r,text:i.text,textAnchor:n,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});o.node.setAttribute("class","apexcharts-".concat(e,"-text")),t.globals.dom.Paper.add(o)}}}]),s}(),iu=function(){function s(e){N(this,s),this.w=e.w,this.dCtx=e}return B(s,[{key:"getTitleSubtitleCoords",value:function(e){var t=this.w,i=0,a=0,r=e==="title"?t.config.title.floating:t.config.subtitle.floating,n=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(n!==null&&!r){var o=n.getBoundingClientRect();i=o.width,a=t.globals.axisCharts?o.height+5:o.height}return{width:i,height:a}}},{key:"getLegendsRect",value:function(){var e=this.w,t=e.globals.dom.elLegendWrap;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({},T.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:"getDatalabelsRect",value:function(){var e=this,t=this.w,i=[];t.config.series.forEach(function(l,c){l.data.forEach(function(h,d){var u;u=t.globals.series[c][d],a=t.config.dataLabels.formatter(u,{ctx:e.dCtx.ctx,seriesIndex:c,dataPointIndex:d,w:t}),i.push(a)})});var a=T.getLargestStringFromArr(i),r=new H(this.dCtx.ctx),n=t.config.dataLabels.style,o=r.getTextRects(a,parseInt(n.fontSize),n.fontFamily);return{width:1.05*o.width,height:o.height}}},{key:"getLargestStringFromMultiArr",value:function(e,t){var i=e;if(this.w.globals.isMultiLineX){var a=t.map(function(n,o){return Array.isArray(n)?n.length:1}),r=Math.max.apply(Math,me(a));i=t[a.indexOf(r)]}return i}}]),s}(),au=function(){function s(e){N(this,s),this.w=e.w,this.dCtx=e}return B(s,[{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 r=t.globals.xLabelFormatter,n=T.getLargestStringFromArr(i),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,i);t.globals.isBarHorizontal&&(o=n=t.globals.yAxisScale[0].result.reduce(function(p,f){return p.length>f.length?p:f},0));var l=new Ri(this.dCtx.ctx),c=n;n=l.xLabelFormat(r,n,c,{i:void 0,dateFormatter:new ve(this.dCtx.ctx).formatDate,w:t}),o=l.xLabelFormat(r,o,c,{i:void 0,dateFormatter:new ve(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&n===void 0||String(n).trim()==="")&&(o=n="1");var h=new H(this.dCtx.ctx),d=h.getTextRects(n,t.config.xaxis.labels.style.fontSize),u=d;if(n!==o&&(u=h.getTextRects(o,t.config.xaxis.labels.style.fontSize)),(e={width:d.width>=u.width?d.width:u.width,height:d.height>=u.height?d.height:u.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 g=function(p){return h.getTextRects(p,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};d=g(n),n!==o&&(u=g(o)),e.height=(d.height>u.height?d.height:u.height)/1.5,e.width=d.width>u.width?d.width:u.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.hasXaxisGroups)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,r=t.globals.groups.map(function(d){return d.title}),n=T.getLargestStringFromArr(r),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,r),l=new H(this.dCtx.ctx),c=l.getTextRects(n,a),h=c;return n!==o&&(h=l.getTextRects(o,a)),i={width:c.width>=h.width?c.width:h.width,height:c.height>=h.height?c.height:h.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 H(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(r){return r.value}),a=i.reduce(function(r,n){return r===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):r.length>n.length?r:n},0);return 1.05*(e=new H(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,r=i.config,n=r.xaxis.type,o=e.width;a.skipLastTimelinelabel=!1,a.skipFirstTimelinelabel=!1;var l=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,c=function(h,d){r.yaxis.length>1&&function(u){return a.collapsedSeriesIndices.indexOf(u)!==-1}(d)||function(u){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var g=t.dCtx.timescaleLabels[0],p=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+o/1.75-t.dCtx.yAxisWidthRight,f=g.position-o/1.75+t.dCtx.yAxisWidthLeft,x=i.config.legend.position==="right"&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;p>a.svgWidth-a.translateX-x&&(a.skipLastTimelinelabel=!0),f<-(u.show&&!u.floating||r.chart.type!=="bar"&&r.chart.type!=="candlestick"&&r.chart.type!=="rangeBar"&&r.chart.type!=="boxPlot"?10:o/1.75)&&(a.skipFirstTimelinelabel=!0)}else n==="datetime"?t.dCtx.gridPad.right<o&&!a.rotateXLabels&&(a.skipLastTimelinelabel=!0):n!=="datetime"&&t.dCtx.gridPad.right<o/2-t.dCtx.yAxisWidthRight&&!a.rotateXLabels&&!i.config.xaxis.labels.trim&&(t.dCtx.xPadRight=o/2+1)}(h)};r.yaxis.forEach(function(h,d){l?(t.dCtx.gridPad.left<o&&(t.dCtx.xPadLeft=o/2+1),t.dCtx.xPadRight=o/2+1):c(h,d)})}}]),s}(),su=function(){function s(e){N(this,s),this.w=e.w,this.dCtx=e}return B(s,[{key:"getyAxisLabelsCoords",value:function(){var e=this,t=this.w,i=[],a=10,r=new lt(this.dCtx.ctx);return t.config.yaxis.map(function(n,o){var l={seriesIndex:o,dataPointIndex:-1,w:t},c=t.globals.yAxisScale[o],h=0;if(!r.isYAxisHidden(o)&&n.labels.show&&n.labels.minWidth!==void 0&&(h=n.labels.minWidth),!r.isYAxisHidden(o)&&n.labels.show&&c.result.length){var d=t.globals.yLabelFormatters[o],u=c.niceMin===Number.MIN_VALUE?0:c.niceMin,g=c.result.reduce(function(A,y){var S,w;return((S=String(d(A,l)))===null||S===void 0?void 0:S.length)>((w=String(d(y,l)))===null||w===void 0?void 0:w.length)?A:y},u),p=g=d(g,l);if(g!==void 0&&g.length!==0||(g=c.niceMax),t.globals.isBarHorizontal){a=0;var f=t.globals.labels.slice();g=T.getLargestStringFromArr(f),g=d(g,{seriesIndex:o,dataPointIndex:-1,w:t}),p=e.dCtx.dimHelpers.getLargestStringFromMultiArr(g,f)}var x=new H(e.dCtx.ctx),b="rotate(".concat(n.labels.rotate," 0 0)"),m=x.getTextRects(g,n.labels.style.fontSize,n.labels.style.fontFamily,b,!1),v=m;g!==p&&(v=x.getTextRects(p,n.labels.style.fontSize,n.labels.style.fontFamily,b,!1)),i.push({width:(h>v.width||h>m.width?h:v.width>m.width?v.width:m.width)+a,height:v.height>m.height?v.height:m.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,r){if(a.show&&a.title.text!==void 0){var n=new H(e.dCtx.ctx),o="rotate(".concat(a.title.rotate," 0 0)"),l=n.getTextRects(a.title.text,a.title.style.fontSize,a.title.style.fontFamily,o,!1);i.push({width:l.width,height:l.height})}else i.push({width:0,height:0})}),i}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,i=0,a=0,r=e.globals.yAxisScale.length>1?10:0,n=new lt(this.dCtx.ctx),o=function(l,c){var h=e.config.yaxis[c].floating,d=0;l.width>0&&!h?(d=l.width+r,function(u){return e.globals.ignoreYAxisIndexes.indexOf(u)>-1}(c)&&(d=d-l.width-r)):d=h||n.isYAxisHidden(c)?0:5,e.config.yaxis[c].opposite?a+=d:i+=d,t+=d};return e.globals.yLabelsCoords.map(function(l,c){o(l,c)}),e.globals.yTitleCoords.map(function(l,c){o(l,c)}),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}}]),s}(),ru=function(){function s(e){N(this,s),this.w=e.w,this.dCtx=e}return B(s,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w,i=t.config,a=t.globals;if(a.noData||a.collapsedSeries.length+a.ancillaryCollapsedSeries.length===i.series.length)return 0;var r=function(g){return["bar","rangeBar","candlestick","boxPlot"].includes(g)},n=i.chart.type,o=0,l=r(n)?i.series.length:1;a.comboBarCount>0&&(l=a.comboBarCount),a.collapsedSeries.forEach(function(g){r(g.type)&&(l-=1)}),i.chart.stacked&&(l=1);var c=r(n)||a.comboBarCount>0,h=Math.abs(a.initialMaxX-a.initialMinX);if(c&&a.isXNumeric&&!a.isBarHorizontal&&l>0&&h!==0){h<=3&&(h=a.dataPoints);var d=h/e,u=a.minXDiff&&a.minXDiff/d>0?a.minXDiff/d:0;u>e/2&&(u/=2),(o=u*parseInt(i.plotOptions.bar.columnWidth,10)/100)<1&&(o=1),a.barPadForNumericAxis=o}return o}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,i=t.globals,a=this.dCtx.isSparkline||!i.axisCharts?0:10;["title","subtitle"].forEach(function(o){t.config[o].text!==void 0?a+=t.config[o].margin:a+=e.dCtx.isSparkline||!i.axisCharts?0:5}),!t.config.legend.show||t.config.legend.position!=="bottom"||t.config.legend.floating||i.axisCharts||(a+=10);var r=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),n=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight-=r.height+n.height+a,i.translateY+=r.height+n.height+a}},{key:"setGridXPosForDualYAxis",value:function(e,t){var i=this.w,a=new lt(this.dCtx.ctx);i.config.yaxis.forEach(function(r,n){i.globals.ignoreYAxisIndexes.indexOf(n)!==-1||r.floating||a.isYAxisHidden(n)||(r.opposite&&(i.globals.translateX-=t[n].width+e[n].width+parseInt(r.labels.style.fontSize,10)/1.2+12),i.globals.translateX<2&&(i.globals.translateX=2))})}}]),s}(),fa=function(){function s(e){N(this,s),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 iu(this),this.dimYAxis=new su(this),this.dimXAxis=new au(this),this.dimGrid=new ru(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return B(s,[{key:"plotCoords",value:function(){var e=this,t=this.w,i=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0};var a=Array.isArray(t.config.stroke.width)?Math.max.apply(Math,me(t.config.stroke.width)):t.config.stroke.width;this.isSparkline&&((t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(n){var o=vo(n,2),l=o[0],c=o[1];e.gridPad[l]=Math.max(c,e.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(a/2,this.gridPad.top),this.gridPad.bottom=Math.max(a/2,this.gridPad.bottom)),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var r=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*r,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(r>0?r: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(),r=this.dimYAxis.getyAxisTitleCoords();i.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map(function(g,p){t.globals.yLabelsCoords.push({width:a[p].width,index:p}),t.globals.yTitleCoords.push({width:r[p].width,index:p})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var n=this.dimXAxis.getxAxisLabelsCoords(),o=this.dimXAxis.getxAxisGroupLabelsCoords(),l=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(n,l,o),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 c=this.yAxisWidth,h=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-l.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-n.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var d=10;(t.config.chart.type==="radar"||this.isSparkline)&&(c=0,h=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||t.config.chart.type==="treemap")&&(c=0,h=0,d=0),this.isSparkline||t.config.chart.type==="treemap"||this.dimXAxis.additionalPaddingXLabels(n);var u=function(){i.translateX=c+e.datalabelsCoords.width,i.gridHeight=i.svgHeight-e.lgRect.height-h-(e.isSparkline||t.config.chart.type==="treemap"?0:t.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-c-2*e.datalabelsCoords.width};switch(t.config.xaxis.position==="top"&&(d=i.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":i.translateY=d,u();break;case"top":i.translateY=this.lgRect.height+d,u();break;case"left":i.translateY=d,i.translateX=this.lgRect.width+c+this.datalabelsCoords.width,i.gridHeight=i.svgHeight-h-12,i.gridWidth=i.svgWidth-this.lgRect.width-c-2*this.datalabelsCoords.width;break;case"right":i.translateY=d,i.translateX=c+this.datalabelsCoords.width,i.gridHeight=i.svgHeight-h-12,i.gridWidth=i.svgWidth-this.lgRect.width-c-2*this.datalabelsCoords.width-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(r,a),new ar(this.ctx).setYAxisXPosition(a,r)}},{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 r=i.chart.type==="pie"||i.chart.type==="polarArea"||i.chart.type==="donut"?"pie":"radialBar",n=i.plotOptions[r].offsetY,o=i.plotOptions[r].offsetX;if(!i.legend.show||i.legend.floating){t.gridHeight=t.svgHeight;var l=t.dom.elWrap.getBoundingClientRect().width;return t.gridWidth=Math.min(l,t.gridHeight),t.translateY=n,void(t.translateX=o+(t.svgWidth-t.gridWidth)/2)}switch(i.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height,t.gridWidth=t.svgWidth,t.translateY=n-10,t.translateX=o+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+n+10,t.translateX=o+(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=n,t.translateX=o+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=n,t.translateX=o+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,i){var a=this.w,r=a.globals.hasXaxisGroups?2:1,n=i.height+e.height+t.height,o=a.globals.isMultiLineX?1.2:a.globals.LINE_HEIGHT_RATIO,l=a.globals.rotateXLabels?22:10,c=a.globals.rotateXLabels&&a.config.legend.position==="bottom"?10:0;this.xAxisHeight=n*o+r*l+c,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 h=0,d=0;a.config.yaxis.forEach(function(u){h+=u.labels.minWidth,d+=u.labels.maxWidth}),this.yAxisWidth<h&&(this.yAxisWidth=h),this.yAxisWidth>d&&(this.yAxisWidth=d)}}]),s}(),nu=function(){function s(e){N(this,s),this.w=e.w,this.lgCtx=e}return B(s,[{key:"getLegendStyles",value:function(){var e,t,i,a=document.createElement("style");a.setAttribute("type","text/css");var r=((e=this.lgCtx.ctx)===null||e===void 0||(t=e.opts)===null||t===void 0||(i=t.chart)===null||i===void 0?void 0:i.nonce)||this.w.config.chart.nonce;r&&a.setAttribute("nonce",r);var n=document.createTextNode(`
|
67
|
+
.apexcharts-flip-y {
|
68
|
+
transform: scaleY(-1) translateY(-100%);
|
69
|
+
transform-origin: top;
|
70
|
+
transform-box: fill-box;
|
71
|
+
}
|
72
|
+
.apexcharts-flip-x {
|
73
|
+
transform: scaleX(-1);
|
74
|
+
transform-origin: center;
|
75
|
+
transform-box: fill-box;
|
76
|
+
}
|
77
|
+
.apexcharts-legend {
|
78
|
+
display: flex;
|
79
|
+
overflow: auto;
|
80
|
+
padding: 0 10px;
|
81
|
+
}
|
82
|
+
.apexcharts-legend.apexcharts-legend-group-horizontal {
|
83
|
+
flex-direction: column;
|
84
|
+
}
|
85
|
+
.apexcharts-legend-group {
|
86
|
+
display: flex;
|
87
|
+
}
|
88
|
+
.apexcharts-legend-group-vertical {
|
89
|
+
flex-direction: column-reverse;
|
90
|
+
}
|
91
|
+
.apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {
|
92
|
+
flex-wrap: wrap
|
93
|
+
}
|
94
|
+
.apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
|
95
|
+
flex-direction: column;
|
96
|
+
bottom: 0;
|
97
|
+
}
|
98
|
+
.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 {
|
99
|
+
justify-content: flex-start;
|
100
|
+
align-items: flex-start;
|
101
|
+
}
|
102
|
+
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {
|
103
|
+
justify-content: center;
|
104
|
+
align-items: center;
|
105
|
+
}
|
106
|
+
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {
|
107
|
+
justify-content: flex-end;
|
108
|
+
align-items: flex-end;
|
109
|
+
}
|
110
|
+
.apexcharts-legend-series {
|
111
|
+
cursor: pointer;
|
112
|
+
line-height: normal;
|
113
|
+
display: flex;
|
114
|
+
align-items: center;
|
115
|
+
}
|
116
|
+
.apexcharts-legend-text {
|
117
|
+
position: relative;
|
118
|
+
font-size: 14px;
|
119
|
+
}
|
120
|
+
.apexcharts-legend-text *, .apexcharts-legend-marker * {
|
121
|
+
pointer-events: none;
|
122
|
+
}
|
123
|
+
.apexcharts-legend-marker {
|
124
|
+
position: relative;
|
125
|
+
display: flex;
|
126
|
+
align-items: center;
|
127
|
+
justify-content: center;
|
128
|
+
cursor: pointer;
|
129
|
+
margin-right: 1px;
|
130
|
+
}
|
131
|
+
|
132
|
+
.apexcharts-legend-series.apexcharts-no-click {
|
133
|
+
cursor: auto;
|
134
|
+
}
|
135
|
+
.apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {
|
136
|
+
display: none !important;
|
137
|
+
}
|
138
|
+
.apexcharts-inactive-legend {
|
139
|
+
opacity: 0.45;
|
140
|
+
}
|
141
|
+
|
142
|
+
`);return a.appendChild(n),a}},{key:"getLegendDimensions",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(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{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 r=null,n=null;a.globals.risingSeries=[],a.globals.axisCharts?(r=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),n=parseInt(r.getAttribute("data:realIndex"),10)):(r=a.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),n=parseInt(r.getAttribute("rel"),10)-1),t?[{cs:a.globals.collapsedSeries,csi:a.globals.collapsedSeriesIndices},{cs:a.globals.ancillaryCollapsedSeries,csi:a.globals.ancillaryCollapsedSeriesIndices}].forEach(function(h){i.riseCollapsedSeries(h.cs,h.csi,n)}):this.hideSeries({seriesEl:r,realIndex:n})}else{var o=a.globals.dom.Paper.findOne(" .apexcharts-series[rel='".concat(e+1,"'] path")),l=a.config.chart.type;if(l==="pie"||l==="polarArea"||l==="donut"){var c=a.config.plotOptions.pie.donut.labels;new H(this.lgCtx.ctx).pathMouseDown(o,null),this.lgCtx.ctx.pie.printDataLabelsInner(o.node,c)}o.fire("click")}}},{key:"getSeriesAfterCollapsing",value:function(e){var t=e.realIndex,i=this.w,a=i.globals,r=T.clone(i.config.series);if(a.axisCharts){var n=i.config.yaxis[a.seriesYAxisReverseMap[t]],o={index:t,data:r[t].data.slice(),type:r[t].type||i.config.chart.type};if(n&&n.show&&n.showAlways)a.ancillaryCollapsedSeriesIndices.indexOf(t)<0&&(a.ancillaryCollapsedSeries.push(o),a.ancillaryCollapsedSeriesIndices.push(t));else if(a.collapsedSeriesIndices.indexOf(t)<0){a.collapsedSeries.push(o),a.collapsedSeriesIndices.push(t);var l=a.risingSeries.indexOf(t);a.risingSeries.splice(l,1)}}else a.collapsedSeries.push({index:t,data:r[t]}),a.collapsedSeriesIndices.push(t);return a.allSeriesCollapsed=a.collapsedSeries.length+a.ancillaryCollapsedSeries.length===i.config.series.length,this._getSeriesBasedOnCollapsedState(r)}},{key:"hideSeries",value:function(e){for(var t=e.seriesEl,i=e.realIndex,a=this.w,r=this.getSeriesAfterCollapsing({realIndex:i}),n=t.childNodes,o=0;o<n.length;o++)n[o].classList.contains("apexcharts-series-markers-wrap")&&(n[o].classList.contains("apexcharts-hide")?n[o].classList.remove("apexcharts-hide"):n[o].classList.add("apexcharts-hide"));this.lgCtx.ctx.updateHelpers._updateSeries(r,a.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(e,t,i){var a=this.w,r=T.clone(a.config.series);if(e.length>0){for(var n=0;n<e.length;n++)e[n].index===i&&(a.globals.axisCharts?r[i].data=e[n].data.slice():r[i]=e[n].data,typeof r[i]!="number"&&(r[i].hidden=!1),e.splice(n,1),t.splice(n,1),a.globals.risingSeries.push(i));r=this._getSeriesBasedOnCollapsedState(r),this.lgCtx.ctx.updateHelpers._updateSeries(r,a.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(e){var t=this.w,i=0;return t.globals.axisCharts?e.forEach(function(a,r){t.globals.collapsedSeriesIndices.indexOf(r)<0&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(r)<0||(e[r].data=[],i++)}):e.forEach(function(a,r){!t.globals.collapsedSeriesIndices.indexOf(r)<0&&(e[r]=0,i++)}),t.globals.allSeriesCollapsed=i===e.length,e}}]),s}(),Zo=function(){function s(e){N(this,s),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 nu(this)}return B(s,[{key:"init",value:function(){var e=this.w,t=e.globals,i=e.config,a=i.legend.showForSingleSeries&&t.series.length===1||this.isBarsDistributed||t.series.length>1;if(this.legendHelpers.appendToForeignObject(),(a||!t.axisCharts)&&i.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),i.legend.position==="bottom"||i.legend.position==="top"?this.legendAlignHorizontal():i.legend.position!=="right"&&i.legend.position!=="left"||this.legendAlignVertical()}}},{key:"createLegendMarker",value:function(e){var t=e.i,i=e.fillcolor,a=this.w,r=document.createElement("span");r.classList.add("apexcharts-legend-marker");var n=a.config.legend.markers.shape||a.config.markers.shape,o=n;Array.isArray(n)&&(o=n[t]);var l=Array.isArray(a.config.legend.markers.size)?parseFloat(a.config.legend.markers.size[t]):parseFloat(a.config.legend.markers.size),c=Array.isArray(a.config.legend.markers.offsetX)?parseFloat(a.config.legend.markers.offsetX[t]):parseFloat(a.config.legend.markers.offsetX),h=Array.isArray(a.config.legend.markers.offsetY)?parseFloat(a.config.legend.markers.offsetY[t]):parseFloat(a.config.legend.markers.offsetY),d=Array.isArray(a.config.legend.markers.strokeWidth)?parseFloat(a.config.legend.markers.strokeWidth[t]):parseFloat(a.config.legend.markers.strokeWidth),u=r.style;if(u.height=2*(l+d)+"px",u.width=2*(l+d)+"px",u.left=c+"px",u.top=h+"px",a.config.legend.markers.customHTML)u.background="transparent",u.color=i[t],Array.isArray(a.config.legend.markers.customHTML)?a.config.legend.markers.customHTML[t]&&(r.innerHTML=a.config.legend.markers.customHTML[t]()):r.innerHTML=a.config.legend.markers.customHTML();else{var g=new Kt(this.ctx).getMarkerConfig({cssClass:"apexcharts-legend-marker apexcharts-marker apexcharts-marker-".concat(o),seriesIndex:t,strokeWidth:d,size:l}),p=window.SVG().addTo(r).size("100%","100%"),f=new H(this.ctx).drawMarker(0,0,F(F({},g),{},{pointFillColor:Array.isArray(i)?i[t]:g.pointFillColor,shape:o}));a.globals.dom.Paper.find(".apexcharts-legend-marker.apexcharts-marker").forEach(function(x){x.node.classList.contains("apexcharts-marker-triangle")?x.node.style.transform="translate(50%, 45%)":x.node.style.transform="translate(50%, 50%)"}),p.add(f)}return r}},{key:"drawLegends",value:function(){var e=this,t=this,i=this.w,a=i.config.legend.fontFamily,r=i.globals.seriesNames,n=i.config.legend.markers.fillColors?i.config.legend.markers.fillColors.slice():i.globals.colors.slice();if(i.config.chart.type==="heatmap"){var o=i.config.plotOptions.heatmap.colorScale.ranges;r=o.map(function(g){return g.name?g.name:g.from+" - "+g.to}),n=o.map(function(g){return g.color})}else this.isBarsDistributed&&(r=i.globals.labels.slice());i.config.legend.customLegendItems.length&&(r=i.config.legend.customLegendItems);var l=i.globals.legendFormatter,c=i.config.legend.inverseOrder,h=[];i.globals.seriesGroups.length>1&&i.config.legend.clusterGroupedSeries&&i.globals.seriesGroups.forEach(function(g,p){h[p]=document.createElement("div"),h[p].classList.add("apexcharts-legend-group","apexcharts-legend-group-".concat(p)),i.config.legend.clusterGroupedSeriesOrientation==="horizontal"?i.globals.dom.elLegendWrap.classList.add("apexcharts-legend-group-horizontal"):h[p].classList.add("apexcharts-legend-group-vertical")});for(var d=function(g){var p,f=l(r[g],{seriesIndex:g,w:i}),x=!1,b=!1;if(i.globals.collapsedSeries.length>0)for(var m=0;m<i.globals.collapsedSeries.length;m++)i.globals.collapsedSeries[m].index===g&&(x=!0);if(i.globals.ancillaryCollapsedSeriesIndices.length>0)for(var v=0;v<i.globals.ancillaryCollapsedSeriesIndices.length;v++)i.globals.ancillaryCollapsedSeriesIndices[v]===g&&(b=!0);var A=e.createLegendMarker({i:g,fillcolor:n});H.setAttrs(A,{rel:g+1,"data:collapsed":x||b}),(x||b)&&A.classList.add("apexcharts-inactive-legend");var y=document.createElement("div"),S=document.createElement("span");S.classList.add("apexcharts-legend-text"),S.innerHTML=Array.isArray(f)?f.join(" "):f;var w=i.config.legend.labels.useSeriesColors?i.globals.colors[g]:Array.isArray(i.config.legend.labels.colors)?(p=i.config.legend.labels.colors)===null||p===void 0?void 0:p[g]:i.config.legend.labels.colors;w||(w=i.config.chart.foreColor),S.style.color=w,S.style.fontSize=parseFloat(i.config.legend.fontSize)+"px",S.style.fontWeight=i.config.legend.fontWeight,S.style.fontFamily=a||i.config.chart.fontFamily,H.setAttrs(S,{rel:g+1,i:g,"data:default-text":encodeURIComponent(f),"data:collapsed":x||b}),y.appendChild(A),y.appendChild(S);var k=new ge(e.ctx);i.config.legend.showForZeroSeries||k.getSeriesTotalByIndex(g)===0&&k.seriesHaveSameValues(g)&&!k.isSeriesNull(g)&&i.globals.collapsedSeriesIndices.indexOf(g)===-1&&i.globals.ancillaryCollapsedSeriesIndices.indexOf(g)===-1&&y.classList.add("apexcharts-hidden-zero-series"),i.config.legend.showForNullSeries||k.isSeriesNull(g)&&i.globals.collapsedSeriesIndices.indexOf(g)===-1&&i.globals.ancillaryCollapsedSeriesIndices.indexOf(g)===-1&&y.classList.add("apexcharts-hidden-null-series"),h.length?i.globals.seriesGroups.forEach(function(M,O){var P;M.includes((P=i.config.series[g])===null||P===void 0?void 0:P.name)&&(i.globals.dom.elLegendWrap.appendChild(h[O]),h[O].appendChild(y))}):i.globals.dom.elLegendWrap.appendChild(y),i.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(i.config.legend.horizontalAlign)),i.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+i.config.legend.position),y.classList.add("apexcharts-legend-series"),y.style.margin="".concat(i.config.legend.itemMargin.vertical,"px ").concat(i.config.legend.itemMargin.horizontal,"px"),i.globals.dom.elLegendWrap.style.width=i.config.legend.width?i.config.legend.width+"px":"",i.globals.dom.elLegendWrap.style.height=i.config.legend.height?i.config.legend.height+"px":"",H.setAttrs(y,{rel:g+1,seriesName:T.escapeString(r[g]),"data:collapsed":x||b}),(x||b)&&y.classList.add("apexcharts-inactive-legend"),i.config.legend.onItemClick.toggleDataSeries||y.classList.add("apexcharts-no-click")},u=c?r.length-1:0;c?u>=0:u<=r.length-1;c?u--:u++)d(u);i.globals.dom.elWrap.addEventListener("click",t.onLegendClick,!0),i.config.legend.onItemHover.highlightDataSeries&&i.config.legend.customLegendItems.length===0&&(i.globals.dom.elWrap.addEventListener("mousemove",t.onLegendHovered,!0),i.globals.dom.elWrap.addEventListener("mouseout",t.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(e,t){var i=this.w,a=i.globals.dom.elLegendWrap,r=a.clientHeight,n=0,o=0;if(i.config.legend.position==="bottom")o=i.globals.svgHeight-Math.min(r,i.globals.svgHeight/2)-5;else if(i.config.legend.position==="top"){var l=new fa(this.ctx),c=l.dimHelpers.getTitleSubtitleCoords("title").height,h=l.dimHelpers.getTitleSubtitleCoords("subtitle").height;o=(c>0?c-10:0)+(h>0?h-10:0)}a.style.position="absolute",n=n+e+i.config.legend.offsetX,o=o+t+i.config.legend.offsetY,a.style.left=n+"px",a.style.top=o+"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.elLegendWrap.style.right=0;var t=new fa(this.ctx),i=t.dimHelpers.getTitleSubtitleCoords("title"),a=t.dimHelpers.getTitleSubtitleCoords("subtitle"),r=0;e.config.legend.position==="top"&&(r=i.height+a.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,r)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendDimensions(),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-series")||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 He(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&i&&new He(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-series")||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",r=this.w.config.chart.events.legendClick;typeof r=="function"&&r(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var n=this.w.config.legend.markers.onClick;typeof n=="function"&&e.target.classList.contains("apexcharts-legend-marker")&&(n(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)}}}]),s}(),Ko=function(){function s(e){N(this,s),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 B(s,[{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 r=0;r<this.t.customIcons.length;r++)this.elCustomIcons.push(i());var n=[],o=function(d,u,g){var p=d.toLowerCase();e.t[p]&&t.config.chart.zoom.enabled&&n.push({el:u,icon:typeof e.t[p]=="string"?e.t[p]:g,title:e.localeValues[d],class:"apexcharts-".concat(p,"-icon")})};o("zoomIn",this.elZoomIn,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
143
|
+
<path d="M0 0h24v24H0z" fill="none"/>
|
144
|
+
<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"/>
|
145
|
+
</svg>
|
146
|
+
`),o("zoomOut",this.elZoomOut,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
147
|
+
<path d="M0 0h24v24H0z" fill="none"/>
|
148
|
+
<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"/>
|
149
|
+
</svg>
|
150
|
+
`);var l=function(d){e.t[d]&&t.config.chart[d].enabled&&n.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">
|
151
|
+
<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"/>
|
152
|
+
<path d="M0 0h24v24H0V0z" fill="none"/>
|
153
|
+
<path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>
|
154
|
+
</svg>`:`<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
155
|
+
<path d="M0 0h24v24H0z" fill="none"/>
|
156
|
+
<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"/>
|
157
|
+
</svg>`,title:e.localeValues[d==="zoom"?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(d,"-icon")})};l("zoom"),l("selection"),this.t.pan&&t.config.chart.zoom.enabled&&n.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">
|
158
|
+
<defs>
|
159
|
+
<path d="M0 0h24v24H0z" id="a"/>
|
160
|
+
</defs>
|
161
|
+
<clipPath id="b">
|
162
|
+
<use overflow="visible" xlink:href="#a"/>
|
163
|
+
</clipPath>
|
164
|
+
<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"/>
|
165
|
+
</svg>`,title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),o("reset",this.elZoomReset,`<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
166
|
+
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
|
167
|
+
<path d="M0 0h24v24H0z" fill="none"/>
|
168
|
+
</svg>`),this.t.download&&n.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 c=0;c<this.elCustomIcons.length;c++)n.push({el:this.elCustomIcons[c],icon:this.t.customIcons[c].icon,title:this.t.customIcons[c].title,index:this.t.customIcons[c].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[c].class});n.forEach(function(d,u){d.index&&T.moveIndexInArray(n,u,d.index)});for(var h=0;h<n.length;h++)H.setAttrs(n[h].el,{class:n[h].class,title:n[h].title}),n[h].el.innerHTML=n[h].icon,a.appendChild(n[h].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),H.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],i=0;i<t.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=t[i].title,H.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,r=this._getNewMinXMaxX(i,a);e.globals.disableZoomIn||this.zoomUpdateOptions(r.minX,r.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),r=this._getNewMinXMaxX(i,a);e.globals.disableZoomOut||this.zoomUpdateOptions(r.minX,r.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},r=this.getBeforeZoomRange(a);r&&(a=r.xaxis);var n={xaxis:a},o=T.clone(i.globals.initialConfig.yaxis);i.config.chart.group||(n.yaxis=o),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(n,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(a,o)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(e,t){typeof this.ev.zoomed=="function"&&(this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t}),this.ctx.events.fireEvent("zoomed",{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 wi(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=i.globals.initialConfig.xaxis.min,i.globals.lastXAxis.max=i.globals.initialConfig.xaxis.max,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 r=t.ctx.series.emptyCollapsedSeries(T.clone(i.globals.initialSeries));t.updateHelpers._updateSeries(r,i.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),s}(),ou=function(s){Oi(t,Ko);var e=Ei(t);function t(i){var a;return N(this,t),(a=e.call(this,i)).ctx=i,a.w=i.w,a.dragged=!1,a.graphics=new H(a.ctx),a.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend","wheel"],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.debounceTimer=null,a.debounceDelay=100,a.wheelDelay=400,a}return B(t,[{key:"init",value:function(i){var a=this,r=i.xyRatios,n=this.w,o=this;this.xyRatios=r,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=n.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.constraints=new xe(0,0,n.globals.gridWidth,n.globals.gridHeight),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),n.globals.dom.Paper.add(this.zoomRect),n.globals.dom.Paper.add(this.selectionRect),n.config.chart.selection.type==="x"?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:n.globals.gridWidth,maxY:n.globals.gridHeight}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):n.config.chart.selection.type==="y"?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:n.globals.gridWidth}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=n.globals.dom.baseEl.querySelector("".concat(n.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(l){a.hoverArea.addEventListener(l,o.svgMouseEvents.bind(o,r),{capture:!1,passive:!0})}),n.config.chart.zoom.enabled&&n.config.chart.zoom.allowMouseWheelZoom&&this.hoverArea.addEventListener("wheel",o.mouseWheelEvent.bind(o),{capture:!1,passive:!1})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(i,a){var r=this.w,n=this.ctx.toolbar,o=r.globals.zoomEnabled?r.config.chart.zoom.type:r.config.chart.selection.type,l=r.config.chart.toolbar.autoSelected;if(a.shiftKey?(this.shiftWasPressed=!0,n.enableZoomPanFromToolbar(l==="pan"?"zoom":"pan")):this.shiftWasPressed&&(n.enableZoomPanFromToolbar(l),this.shiftWasPressed=!1),a.target){var c,h=a.target.classList;if(a.target.parentNode&&a.target.parentNode!==null&&(c=a.target.parentNode.classList),!(h.contains("apexcharts-legend-marker")||h.contains("apexcharts-legend-text")||c&&c.contains("apexcharts-toolbar"))){if(this.clientX=a.type==="touchmove"||a.type==="touchstart"?a.touches[0].clientX:a.type==="touchend"?a.changedTouches[0].clientX:a.clientX,this.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||a.type==="touchstart"){var d=this.gridRect.getBoundingClientRect();this.startX=this.clientX-d.left-r.globals.barPadForNumericAxis,this.startY=this.clientY-d.top,this.dragged=!1,this.w.globals.mousedown=!0}(a.type==="mousemove"&&a.which===1||a.type==="touchmove")&&(this.dragged=!0,r.globals.panEnabled?(r.globals.selection=null,this.w.globals.mousedown&&this.panDragging({context:this,zoomtype:o,xyRatios:i})):(this.w.globals.mousedown&&r.globals.zoomEnabled||this.w.globals.mousedown&&r.globals.selectionEnabled)&&(this.selection=this.selectionDrawing({context:this,zoomtype:o}))),a.type!=="mouseup"&&a.type!=="touchend"&&a.type!=="mouseleave"||this.handleMouseUp({zoomtype:o}),this.makeSelectionRectDraggable()}}}},{key:"handleMouseUp",value:function(i){var a,r=i.zoomtype,n=i.isResized,o=this.w,l=(a=this.gridRect)===null||a===void 0?void 0:a.getBoundingClientRect();l&&(this.w.globals.mousedown||n)&&(this.endX=this.clientX-l.left-o.globals.barPadForNumericAxis,this.endY=this.clientY-l.top,this.dragX=Math.abs(this.endX-this.startX),this.dragY=Math.abs(this.endY-this.startY),(o.globals.zoomEnabled||o.globals.selectionEnabled)&&this.selectionDrawn({context:this,zoomtype:r})),o.globals.zoomEnabled&&this.hideSelectionRect(this.selectionRect),this.dragged=!1,this.w.globals.mousedown=!1}},{key:"mouseWheelEvent",value:function(i){var a=this,r=this.w;i.preventDefault();var n=Date.now();n-r.globals.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(i),r.globals.lastWheelExecution=n),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(function(){n-r.globals.lastWheelExecution>a.wheelDelay&&(a.executeMouseWheelZoom(i),r.globals.lastWheelExecution=n)},this.debounceDelay)}},{key:"executeMouseWheelZoom",value:function(i){var a,r=this.w;this.minX=r.globals.isRangeBar?r.globals.minY:r.globals.minX,this.maxX=r.globals.isRangeBar?r.globals.maxY:r.globals.maxX;var n=(a=this.gridRect)===null||a===void 0?void 0:a.getBoundingClientRect();if(n){var o,l,c,h=(i.clientX-n.left)/n.width,d=this.minX,u=this.maxX,g=u-d;if(i.deltaY<0){var p=d+h*g;l=p-(o=.5*g)/2,c=p+o/2}else l=d-(o=1.5*g)/2,c=u+o/2;if(!r.globals.isRangeBar){l=Math.max(l,r.globals.initialMinX),c=Math.min(c,r.globals.initialMaxX);var f=.01*(r.globals.initialMaxX-r.globals.initialMinX);if(c-l<f){var x=(l+c)/2;l=x-f/2,c=x+f/2}}var b=this._getNewMinXMaxX(l,c);isNaN(b.minX)||isNaN(b.maxX)||this.zoomUpdateOptions(b.minX,b.maxX)}}},{key:"makeSelectionRectDraggable",value:function(){var i=this,a=this.w;if(this.selectionRect){var r=this.selectionRect.node.getBoundingClientRect();r.width>0&&r.height>0&&(this.selectionRect.select(!1).resize(!1),this.selectionRect.select({createRot:function(){},updateRot:function(){},createHandle:function(n,o,l,c,h){return h==="l"||h==="r"?n.circle(8).css({"stroke-width":1,stroke:"#333",fill:"#fff"}):n.circle(0)},updateHandle:function(n,o){return n.center(o[0],o[1])}}).resize().on("resize",function(){var n=a.globals.zoomEnabled?a.config.chart.zoom.type:a.config.chart.selection.type;i.handleMouseUp({zoomtype:n,isResized:!0})}))}}},{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(F(F({},i.globals.selection),{},{translateX:i.globals.translateX,translateY:i.globals.translateY}));else if(i.config.chart.selection.xaxis.min!==void 0&&i.config.chart.selection.xaxis.max!==void 0){var r=(i.config.chart.selection.xaxis.min-i.globals.minX)/a.xRatio,n=i.globals.gridWidth-(i.globals.maxX-i.config.chart.selection.xaxis.max)/a.xRatio-r;i.globals.isRangeBar&&(r=(i.config.chart.selection.xaxis.min-i.globals.yAxisScale[0].niceMin)/a.invertedYRatio,n=(i.config.chart.selection.xaxis.max-i.config.chart.selection.xaxis.min)/a.invertedYRatio);var o={x:r,y:0,width:n,height:i.globals.gridHeight,translateX:i.globals.translateX,translateY:i.globals.translateY,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,r=i.y,n=i.width,o=i.height,l=i.translateX,c=l===void 0?0:l,h=i.translateY,d=h===void 0?0:h,u=this.w,g=this.zoomRect,p=this.selectionRect;if(this.dragged||u.globals.selection!==null){var f={transform:"translate("+c+", "+d+")"};u.globals.zoomEnabled&&this.dragged&&(n<0&&(n=1),g.attr({x:a,y:r,width:n,height:o,fill:u.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":u.config.chart.zoom.zoomedArea.fill.opacity,stroke:u.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":u.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":u.config.chart.zoom.zoomedArea.stroke.opacity}),H.setAttrs(g.node,f)),u.globals.selectionEnabled&&(p.attr({x:a,y:r,width:n>0?n:0,height:o>0?o:0,fill:u.config.chart.selection.fill.color,"fill-opacity":u.config.chart.selection.fill.opacity,stroke:u.config.chart.selection.stroke.color,"stroke-width":u.config.chart.selection.stroke.width,"stroke-dasharray":u.config.chart.selection.stroke.dashArray,"stroke-opacity":u.config.chart.selection.stroke.opacity}),H.setAttrs(p.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,r=i.zoomtype,n=this.w,o=a,l=this.gridRect.getBoundingClientRect(),c=o.startX-1,h=o.startY,d=!1,u=!1,g=o.clientX-l.left-n.globals.barPadForNumericAxis,p=o.clientY-l.top,f=g-c,x=p-h,b={translateX:n.globals.translateX,translateY:n.globals.translateY};return Math.abs(f+c)>n.globals.gridWidth?f=n.globals.gridWidth-c:g<0&&(f=c),c>g&&(d=!0,f=Math.abs(f)),h>p&&(u=!0,x=Math.abs(x)),b=F(F({},b=r==="x"?{x:d?c-f:c,y:0,width:f,height:n.globals.gridHeight}:r==="y"?{x:0,y:u?h-x:h,width:n.globals.gridWidth,height:x}:{x:d?c-f:c,y:u?h-x:h,width:f,height:x}),{},{translateX:n.globals.translateX,translateY:n.globals.translateY}),o.drawSelectionRect(b),o.selectionDragging("resizing"),b}},{key:"selectionDragging",value:function(i,a){var r=this,n=this.w;if(a){a.preventDefault();var o=a.detail,l=o.handler,c=o.box,h=c.x,d=c.y;h<this.constraints.x&&(h=this.constraints.x),d<this.constraints.y&&(d=this.constraints.y),c.x2>this.constraints.x2&&(h=this.constraints.x2-c.w),c.y2>this.constraints.y2&&(d=this.constraints.y2-c.h),l.move(h,d);var u=this.xyRatios,g=this.selectionRect,p=0;i==="resizing"&&(p=30);var f=function(b){return parseFloat(g.node.getAttribute(b))},x={x:f("x"),y:f("y"),width:f("width"),height:f("height")};n.globals.selection=x,typeof n.config.chart.events.selection=="function"&&n.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var b,m,v,A,y=r.gridRect.getBoundingClientRect(),S=g.node.getBoundingClientRect();n.globals.isRangeBar?(b=n.globals.yAxisScale[0].niceMin+(S.left-y.left)*u.invertedYRatio,m=n.globals.yAxisScale[0].niceMin+(S.right-y.left)*u.invertedYRatio,v=0,A=1):(b=n.globals.xAxisScale.niceMin+(S.left-y.left)*u.xRatio,m=n.globals.xAxisScale.niceMin+(S.right-y.left)*u.xRatio,v=n.globals.yAxisScale[0].niceMin+(y.bottom-S.bottom)*u.yRatio[0],A=n.globals.yAxisScale[0].niceMax-(S.top-y.top)*u.yRatio[0]);var w={xaxis:{min:b,max:m},yaxis:{min:v,max:A}};n.config.chart.events.selection(r.ctx,w),n.config.chart.brush.enabled&&n.config.chart.events.brushScrolled!==void 0&&n.config.chart.events.brushScrolled(r.ctx,w)},p))}}},{key:"selectionDrawn",value:function(i){var a,r,n=i.context,o=i.zoomtype,l=this.w,c=n,h=this.xyRatios,d=this.ctx.toolbar,u=l.globals.zoomEnabled?c.zoomRect.node.getBoundingClientRect():c.selectionRect.node.getBoundingClientRect(),g=c.gridRect.getBoundingClientRect(),p=u.left-g.left-l.globals.barPadForNumericAxis,f=u.right-g.left-l.globals.barPadForNumericAxis,x=u.top-g.top,b=u.bottom-g.top;l.globals.isRangeBar?(a=l.globals.yAxisScale[0].niceMin+p*h.invertedYRatio,r=l.globals.yAxisScale[0].niceMin+f*h.invertedYRatio):(a=l.globals.xAxisScale.niceMin+p*h.xRatio,r=l.globals.xAxisScale.niceMin+f*h.xRatio);var m=[],v=[];if(l.config.yaxis.forEach(function(O,P){var L=l.globals.seriesYAxisMap[P][0],C=l.globals.yAxisScale[P].niceMax-h.yRatio[L]*x,_=l.globals.yAxisScale[P].niceMax-h.yRatio[L]*b;m.push(C),v.push(_)}),c.dragged&&(c.dragX>10||c.dragY>10)&&a!==r){if(l.globals.zoomEnabled){var A=T.clone(l.globals.initialConfig.yaxis),y=T.clone(l.globals.initialConfig.xaxis);if(l.globals.zoomed=!0,l.config.xaxis.convertedCatToNumeric&&(a=Math.floor(a),r=Math.floor(r),a<1&&(a=1,r=l.globals.dataPoints),r-a<2&&(r=a+1)),o!=="xy"&&o!=="x"||(y={min:a,max:r}),o!=="xy"&&o!=="y"||A.forEach(function(O,P){A[P].min=v[P],A[P].max=m[P]}),d){var S=d.getBeforeZoomRange(y,A);S&&(y=S.xaxis?S.xaxis:y,A=S.yaxis?S.yaxis:A)}var w={xaxis:y};l.config.chart.group||(w.yaxis=A),c.ctx.updateHelpers._updateOptions(w,!1,c.w.config.chart.animations.dynamicAnimation.enabled),typeof l.config.chart.events.zoomed=="function"&&d.zoomCallback(y,A)}else if(l.globals.selectionEnabled){var k,M=null;k={min:a,max:r},o!=="xy"&&o!=="y"||(M=T.clone(l.config.yaxis)).forEach(function(O,P){M[P].min=v[P],M[P].max=m[P]}),l.globals.selection=c.selection,typeof l.config.chart.events.selection=="function"&&l.config.chart.events.selection(c.ctx,{xaxis:k,yaxis:M})}}}},{key:"panDragging",value:function(i){var a=i.context,r=this.w,n=a;if(r.globals.lastClientPosition.x!==void 0){var o=r.globals.lastClientPosition.x-n.clientX,l=r.globals.lastClientPosition.y-n.clientY;Math.abs(o)>Math.abs(l)&&o>0?this.moveDirection="left":Math.abs(o)>Math.abs(l)&&o<0?this.moveDirection="right":Math.abs(l)>Math.abs(o)&&l>0?this.moveDirection="up":Math.abs(l)>Math.abs(o)&&l<0&&(this.moveDirection="down")}r.globals.lastClientPosition={x:n.clientX,y:n.clientY};var c=r.globals.isRangeBar?r.globals.minY:r.globals.minX,h=r.globals.isRangeBar?r.globals.maxY:r.globals.maxX;n.panScrolled(c,h)}},{key:"panScrolled",value:function(i,a){var r=this.w,n=this.xyRatios,o=T.clone(r.globals.initialConfig.yaxis),l=n.xRatio,c=r.globals.minX,h=r.globals.maxX;r.globals.isRangeBar&&(l=n.invertedYRatio,c=r.globals.minY,h=r.globals.maxY),this.moveDirection==="left"?(i=c+r.globals.gridWidth/15*l,a=h+r.globals.gridWidth/15*l):this.moveDirection==="right"&&(i=c-r.globals.gridWidth/15*l,a=h-r.globals.gridWidth/15*l),r.globals.isRangeBar||(i<r.globals.initialMinX||a>r.globals.initialMaxX)&&(i=c,a=h);var d={xaxis:{min:i,max:a}};r.config.chart.group||(d.yaxis=o),this.updateScrolledChart(d,i,a)}},{key:"updateScrolledChart",value:function(i,a,r){var n=this.w;if(this.ctx.updateHelpers._updateOptions(i,!1,!1),typeof n.config.chart.events.scrolled=="function"){var o={xaxis:{min:a,max:r}};n.config.chart.events.scrolled(this.ctx,o),this.ctx.events.fireEvent("scrolled",o)}}}]),t}(),Jo=function(){function s(e){N(this,s),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return B(s,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,i=e.elGrid,a=e.clientX,r=e.clientY,n=this.w,o=i.getBoundingClientRect(),l=o.width,c=o.height,h=l/(n.globals.dataPoints-1),d=c/n.globals.dataPoints,u=this.hasBars();!n.globals.comboCharts&&!u||n.config.xaxis.convertedCatToNumeric||(h=l/n.globals.dataPoints);var g=a-o.left-n.globals.barPadForNumericAxis,p=r-o.top;g<0||p<0||g>l||p>c?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):n.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):n.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var f=Math.round(g/h),x=Math.floor(p/d);u&&!n.config.xaxis.convertedCatToNumeric&&(f=Math.ceil(g/h),f-=1);var b=null,m=null,v=n.globals.seriesXvalues.map(function(k){return k.filter(function(M){return T.isNumber(M)})}),A=n.globals.seriesYvalues.map(function(k){return k.filter(function(M){return T.isNumber(M)})});if(n.globals.isXNumeric){var y=this.ttCtx.getElGrid().getBoundingClientRect(),S=g*(y.width/l),w=p*(y.height/c);b=(m=this.closestInMultiArray(S,w,v,A)).index,f=m.j,b!==null&&n.globals.hasNullValues&&(v=n.globals.seriesXvalues[b],f=(m=this.closestInArray(S,v)).j)}return n.globals.capturedSeriesIndex=b===null?-1:b,(!f||f<1)&&(f=0),n.globals.isBarHorizontal?n.globals.capturedDataPointIndex=x:n.globals.capturedDataPointIndex=f,{capturedSeries:b,j:n.globals.isBarHorizontal?x:f,hoverX:g,hoverY:p}}},{key:"getFirstActiveXArray",value:function(e){for(var t=this.w,i=0,a=e.map(function(n,o){return n.length>0?o:-1}),r=0;r<a.length;r++)if(a[r]!==-1&&t.globals.collapsedSeriesIndices.indexOf(r)===-1&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(r)===-1){i=a[r];break}return i}},{key:"closestInMultiArray",value:function(e,t,i,a){for(var r,n=this.w,o=1/0,l=null,c=null,h=0;h<i.length;h++)if(r=h,n.globals.collapsedSeriesIndices.indexOf(r)===-1&&n.globals.ancillaryCollapsedSeriesIndices.indexOf(r)===-1)for(var d=i[h],u=a[h],g=Math.min(d.length,u.length),p=0;p<g;p++){var f=e-d[p],x=Math.sqrt(f*f);if(!n.globals.allSeriesHasEqualX){var b=t-u[p];x=Math.sqrt(f*f+b*b)}x<o&&(o=x,l=h,c=p)}return{index:l,j:c}}},{key:"closestInArray",value:function(e,t){for(var i=t[0],a=null,r=Math.abs(e-i),n=0;n<t.length;n++){var o=Math.abs(e-t[n]);o<r&&(r=o,a=n)}return{j:a}}},{key:"isXoverlap",value:function(e){var t=[],i=this.w.globals.seriesX.filter(function(r){return r[0]!==void 0});if(i.length>0)for(var a=0;a<i.length-1;a++)i[a][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 me(e).reduce(function(t,i){return t+i.getBBox().height},0)}},{key:"getElMarkers",value:function(e){return typeof e=="number"?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0&&arguments[0],i=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");i=me(i),t&&(i=i.filter(function(r){var n=Number(r.getAttribute("data:realIndex"));return e.w.globals.collapsedSeriesIndices.indexOf(n)===-1})),i.sort(function(r,n){var o=Number(r.getAttribute("data:realIndex")),l=Number(n.getAttribute("data:realIndex"));return l<o?1:l>o?-1:0});var a=[];return i.forEach(function(r){a.push(r.querySelector(".apexcharts-marker"))}),a}},{key:"hasMarkers",value:function(e){return this.getElMarkers(e).length>0}},{key:"getPathFromPoint",value:function(e,t){var i=Number(e.getAttribute("cx")),a=Number(e.getAttribute("cy")),r=e.getAttribute("shape");return new H(this.ctx).getMarkerPath(i,a,r,t)}},{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,r=0;r<a.length;r++)e==="enable"?(a[r].classList.add("apexcharts-active"),a[r].style.display=t.config.tooltip.items.display):(a[r].classList.remove("apexcharts-active"),a[r].style.display="none")}}]),s}(),lu=function(){function s(e){N(this,s),this.w=e.w,this.ctx=e.ctx,this.ttCtx=e,this.tooltipUtil=new Jo(e)}return B(s,[{key:"drawSeriesTexts",value:function(e){var t=e.shared,i=t===void 0||t,a=e.ttItems,r=e.i,n=r===void 0?0:r,o=e.j,l=o===void 0?null:o,c=e.y1,h=e.y2,d=e.e,u=this.w;u.config.tooltip.custom!==void 0?this.handleCustomTooltip({i:n,j:l,y1:c,y2:h,w:u}):this.toggleActiveInactiveSeries(i,n);var g=this.getValuesToPrint({i:n,j:l});this.printLabels({i:n,j:l,values:g,ttItems:a,shared:i,e:d});var p=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=p.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=p.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var t,i=this,a=e.i,r=e.j,n=e.values,o=e.ttItems,l=e.shared,c=e.e,h=this.w,d=[],u=function(y){return h.globals.seriesGoals[y]&&h.globals.seriesGoals[y][r]&&Array.isArray(h.globals.seriesGoals[y][r])},g=n.xVal,p=n.zVal,f=n.xAxisTTVal,x="",b=h.globals.colors[a];r!==null&&h.config.plotOptions.bar.distributed&&(b=h.globals.colors[r]);for(var m=function(y,S){var w=i.getFormatters(a);x=i.getSeriesName({fn:w.yLbTitleFormatter,index:a,seriesIndex:a,j:r}),h.config.chart.type==="treemap"&&(x=w.yLbTitleFormatter(String(h.config.series[a].data[r].x),{series:h.globals.series,seriesIndex:a,dataPointIndex:r,w:h}));var k=h.config.tooltip.inverseOrder?S:y;if(h.globals.axisCharts){var M=function(L){var C,_,I,E;return h.globals.isRangeData?w.yLbFormatter((C=h.globals.seriesRangeStart)===null||C===void 0||(_=C[L])===null||_===void 0?void 0:_[r],{series:h.globals.seriesRangeStart,seriesIndex:L,dataPointIndex:r,w:h})+" - "+w.yLbFormatter((I=h.globals.seriesRangeEnd)===null||I===void 0||(E=I[L])===null||E===void 0?void 0:E[r],{series:h.globals.seriesRangeEnd,seriesIndex:L,dataPointIndex:r,w:h}):w.yLbFormatter(h.globals.series[L][r],{series:h.globals.series,seriesIndex:L,dataPointIndex:r,w:h})};if(l)w=i.getFormatters(k),x=i.getSeriesName({fn:w.yLbTitleFormatter,index:k,seriesIndex:a,j:r}),b=h.globals.colors[k],t=M(k),u(k)&&(d=h.globals.seriesGoals[k][r].map(function(L){return{attrs:L,val:w.yLbFormatter(L.value,{seriesIndex:k,dataPointIndex:r,w:h})}}));else{var O,P=c==null||(O=c.target)===null||O===void 0?void 0:O.getAttribute("fill");P&&(P.indexOf("url")!==-1?P.indexOf("Pattern")!==-1&&(b=h.globals.dom.baseEl.querySelector(P.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke")):b=P),t=M(a),u(a)&&Array.isArray(h.globals.seriesGoals[a][r])&&(d=h.globals.seriesGoals[a][r].map(function(L){return{attrs:L,val:w.yLbFormatter(L.value,{seriesIndex:a,dataPointIndex:r,w:h})}}))}}r===null&&(t=w.yLbFormatter(h.globals.series[a],F(F({},h),{},{seriesIndex:a,dataPointIndex:a}))),i.DOMHandling({i:a,t:k,j:r,ttItems:o,values:{val:t,goalVals:d,xVal:g,xAxisTTVal:f,zVal:p},seriesName:x,shared:l,pColor:b})},v=0,A=h.globals.series.length-1;v<h.globals.series.length;v++,A--)m(v,A)}},{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(r){return r}),typeof t!="function"&&(t=function(r){return r?r+": ":""}),{yLbFormatter:a,yLbTitleFormatter:t}}},{key:"getSeriesName",value:function(e){var t=e.fn,i=e.index,a=e.seriesIndex,r=e.j,n=this.w;return t(String(n.globals.seriesNames[i]),{series:n.globals.series,seriesIndex:a,dataPointIndex:r,w:n})}},{key:"DOMHandling",value:function(e){e.i;var t=e.t,i=e.j,a=e.ttItems,r=e.values,n=e.seriesName,o=e.shared,l=e.pColor,c=this.w,h=this.ttCtx,d=r.val,u=r.goalVals,g=r.xVal,p=r.xAxisTTVal,f=r.zVal,x=null;x=a[t].children,c.config.tooltip.fillSeriesColor&&(a[t].style.backgroundColor=l,x[0].style.display="none"),h.showTooltipTitle&&(h.tooltipTitle===null&&(h.tooltipTitle=c.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),h.tooltipTitle.innerHTML=g),h.isXAxisTooltipEnabled&&(h.xaxisTooltipText.innerHTML=p!==""?p:g);var b=a[t].querySelector(".apexcharts-tooltip-text-y-label");b&&(b.innerHTML=n||"");var m=a[t].querySelector(".apexcharts-tooltip-text-y-value");m&&(m.innerHTML=d!==void 0?d:""),x[0]&&x[0].classList.contains("apexcharts-tooltip-marker")&&(c.config.tooltip.marker.fillColors&&Array.isArray(c.config.tooltip.marker.fillColors)&&(l=c.config.tooltip.marker.fillColors[t]),c.config.tooltip.fillSeriesColor?x[0].style.backgroundColor=l:x[0].style.color=l),c.config.tooltip.marker.show||(x[0].style.display="none");var v=a[t].querySelector(".apexcharts-tooltip-text-goals-label"),A=a[t].querySelector(".apexcharts-tooltip-text-goals-value");if(u.length&&c.globals.seriesGoals[t]){var y=function(){var k="<div>",M="<div>";u.forEach(function(O,P){k+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(O.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(O.attrs.name,"</div>"),M+="<div>".concat(O.val,"</div>")}),v.innerHTML=k+"</div>",A.innerHTML=M+"</div>"};o?c.globals.seriesGoals[t][i]&&Array.isArray(c.globals.seriesGoals[t][i])?y():(v.innerHTML="",A.innerHTML=""):y()}else v.innerHTML="",A.innerHTML="";if(f!==null&&(a[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=c.config.tooltip.z.title,a[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=f!==void 0?f:""),o&&x[0]){if(c.config.tooltip.hideEmptySeries){var S=a[t].querySelector(".apexcharts-tooltip-marker"),w=a[t].querySelector(".apexcharts-tooltip-text");parseFloat(d)==0?(S.style.display="none",w.style.display="none"):(S.style.display="block",w.style.display="block")}d==null||c.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||c.globals.collapsedSeriesIndices.indexOf(t)>-1||Array.isArray(h.tConfig.enabledOnSeries)&&h.tConfig.enabledOnSeries.indexOf(t)===-1?x[0].parentNode.style.display="none":x[0].parentNode.style.display=c.config.tooltip.items.display}else Array.isArray(h.tConfig.enabledOnSeries)&&h.tConfig.enabledOnSeries.indexOf(t)===-1&&(x[0].parentNode.style.display="none")}},{key:"toggleActiveInactiveSeries",value:function(e,t){var i=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var a=i.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group-".concat(t));a&&(a.classList.add("apexcharts-active"),a.style.display=i.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,i=e.j,a=this.w,r=this.ctx.series.filteredSeriesX(),n="",o="",l=null,c=null,h={series:a.globals.series,seriesIndex:t,dataPointIndex:i,w:a},d=a.globals.ttZFormatter;i===null?c=a.globals.series[t]:a.globals.isXNumeric&&a.config.chart.type!=="treemap"?(n=r[t][i],r[t].length===0&&(n=r[this.tooltipUtil.getFirstActiveXArray(r)][i])):n=new ir(this.ctx).isFormatXY()?a.config.series[t].data[i]!==void 0?a.config.series[t].data[i].x:"":a.globals.labels[i]!==void 0?a.globals.labels[i]:"";var u=n;return a.globals.isXNumeric&&a.config.xaxis.type==="datetime"?n=new Ri(this.ctx).xLabelFormat(a.globals.ttKeyFormatter,u,u,{i:void 0,dateFormatter:new ve(this.ctx).formatDate,w:this.w}):n=a.globals.isBarHorizontal?a.globals.yLabelFormatters[0](u,h):a.globals.xLabelFormatter(u,h),a.config.tooltip.x.formatter!==void 0&&(n=a.globals.ttKeyFormatter(u,h)),a.globals.seriesZ.length>0&&a.globals.seriesZ[t].length>0&&(l=d(a.globals.seriesZ[t][i],a)),o=typeof a.config.xaxis.tooltip.formatter=="function"?a.globals.xaxisTooltipFormatter(u,h):n,{val:Array.isArray(c)?c.join(" "):c,xVal:Array.isArray(n)?n.join(" "):n,xAxisTTVal:Array.isArray(o)?o.join(" "):o,zVal:l}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,i=e.j,a=e.y1,r=e.y2,n=e.w,o=this.ttCtx.getElTooltip(),l=n.config.tooltip.custom;Array.isArray(l)&&l[t]&&(l=l[t]);var c=l({ctx:this.ctx,series:n.globals.series,seriesIndex:t,dataPointIndex:i,y1:a,y2:r,w:n});typeof c=="string"||typeof c=="number"?o.innerHTML=c:(c instanceof Element||typeof c.nodeName=="string")&&(o.innerHTML="",o.appendChild(c.cloneNode(!0)))}}]),s}(),Qo=function(){function s(e){N(this,s),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return B(s,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.ttCtx,a=this.w,r=i.getElXCrosshairs(),n=e-i.xcrosshairsWidth/2,o=a.globals.labels.slice().length;if(t!==null&&(n=a.globals.gridWidth/o*t),r===null||a.globals.isBarHorizontal||(r.setAttribute("x",n),r.setAttribute("x1",n),r.setAttribute("x2",n),r.setAttribute("y2",a.globals.gridHeight),r.classList.add("apexcharts-active")),n<0&&(n=0),n>a.globals.gridWidth&&(n=a.globals.gridWidth),i.isXAxisTooltipEnabled){var l=n;a.config.xaxis.crosshairs.width!=="tickWidth"&&a.config.xaxis.crosshairs.width!=="barWidth"||(l=n+i.xcrosshairsWidth/2),this.moveXAxisTooltip(l)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;t.ycrosshairs!==null&&H.setAttrs(t.ycrosshairs,{y1:e,y2:e}),t.ycrosshairsHidden!==null&&H.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 r;r=new H(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=r.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),r=t.globals.translateY+a,n=i.yaxisTTEls[e].getBoundingClientRect(),o=n.height,l=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(l-=n.width),r-=o/2,t.globals.ignoreYAxisIndexes.indexOf(e)===-1&&r>0&&r<t.globals.gridHeight?(i.yaxisTTEls[e].classList.add("apexcharts-active"),i.yaxisTTEls[e].style.top=r+"px",i.yaxisTTEls[e].style.left=l+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,r=this.ttCtx,n=r.getElTooltip(),o=r.tooltipRect,l=i!==null?parseFloat(i):1,c=parseFloat(e)+l+5,h=parseFloat(t)+l/2;if(c>a.globals.gridWidth/2&&(c=c-o.ttWidth-l-10),c>a.globals.gridWidth-o.ttWidth-10&&(c=a.globals.gridWidth-o.ttWidth),c<-20&&(c=-20),a.config.tooltip.followCursor){var d=r.getElGrid().getBoundingClientRect();(c=r.e.clientX-d.left)>a.globals.gridWidth/2&&(c-=r.tooltipRect.ttWidth),(h=r.e.clientY+a.globals.translateY-d.top)>a.globals.gridHeight/2&&(h-=r.tooltipRect.ttHeight)}else a.globals.isBarHorizontal||o.ttHeight/2+h>a.globals.gridHeight&&(h=a.globals.gridHeight-o.ttHeight+a.globals.translateY);isNaN(c)||(c+=a.globals.translateX,n.style.left=c+"px",n.style.top=h+"px")}},{key:"moveMarkers",value:function(e,t){var i=this.w,a=this.ttCtx;if(i.globals.markers.size[e]>0)for(var r=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),n=0;n<r.length;n++)parseInt(r[n].getAttribute("rel"),10)===t&&(a.marker.resetPointsSize(),a.marker.enlargeCurrentPoint(t,r[n]));else a.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}},{key:"moveDynamicPointOnHover",value:function(e,t){var i,a,r,n,o=this.w,l=this.ttCtx,c=new H(this.ctx),h=o.globals.pointsArray,d=l.tooltipUtil.getHoverMarkerSize(t),u=o.config.series[t].type;if(!u||u!=="column"&&u!=="candlestick"&&u!=="boxPlot"){r=(i=h[t][e])===null||i===void 0?void 0:i[0],n=((a=h[t][e])===null||a===void 0?void 0:a[1])||0;var g=o.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers path"));if(g&&n<o.globals.gridHeight&&n>0){var p=g.getAttribute("shape"),f=c.getMarkerPath(r,n,p,1.5*d);g.setAttribute("d",f)}this.moveXCrosshairs(r),l.fixedTooltip||this.moveTooltip(r,n,d)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,i=this.ttCtx,a=i.w,r=0,n=0,o=a.globals.pointsArray,l=new He(this.ctx),c=new H(this.ctx);t=l.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var h=i.tooltipUtil.getHoverMarkerSize(t);if(o[t]&&(r=o[t][e][0],n=o[t][e][1]),!isNaN(r)){var d=i.tooltipUtil.getAllMarkers();if(d.length)for(var u=0;u<a.globals.series.length;u++){var g=o[u];if(a.globals.comboCharts&&g===void 0&&d.splice(u,0,null),g&&g.length){var p=o[u][e][1],f=void 0;d[u].setAttribute("cx",r);var x=d[u].getAttribute("shape");if(a.config.chart.type==="rangeArea"&&!a.globals.comboCharts){var b=e+a.globals.series[u].length;f=o[u][b][1],p-=Math.abs(p-f)/2}if(p!==null&&!isNaN(p)&&p<a.globals.gridHeight+h&&p+h>0){var m=c.getMarkerPath(r,p,x,h);d[u].setAttribute("d",m)}else d[u].setAttribute("d","")}}this.moveXCrosshairs(r),i.fixedTooltip||this.moveTooltip(r,n||a.globals.gridHeight,h)}}},{key:"moveStickyTooltipOverBars",value:function(e,t){var i=this.w,a=this.ttCtx,r=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length;i.config.chart.stacked&&(r=i.globals.barGroups.length);var n=r>=2&&r%2==0?Math.floor(r/2):Math.floor(r/2)+1;i.globals.isBarHorizontal&&(n=new He(this.ctx).getActiveConfigSeriesIndex("desc")+1);var o=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(n,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(n,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(n,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(n,"'] path[j='").concat(e,"']"));o||typeof t!="number"||(o=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(t,"'] path[j='").concat(e,`'],
|
169
|
+
.apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='`).concat(t,"'] path[j='").concat(e,`'],
|
170
|
+
.apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='`).concat(t,"'] path[j='").concat(e,`'],
|
171
|
+
.apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='`).concat(t,"'] path[j='").concat(e,"']")));var l=o?parseFloat(o.getAttribute("cx")):0,c=o?parseFloat(o.getAttribute("cy")):0,h=o?parseFloat(o.getAttribute("barWidth")):0,d=a.getElGrid().getBoundingClientRect(),u=o&&(o.classList.contains("apexcharts-candlestick-area")||o.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(o&&!u&&(l-=r%2!=0?h/2:0),o&&u&&(l-=h/2)):i.globals.isBarHorizontal||(l=a.xAxisTicksPositions[e-1]+a.dataPointsDividedWidth/2,isNaN(l)&&(l=a.xAxisTicksPositions[e]-a.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?c-=a.tooltipRect.ttHeight:i.config.tooltip.followCursor?c=a.e.clientY-d.top-a.tooltipRect.ttHeight/2:c+a.tooltipRect.ttHeight+15>i.globals.gridHeight&&(c=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(l),a.fixedTooltip||this.moveTooltip(l,c||i.globals.gridHeight)}}]),s}(),cu=function(){function s(e){N(this,s),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new Qo(e)}return B(s,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new H(this.ctx),i=new Kt(this.ctx),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");a=me(a),e.config.chart.stacked&&a.sort(function(d,u){return parseFloat(d.getAttribute("data:realIndex"))-parseFloat(u.getAttribute("data:realIndex"))});for(var r=0;r<a.length;r++){var n=a[r].querySelector(".apexcharts-series-markers-wrap");if(n!==null){var o=void 0,l="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||(l+=" no-pointer-events");var c=i.getMarkerConfig({cssClass:l,seriesIndex:Number(n.getAttribute("data:realIndex"))});(o=t.drawMarker(0,0,c)).node.setAttribute("default-marker-size",0);var h=document.createElementNS(e.globals.SVGNS,"g");h.classList.add("apexcharts-series-markers"),h.appendChild(o.node),n.appendChild(h)}}}},{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,r=this.w;r.config.chart.type!=="bubble"&&this.newPointSize(e,t);var n=t.getAttribute("cx"),o=t.getAttribute("cy");if(i!==null&&a!==null&&(n=i,o=a),this.tooltipPosition.moveXCrosshairs(n),!this.fixedTooltip){if(r.config.chart.type==="radar"){var l=this.ttCtx.getElGrid().getBoundingClientRect();n=this.ttCtx.e.clientX-l.left}this.tooltipPosition.moveTooltip(n,o,r.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,i=this,a=this.ttCtx,r=e,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),o=t.config.markers.hover.size,l=0;l<n.length;l++){var c=n[l].getAttribute("rel"),h=n[l].getAttribute("index");if(o===void 0&&(o=t.globals.markers.size[h]+t.config.markers.hover.sizeOffset),r===parseInt(c,10)){i.newPointSize(r,n[l]);var d=n[l].getAttribute("cx"),u=n[l].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(d),a.fixedTooltip||i.tooltipPosition.moveTooltip(d,u,o)}else i.oldPointSize(n[l])}}},{key:"newPointSize",value:function(e,t){var i=this.w,a=i.config.markers.hover.size,r=e===0?t.parentNode.firstChild:t.parentNode.lastChild;if(r.getAttribute("default-marker-size")!=="0"){var n=parseInt(r.getAttribute("index"),10);a===void 0&&(a=i.globals.markers.size[n]+i.config.markers.hover.sizeOffset),a<0&&(a=0);var o=this.ttCtx.tooltipUtil.getPathFromPoint(t,a);t.setAttribute("d",o)}}},{key:"oldPointSize",value:function(e){var t=parseFloat(e.getAttribute("default-marker-size")),i=this.ttCtx.tooltipUtil.getPathFromPoint(e,t);e.setAttribute("d",i)}},{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"));if(T.isNumber(i)&&i>0){var a=this.ttCtx.tooltipUtil.getPathFromPoint(e[t],i);e[t].setAttribute("d",a)}else e[t].setAttribute("d","M0,0")}}}]),s}(),hu=function(){function s(e){N(this,s),this.w=e.w;var t=this.w;this.ttCtx=e,this.isVerticalGroupedRangeBar=!t.globals.isBarHorizontal&&t.config.chart.type==="rangeBar"&&t.config.plotOptions.bar.rangeBarGroupRows}return B(s,[{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,r=e.y,n=e.type,o=this.ttCtx,l=this.w;if(t.target.classList.contains("apexcharts-".concat(n,"-rect"))){var c=this.getAttr(t,"i"),h=this.getAttr(t,"j"),d=this.getAttr(t,"cx"),u=this.getAttr(t,"cy"),g=this.getAttr(t,"width"),p=this.getAttr(t,"height");if(o.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:c,j:h,shared:!1,e:t}),l.globals.capturedSeriesIndex=c,l.globals.capturedDataPointIndex=h,a=d+o.tooltipRect.ttWidth/2+g,r=u+o.tooltipRect.ttHeight/2-p/2,o.tooltipPosition.moveXCrosshairs(d+g/2),a>l.globals.gridWidth/2&&(a=d-o.tooltipRect.ttWidth/2+g),o.w.config.tooltip.followCursor){var f=l.globals.dom.elWrap.getBoundingClientRect();a=l.globals.clientX-f.left-(a>l.globals.gridWidth/2?o.tooltipRect.ttWidth:0),r=l.globals.clientY-f.top-(r>l.globals.gridHeight/2?o.tooltipRect.ttHeight:0)}}return{x:a,y:r}}},{key:"handleMarkerTooltip",value:function(e){var t,i,a=e.e,r=e.opt,n=e.x,o=e.y,l=this.w,c=this.ttCtx;if(a.target.classList.contains("apexcharts-marker")){var h=parseInt(r.paths.getAttribute("cx"),10),d=parseInt(r.paths.getAttribute("cy"),10),u=parseFloat(r.paths.getAttribute("val"));if(i=parseInt(r.paths.getAttribute("rel"),10),t=parseInt(r.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,c.intersect){var g=T.findAncestor(r.paths,"apexcharts-series");g&&(t=parseInt(g.getAttribute("data:realIndex"),10))}if(c.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:t,j:i,shared:!c.showOnIntersect&&l.config.tooltip.shared,e:a}),a.type==="mouseup"&&c.markerClick(a,t,i),l.globals.capturedSeriesIndex=t,l.globals.capturedDataPointIndex=i,n=h,o=d+l.globals.translateY-1.4*c.tooltipRect.ttHeight,c.w.config.tooltip.followCursor){var p=c.getElGrid().getBoundingClientRect();o=c.e.clientY+l.globals.translateY-p.top}u<0&&(o=d),c.marker.enlargeCurrentPoint(i,r.paths,n,o)}return{x:n,y:o}}},{key:"handleBarTooltip",value:function(e){var t,i,a=e.e,r=e.opt,n=this.w,o=this.ttCtx,l=o.getElTooltip(),c=0,h=0,d=0,u=this.getBarTooltipXY({e:a,opt:r});if(u.j!==null||u.barHeight!==0||u.barWidth!==0){t=u.i;var g=u.j;if(n.globals.capturedSeriesIndex=t,n.globals.capturedDataPointIndex=g,n.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!n.config.tooltip.shared?(h=u.x,d=u.y,i=Array.isArray(n.config.stroke.width)?n.config.stroke.width[t]:n.config.stroke.width,c=h):n.globals.comboCharts||n.config.tooltip.shared||(c/=2),isNaN(d)&&(d=n.globals.svgHeight-o.tooltipRect.ttHeight),parseInt(r.paths.parentNode.getAttribute("data:realIndex"),10),h+o.tooltipRect.ttWidth>n.globals.gridWidth?h-=o.tooltipRect.ttWidth:h<0&&(h=0),o.w.config.tooltip.followCursor){var p=o.getElGrid().getBoundingClientRect();d=o.e.clientY-p.top}o.tooltip===null&&(o.tooltip=n.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),n.config.tooltip.shared||(n.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(c+i/2):o.tooltipPosition.moveXCrosshairs(c)),!o.fixedTooltip&&(!n.config.tooltip.shared||n.globals.isBarHorizontal&&o.tooltipUtil.hasBars())&&(d=d+n.globals.translateY-o.tooltipRect.ttHeight/2,l.style.left=h+n.globals.translateX+"px",l.style.top=d+"px")}}},{key:"getBarTooltipXY",value:function(e){var t=this,i=e.e,a=e.opt,r=this.w,n=null,o=this.ttCtx,l=0,c=0,h=0,d=0,u=0,g=i.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=i.target,f=p.getBoundingClientRect(),x=a.elGrid.getBoundingClientRect(),b=f.height;u=f.height;var m=f.width,v=parseInt(p.getAttribute("cx"),10),A=parseInt(p.getAttribute("cy"),10);d=parseFloat(p.getAttribute("barWidth"));var y=i.type==="touchmove"?i.touches[0].clientX:i.clientX;n=parseInt(p.getAttribute("j"),10),l=parseInt(p.parentNode.getAttribute("rel"),10)-1;var S=p.getAttribute("data-range-y1"),w=p.getAttribute("data-range-y2");r.globals.comboCharts&&(l=parseInt(p.parentNode.getAttribute("data:realIndex"),10));var k=function(O){return r.globals.isXNumeric?v-m/2:t.isVerticalGroupedRangeBar?v+m/2:v-o.dataPointsDividedWidth+m/2},M=function(){return A-o.dataPointsDividedHeight+b/2-o.tooltipRect.ttHeight/2};o.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:l,j:n,y1:S?parseInt(S,10):null,y2:w?parseInt(w,10):null,shared:!o.showOnIntersect&&r.config.tooltip.shared,e:i}),r.config.tooltip.followCursor?r.globals.isBarHorizontal?(c=y-x.left+15,h=M()):(c=k(),h=i.clientY-x.top-o.tooltipRect.ttHeight/2-15):r.globals.isBarHorizontal?((c=v)<o.xyRatios.baseLineInvertedY&&(c=v-o.tooltipRect.ttWidth),h=M()):(c=k(),h=A)}return{x:c,y:h,barHeight:u,barWidth:d,i:l,j:n}}}]),s}(),du=function(){function s(e){N(this,s),this.w=e.w,this.ttCtx=e}return B(s,[{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",r=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),r.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=0;i<e.config.yaxis.length;i++){var a=e.config.yaxis[i].opposite||e.config.yaxis[i].crosshairs.opposite;t.yaxisOffX=a?e.globals.gridWidth+1:1;var r="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i,a?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left"),n=e.globals.dom.elWrap;e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i))===null&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",r+" apexcharts-theme-"+e.config.tooltip.theme),n.appendChild(t.yaxisTooltip),i===0&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[i]=document.createElement("div"),t.yaxisTooltipText[i].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[i]))}}},{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 r=parseFloat(a.getAttribute("barWidth"));t.xcrosshairsWidth=r}else if(e.config.xaxis.crosshairs.width==="tickWidth"){var n=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/n}}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==="barWidth"){var l=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(l!==null){var c=parseFloat(l.getAttribute("barWidth"));t.xcrosshairsWidth=c}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,r=this.w,n=r.globals,o=n.seriesYAxisMap[e];if(a.yaxisTooltips[e]&&o.length>0){var l=n.yLabelFormatters[e],c=a.getElGrid().getBoundingClientRect(),h=o[0],d=0;i.yRatio.length>1&&(d=h);var u=(t-c.top)*i.yRatio[d],g=n.maxYArr[h]-n.minYArr[h],p=n.minYArr[h]+(g-u);r.config.yaxis[e].reversed&&(p=n.maxYArr[h]-(g-u)),a.tooltipPosition.moveYCrosshairs(t-c.top),a.yaxisTooltipText[e].innerHTML=l(p),a.tooltipPosition.moveYAxisTooltip(e)}}}]),s}(),lo=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w;var t=this.w;this.tConfig=t.config.tooltip,this.tooltipUtil=new Jo(this),this.tooltipLabels=new lu(this),this.tooltipPosition=new Qo(this),this.marker=new cu(this),this.intersect=new hu(this),this.axesTooltip=new du(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 B(s,[{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(n,o){return!!(n.show&&n.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||"light")),t.globals.dom.elWrap.appendChild(i),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var a=new Ti(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 r=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(r=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(r),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,i=this.w,a=[],r=this.getElTooltip(),n=function(l){var c=document.createElement("div");c.classList.add("apexcharts-tooltip-series-group","apexcharts-tooltip-series-group-".concat(l)),c.style.order=i.config.tooltip.inverseOrder?e-l:l+1;var h=document.createElement("span");h.classList.add("apexcharts-tooltip-marker"),i.config.tooltip.fillSeriesColor?h.style.backgroundColor=i.globals.colors[l]:h.style.color=i.globals.colors[l];var d=i.config.markers.shape,u=d;Array.isArray(d)&&(u=d[l]),h.setAttribute("shape",u),c.appendChild(h);var g=document.createElement("div");g.classList.add("apexcharts-tooltip-text"),g.style.fontFamily=t.tConfig.style.fontFamily||i.config.chart.fontFamily,g.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach(function(p){var f=document.createElement("div");f.classList.add("apexcharts-tooltip-".concat(p,"-group"));var x=document.createElement("span");x.classList.add("apexcharts-tooltip-text-".concat(p,"-label")),f.appendChild(x);var b=document.createElement("span");b.classList.add("apexcharts-tooltip-text-".concat(p,"-value")),f.appendChild(b),g.appendChild(f)}),c.appendChild(g),r.appendChild(c),a.push(c)},o=0;o<e;o++)n(o);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"),r=t==="area"||t==="line"||t==="scatter"||t==="bubble"||t==="radar",n=e.globals.dom.Paper.node,o=this.getElGrid();o&&(this.seriesBound=o.getBoundingClientRect());var l,c=[],h=[],d={hoverArea:n,elGrid:o,tooltipEl:i,tooltipY:c,tooltipX:h,ttItems:this.ttItems};if(e.globals.axisCharts&&(r?l=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):a?l=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"||(l=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),l&&l.length))for(var u=0;u<l.length;u++)c.push(l[u].getAttribute("cy")),h.push(l[u].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||a&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([n],d);else if(a&&!e.globals.comboCharts||r&&this.showOnIntersect)this.addDatapointEventsListeners(d);else if(!e.globals.axisCharts||t==="heatmap"||t==="treemap"){var g=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(g,d)}if(this.showOnIntersect){var p=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");p.length>0&&this.addPathsEventListeners(p,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,r=i.height+10,n=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY,l=this.tConfig.fixed.position.toLowerCase();return l.indexOf("right")>-1&&(n=n+e.globals.svgWidth-a+10),l.indexOf("bottom")>-1&&(o=o+e.globals.svgHeight-r-10),t.style.left=n+"px",t.style.top=o+"px",{x:n,y:o,ttWidth:a,ttHeight:r}}},{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(n){var o={paths:e[n],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(l){return e[n].addEventListener(l,i.onSeriesHover.bind(i,o),{capture:!1,passive:!0})})},r=0;r<e.length;r++)a(r)}},{key:"onSeriesHover",value:function(e,t){var i=this,a=Date.now()-this.lastHoverTime;a>=20?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){i.seriesHover(e,t)},20-a))}},{key:"seriesHover",value:function(e,t){var i=this;this.lastHoverTime=Date.now();var a=[],r=this.w;r.config.chart.group&&(a=this.ctx.getGroupedCharts()),r.globals.axisCharts&&(r.globals.minX===-1/0&&r.globals.maxX===1/0||r.globals.dataPoints===0)||(a.length?a.forEach(function(n){var o=i.getElTooltip(n),l={paths:e.paths,tooltipEl:o,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:n.w.globals.tooltip.ttItems};n.w.globals.minX===i.w.globals.minX&&n.w.globals.maxX===i.w.globals.maxX&&n.w.globals.tooltip.seriesHoverByContext({chartCtx:n,ttCtx:n.w.globals.tooltip,opt:l,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,r=e.e,n=t.w,o=this.getElTooltip(t);o&&(i.tooltipRect={x:0,y:0,ttWidth:o.getBoundingClientRect().width,ttHeight:o.getBoundingClientRect().height},i.e=r,i.tooltipUtil.hasBars()&&!n.globals.comboCharts&&!i.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new He(t).toggleSeriesOnHover(r,r.target.parentNode),n.globals.axisCharts?i.axisChartsTooltips({e:r,opt:a,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:r,opt:a,tooltipRect:i.tooltipRect}),i.fixedTooltip&&i.drawFixedTooltipRect())}},{key:"axisChartsTooltips",value:function(e){var t,i,a=e.e,r=e.opt,n=this.w,o=r.elGrid.getBoundingClientRect(),l=a.type==="touchmove"?a.touches[0].clientX:a.clientX,c=a.type==="touchmove"?a.touches[0].clientY:a.clientY;if(this.clientY=c,this.clientX=l,n.globals.capturedSeriesIndex=-1,n.globals.capturedDataPointIndex=-1,c<o.top||c>o.top+o.height)this.handleMouseOut(r);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!n.config.tooltip.shared){var h=parseInt(r.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(h)<0)return void this.handleMouseOut(r)}var d=this.getElTooltip(),u=this.getElXCrosshairs(),g=[];n.config.chart.group&&(g=this.ctx.getSyncedCharts());var p=n.globals.xyCharts||n.config.chart.type==="bar"&&!n.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||n.globals.comboCharts&&this.tooltipUtil.hasBars();if(a.type==="mousemove"||a.type==="touchmove"||a.type==="mouseup"){if(n.globals.collapsedSeries.length+n.globals.ancillaryCollapsedSeries.length===n.globals.series.length)return;u!==null&&u.classList.add("apexcharts-active");var f=this.yaxisTooltips.filter(function(m){return m===!0});if(this.ycrosshairs!==null&&f.length&&this.ycrosshairs.classList.add("apexcharts-active"),p&&!this.showOnIntersect||g.length>1)this.handleStickyTooltip(a,l,c,r);else if(n.config.chart.type==="heatmap"||n.config.chart.type==="treemap"){var x=this.intersect.handleHeatTreeTooltip({e:a,opt:r,x:t,y:i,type:n.config.chart.type});t=x.x,i=x.y,d.style.left=t+"px",d.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:a,opt:r}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:a,opt:r,x:t,y:i});if(this.yaxisTooltips.length)for(var b=0;b<n.config.yaxis.length;b++)this.axesTooltip.drawYaxisTooltipText(b,c,this.xyRatios);n.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),r.tooltipEl.classList.add("apexcharts-active")}else a.type!=="mouseout"&&a.type!=="touchend"||this.handleMouseOut(r)}}},{key:"nonAxisChartsTooltips",value:function(e){var t=e.e,i=e.opt,a=e.tooltipRect,r=this.w,n=i.paths.getAttribute("rel"),o=this.getElTooltip(),l=r.globals.dom.elWrap.getBoundingClientRect();if(t.type==="mousemove"||t.type==="touchmove"){r.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),o.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(n,10)-1,shared:!1});var c=r.globals.clientX-l.left-a.ttWidth/2,h=r.globals.clientY-l.top-a.ttHeight-10;if(o.style.left=c+"px",o.style.top=h+"px",r.config.legend.tooltipHoverFormatter){var d=n-1,u=(0,r.config.legend.tooltipHoverFormatter)(this.legendLabels[d].getAttribute("data:default-text"),{seriesIndex:d,dataPointIndex:d,w:r});this.legendLabels[d].innerHTML=u}}else t.type!=="mouseout"&&t.type!=="touchend"||(o.classList.remove("apexcharts-active"),r.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),r.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(g){var p=g.getAttribute("data:default-text");g.innerHTML=decodeURIComponent(p)}))}},{key:"handleStickyTooltip",value:function(e,t,i,a){var r=this.w,n=this.tooltipUtil.getNearestValues({context:this,hoverArea:a.hoverArea,elGrid:a.elGrid,clientX:t,clientY:i}),o=n.j,l=n.capturedSeries;r.globals.collapsedSeriesIndices.includes(l)&&(l=null);var c=a.elGrid.getBoundingClientRect();if(n.hoverX<0||n.hoverX>c.width)this.handleMouseOut(a);else if(l!==null)this.handleStickyCapturedSeries(e,l,a,o);else if(this.tooltipUtil.isXoverlap(o)||r.globals.isBarHorizontal){var h=r.globals.series.findIndex(function(d,u){return!r.globals.collapsedSeriesIndices.includes(u)});this.create(e,this,h,o,a.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(e,t,i,a){var r=this.w;if(!this.tConfig.shared&&r.globals.series[t][a]===null)return void this.handleMouseOut(i);if(r.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);else if(this.tooltipUtil.isXoverlap(a)){var n=r.globals.series.findIndex(function(o,l){return!r.globals.collapsedSeriesIndices.includes(l)});this.create(e,this,n,a,i.ttItems)}}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new H(this.ctx),i=e.globals.dom.Paper.find(".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(t.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),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(r){var n=r.getAttribute("data:default-text");r.innerHTML=decodeURIComponent(n)})}},{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,r){var n,o,l,c,h,d,u,g,p,f,x,b,m,v,A,y,S=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,w=this.w,k=t;e.type==="mouseup"&&this.markerClick(e,i,a),S===null&&(S=this.tConfig.shared);var M=this.tooltipUtil.hasMarkers(i),O=this.tooltipUtil.getElBars(),P=function(){w.globals.markers.largestSize>0?k.marker.enlargePoints(a):k.tooltipPosition.moveDynamicPointsOnHover(a)};if(w.config.legend.tooltipHoverFormatter){var L=w.config.legend.tooltipHoverFormatter,C=Array.from(this.legendLabels);C.forEach(function(K){var q=K.getAttribute("data:default-text");K.innerHTML=decodeURIComponent(q)});for(var _=0;_<C.length;_++){var I=C[_],E=parseInt(I.getAttribute("i"),10),z=decodeURIComponent(I.getAttribute("data:default-text")),R=L(z,{seriesIndex:S?E:i,dataPointIndex:a,w});if(S)I.innerHTML=w.globals.collapsedSeriesIndices.indexOf(E)<0?R:z;else if(I.innerHTML=E===i?R:z,i===E)break}}var X=F(F({ttItems:r,i,j:a},((n=w.globals.seriesRange)===null||n===void 0||(o=n[i])===null||o===void 0||(l=o[a])===null||l===void 0||(c=l.y[0])===null||c===void 0?void 0:c.y1)!==void 0&&{y1:(h=w.globals.seriesRange)===null||h===void 0||(d=h[i])===null||d===void 0||(u=d[a])===null||u===void 0||(g=u.y[0])===null||g===void 0?void 0:g.y1}),((p=w.globals.seriesRange)===null||p===void 0||(f=p[i])===null||f===void 0||(x=f[a])===null||x===void 0||(b=x.y[0])===null||b===void 0?void 0:b.y2)!==void 0&&{y2:(m=w.globals.seriesRange)===null||m===void 0||(v=m[i])===null||v===void 0||(A=v[a])===null||A===void 0||(y=A.y[0])===null||y===void 0?void 0:y.y2});if(S){if(k.tooltipLabels.drawSeriesTexts(F(F({},X),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),M)P();else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(O),this.barSeriesHeight>0)){var D=new H(this.ctx),Y=w.globals.dom.Paper.find(".apexcharts-bar-area[j='".concat(a,"']"));this.deactivateHoverFilter(),k.tooltipUtil.getAllMarkers(!0).length&&!this.barSeriesHeight&&P(),k.tooltipPosition.moveStickyTooltipOverBars(a,i);for(var G=0;G<Y.length;G++)D.pathMouseEnter(Y[G])}}else k.tooltipLabels.drawSeriesTexts(F({shared:!1},X)),this.tooltipUtil.hasBars()&&k.tooltipPosition.moveStickyTooltipOverBars(a,i),M&&k.tooltipPosition.moveMarkers(i,a)}}]),s}(),uu=function(){function s(e){N(this,s),this.w=e.w,this.barCtx=e,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return B(s,[{key:"handleBarDataLabels",value:function(e){var t,i,a=e.x,r=e.y,n=e.y1,o=e.y2,l=e.i,c=e.j,h=e.realIndex,d=e.columnGroupIndex,u=e.series,g=e.barHeight,p=e.barWidth,f=e.barXPosition,x=e.barYPosition,b=e.visibleSeries,m=this.w,v=new H(this.barCtx.ctx),A=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[h]:this.barCtx.strokeWidth;m.globals.isXNumeric&&!m.globals.isBarHorizontal?(t=a+parseFloat(p*(b+1)),i=r+parseFloat(g*(b+1))-A):(t=a+parseFloat(p*b),i=r+parseFloat(g*b));var y,S=null,w=a,k=r,M={},O=m.config.dataLabels,P=this.barCtx.barOptions.dataLabels,L=this.barCtx.barOptions.dataLabels.total;x!==void 0&&this.barCtx.isRangeBar&&(i=x,k=x),f!==void 0&&this.barCtx.isVerticalGroupedRangeBar&&(t=f,w=f);var C=O.offsetX,_=O.offsetY,I={width:0,height:0};if(m.config.dataLabels.enabled){var E=m.globals.series[l][c];I=v.getTextRects(m.config.dataLabels.formatter?m.config.dataLabels.formatter(E,F(F({},m),{},{seriesIndex:l,dataPointIndex:c,w:m})):m.globals.yLabelFormatters[0](E),parseFloat(O.style.fontSize))}var z={x:a,y:r,i:l,j:c,realIndex:h,columnGroupIndex:d,bcx:t,bcy:i,barHeight:g,barWidth:p,textRects:I,strokeWidth:A,dataLabelsX:w,dataLabelsY:k,dataLabelsConfig:O,barDataLabelsConfig:P,barTotalDataLabelsConfig:L,offX:C,offY:_};return M=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(z):this.calculateColumnsDataLabelsPosition(z),y=this.drawCalculatedDataLabels({x:M.dataLabelsX,y:M.dataLabelsY,val:this.barCtx.isRangeBar?[n,o]:m.config.chart.stackType==="100%"?u[h][c]:m.globals.series[h][c],i:h,j:c,barWidth:p,barHeight:g,textRects:I,dataLabelsConfig:O}),m.config.chart.stacked&&L.enabled&&(S=this.drawTotalDataLabels({x:M.totalDataLabelsX,y:M.totalDataLabelsY,barWidth:p,barHeight:g,realIndex:h,textAnchor:M.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:h,j:c}),dataLabelsConfig:O,barTotalDataLabelsConfig:L})),{dataLabelsPos:M,dataLabels:y,totalDataLabels:S}}},{key:"getStackedTotalDataLabel",value:function(e){var t=e.realIndex,i=e.j,a=this.w,r=this.barCtx.stackedSeriesTotals[i];return this.totalFormatter&&(r=this.totalFormatter(r,F(F({},a),{},{seriesIndex:t,dataPointIndex:i,w:a}))),r}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var t=this,i=this.w,a=e.i,r=e.j,n=e.realIndex;e.columnGroupIndex;var o,l,c=e.y,h=e.bcx,d=e.barWidth,u=e.barHeight,g=e.textRects,p=e.dataLabelsX,f=e.dataLabelsY,x=e.dataLabelsConfig,b=e.barDataLabelsConfig,m=e.barTotalDataLabelsConfig,v=e.strokeWidth,A=e.offX,y=e.offY,S=h;u=Math.abs(u);var w=i.config.plotOptions.bar.dataLabels.orientation==="vertical",k=this.barCtx.barHelpers.getZeroValueEncounters({i:a,j:r}).zeroEncounters;h-=v/2;var M=i.globals.gridWidth/i.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?p+=d/2:(p=i.globals.isXNumeric?h-d/2+A:h-M+d/2+A,!i.config.chart.stacked&&k>0&&i.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(p-=d*k)),w&&(p=p+g.height/2-v/2-2);var O=i.globals.series[a][r]<0,P=c;switch(this.barCtx.isReversed&&(P=c+(O?u:-u)),b.position){case"center":f=w?O?P-u/2+y:P+u/2-y:O?P-u/2+g.height/2+y:P+u/2+g.height/2-y;break;case"bottom":f=w?O?P-u+y:P+u-y:O?P-u+g.height+v+y:P+u-g.height/2+v-y;break;case"top":f=w?O?P+y:P-y:O?P-g.height/2-y:P+g.height+y}var L=P;if(i.globals.seriesGroups.forEach(function(I){var E;(E=t.barCtx[I.join(",")])===null||E===void 0||E.prevY.forEach(function(z){L=O?Math.max(z[r],L):Math.min(z[r],L)})}),this.barCtx.lastActiveBarSerieIndex===n&&m.enabled){var C=new H(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:n,j:r}),x.fontSize);o=O?L-C.height/2-y-m.offsetY+18:L+C.height+y+m.offsetY-18;var _=M;l=S+(i.globals.isXNumeric?-d*i.globals.barGroups.length/2:i.globals.barGroups.length*d/2-(i.globals.barGroups.length-1)*d-_)+m.offsetX}return i.config.chart.stacked||(f<0?f=0+v:f+g.height/3>i.globals.gridHeight&&(f=i.globals.gridHeight-v)),{bcx:h,bcy:c,dataLabelsX:p,dataLabelsY:f,totalDataLabelsX:l,totalDataLabelsY:o,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this,i=this.w,a=e.x,r=e.i,n=e.j,o=e.realIndex,l=e.bcy,c=e.barHeight,h=e.barWidth,d=e.textRects,u=e.dataLabelsX,g=e.strokeWidth,p=e.dataLabelsConfig,f=e.barDataLabelsConfig,x=e.barTotalDataLabelsConfig,b=e.offX,m=e.offY,v=i.globals.gridHeight/i.globals.dataPoints,A=this.barCtx.barHelpers.getZeroValueEncounters({i:r,j:n}).zeroEncounters;h=Math.abs(h);var y,S,w=l-(this.barCtx.isRangeBar?0:v)+c/2+d.height/2+m-3;!i.config.chart.stacked&&A>0&&i.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(w-=c*A);var k="start",M=i.globals.series[r][n]<0,O=a;switch(this.barCtx.isReversed&&(O=a+(M?-h:h),k=M?"start":"end"),f.position){case"center":u=M?O+h/2-b:Math.max(d.width/2,O-h/2)+b;break;case"bottom":u=M?O+h-g-b:O-h+g+b;break;case"top":u=M?O-g-b:O-g+b}var P=O;if(i.globals.seriesGroups.forEach(function(C){var _;(_=t.barCtx[C.join(",")])===null||_===void 0||_.prevX.forEach(function(I){P=M?Math.min(I[n],P):Math.max(I[n],P)})}),this.barCtx.lastActiveBarSerieIndex===o&&x.enabled){var L=new H(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:n}),p.fontSize);M?(y=P-g-b-x.offsetX,k="end"):y=P+b+x.offsetX+(this.barCtx.isReversed?-(h+g):g),S=w-d.height/2+L.height/2+x.offsetY+g,i.globals.barGroups.length>1&&(S-=i.globals.barGroups.length/2*(c/2))}return i.config.chart.stacked||(p.textAnchor==="start"?u-d.width<0?u=M?d.width+g:g:u+d.width>i.globals.gridWidth&&(u=M?i.globals.gridWidth-g:i.globals.gridWidth-d.width-g):p.textAnchor==="middle"?u-d.width/2<0?u=d.width/2+g:u+d.width/2>i.globals.gridWidth&&(u=i.globals.gridWidth-d.width/2-g):p.textAnchor==="end"&&(u<1?u=d.width+g:u+1>i.globals.gridWidth&&(u=i.globals.gridWidth-d.width-g))),{bcx:a,bcy:l,dataLabelsX:u,dataLabelsY:w,totalDataLabelsX:y,totalDataLabelsY:S,totalDataLabelsAnchor:k}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,i=e.y,a=e.val,r=e.i,n=e.j,o=e.textRects,l=e.barHeight,c=e.barWidth,h=e.dataLabelsConfig,d=this.w,u="rotate(0)";d.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(u="rotate(-90, ".concat(t,", ").concat(i,")"));var g=new Gt(this.barCtx.ctx),p=new H(this.barCtx.ctx),f=h.formatter,x=null,b=d.globals.collapsedSeriesIndices.indexOf(r)>-1;if(h.enabled&&!b){x=p.group({class:"apexcharts-data-labels",transform:u});var m="";a!==void 0&&(m=f(a,F(F({},d),{},{seriesIndex:r,dataPointIndex:n,w:d}))),!a&&d.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(m="");var v=d.globals.series[r][n]<0,A=d.config.plotOptions.bar.dataLabels.position;d.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(A==="top"&&(h.textAnchor=v?"end":"start"),A==="center"&&(h.textAnchor="middle"),A==="bottom"&&(h.textAnchor=v?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&c<p.getTextRects(m,parseFloat(h.style.fontSize)).width&&(m=""),d.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?o.width/1.6>Math.abs(c)&&(m=""):o.height/1.6>Math.abs(l)&&(m=""));var y=F({},h);this.barCtx.isHorizontal&&a<0&&(h.textAnchor==="start"?y.textAnchor="end":h.textAnchor==="end"&&(y.textAnchor="start")),g.plotDataLabelsText({x:t,y:i,text:m,i:r,j:n,parent:x,dataLabelsConfig:y,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return x}},{key:"drawTotalDataLabels",value:function(e){var t=e.x,i=e.y,a=e.val,r=e.realIndex,n=e.textAnchor,o=e.barTotalDataLabelsConfig;this.w;var l,c=new H(this.barCtx.ctx);return o.enabled&&t!==void 0&&i!==void 0&&this.barCtx.lastActiveBarSerieIndex===r&&(l=c.drawText({x:t,y:i,foreColor:o.style.color,text:a,textAnchor:n,fontFamily:o.style.fontFamily,fontSize:o.style.fontSize,fontWeight:o.style.fontWeight})),l}}]),s}(),gu=function(){function s(e){N(this,s),this.w=e.w,this.barCtx=e}return B(s,[{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.arrBorderRadius=this.createBorderRadiusArr(t.globals.series),T.isSafari()&&(this.arrBorderRadius=this.arrBorderRadius.map(function(r){return r.map(function(n){return"none"})})),this.barCtx.seriesLen===0&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],t.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(e){var t,i,a,r,n,o,l,c,h=this.w,d=h.globals.dataPoints;this.barCtx.isRangeBar&&(d=h.globals.labels.length);var u=this.barCtx.seriesLen;if(h.config.plotOptions.bar.rangeBarGroupRows&&(u=1),this.barCtx.isHorizontal)n=(a=h.globals.gridHeight/d)/u,h.globals.isXNumeric&&(n=(a=h.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),n=n*parseInt(this.barCtx.barOptions.barHeight,10)/100,String(this.barCtx.barOptions.barHeight).indexOf("%")===-1&&(n=parseInt(this.barCtx.barOptions.barHeight,10)),c=this.barCtx.baseLineInvertedY+h.globals.padHorizontal+(this.barCtx.isReversed?h.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(c=h.globals.gridWidth/2),i=(a-n*this.barCtx.seriesLen)/2;else{if(r=h.globals.gridWidth/this.barCtx.visibleItems,h.config.xaxis.convertedCatToNumeric&&(r=h.globals.gridWidth/h.globals.dataPoints),o=r/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100,h.globals.isXNumeric){var g=this.barCtx.xRatio;h.globals.minXDiff&&h.globals.minXDiff!==.5&&h.globals.minXDiff/g>0&&(r=h.globals.minXDiff/g),(o=r/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(o=1)}String(this.barCtx.barOptions.columnWidth).indexOf("%")===-1&&(o=parseInt(this.barCtx.barOptions.columnWidth,10)),l=h.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?h.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),h.globals.isXNumeric?t=this.barCtx.getBarXForNumericXAxis({x:t,j:0,realIndex:e,barWidth:o}).x:t=h.globals.padHorizontal+T.noExponents(r-o*this.barCtx.seriesLen)/2}return h.globals.barHeight=n,h.globals.barWidth=o,{x:t,y:i,yDivision:a,xDivision:r,barHeight:n,barWidth:o,zeroH:l,zeroW:c}}},{key:"initializeStackedPrevVars",value:function(e){e.w.globals.seriesGroups.forEach(function(t){e[t]||(e[t]={}),e[t].prevY=[],e[t].prevX=[],e[t].prevYF=[],e[t].prevXF=[],e[t].prevYVal=[],e[t].prevXVal=[]})}},{key:"initializeStackedXYVars",value:function(e){e.w.globals.seriesGroups.forEach(function(t){e[t]||(e[t]={}),e[t].xArrj=[],e[t].xArrjF=[],e[t].xArrjVal=[],e[t].yArrj=[],e[t].yArrjF=[],e[t].yArrjVal=[]})}},{key:"getPathFillColor",value:function(e,t,i,a){var r,n,o,l,c=this.w,h=this.barCtx.ctx.fill,d=null,u=this.barCtx.barOptions.distributed?i:t,g=!1;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(p){e[t][i]>=p.from&&e[t][i]<=p.to&&(d=p.color,g=!0)}),{color:h.fillPath({seriesNumber:this.barCtx.barOptions.distributed?u:a,dataPointIndex:i,color:d,value:e[t][i],fillConfig:(r=c.config.series[t].data[i])===null||r===void 0?void 0:r.fill,fillType:(n=c.config.series[t].data[i])!==null&&n!==void 0&&(o=n.fill)!==null&&o!==void 0&&o.type?(l=c.config.series[t].data[i])===null||l===void 0?void 0:l.fill.type:Array.isArray(c.config.fill.type)?c.config.fill.type[a]:c.config.fill.type}),useRangeColor:g}}},{key:"getStrokeWidth",value:function(e,t,i){var a=0,r=this.w;return this.barCtx.series[e][t]===void 0||this.barCtx.series[e][t]===null?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,r.config.stroke.show&&(this.barCtx.isNullValue||(a=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),a}},{key:"createBorderRadiusArr",value:function(e){var t,i=this.w,a=!this.w.config.chart.stacked||i.config.plotOptions.bar.borderRadius<=0,r=e.length,n=0|((t=e[0])===null||t===void 0?void 0:t.length),o=Array.from({length:r},function(){return Array(n).fill(a?"top":"none")});if(a)return o;for(var l=0;l<n;l++){for(var c=[],h=[],d=0,u=0;u<r;u++){var g=e[u][l];g>0?(c.push(u),d++):g<0&&(h.push(u),d++)}if(c.length>0&&h.length===0)if(c.length===1)o[c[0]][l]="both";else{var p,f=c[0],x=c[c.length-1],b=fi(c);try{for(b.s();!(p=b.n()).done;){var m=p.value;o[m][l]=m===f?"bottom":m===x?"top":"none"}}catch(E){b.e(E)}finally{b.f()}}else if(h.length>0&&c.length===0)if(h.length===1)o[h[0]][l]="both";else{var v,A=Math.max.apply(Math,h),y=Math.min.apply(Math,h),S=fi(h);try{for(S.s();!(v=S.n()).done;){var w=v.value;o[w][l]=w===A?"bottom":w===y?"top":"none"}}catch(E){S.e(E)}finally{S.f()}}else if(c.length>0&&h.length>0){var k,M=c[c.length-1],O=fi(c);try{for(O.s();!(k=O.n()).done;){var P=k.value;o[P][l]=P===M?"top":"none"}}catch(E){O.e(E)}finally{O.f()}var L,C=Math.max.apply(Math,h),_=fi(h);try{for(_.s();!(L=_.n()).done;){var I=L.value;o[I][l]=I===C?"bottom":"none"}}catch(E){_.e(E)}finally{_.f()}}else d===1&&(o[c[0]||h[0]][l]="both")}return o}},{key:"barBackground",value:function(e){var t=e.j,i=e.i,a=e.x1,r=e.x2,n=e.y1,o=e.y2,l=e.elSeries,c=this.w,h=new H(this.barCtx.ctx),d=new He(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 u=this.barCtx.barOptions.colors.backgroundBarColors[t],g=h.drawRect(a!==void 0?a:0,n!==void 0?n:0,r!==void 0?r:c.globals.gridWidth,o!==void 0?o:c.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,u,this.barCtx.barOptions.colors.backgroundBarOpacity);l.add(g),g.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,i=e.barWidth,a=e.barXPosition,r=e.y1,n=e.y2,o=e.strokeWidth,l=e.isReversed,c=e.series,h=e.seriesGroup,d=e.realIndex,u=e.i,g=e.j,p=e.w,f=new H(this.barCtx.ctx);(o=Array.isArray(o)?o[d]:o)||(o=0);var x=i,b=a;(t=p.config.series[d].data[g])!==null&&t!==void 0&&t.columnWidthOffset&&(b=a-p.config.series[d].data[g].columnWidthOffset/2,x=i+p.config.series[d].data[g].columnWidthOffset);var m=o/2,v=b+m,A=b+x-m,y=(c[u][g]>=0?1:-1)*(l?-1:1);r+=.001-m*y,n+=.001+m*y;var S=f.move(v,r),w=f.move(v,r),k=f.line(A,r);if(p.globals.previousPaths.length>0&&(w=this.barCtx.getPreviousPath(d,g,!1)),S=S+f.line(v,n)+f.line(A,n)+k+(p.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[d][g]==="both"?" Z":" z"),w=w+f.line(v,r)+k+k+k+k+k+f.line(v,r)+(p.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[d][g]==="both"?" Z":" z"),this.arrBorderRadius[d][g]!=="none"&&(S=f.roundPathCorners(S,p.config.plotOptions.bar.borderRadius)),p.config.chart.stacked){var M=this.barCtx;(M=this.barCtx[h]).yArrj.push(n-m*y),M.yArrjF.push(Math.abs(r-n+o*y)),M.yArrjVal.push(this.barCtx.series[u][g])}return{pathTo:S,pathFrom:w}}},{key:"getBarpaths",value:function(e){var t,i=e.barYPosition,a=e.barHeight,r=e.x1,n=e.x2,o=e.strokeWidth,l=e.isReversed,c=e.series,h=e.seriesGroup,d=e.realIndex,u=e.i,g=e.j,p=e.w,f=new H(this.barCtx.ctx);(o=Array.isArray(o)?o[d]:o)||(o=0);var x=i,b=a;(t=p.config.series[d].data[g])!==null&&t!==void 0&&t.barHeightOffset&&(x=i-p.config.series[d].data[g].barHeightOffset/2,b=a+p.config.series[d].data[g].barHeightOffset);var m=o/2,v=x+m,A=x+b-m,y=(c[u][g]>=0?1:-1)*(l?-1:1);r+=.001+m*y,n+=.001-m*y;var S=f.move(r,v),w=f.move(r,v);p.globals.previousPaths.length>0&&(w=this.barCtx.getPreviousPath(d,g,!1));var k=f.line(r,A);if(S=S+f.line(n,v)+f.line(n,A)+k+(p.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[d][g]==="both"?" Z":" z"),w=w+f.line(r,v)+k+k+k+k+k+f.line(r,v)+(p.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[d][g]==="both"?" Z":" z"),this.arrBorderRadius[d][g]!=="none"&&(S=f.roundPathCorners(S,p.config.plotOptions.bar.borderRadius)),p.config.chart.stacked){var M=this.barCtx;(M=this.barCtx[h]).xArrj.push(n+m*y),M.xArrjF.push(Math.abs(r-n-o*y)),M.xArrjVal.push(this.barCtx.series[u][g])}return{pathTo:S,pathFrom:w}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,i=this.w,a=0;a<t.length;a++){for(var r=0,n=0;n<t[i.globals.maxValsInArrayIndex].length;n++)r+=t[a][n];r===0&&this.barCtx.zeroSerieses.push(a)}}},{key:"getXForValue",value:function(e,t){var i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?t:null;return e!=null&&(i=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),i}},{key:"getYForValue",value:function(e,t,i){var a=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3]?t:null;return e!=null&&(a=t-e/this.barCtx.yRatio[i]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[i]:0)),a}},{key:"getGoalValues",value:function(e,t,i,a,r,n){var o=this,l=this.w,c=[],h=function(g,p){var f;c.push((oa(f={},e,e==="x"?o.getXForValue(g,t,!1):o.getYForValue(g,i,n,!1)),oa(f,"attrs",p),f))};if(l.globals.seriesGoals[a]&&l.globals.seriesGoals[a][r]&&Array.isArray(l.globals.seriesGoals[a][r])&&l.globals.seriesGoals[a][r].forEach(function(g){h(g.value,g)}),this.barCtx.barOptions.isDumbbell&&l.globals.seriesRange.length){var d=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:l.globals.colors,u={strokeHeight:e==="x"?0:l.globals.markers.size[a],strokeWidth:e==="x"?l.globals.markers.size[a]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(d[a])?d[a][0]:d[a]};h(l.globals.seriesRangeStart[a][r],u),h(l.globals.seriesRangeEnd[a][r],F(F({},u),{},{strokeColor:Array.isArray(d[a])?d[a][1]:d[a]}))}return c}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,i=e.barYPosition,a=e.goalX,r=e.goalY,n=e.barWidth,o=e.barHeight,l=new H(this.barCtx.ctx),c=l.group({className:"apexcharts-bar-goals-groups"});c.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:c.node}),c.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var h=null;return this.barCtx.isHorizontal?Array.isArray(a)&&a.forEach(function(d){if(d.x>=-1&&d.x<=l.w.globals.gridWidth+1){var u=d.attrs.strokeHeight!==void 0?d.attrs.strokeHeight:o/2,g=i+u+o/2;h=l.drawLine(d.x,g-2*u,d.x,g,d.attrs.strokeColor?d.attrs.strokeColor:void 0,d.attrs.strokeDashArray,d.attrs.strokeWidth?d.attrs.strokeWidth:2,d.attrs.strokeLineCap),c.add(h)}}):Array.isArray(r)&&r.forEach(function(d){if(d.y>=-1&&d.y<=l.w.globals.gridHeight+1){var u=d.attrs.strokeWidth!==void 0?d.attrs.strokeWidth:n/2,g=t+u+n/2;h=l.drawLine(g-2*u,d.y,g,d.y,d.attrs.strokeColor?d.attrs.strokeColor:void 0,d.attrs.strokeDashArray,d.attrs.strokeHeight?d.attrs.strokeHeight:2,d.attrs.strokeLineCap),c.add(h)}}),c}},{key:"drawBarShadow",value:function(e){var t=e.prevPaths,i=e.currPaths,a=e.color,r=this.w,n=t.x,o=t.x1,l=t.barYPosition,c=i.x,h=i.x1,d=i.barYPosition,u=l+i.barHeight,g=new H(this.barCtx.ctx),p=new T,f=g.move(o,u)+g.line(n,u)+g.line(c,d)+g.line(h,d)+g.line(o,u)+(r.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[realIndex][j]==="both"?" Z":" z");return g.drawPath({d:f,fill:p.shadeColor(.5,T.rgb2hex(a)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadow apexcharts-decoration-element"})}},{key:"getZeroValueEncounters",value:function(e){var t,i=e.i,a=e.j,r=this.w,n=0,o=0;return(r.config.plotOptions.bar.horizontal?r.globals.series.map(function(l,c){return c}):((t=r.globals.columnSeries)===null||t===void 0?void 0:t.i.map(function(l){return l}))||[]).forEach(function(l){var c=r.globals.seriesPercent[l][a];c&&n++,l<i&&c===0&&o++}),{nonZeroColumns:n,zeroEncounters:o}}},{key:"getGroupIndex",value:function(e){var t=this.w,i=t.globals.seriesGroups.findIndex(function(n){return n.indexOf(t.globals.seriesNames[e])>-1}),a=this.barCtx.columnGroupIndices,r=a.indexOf(i);return r<0&&(a.push(i),r=a.length-1),{groupIndex:i,columnGroupIndex:r}}}]),s}(),Vt=function(){function s(e,t){N(this,s),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.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&i.globals.seriesRange.length&&i.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=t,this.xyRatios!==null&&(this.xRatio=t.xRatio,this.yRatio=t.yRatio,this.invertedXRatio=t.invertedXRatio,this.invertedYRatio=t.invertedYRatio,this.baseLineY=t.baseLineY,this.baseLineInvertedY=t.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[];var a=new He(this.ctx);this.lastActiveBarSerieIndex=a.getActiveConfigSeriesIndex("desc",["bar","column"]),this.columnGroupIndices=[];var r=a.getBarSeriesIndices(),n=new ge(this.ctx);this.stackedSeriesTotals=n.getStackedSeriesTotals(this.w.config.series.map(function(o,l){return r.indexOf(l)===-1?l:-1}).filter(function(o){return o!==-1})),this.barHelpers=new gu(this)}return B(s,[{key:"draw",value:function(e,t){var i=this.w,a=new H(this.ctx),r=new ge(this.ctx,i);e=r.getLogSeries(e),this.series=e,this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var n=a.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var o=0,l=0;o<e.length;o++,l++){var c,h,d,u,g=void 0,p=void 0,f=[],x=[],b=i.globals.comboCharts?t[o]:o,m=this.barHelpers.getGroupIndex(b).columnGroupIndex,v=a.group({class:"apexcharts-series",rel:o+1,seriesName:T.escapeString(i.globals.seriesNames[b]),"data:realIndex":b});this.ctx.series.addCollapsedClassToSeries(v,b),e[o].length>0&&(this.visibleI=this.visibleI+1);var A=0,y=0;this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[b],this.translationsIndex=b);var S=this.translationsIndex;this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var w=this.barHelpers.initialPositions(b);p=w.y,A=w.barHeight,h=w.yDivision,u=w.zeroW,g=w.x,y=w.barWidth,c=w.xDivision,d=w.zeroH,this.isHorizontal||x.push(g+y/2);var k=a.group({class:"apexcharts-datalabels","data:realIndex":b});i.globals.delayedElements.push({el:k.node}),k.node.classList.add("apexcharts-element-hidden");var M=a.group({class:"apexcharts-bar-goals-markers"}),O=a.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:O.node}),O.node.classList.add("apexcharts-element-hidden");for(var P=0;P<e[o].length;P++){var L=this.barHelpers.getStrokeWidth(o,P,b),C=null,_={indexes:{i:o,j:P,realIndex:b,translationsIndex:S,bc:l},x:g,y:p,strokeWidth:L,elSeries:v};this.isHorizontal?(C=this.drawBarPaths(F(F({},_),{},{barHeight:A,zeroW:u,yDivision:h})),y=this.series[o][P]/this.invertedYRatio):(C=this.drawColumnPaths(F(F({},_),{},{xDivision:c,barWidth:y,zeroH:d})),A=this.series[o][P]/this.yRatio[S]);var I=this.barHelpers.getPathFillColor(e,o,P,b);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&P>0){var E,z=this.barHelpers.drawBarShadow({color:typeof I.color=="string"&&((E=I.color)===null||E===void 0?void 0:E.indexOf("url"))===-1?I.color:T.hexToRgba(i.globals.colors[o]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:C});O.add(z),i.config.chart.dropShadow.enabled&&new ye(this.ctx).dropShadow(z,i.config.chart.dropShadow,b)}this.pathArr.push(C);var R=this.barHelpers.drawGoalLine({barXPosition:C.barXPosition,barYPosition:C.barYPosition,goalX:C.goalX,goalY:C.goalY,barHeight:A,barWidth:y});R&&M.add(R),p=C.y,g=C.x,P>0&&x.push(g+y/2),f.push(p),this.renderSeries(F(F({realIndex:b,pathFill:I.color},I.useRangeColor?{lineFill:I.color}:{}),{},{j:P,i:o,columnGroupIndex:m,pathFrom:C.pathFrom,pathTo:C.pathTo,strokeWidth:L,elSeries:v,x:g,y:p,series:e,barHeight:Math.abs(C.barHeight?C.barHeight:A),barWidth:Math.abs(C.barWidth?C.barWidth:y),elDataLabelsWrap:k,elGoalsMarkers:M,elBarShadows:O,visibleSeries:this.visibleI,type:"bar"}))}i.globals.seriesXvalues[b]=x,i.globals.seriesYvalues[b]=f,n.add(v)}return n}},{key:"renderSeries",value:function(e){var t=e.realIndex,i=e.pathFill,a=e.lineFill,r=e.j,n=e.i,o=e.columnGroupIndex,l=e.pathFrom,c=e.pathTo,h=e.strokeWidth,d=e.elSeries,u=e.x,g=e.y,p=e.y1,f=e.y2,x=e.series,b=e.barHeight,m=e.barWidth,v=e.barXPosition,A=e.barYPosition,y=e.elDataLabelsWrap,S=e.elGoalsMarkers,w=e.elBarShadows,k=e.visibleSeries,M=e.type,O=e.classes,P=this.w,L=new H(this.ctx),C=!1;if(!a){var _=typeof P.globals.stroke.colors[t]=="function"?function(X){var D,Y=P.config.stroke.colors;return Array.isArray(Y)&&Y.length>0&&((D=Y[X])||(D=""),typeof D=="function")?D({value:P.globals.series[X][r],dataPointIndex:r,w:P}):D}(t):P.globals.stroke.colors[t];a=this.barOptions.distributed?P.globals.stroke.colors[r]:_}var I=new uu(this).handleBarDataLabels({x:u,y:g,y1:p,y2:f,i:n,j:r,series:x,realIndex:t,columnGroupIndex:o,barHeight:b,barWidth:m,barXPosition:v,barYPosition:A,visibleSeries:k});P.globals.isBarHorizontal||(I.dataLabelsPos.dataLabelsX+m<0||I.dataLabelsPos.dataLabelsX-m>P.globals.gridWidth)&&(C=!0),P.config.series[n].data[r]&&P.config.series[n].data[r].strokeColor&&(a=P.config.series[n].data[r].strokeColor),this.isNullValue&&(i="none");var E=r/P.config.chart.animations.animateGradually.delay*(P.config.chart.animations.speed/P.globals.dataPoints)/2.4;if(!C){var z=L.renderPaths({i:n,j:r,realIndex:t,pathFrom:l,pathTo:c,stroke:a,strokeWidth:h,strokeLineCap:P.config.stroke.lineCap,fill:i,animationDelay:E,initialSpeed:P.config.chart.animations.speed,dataChangeSpeed:P.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(M,"-area ").concat(O),chartType:M});z.attr("clip-path","url(#gridRectBarMask".concat(P.globals.cuid,")"));var R=P.config.forecastDataPoints;R.count>0&&r>=P.globals.dataPoints-R.count&&(z.node.setAttribute("stroke-dasharray",R.dashArray),z.node.setAttribute("stroke-width",R.strokeWidth),z.node.setAttribute("fill-opacity",R.fillOpacity)),p!==void 0&&f!==void 0&&(z.attr("data-range-y1",p),z.attr("data-range-y2",f)),new ye(this.ctx).setSelectionFilter(z,t,r),d.add(z),z.attr({cy:I.dataLabelsPos.bcy,cx:I.dataLabelsPos.bcx,j:r,val:P.globals.series[n][r],barHeight:b,barWidth:m}),I.dataLabels!==null&&y.add(I.dataLabels),I.totalDataLabels&&y.add(I.totalDataLabels),d.add(y),S&&d.add(S),w&&d.add(w)}return d}},{key:"drawBarPaths",value:function(e){var t,i=e.indexes,a=e.barHeight,r=e.strokeWidth,n=e.zeroW,o=e.x,l=e.y,c=e.yDivision,h=e.elSeries,d=this.w,u=i.i,g=i.j;if(d.globals.isXNumeric)t=(l=(d.globals.seriesX[u][g]-d.globals.minX)/this.invertedXRatio-a)+a*this.visibleI;else if(d.config.plotOptions.bar.hideZeroBarsWhenGrouped){var p=this.barHelpers.getZeroValueEncounters({i:u,j:g}),f=p.nonZeroColumns,x=p.zeroEncounters;f>0&&(a=this.seriesLen*a/f),t=l+a*this.visibleI,t-=a*x}else t=l+a*this.visibleI;this.isFunnel&&(n-=(this.barHelpers.getXForValue(this.series[u][g],n)-n)/2),o=this.barHelpers.getXForValue(this.series[u][g],n);var b=this.barHelpers.getBarpaths({barYPosition:t,barHeight:a,x1:n,x2:o,strokeWidth:r,isReversed:this.isReversed,series:this.series,realIndex:i.realIndex,i:u,j:g,w:d});return d.globals.isXNumeric||(l+=c),this.barHelpers.barBackground({j:g,i:u,y1:t-a*this.visibleI,y2:a*this.seriesLen,elSeries:h}),{pathTo:b.pathTo,pathFrom:b.pathFrom,x1:n,x:o,y:l,goalX:this.barHelpers.getGoalValues("x",n,null,u,g),barYPosition:t,barHeight:a}}},{key:"drawColumnPaths",value:function(e){var t,i=e.indexes,a=e.x,r=e.y,n=e.xDivision,o=e.barWidth,l=e.zeroH,c=e.strokeWidth,h=e.elSeries,d=this.w,u=i.realIndex,g=i.translationsIndex,p=i.i,f=i.j,x=i.bc;if(d.globals.isXNumeric){var b=this.getBarXForNumericXAxis({x:a,j:f,realIndex:u,barWidth:o});a=b.x,t=b.barXPosition}else if(d.config.plotOptions.bar.hideZeroBarsWhenGrouped){var m=this.barHelpers.getZeroValueEncounters({i:p,j:f}),v=m.nonZeroColumns,A=m.zeroEncounters;v>0&&(o=this.seriesLen*o/v),t=a+o*this.visibleI,t-=o*A}else t=a+o*this.visibleI;r=this.barHelpers.getYForValue(this.series[p][f],l,g);var y=this.barHelpers.getColumnPaths({barXPosition:t,barWidth:o,y1:l,y2:r,strokeWidth:c,isReversed:this.isReversed,series:this.series,realIndex:u,i:p,j:f,w:d});return d.globals.isXNumeric||(a+=n),this.barHelpers.barBackground({bc:x,j:f,i:p,x1:t-c/2-o*this.visibleI,x2:o*this.seriesLen+c/2,elSeries:h}),{pathTo:y.pathTo,pathFrom:y.pathFrom,x:a,y:r,goalY:this.barHelpers.getGoalValues("y",null,l,p,f,g),barXPosition:t,barWidth:o}}},{key:"getBarXForNumericXAxis",value:function(e){var t=e.x,i=e.barWidth,a=e.realIndex,r=e.j,n=this.w,o=a;return n.globals.seriesX[a].length||(o=n.globals.maxValsInArrayIndex),T.isNumber(n.globals.seriesX[o][r])&&(t=(n.globals.seriesX[o][r]-n.globals.minX)/this.xRatio-i*this.seriesLen/2),{barXPosition:t+i*this.visibleI,x:t}}},{key:"getPreviousPath",value:function(e,t){for(var i=this.w,a="M 0 0",r=0;r<i.globals.previousPaths.length;r++){var n=i.globals.previousPaths[r];n.paths&&n.paths.length>0&&parseInt(n.realIndex,10)===parseInt(e,10)&&i.globals.previousPaths[r].paths[t]!==void 0&&(a=i.globals.previousPaths[r].paths[t].d)}return a}}]),s}(),co=function(s){Oi(t,Vt);var e=Ei(t);function t(){return N(this,t),e.apply(this,arguments)}return B(t,[{key:"draw",value:function(i,a){var r=this,n=this.w;this.graphics=new H(this.ctx),this.bar=new Vt(this.ctx,this.xyRatios);var o=new ge(this.ctx,n);i=o.getLogSeries(i),this.yRatio=o.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i),n.config.chart.stackType==="100%"&&(i=n.globals.comboCharts?a.map(function(p){return n.globals.seriesPercent[p]}):n.globals.seriesPercent.slice()),this.series=i,this.barHelpers.initializeStackedPrevVars(this);for(var l=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),c=0,h=0,d=function(p,f){var x=void 0,b=void 0,m=void 0,v=void 0,A=n.globals.comboCharts?a[p]:p,y=r.barHelpers.getGroupIndex(A),S=y.groupIndex,w=y.columnGroupIndex;r.groupCtx=r[n.globals.seriesGroups[S]];var k=[],M=[],O=0;r.yRatio.length>1&&(r.yaxisIndex=n.globals.seriesYAxisReverseMap[A][0],O=A),r.isReversed=n.config.yaxis[r.yaxisIndex]&&n.config.yaxis[r.yaxisIndex].reversed;var P=r.graphics.group({class:"apexcharts-series",seriesName:T.escapeString(n.globals.seriesNames[A]),rel:p+1,"data:realIndex":A});r.ctx.series.addCollapsedClassToSeries(P,A);var L=r.graphics.group({class:"apexcharts-datalabels","data:realIndex":A}),C=r.graphics.group({class:"apexcharts-bar-goals-markers"}),_=0,I=0,E=r.initialPositions(c,h,x,b,m,v,O);h=E.y,_=E.barHeight,b=E.yDivision,v=E.zeroW,c=E.x,I=E.barWidth,x=E.xDivision,m=E.zeroH,n.globals.barHeight=_,n.globals.barWidth=I,r.barHelpers.initializeStackedXYVars(r),r.groupCtx.prevY.length===1&&r.groupCtx.prevY[0].every(function(ie){return isNaN(ie)})&&(r.groupCtx.prevY[0]=r.groupCtx.prevY[0].map(function(){return m}),r.groupCtx.prevYF[0]=r.groupCtx.prevYF[0].map(function(){return 0}));for(var z=0;z<n.globals.dataPoints;z++){var R=r.barHelpers.getStrokeWidth(p,z,A),X={indexes:{i:p,j:z,realIndex:A,translationsIndex:O,bc:f},strokeWidth:R,x:c,y:h,elSeries:P,columnGroupIndex:w,seriesGroup:n.globals.seriesGroups[S]},D=null;r.isHorizontal?(D=r.drawStackedBarPaths(F(F({},X),{},{zeroW:v,barHeight:_,yDivision:b})),I=r.series[p][z]/r.invertedYRatio):(D=r.drawStackedColumnPaths(F(F({},X),{},{xDivision:x,barWidth:I,zeroH:m})),_=r.series[p][z]/r.yRatio[O]);var Y=r.barHelpers.drawGoalLine({barXPosition:D.barXPosition,barYPosition:D.barYPosition,goalX:D.goalX,goalY:D.goalY,barHeight:_,barWidth:I});Y&&C.add(Y),h=D.y,c=D.x,k.push(c),M.push(h);var G=r.barHelpers.getPathFillColor(i,p,z,A),K="",q=n.globals.isBarHorizontal?"apexcharts-flip-x":"apexcharts-flip-y";(r.barHelpers.arrBorderRadius[A][z]==="bottom"&&n.globals.series[A][z]>0||r.barHelpers.arrBorderRadius[A][z]==="top"&&n.globals.series[A][z]<0)&&(K=q),P=r.renderSeries(F(F({realIndex:A,pathFill:G.color},G.useRangeColor?{lineFill:G.color}:{}),{},{j:z,i:p,columnGroupIndex:w,pathFrom:D.pathFrom,pathTo:D.pathTo,strokeWidth:R,elSeries:P,x:c,y:h,series:i,barHeight:_,barWidth:I,elDataLabelsWrap:L,elGoalsMarkers:C,type:"bar",visibleSeries:w,classes:K}))}n.globals.seriesXvalues[A]=k,n.globals.seriesYvalues[A]=M,r.groupCtx.prevY.push(r.groupCtx.yArrj),r.groupCtx.prevYF.push(r.groupCtx.yArrjF),r.groupCtx.prevYVal.push(r.groupCtx.yArrjVal),r.groupCtx.prevX.push(r.groupCtx.xArrj),r.groupCtx.prevXF.push(r.groupCtx.xArrjF),r.groupCtx.prevXVal.push(r.groupCtx.xArrjVal),l.add(P)},u=0,g=0;u<i.length;u++,g++)d(u,g);return l}},{key:"initialPositions",value:function(i,a,r,n,o,l,c){var h,d,u=this.w;if(this.isHorizontal){n=u.globals.gridHeight/u.globals.dataPoints;var g=u.config.plotOptions.bar.barHeight;h=String(g).indexOf("%")===-1?parseInt(g,10):n*parseInt(g,10)/100,l=u.globals.padHorizontal+(this.isReversed?u.globals.gridWidth-this.baseLineInvertedY:this.baseLineInvertedY),a=(n-h)/2}else{d=r=u.globals.gridWidth/u.globals.dataPoints;var p=u.config.plotOptions.bar.columnWidth;u.globals.isXNumeric&&u.globals.dataPoints>1?d=(r=u.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:String(p).indexOf("%")===-1?d=parseInt(p,10):d*=parseInt(p,10)/100,o=this.isReversed?this.baseLineY[c]:u.globals.gridHeight-this.baseLineY[c],i=u.globals.padHorizontal+(r-d)/2}var f=u.globals.barGroups.length||1;return{x:i,y:a,yDivision:n,xDivision:r,barHeight:h/f,barWidth:d/f,zeroH:o,zeroW:l}}},{key:"drawStackedBarPaths",value:function(i){for(var a,r=i.indexes,n=i.barHeight,o=i.strokeWidth,l=i.zeroW,c=i.x,h=i.y,d=i.columnGroupIndex,u=i.seriesGroup,g=i.yDivision,p=i.elSeries,f=this.w,x=h+d*n,b=r.i,m=r.j,v=r.realIndex,A=r.translationsIndex,y=0,S=0;S<this.groupCtx.prevXF.length;S++)y+=this.groupCtx.prevXF[S][m];var w=b;if(f.config.series[v].name&&(w=u.indexOf(f.config.series[v].name)),w>0){var k=l;this.groupCtx.prevXVal[w-1][m]<0?k=this.series[b][m]>=0?this.groupCtx.prevX[w-1][m]+y-2*(this.isReversed?y:0):this.groupCtx.prevX[w-1][m]:this.groupCtx.prevXVal[w-1][m]>=0&&(k=this.series[b][m]>=0?this.groupCtx.prevX[w-1][m]:this.groupCtx.prevX[w-1][m]-y+2*(this.isReversed?y:0)),a=k}else a=l;c=this.series[b][m]===null?a:a+this.series[b][m]/this.invertedYRatio-2*(this.isReversed?this.series[b][m]/this.invertedYRatio:0);var M=this.barHelpers.getBarpaths({barYPosition:x,barHeight:n,x1:a,x2:c,strokeWidth:o,isReversed:this.isReversed,series:this.series,realIndex:r.realIndex,seriesGroup:u,i:b,j:m,w:f});return this.barHelpers.barBackground({j:m,i:b,y1:x,y2:n,elSeries:p}),h+=g,{pathTo:M.pathTo,pathFrom:M.pathFrom,goalX:this.barHelpers.getGoalValues("x",l,null,b,m,A),barXPosition:a,barYPosition:x,x:c,y:h}}},{key:"drawStackedColumnPaths",value:function(i){var a=i.indexes,r=i.x,n=i.y,o=i.xDivision,l=i.barWidth,c=i.zeroH,h=i.columnGroupIndex,d=i.seriesGroup,u=i.elSeries,g=this.w,p=a.i,f=a.j,x=a.bc,b=a.realIndex,m=a.translationsIndex;if(g.globals.isXNumeric){var v=g.globals.seriesX[b][f];v||(v=0),r=(v-g.globals.minX)/this.xRatio-l/2*g.globals.barGroups.length}for(var A,y=r+h*l,S=0,w=0;w<this.groupCtx.prevYF.length;w++)S+=isNaN(this.groupCtx.prevYF[w][f])?0:this.groupCtx.prevYF[w][f];var k=p;if(d&&(k=d.indexOf(g.globals.seriesNames[b])),k>0&&!g.globals.isXNumeric||k>0&&g.globals.isXNumeric&&g.globals.seriesX[b-1][f]===g.globals.seriesX[b][f]){var M,O,P,L=Math.min(this.yRatio.length+1,b+1);if(this.groupCtx.prevY[k-1]!==void 0&&this.groupCtx.prevY[k-1].length)for(var C=1;C<L;C++){var _;if(!isNaN((_=this.groupCtx.prevY[k-C])===null||_===void 0?void 0:_[f])){P=this.groupCtx.prevY[k-C][f];break}}for(var I=1;I<L;I++){var E,z;if(((E=this.groupCtx.prevYVal[k-I])===null||E===void 0?void 0:E[f])<0){O=this.series[p][f]>=0?P-S+2*(this.isReversed?S:0):P;break}if(((z=this.groupCtx.prevYVal[k-I])===null||z===void 0?void 0:z[f])>=0){O=this.series[p][f]>=0?P:P+S-2*(this.isReversed?S:0);break}}O===void 0&&(O=g.globals.gridHeight),A=(M=this.groupCtx.prevYF[0])!==null&&M!==void 0&&M.every(function(X){return X===0})&&this.groupCtx.prevYF.slice(1,k).every(function(X){return X.every(function(D){return isNaN(D)})})?c:O}else A=c;n=this.series[p][f]?A-this.series[p][f]/this.yRatio[m]+2*(this.isReversed?this.series[p][f]/this.yRatio[m]:0):A;var R=this.barHelpers.getColumnPaths({barXPosition:y,barWidth:l,y1:A,y2:n,yRatio:this.yRatio[m],strokeWidth:this.strokeWidth,isReversed:this.isReversed,series:this.series,seriesGroup:d,realIndex:a.realIndex,i:p,j:f,w:g});return this.barHelpers.barBackground({bc:x,j:f,i:p,x1:y,x2:l,elSeries:u}),{pathTo:R.pathTo,pathFrom:R.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,c,p,f),barXPosition:y,x:g.globals.isXNumeric?r:r+o,y:n}}}]),t}(),Ss=function(s){Oi(t,Vt);var e=Ei(t);function t(){return N(this,t),e.apply(this,arguments)}return B(t,[{key:"draw",value:function(i,a,r){var n=this,o=this.w,l=new H(this.ctx),c=o.globals.comboCharts?a:o.config.chart.type,h=new Be(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=o.config.plotOptions.bar.horizontal,this.isOHLC=this.candlestickOptions&&this.candlestickOptions.type==="ohlc";var d=new ge(this.ctx,o);i=d.getLogSeries(i),this.series=i,this.yRatio=d.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i);for(var u=l.group({class:"apexcharts-".concat(c,"-series apexcharts-plot-series")}),g=function(f){n.isBoxPlot=o.config.chart.type==="boxPlot"||o.config.series[f].type==="boxPlot";var x,b,m,v,A=void 0,y=void 0,S=[],w=[],k=o.globals.comboCharts?r[f]:f,M=n.barHelpers.getGroupIndex(k).columnGroupIndex,O=l.group({class:"apexcharts-series",seriesName:T.escapeString(o.globals.seriesNames[k]),rel:f+1,"data:realIndex":k});n.ctx.series.addCollapsedClassToSeries(O,k),i[f].length>0&&(n.visibleI=n.visibleI+1);var P,L,C=0;n.yRatio.length>1&&(n.yaxisIndex=o.globals.seriesYAxisReverseMap[k][0],C=k);var _=n.barHelpers.initialPositions(k);y=_.y,P=_.barHeight,b=_.yDivision,v=_.zeroW,A=_.x,L=_.barWidth,x=_.xDivision,m=_.zeroH,w.push(A+L/2);for(var I=l.group({class:"apexcharts-datalabels","data:realIndex":k}),E=l.group({class:"apexcharts-bar-goals-markers"}),z=function(X){var D=n.barHelpers.getStrokeWidth(f,X,k),Y=null,G={indexes:{i:f,j:X,realIndex:k,translationsIndex:C},x:A,y,strokeWidth:D,elSeries:O};Y=n.isHorizontal?n.drawHorizontalBoxPaths(F(F({},G),{},{yDivision:b,barHeight:P,zeroW:v})):n.drawVerticalBoxPaths(F(F({},G),{},{xDivision:x,barWidth:L,zeroH:m})),y=Y.y,A=Y.x;var K=n.barHelpers.drawGoalLine({barXPosition:Y.barXPosition,barYPosition:Y.barYPosition,goalX:Y.goalX,goalY:Y.goalY,barHeight:P,barWidth:L});K&&E.add(K),X>0&&w.push(A+L/2),S.push(y),Y.pathTo.forEach(function(q,ie){var Z=!n.isBoxPlot&&n.candlestickOptions.wick.useFillColor?Y.color[ie]:o.globals.stroke.colors[f],V=h.fillPath({seriesNumber:k,dataPointIndex:X,color:Y.color[ie],value:i[f][X]});n.renderSeries({realIndex:k,pathFill:V,lineFill:Z,j:X,i:f,pathFrom:Y.pathFrom,pathTo:q,strokeWidth:D,elSeries:O,x:A,y,series:i,columnGroupIndex:M,barHeight:P,barWidth:L,elDataLabelsWrap:I,elGoalsMarkers:E,visibleSeries:n.visibleI,type:o.config.chart.type})})},R=0;R<o.globals.dataPoints;R++)z(R);o.globals.seriesXvalues[k]=w,o.globals.seriesYvalues[k]=S,u.add(O)},p=0;p<i.length;p++)g(p);return u}},{key:"drawVerticalBoxPaths",value:function(i){var a=i.indexes,r=i.x;i.y;var n=i.xDivision,o=i.barWidth,l=i.zeroH,c=i.strokeWidth,h=this.w,d=new H(this.ctx),u=a.i,g=a.j,p=h.config.plotOptions.candlestick.colors,f=this.boxOptions.colors,x=a.realIndex,b=function(R){return Array.isArray(R)?R[x]:R},m=b(p.upward),v=b(p.downward),A=this.yRatio[a.translationsIndex],y=this.getOHLCValue(x,g),S=l,w=l,k=y.o<y.c?[m]:[v];this.isBoxPlot&&(k=[b(f.lower),b(f.upper)]);var M=Math.min(y.o,y.c),O=Math.max(y.o,y.c),P=y.m;h.globals.isXNumeric&&(r=(h.globals.seriesX[x][g]-h.globals.minX)/this.xRatio-o/2);var L=r+o*this.visibleI;this.series[u][g]===void 0||this.series[u][g]===null?(M=l,O=l):(M=l-M/A,O=l-O/A,S=l-y.h/A,w=l-y.l/A,P=l-y.m/A);var C=d.move(L,l),_=d.move(L+o/2,M);if(h.globals.previousPaths.length>0&&(_=this.getPreviousPath(x,g,!0)),this.isOHLC){var I=L+o/2,E=l-y.o/A,z=l-y.c/A;C=[d.move(I,S)+d.line(I,w)+d.move(I,E)+d.line(L,E)+d.move(I,z)+d.line(L+o,z)]}else C=this.isBoxPlot?[d.move(L,M)+d.line(L+o/2,M)+d.line(L+o/2,S)+d.line(L+o/4,S)+d.line(L+o-o/4,S)+d.line(L+o/2,S)+d.line(L+o/2,M)+d.line(L+o,M)+d.line(L+o,P)+d.line(L,P)+d.line(L,M+c/2),d.move(L,P)+d.line(L+o,P)+d.line(L+o,O)+d.line(L+o/2,O)+d.line(L+o/2,w)+d.line(L+o-o/4,w)+d.line(L+o/4,w)+d.line(L+o/2,w)+d.line(L+o/2,O)+d.line(L,O)+d.line(L,P)+"z"]:[d.move(L,O)+d.line(L+o/2,O)+d.line(L+o/2,S)+d.line(L+o/2,O)+d.line(L+o,O)+d.line(L+o,M)+d.line(L+o/2,M)+d.line(L+o/2,w)+d.line(L+o/2,M)+d.line(L,M)+d.line(L,O-c/2)];return _+=d.move(L,M),h.globals.isXNumeric||(r+=n),{pathTo:C,pathFrom:_,x:r,y:O,goalY:this.barHelpers.getGoalValues("y",null,l,u,g,a.translationsIndex),barXPosition:L,color:k}}},{key:"drawHorizontalBoxPaths",value:function(i){var a=i.indexes;i.x;var r=i.y,n=i.yDivision,o=i.barHeight,l=i.zeroW,c=i.strokeWidth,h=this.w,d=new H(this.ctx),u=a.i,g=a.j,p=this.boxOptions.colors.lower;this.isBoxPlot&&(p=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var f=this.invertedYRatio,x=a.realIndex,b=this.getOHLCValue(x,g),m=l,v=l,A=Math.min(b.o,b.c),y=Math.max(b.o,b.c),S=b.m;h.globals.isXNumeric&&(r=(h.globals.seriesX[x][g]-h.globals.minX)/this.invertedXRatio-o/2);var w=r+o*this.visibleI;this.series[u][g]===void 0||this.series[u][g]===null?(A=l,y=l):(A=l+A/f,y=l+y/f,m=l+b.h/f,v=l+b.l/f,S=l+b.m/f);var k=d.move(l,w),M=d.move(A,w+o/2);return h.globals.previousPaths.length>0&&(M=this.getPreviousPath(x,g,!0)),k=[d.move(A,w)+d.line(A,w+o/2)+d.line(m,w+o/2)+d.line(m,w+o/2-o/4)+d.line(m,w+o/2+o/4)+d.line(m,w+o/2)+d.line(A,w+o/2)+d.line(A,w+o)+d.line(S,w+o)+d.line(S,w)+d.line(A+c/2,w),d.move(S,w)+d.line(S,w+o)+d.line(y,w+o)+d.line(y,w+o/2)+d.line(v,w+o/2)+d.line(v,w+o-o/4)+d.line(v,w+o/4)+d.line(v,w+o/2)+d.line(y,w+o/2)+d.line(y,w)+d.line(S,w)+"z"],M+=d.move(A,w),h.globals.isXNumeric||(r+=n),{pathTo:k,pathFrom:M,x:y,y:r,goalX:this.barHelpers.getGoalValues("x",l,null,u,g),barYPosition:w,color:p}}},{key:"getOHLCValue",value:function(i,a){var r=this.w,n=new ge(this.ctx,r),o=n.getLogValAtSeriesIndex(r.globals.seriesCandleH[i][a],i),l=n.getLogValAtSeriesIndex(r.globals.seriesCandleO[i][a],i),c=n.getLogValAtSeriesIndex(r.globals.seriesCandleM[i][a],i),h=n.getLogValAtSeriesIndex(r.globals.seriesCandleC[i][a],i),d=n.getLogValAtSeriesIndex(r.globals.seriesCandleL[i][a],i);return{o:this.isBoxPlot?o:l,h:this.isBoxPlot?l:o,m:c,l:this.isBoxPlot?h:d,c:this.isBoxPlot?d:h}}}]),t}(),el=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{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,r){a.from<=0&&(t=!0)}),t}},{key:"getShadeColor",value:function(e,t,i,a){var r=this.w,n=1,o=r.config.plotOptions[e].shadeIntensity,l=this.determineColor(e,t,i);r.globals.hasNegs||a?n=r.config.plotOptions[e].reverseNegativeShade?l.percent<0?l.percent/100*(1.25*o):(1-l.percent/100)*(1.25*o):l.percent<=0?1-(1+l.percent/100)*o:(1-l.percent/100)*o:(n=1-l.percent/100,e==="treemap"&&(n=(1-l.percent/100)*(1.25*o)));var c=l.color,h=new T;if(r.config.plotOptions[e].enableShades)if(this.w.config.theme.mode==="dark"){var d=h.shadeColor(-1*n,l.color);c=T.hexToRgba(T.isColorHex(d)?d:T.rgb2hex(d),r.config.fill.opacity)}else{var u=h.shadeColor(n,l.color);c=T.hexToRgba(T.isColorHex(u)?u:T.rgb2hex(u),r.config.fill.opacity)}return{color:c,colorProps:l}}},{key:"determineColor",value:function(e,t,i){var a=this.w,r=a.globals.series[t][i],n=a.config.plotOptions[e],o=n.colorScale.inverse?i:t;n.distributed&&a.config.chart.type==="treemap"&&(o=i);var l=a.globals.colors[o],c=null,h=Math.min.apply(Math,me(a.globals.series[t])),d=Math.max.apply(Math,me(a.globals.series[t]));n.distributed||e!=="heatmap"||(h=a.globals.minY,d=a.globals.maxY),n.colorScale.min!==void 0&&(h=n.colorScale.min<a.globals.minY?n.colorScale.min:a.globals.minY,d=n.colorScale.max>a.globals.maxY?n.colorScale.max:a.globals.maxY);var u=Math.abs(d)+Math.abs(h),g=100*r/(u===0?u-1e-6:u);return n.colorScale.ranges.length>0&&n.colorScale.ranges.map(function(p,f){if(r>=p.from&&r<=p.to){l=p.color,c=p.foreColor?p.foreColor:null,h=p.from,d=p.to;var x=Math.abs(d)+Math.abs(h);g=100*r/(x===0?x-1e-6:x)}}),{color:l,foreColor:c,percent:g}}},{key:"calculateDataLabels",value:function(e){var t=e.text,i=e.x,a=e.y,r=e.i,n=e.j,o=e.colorProps,l=e.fontSize,c=this.w.config.dataLabels,h=new H(this.ctx),d=new Gt(this.ctx),u=null;if(c.enabled){u=h.group({class:"apexcharts-data-labels"});var g=c.offsetX,p=c.offsetY,f=i+g,x=a+parseFloat(c.style.fontSize)/3+p;d.plotDataLabelsText({x:f,y:x,text:t,i:r,j:n,color:o.foreColor,parent:u,fontSize:l,dataLabelsConfig:c})}return u}},{key:"addListeners",value:function(e){var t=new H(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))}}]),s}(),fu=function(){function s(e,t){N(this,s),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 el(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return B(s,[{key:"draw",value:function(e){var t=this.w,i=new H(this.ctx),a=i.group({class:"apexcharts-heatmap"});a.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var r=t.globals.gridWidth/t.globals.dataPoints,n=t.globals.gridHeight/t.globals.series.length,o=0,l=!1;this.negRange=this.helpers.checkColorRange();var c=e.slice();t.config.yaxis[0].reversed&&(l=!0,c.reverse());for(var h=l?0:c.length-1;l?h<c.length:h>=0;l?h++:h--){var d=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:T.escapeString(t.globals.seriesNames[h]),rel:h+1,"data:realIndex":h});if(this.ctx.series.addCollapsedClassToSeries(d,h),t.config.chart.dropShadow.enabled){var u=t.config.chart.dropShadow;new ye(this.ctx).dropShadow(d,u,h)}for(var g=0,p=t.config.plotOptions.heatmap.shadeIntensity,f=0,x=0;x<t.globals.dataPoints;x++)if(t.globals.seriesX.length&&!t.globals.allSeriesHasEqualX&&t.globals.minX+t.globals.minXDiff*x<t.globals.seriesX[h][f])g+=r;else{if(f>=c[h].length)break;var b=this.helpers.getShadeColor(t.config.chart.type,h,f,this.negRange),m=b.color,v=b.colorProps;t.config.fill.type==="image"&&(m=new Be(this.ctx).fillPath({seriesNumber:h,dataPointIndex:f,opacity:t.globals.hasNegs?v.percent<0?1-(1+v.percent/100):p+v.percent/100:v.percent/100,patternID:T.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:r,height:t.config.fill.image.height?t.config.fill.image.height:n}));var A=this.rectRadius,y=i.drawRect(g,o,r,n,A);if(y.attr({cx:g,cy:o}),y.node.classList.add("apexcharts-heatmap-rect"),d.add(y),y.attr({fill:m,i:h,index:h,j:f,val:e[h][f],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?m:t.globals.stroke.colors[0],color:m}),this.helpers.addListeners(y),t.config.chart.animations.enabled&&!t.globals.dataChanged){var S=1;t.globals.resized||(S=t.config.chart.animations.speed),this.animateHeatMap(y,g,o,r,n,S)}if(t.globals.dataChanged){var w=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){w=this.dynamicAnim.speed;var k=t.globals.previousPaths[h]&&t.globals.previousPaths[h][f]&&t.globals.previousPaths[h][f].color;k||(k="rgba(255, 255, 255, 0)"),this.animateHeatColor(y,T.isColorHex(k)?k:T.rgb2hex(k),T.isColorHex(m)?m:T.rgb2hex(m),w)}}var M=(0,t.config.dataLabels.formatter)(t.globals.series[h][f],{value:t.globals.series[h][f],seriesIndex:h,dataPointIndex:f,w:t}),O=this.helpers.calculateDataLabels({text:M,x:g+r/2,y:o+n/2,i:h,j:f,colorProps:v,series:c});O!==null&&d.add(O),g+=r,f++}o+=n,a.add(d)}var P=t.globals.yAxisScale[0].result.slice();return t.config.yaxis[0].reversed?P.unshift(""):P.push(""),t.globals.yAxisScale[0].result=P,a}},{key:"animateHeatMap",value:function(e,t,i,a,r,n){var o=new $t(this.ctx);o.animateRect(e,{x:t+a/2,y:i+r/2,width:0,height:0},{x:t,y:i,width:a,height:r},n,function(){o.animationCompleted(e)})}},{key:"animateHeatColor",value:function(e,t,i,a){e.attr({fill:t}).animate(a).attr({fill:i})}}]),s}(),tl=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{key:"drawYAxisTexts",value:function(e,t,i,a){var r=this.w,n=r.config.yaxis[0],o=r.globals.yLabelFormatters[0];return new H(this.ctx).drawText({x:e+n.labels.offsetX,y:t+n.labels.offsetY,text:o(a,i),textAnchor:"middle",fontSize:n.labels.style.fontSize,fontFamily:n.labels.style.fontFamily,foreColor:Array.isArray(n.labels.style.colors)?n.labels.style.colors[i]:n.labels.style.colors})}}]),s}(),il=function(){function s(e){N(this,s),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;var i=t.config.plotOptions.pie.customScale,a=t.globals.gridWidth/2,r=t.globals.gridHeight/2;this.translateX=a-a*i,this.translateY=r-r*i,this.dataLabelsGroup=new H(this.ctx).group({class:"apexcharts-datalabels-group",transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(i,")")}),this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return B(s,[{key:"draw",value:function(e){var t=this,i=this.w,a=new H(this.ctx),r=a.group({class:"apexcharts-pie"});if(i.globals.noData)return r;for(var n=0,o=0;o<e.length;o++)n+=T.negToZero(e[o]);var l=[],c=a.group();n===0&&(n=1e-5),e.forEach(function(v){t.maxY=Math.max(t.maxY,v)}),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),i.config.grid.position==="back"&&this.chartType==="polarArea"&&this.drawPolarElements(r);for(var h=0;h<e.length;h++){var d=this.fullAngle*T.negToZero(e[h])/n;l.push(d),this.chartType==="polarArea"?(l[h]=this.fullAngle/e.length,this.sliceSizes.push(i.globals.radialSize*e[h]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var u,g=0,p=0;p<i.globals.previousPaths.length;p++)g+=T.negToZero(i.globals.previousPaths[p]);for(var f=0;f<i.globals.previousPaths.length;f++)u=this.fullAngle*T.negToZero(i.globals.previousPaths[f])/g,this.prevSectorAngleArr.push(u)}if(this.donutSize<0&&(this.donutSize=0),this.chartType==="donut"){var x=a.drawCircle(this.donutSize);x.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),c.add(x)}var b=this.drawArcs(l,e);if(this.sliceLabels.forEach(function(v){b.add(v)}),c.attr({transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),c.add(b),r.add(c),this.donutDataLabels.show){var m=this.renderInnerDataLabels(this.dataLabelsGroup,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});r.add(m)}return i.config.grid.position==="front"&&this.chartType==="polarArea"&&this.drawPolarElements(r),r}},{key:"drawArcs",value:function(e,t){var i=this.w,a=new ye(this.ctx),r=new H(this.ctx),n=new Be(this.ctx),o=r.group({class:"apexcharts-slices"}),l=this.initialAngle,c=this.initialAngle,h=this.initialAngle,d=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var u=0;u<e.length;u++){var g=r.group({class:"apexcharts-series apexcharts-pie-series",seriesName:T.escapeString(i.globals.seriesNames[u]),rel:u+1,"data:realIndex":u});o.add(g),c=d,h=(l=h)+e[u],d=c+this.prevSectorAngleArr[u];var p=h<l?this.fullAngle+h-l:h-l,f=n.fillPath({seriesNumber:u,size:this.sliceSizes[u],value:t[u]}),x=this.getChangedPath(c,d),b=r.drawPath({d:x,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[u]:this.lineColorArr,strokeWidth:0,fill:f,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(u)});if(b.attr({index:0,j:u}),a.setSelectionFilter(b,0,u),i.config.chart.dropShadow.enabled){var m=i.config.chart.dropShadow;a.dropShadow(b,m,u)}this.addListeners(b,this.donutDataLabels),H.setAttrs(b.node,{"data:angle":p,"data:startAngle":l,"data:strokeWidth":this.strokeWidth,"data:value":t[u]});var v={x:0,y:0};this.chartType==="pie"||this.chartType==="polarArea"?v=T.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(l+p/2)%this.fullAngle):this.chartType==="donut"&&(v=T.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(l+p/2)%this.fullAngle)),g.add(b);var A=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):((A=p/this.fullAngle*i.config.chart.animations.speed)===0&&(A=1),this.animDur=A+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(b,{size:this.sliceSizes[u],endAngle:h,startAngle:l,prevStartAngle:c,prevEndAngle:d,animateStartingPos:!0,i:u,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(b,{size:this.sliceSizes[u],endAngle:h,startAngle:l,i:u,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:A}),i.config.plotOptions.pie.expandOnClick&&this.chartType!=="polarArea"&&b.node.addEventListener("mouseup",this.pieClicked.bind(this,u)),i.globals.selectedDataPoints[0]!==void 0&&i.globals.selectedDataPoints[0].indexOf(u)>-1&&this.pieClicked(u),i.config.dataLabels.enabled){var y=v.x,S=v.y,w=100*p/this.fullAngle+"%";if(p!==0&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[u]){var k=i.config.dataLabels.formatter;k!==void 0&&(w=k(i.globals.seriesPercent[u][0],{seriesIndex:u,w:i}));var M=i.globals.dataLabels.style.colors[u],O=r.group({class:"apexcharts-datalabels"}),P=r.drawText({x:y,y:S,text:w,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:M});if(O.add(P),i.config.dataLabels.dropShadow.enabled){var L=i.config.dataLabels.dropShadow;a.dropShadow(P,L)}P.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&i.globals.resized===!1&&(P.node.classList.add("apexcharts-pie-label-delay"),P.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(O)}}}return o}},{key:"addListeners",value:function(e,t){var i=new H(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,r=a,n=t.startAngle,o=t.startAngle;t.prevStartAngle!==void 0&&t.prevEndAngle!==void 0&&(n=t.prevEndAngle,r=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===i.config.series.length-1&&(a+o>this.fullAngle?t.endAngle=t.endAngle-(a+o):a+o<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(a+o)))),a===this.fullAngle&&(a=this.fullAngle-.01),this.animateArc(e,n,o,a,r,t)}},{key:"animateArc",value:function(e,t,i,a,r,n){var o,l=this,c=this.w,h=new $t(this.ctx),d=n.size;(isNaN(t)||isNaN(r))&&(t=i,r=a,n.dur=0);var u=a,g=i,p=t<i?this.fullAngle+t-i:t-i;c.globals.dataChanged&&n.shouldSetPrevPaths&&n.prevEndAngle&&(o=l.getPiePath({me:l,startAngle:n.prevStartAngle,angle:n.prevEndAngle<n.prevStartAngle?this.fullAngle+n.prevEndAngle-n.prevStartAngle:n.prevEndAngle-n.prevStartAngle,size:d}),e.attr({d:o})),n.dur!==0?e.animate(n.dur,n.animBeginArr[n.i]).after(function(){l.chartType!=="pie"&&l.chartType!=="donut"&&l.chartType!=="polarArea"||this.animate(c.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":l.strokeWidth}),n.i===c.config.series.length-1&&h.animationCompleted(e)}).during(function(f){u=p+(a-p)*f,n.animateStartingPos&&(u=r+(a-r)*f,g=t-r+(i-(t-r))*f),o=l.getPiePath({me:l,startAngle:g,angle:u,size:d}),e.node.setAttribute("data:pathOrig",o),e.attr({d:o})}):(o=l.getPiePath({me:l,startAngle:g,angle:a,size:d}),n.isTrack||(c.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",o),e.attr({d:o,"stroke-width":l.strokeWidth}))}},{key:"pieClicked",value:function(e){var t,i=this.w,a=this,r=a.sliceSizes[e]+(i.config.plotOptions.pie.expandOnClick?4:0),n=i.globals.dom.Paper.findOne(".apexcharts-".concat(a.chartType.toLowerCase(),"-slice-").concat(e));if(n.attr("data:pieClicked")!=="true"){var o=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(o,function(d){d.setAttribute("data:pieClicked","false");var u=d.getAttribute("data:pathOrig");u&&d.setAttribute("d",u)}),i.globals.capturedDataPointIndex=e,n.attr("data:pieClicked","true");var l=parseInt(n.attr("data:startAngle"),10),c=parseInt(n.attr("data:angle"),10);t=a.getPiePath({me:a,startAngle:l,angle:c,size:r}),c!==360&&n.plot(t)}else{n.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(n.node,this.donutDataLabels);var h=n.attr("data:pathOrig");n.attr({d:h})}}},{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,i=e.me,a=e.startAngle,r=e.angle,n=e.size,o=new H(this.ctx),l=a,c=Math.PI*(l-90)/180,h=r+a;Math.ceil(h)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(h=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(h)>this.fullAngle&&(h-=this.fullAngle);var d=Math.PI*(h-90)/180,u=i.centerX+n*Math.cos(c),g=i.centerY+n*Math.sin(c),p=i.centerX+n*Math.cos(d),f=i.centerY+n*Math.sin(d),x=T.polarToCartesian(i.centerX,i.centerY,i.donutSize,h),b=T.polarToCartesian(i.centerX,i.centerY,i.donutSize,l),m=r>180?1:0,v=["M",u,g,"A",n,n,0,m,1,p,f];return t=i.chartType==="donut"?[].concat(v,["L",x.x,x.y,"A",i.donutSize,i.donutSize,0,m,0,b.x,b.y,"L",u,g,"z"]).join(" "):i.chartType==="pie"||i.chartType==="polarArea"?[].concat(v,["L",i.centerX,i.centerY,"L",u,g]).join(" "):[].concat(v).join(" "),o.roundPathCorners(t,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(e){var t=this.w,i=new qo(this.ctx),a=new H(this.ctx),r=new tl(this.ctx),n=a.group(),o=a.group(),l=i.niceScale(0,Math.ceil(this.maxY),0),c=l.result.reverse(),h=l.result.length;this.maxY=l.niceMax;for(var d=t.globals.radialSize,u=d/(h-1),g=0;g<h-1;g++){var p=a.drawCircle(d);if(p.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=r.drawYAxisTexts(this.centerX,this.centerY-d+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,g,c[g]);o.add(f)}n.add(p),d-=u}this.drawSpokes(e),e.add(n),e.add(o)}},{key:"renderInnerDataLabels",value:function(e,t,i){var a=this.w,r=new H(this.ctx),n=t.total.show;e.node.innerHTML="",e.node.style.opacity=i.opacity;var o,l,c=i.centerX,h=this.donutDataLabels.total.label?i.centerY:i.centerY-i.centerY/6;o=t.name.color===void 0?a.globals.colors[0]:t.name.color;var d=t.name.fontSize,u=t.name.fontFamily,g=t.name.fontWeight;l=t.value.color===void 0?a.config.chart.foreColor:t.value.color;var p=t.value.formatter,f="",x="";if(n?(o=t.total.color,d=t.total.fontSize,u=t.total.fontFamily,g=t.total.fontWeight,x=this.donutDataLabels.total.label?t.total.label:"",f=t.total.formatter(a)):a.globals.series.length===1&&(f=p(a.globals.series[0],a),x=a.globals.seriesNames[0]),x&&(x=t.name.formatter(x,t.total.show,a)),t.name.show){var b=r.drawText({x:c,y:h+parseFloat(t.name.offsetY),text:x,textAnchor:"middle",foreColor:o,fontSize:d,fontWeight:g,fontFamily:u});b.node.classList.add("apexcharts-datalabel-label"),e.add(b)}if(t.value.show){var m=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,v=r.drawText({x:c,y:h+m,text:f,textAnchor:"middle",foreColor:l,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});v.node.classList.add("apexcharts-datalabel-value"),e.add(v)}return e}},{key:"printInnerLabels",value:function(e,t,i,a){var r,n=this.w;a?r=e.name.color===void 0?n.globals.colors[parseInt(a.parentNode.getAttribute("rel"),10)-1]:e.name.color:n.globals.series.length>1&&e.total.show&&(r=e.total.color);var o=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),l=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,e.value.formatter)(i,n),a||typeof e.total.formatter!="function"||(i=e.total.formatter(n));var c=t===e.total.label;t=this.donutDataLabels.total.label?e.name.formatter(t,c,n):"",o!==null&&(o.textContent=t),l!==null&&(l.textContent=i),o!==null&&(o.style.fill=r)}},{key:"printDataLabelsInner",value:function(e,t){var i=this.w,a=e.getAttribute("data:value"),r=i.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(t,r,a,e);var n=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");n!==null&&(n.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,i=this.w,a=new H(this.ctx),r=i.config.plotOptions.polarArea.spokes;if(r.strokeWidth!==0){for(var n=[],o=360/i.globals.series.length,l=0;l<i.globals.series.length;l++)n.push(T.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+o*l));n.forEach(function(c,h){var d=a.drawLine(c.x,c.y,t.centerX,t.centerY,Array.isArray(r.connectorColors)?r.connectorColors[h]:r.connectorColors);e.add(d)})}}},{key:"revertDataLabelsInner",value:function(){var e=this.w;if(this.donutDataLabels.show){var t=e.globals.dom.Paper.findOne(".apexcharts-datalabels-group"),i=this.renderInnerDataLabels(t,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});e.globals.dom.Paper.findOne(".apexcharts-radialbar, .apexcharts-pie").add(i)}}}]),s}(),pu=function(){function s(e){N(this,s),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 H(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:t.globals.gridWidth,this.isLog=t.config.yaxis[0].logarithmic,this.logBase=t.config.yaxis[0].logBase,this.coreUtils=new ge(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(this.logBase,t.globals.maxY,0):t.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.logBase,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 B(s,[{key:"draw",value:function(e){var t=this,i=this.w,a=new Be(this.ctx),r=[],n=new Gt(this.ctx);e.length&&(this.dataPointsLen=e[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var o=i.globals.gridWidth/2,l=i.globals.gridHeight/2,c=o+i.config.plotOptions.radar.offsetX,h=l+i.config.plotOptions.radar.offsetY,d=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(c||0,", ").concat(h||0,")")}),u=[],g=null,p=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach(function(x,b){var m=x.length===i.globals.dataPoints,v=t.graphics.group().attr({class:"apexcharts-series","data:longestSeries":m,seriesName:T.escapeString(i.globals.seriesNames[b]),rel:b+1,"data:realIndex":b});t.dataRadiusOfPercent[b]=[],t.dataRadius[b]=[],t.angleArr[b]=[],x.forEach(function(C,_){var I=Math.abs(t.maxValue-t.minValue);C-=t.minValue,t.isLog&&(C=t.coreUtils.getLogVal(t.logBase,C,0)),t.dataRadiusOfPercent[b][_]=C/I,t.dataRadius[b][_]=t.dataRadiusOfPercent[b][_]*t.size,t.angleArr[b][_]=_*t.disAngle}),u=t.getDataPointsPos(t.dataRadius[b],t.angleArr[b]);var A=t.createPaths(u,{x:0,y:0});g=t.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),p=t.graphics.group({class:"apexcharts-datalabels","data:realIndex":b}),i.globals.delayedElements.push({el:g.node,index:b});var y={i:b,realIndex:b,animationDelay:b,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[b],strokeLineCap:i.config.stroke.lineCap},S=null;i.globals.previousPaths.length>0&&(S=t.getPreviousPath(b));for(var w=0;w<A.linePathsTo.length;w++){var k=t.graphics.renderPaths(F(F({},y),{},{pathFrom:S===null?A.linePathsFrom[w]:S,pathTo:A.linePathsTo[w],strokeWidth:Array.isArray(t.strokeWidth)?t.strokeWidth[b]:t.strokeWidth,fill:"none",drawShadow:!1}));v.add(k);var M=a.fillPath({seriesNumber:b}),O=t.graphics.renderPaths(F(F({},y),{},{pathFrom:S===null?A.areaPathsFrom[w]:S,pathTo:A.areaPathsTo[w],strokeWidth:0,fill:M,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var P=new ye(t.ctx),L=i.config.chart.dropShadow;P.dropShadow(O,Object.assign({},L,{noUserSpaceOnUse:!0}),b)}v.add(O)}x.forEach(function(C,_){var I=new Kt(t.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:b,dataPointIndex:_}),E=t.graphics.drawMarker(u[_].x,u[_].y,I);E.attr("rel",_),E.attr("j",_),E.attr("index",b),E.node.setAttribute("default-marker-size",I.pSize);var z=t.graphics.group({class:"apexcharts-series-markers"});z&&z.add(E),g.add(z),v.add(g);var R=i.config.dataLabels;if(R.enabled){var X=R.formatter(i.globals.series[b][_],{seriesIndex:b,dataPointIndex:_,w:i});n.plotDataLabelsText({x:u[_].x,y:u[_].y,text:X,textAnchor:"middle",i:b,j:b,parent:p,offsetCorrection:!1,dataLabelsConfig:F({},R)})}v.add(p)}),r.push(v)}),this.drawPolygons({parent:d}),i.config.xaxis.labels.show){var f=this.drawXAxisTexts();d.add(f)}return r.forEach(function(x){d.add(x)}),d.add(this.yaxisLabels),d}},{key:"drawPolygons",value:function(e){for(var t=this,i=this.w,a=e.parent,r=new tl(this.ctx),n=i.globals.yAxisScale[0].result.reverse(),o=n.length,l=[],c=this.size/(o-1),h=0;h<o;h++)l[h]=c*h;l.reverse();var d=[],u=[];l.forEach(function(g,p){var f=T.getPolygonPos(g,t.dataPointsLen),x="";f.forEach(function(b,m){if(p===0){var v=t.graphics.drawLine(b.x,b.y,0,0,Array.isArray(t.polygons.connectorColors)?t.polygons.connectorColors[m]:t.polygons.connectorColors);u.push(v)}m===0&&t.yaxisLabelsTextsPos.push({x:b.x,y:b.y}),x+=b.x+","+b.y+" "}),d.push(x)}),d.forEach(function(g,p){var f=t.polygons.strokeColors,x=t.polygons.strokeWidth,b=t.graphics.drawPolygon(g,Array.isArray(f)?f[p]:f,Array.isArray(x)?x[p]:x,i.globals.radarPolygons.fill.colors[p]);a.add(b)}),u.forEach(function(g){a.add(g)}),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(g,p){var f=r.drawYAxisTexts(g.x,g.y,p,n[p]);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"}),r=T.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach(function(n,o){var l=t.config.xaxis.labels.formatter,c=new Gt(e.ctx);if(r[o]){var h=e.getTextPos(r[o],e.size),d=l(n,{seriesIndex:-1,dataPointIndex:o,w:t});c.plotDataLabelsText({x:h.newX,y:h.newY,text:d,textAnchor:h.textAnchor,i:o,j:o,parent:a,className:"apexcharts-xaxis-label",color:Array.isArray(i.style.colors)&&i.style.colors[o]?i.style.colors[o]:"#a8a8a8",dataLabelsConfig:F({textAnchor:h.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1}).on("click",function(u){if(typeof t.config.chart.events.xAxisLabelClick=="function"){var g=Object.assign({},t,{labelIndex:o});t.config.chart.events.xAxisLabelClick(u,e.ctx,g)}})}}),a}},{key:"createPaths",value:function(e,t){var i=this,a=[],r=[],n=[],o=[];if(e.length){r=[this.graphics.move(t.x,t.y)],o=[this.graphics.move(t.x,t.y)];var l=this.graphics.move(e[0].x,e[0].y),c=this.graphics.move(e[0].x,e[0].y);e.forEach(function(h,d){l+=i.graphics.line(h.x,h.y),c+=i.graphics.line(h.x,h.y),d===e.length-1&&(l+="Z",c+="Z")}),a.push(l),n.push(c)}return{linePathsFrom:r,linePathsTo:a,areaPathsFrom:o,areaPathsTo:n}}},{key:"getTextPos",value:function(e,t){var i="middle",a=e.x,r=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?r-=10:e.y>0&&(r+=10)),{textAnchor:i,newX:a,newY:r}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,i=null,a=0;a<t.globals.previousPaths.length;a++){var r=t.globals.previousPaths[a];r.paths.length>0&&parseInt(r.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=[],r=0;r<i;r++){var n={};n.x=e[r]*Math.sin(t[r]),n.y=-e[r]*Math.cos(t[r]),a.push(n)}return a}}]),s}(),xu=function(s){Oi(t,il);var e=Ei(t);function t(i){var a;N(this,t),(a=e.call(this,i)).ctx=i,a.w=i.w,a.animBeginArr=[0],a.animDur=0;var r=a.w;return a.startAngle=r.config.plotOptions.radialBar.startAngle,a.endAngle=r.config.plotOptions.radialBar.endAngle,a.totalAngle=Math.abs(r.config.plotOptions.radialBar.endAngle-r.config.plotOptions.radialBar.startAngle),a.trackStartAngle=r.config.plotOptions.radialBar.track.startAngle,a.trackEndAngle=r.config.plotOptions.radialBar.track.endAngle,a.barLabels=a.w.config.plotOptions.radialBar.barLabels,a.donutDataLabels=a.w.config.plotOptions.radialBar.dataLabels,a.radialDataLabels=a.donutDataLabels,a.trackStartAngle||(a.trackStartAngle=a.startAngle),a.trackEndAngle||(a.trackEndAngle=a.endAngle),a.endAngle===360&&(a.endAngle=359.99),a.margin=parseInt(r.config.plotOptions.radialBar.track.margin,10),a.onBarLabelClick=a.onBarLabelClick.bind(bo(a)),a}return B(t,[{key:"draw",value:function(i){var a=this.w,r=new H(this.ctx),n=r.group({class:"apexcharts-radialbar"});if(a.globals.noData)return n;var o=r.group(),l=this.defaultSize/2,c=a.globals.gridWidth/2,h=this.defaultSize/2.05;a.config.chart.sparkline.enabled||(h=h-a.config.stroke.width-a.config.chart.dropShadow.blur);var d=a.globals.fill.colors;if(a.config.plotOptions.radialBar.track.show){var u=this.drawTracks({size:h,centerX:c,centerY:l,colorArr:d,series:i});o.add(u)}var g=this.drawArcs({size:h,centerX:c,centerY:l,colorArr:d,series:i}),p=360;a.config.plotOptions.radialBar.startAngle<0&&(p=this.totalAngle);var f=(360-p)/360;if(a.globals.radialSize=h-h*f,this.radialDataLabels.value.show){var x=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);a.globals.radialSize+=x*f}return o.add(g.g),a.config.plotOptions.radialBar.hollow.position==="front"&&(g.g.add(g.elHollow),g.dataLabels&&g.g.add(g.dataLabels)),n.add(o),n}},{key:"drawTracks",value:function(i){var a=this.w,r=new H(this.ctx),n=r.group({class:"apexcharts-tracks"}),o=new ye(this.ctx),l=new Be(this.ctx),c=this.getStrokeWidth(i);i.size=i.size-c/2;for(var h=0;h<i.series.length;h++){var d=r.group({class:"apexcharts-radialbar-track apexcharts-track"});n.add(d),d.attr({rel:h+1}),i.size=i.size-c-this.margin;var u=a.config.plotOptions.radialBar.track,g=l.fillPath({seriesNumber:0,size:i.size,fillColors:Array.isArray(u.background)?u.background[h]:u.background,solid:!0}),p=this.trackStartAngle,f=this.trackEndAngle;Math.abs(f)+Math.abs(p)>=360&&(f=360-Math.abs(this.startAngle)-.1);var x=r.drawPath({d:"",stroke:g,strokeWidth:c*parseInt(u.strokeWidth,10)/100,fill:"none",strokeOpacity:u.opacity,classes:"apexcharts-radialbar-area"});if(u.dropShadow.enabled){var b=u.dropShadow;o.dropShadow(x,b)}d.add(x),x.attr("id","apexcharts-radialbarTrack-"+h),this.animatePaths(x,{centerX:i.centerX,centerY:i.centerY,endAngle:f,startAngle:p,size:i.size,i:h,totalItems:2,animBeginArr:0,dur:0,isTrack:!0})}return n}},{key:"drawArcs",value:function(i){var a=this.w,r=new H(this.ctx),n=new Be(this.ctx),o=new ye(this.ctx),l=r.group(),c=this.getStrokeWidth(i);i.size=i.size-c/2;var h=a.config.plotOptions.radialBar.hollow.background,d=i.size-c*i.series.length-this.margin*i.series.length-c*parseInt(a.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,u=d-a.config.plotOptions.radialBar.hollow.margin;a.config.plotOptions.radialBar.hollow.image!==void 0&&(h=this.drawHollowImage(i,l,d,h));var g=this.drawHollow({size:u,centerX:i.centerX,centerY:i.centerY,fill:h||"transparent"});if(a.config.plotOptions.radialBar.hollow.dropShadow.enabled){var p=a.config.plotOptions.radialBar.hollow.dropShadow;o.dropShadow(g,p)}var f=1;!this.radialDataLabels.total.show&&a.globals.series.length>1&&(f=0);var x=null;if(this.radialDataLabels.show){var b=a.globals.dom.Paper.findOne(".apexcharts-datalabels-group");x=this.renderInnerDataLabels(b,this.radialDataLabels,{hollowSize:d,centerX:i.centerX,centerY:i.centerY,opacity:f})}a.config.plotOptions.radialBar.hollow.position==="back"&&(l.add(g),x&&l.add(x));var m=!1;a.config.plotOptions.radialBar.inverseOrder&&(m=!0);for(var v=m?i.series.length-1:0;m?v>=0:v<i.series.length;m?v--:v++){var A=r.group({class:"apexcharts-series apexcharts-radial-series",seriesName:T.escapeString(a.globals.seriesNames[v])});l.add(A),A.attr({rel:v+1,"data:realIndex":v}),this.ctx.series.addCollapsedClassToSeries(A,v),i.size=i.size-c-this.margin;var y=n.fillPath({seriesNumber:v,size:i.size,value:i.series[v]}),S=this.startAngle,w=void 0,k=T.negToZero(i.series[v]>100?100:i.series[v])/100,M=Math.round(this.totalAngle*k)+this.startAngle,O=void 0;a.globals.dataChanged&&(w=this.startAngle,O=Math.round(this.totalAngle*T.negToZero(a.globals.previousPaths[v])/100)+w),Math.abs(M)+Math.abs(S)>360&&(M-=.01),Math.abs(O)+Math.abs(w)>360&&(O-=.01);var P=M-S,L=Array.isArray(a.config.stroke.dashArray)?a.config.stroke.dashArray[v]:a.config.stroke.dashArray,C=r.drawPath({d:"",stroke:y,strokeWidth:c,fill:"none",fillOpacity:a.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+v,strokeDashArray:L});if(H.setAttrs(C.node,{"data:angle":P,"data:value":i.series[v]}),a.config.chart.dropShadow.enabled){var _=a.config.chart.dropShadow;o.dropShadow(C,_,v)}if(o.setSelectionFilter(C,0,v),this.addListeners(C,this.radialDataLabels),A.add(C),C.attr({index:0,j:v}),this.barLabels.enabled){var I=T.polarToCartesian(i.centerX,i.centerY,i.size,S),E=this.barLabels.formatter(a.globals.seriesNames[v],{seriesIndex:v,w:a}),z=["apexcharts-radialbar-label"];this.barLabels.onClick||z.push("apexcharts-no-click");var R=this.barLabels.useSeriesColors?a.globals.colors[v]:a.config.chart.foreColor;R||(R=a.config.chart.foreColor);var X=I.x+this.barLabels.offsetX,D=I.y+this.barLabels.offsetY,Y=r.drawText({x:X,y:D,text:E,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:R,cssClass:z.join(" ")});Y.on("click",this.onBarLabelClick),Y.attr({rel:v+1}),S!==0&&Y.attr({"transform-origin":"".concat(X," ").concat(D),transform:"rotate(".concat(S," 0 0)")}),A.add(Y)}var G=0;!this.initialAnim||a.globals.resized||a.globals.dataChanged||(G=a.config.chart.animations.speed),a.globals.dataChanged&&(G=a.config.chart.animations.dynamicAnimation.speed),this.animDur=G/(1.2*i.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(C,{centerX:i.centerX,centerY:i.centerY,endAngle:M,startAngle:S,prevEndAngle:O,prevStartAngle:w,size:i.size,i:v,totalItems:2,animBeginArr:this.animBeginArr,dur:G,shouldSetPrevPaths:!0})}return{g:l,elHollow:g,dataLabels:x}}},{key:"drawHollow",value:function(i){var a=new H(this.ctx).drawCircle(2*i.size);return a.attr({class:"apexcharts-radialbar-hollow",cx:i.centerX,cy:i.centerY,r:i.size,fill:i.fill}),a}},{key:"drawHollowImage",value:function(i,a,r,n){var o=this.w,l=new Be(this.ctx),c=T.randomId(),h=o.config.plotOptions.radialBar.hollow.image;if(o.config.plotOptions.radialBar.hollow.imageClipped)l.clippedImgArea({width:r,height:r,image:h,patternID:"pattern".concat(o.globals.cuid).concat(c)}),n="url(#pattern".concat(o.globals.cuid).concat(c,")");else{var d=o.config.plotOptions.radialBar.hollow.imageWidth,u=o.config.plotOptions.radialBar.hollow.imageHeight;if(d===void 0&&u===void 0){var g=o.globals.dom.Paper.image(h,function(f){this.move(i.centerX-f.width/2+o.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-f.height/2+o.config.plotOptions.radialBar.hollow.imageOffsetY)});a.add(g)}else{var p=o.globals.dom.Paper.image(h,function(f){this.move(i.centerX-d/2+o.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-u/2+o.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(d,u)});a.add(p)}}return n}},{key:"getStrokeWidth",value:function(i){var a=this.w;return i.size*(100-parseInt(a.config.plotOptions.radialBar.hollow.size,10))/100/(i.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(i){var a=parseInt(i.target.getAttribute("rel"),10)-1,r=this.barLabels.onClick,n=this.w;r&&r(n.globals.seriesNames[a],{w:n,seriesIndex:a})}}]),t}(),bu=function(s){Oi(t,Vt);var e=Ei(t);function t(){return N(this,t),e.apply(this,arguments)}return B(t,[{key:"draw",value:function(i,a){var r=this.w,n=new H(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=i,this.seriesRangeStart=r.globals.seriesRangeStart,this.seriesRangeEnd=r.globals.seriesRangeEnd,this.barHelpers.initVariables(i);for(var o=n.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),l=0;l<i.length;l++){var c,h,d,u,g=void 0,p=void 0,f=r.globals.comboCharts?a[l]:l,x=this.barHelpers.getGroupIndex(f).columnGroupIndex,b=n.group({class:"apexcharts-series",seriesName:T.escapeString(r.globals.seriesNames[f]),rel:l+1,"data:realIndex":f});this.ctx.series.addCollapsedClassToSeries(b,f),i[l].length>0&&(this.visibleI=this.visibleI+1);var m=0,v=0,A=0;this.yRatio.length>1&&(this.yaxisIndex=r.globals.seriesYAxisReverseMap[f][0],A=f);var y=this.barHelpers.initialPositions(f);p=y.y,u=y.zeroW,g=y.x,v=y.barWidth,m=y.barHeight,c=y.xDivision,h=y.yDivision,d=y.zeroH;for(var S=n.group({class:"apexcharts-datalabels","data:realIndex":f}),w=n.group({class:"apexcharts-rangebar-goals-markers"}),k=0;k<r.globals.dataPoints;k++){var M=this.barHelpers.getStrokeWidth(l,k,f),O=this.seriesRangeStart[l][k],P=this.seriesRangeEnd[l][k],L=null,C=null,_=null,I={x:g,y:p,strokeWidth:M,elSeries:b},E=this.seriesLen;if(r.config.plotOptions.bar.rangeBarGroupRows&&(E=1),r.config.series[l].data[k]===void 0)break;if(this.isHorizontal){_=p+m*this.visibleI;var z=(h-m*E)/2;if(r.config.series[l].data[k].x){var R=this.detectOverlappingBars({i:l,j:k,barYPosition:_,srty:z,barHeight:m,yDivision:h,initPositions:y});m=R.barHeight,_=R.barYPosition}v=(L=this.drawRangeBarPaths(F({indexes:{i:l,j:k,realIndex:f},barHeight:m,barYPosition:_,zeroW:u,yDivision:h,y1:O,y2:P},I))).barWidth}else{r.globals.isXNumeric&&(g=(r.globals.seriesX[l][k]-r.globals.minX)/this.xRatio-v/2),C=g+v*this.visibleI;var X=(c-v*E)/2;if(r.config.series[l].data[k].x){var D=this.detectOverlappingBars({i:l,j:k,barXPosition:C,srtx:X,barWidth:v,xDivision:c,initPositions:y});v=D.barWidth,C=D.barXPosition}m=(L=this.drawRangeColumnPaths(F({indexes:{i:l,j:k,realIndex:f,translationsIndex:A},barWidth:v,barXPosition:C,zeroH:d,xDivision:c},I))).barHeight}var Y=this.barHelpers.drawGoalLine({barXPosition:L.barXPosition,barYPosition:_,goalX:L.goalX,goalY:L.goalY,barHeight:m,barWidth:v});Y&&w.add(Y),p=L.y,g=L.x;var G=this.barHelpers.getPathFillColor(i,l,k,f);this.renderSeries({realIndex:f,pathFill:G.color,lineFill:G.useRangeColor?G.color:r.globals.stroke.colors[f],j:k,i:l,x:g,y:p,y1:O,y2:P,pathFrom:L.pathFrom,pathTo:L.pathTo,strokeWidth:M,elSeries:b,series:i,barHeight:m,barWidth:v,barXPosition:C,barYPosition:_,columnGroupIndex:x,elDataLabelsWrap:S,elGoalsMarkers:w,visibleSeries:this.visibleI,type:"rangebar"})}o.add(b)}return o}},{key:"detectOverlappingBars",value:function(i){var a=i.i,r=i.j,n=i.barYPosition,o=i.barXPosition,l=i.srty,c=i.srtx,h=i.barHeight,d=i.barWidth,u=i.yDivision,g=i.xDivision,p=i.initPositions,f=this.w,x=[],b=f.config.series[a].data[r].rangeName,m=f.config.series[a].data[r].x,v=Array.isArray(m)?m.join(" "):m,A=f.globals.labels.map(function(S){return Array.isArray(S)?S.join(" "):S}).indexOf(v),y=f.globals.seriesRange[a].findIndex(function(S){return S.x===v&&S.overlaps.length>0});return this.isHorizontal?(n=f.config.plotOptions.bar.rangeBarGroupRows?l+u*A:l+h*this.visibleI+u*A,y>-1&&!f.config.plotOptions.bar.rangeBarOverlap&&(x=f.globals.seriesRange[a][y].overlaps).indexOf(b)>-1&&(n=(h=p.barHeight/x.length)*this.visibleI+u*(100-parseInt(this.barOptions.barHeight,10))/100/2+h*(this.visibleI+x.indexOf(b))+u*A)):(A>-1&&!f.globals.timescaleLabels.length&&(o=f.config.plotOptions.bar.rangeBarGroupRows?c+g*A:c+d*this.visibleI+g*A),y>-1&&!f.config.plotOptions.bar.rangeBarOverlap&&(x=f.globals.seriesRange[a][y].overlaps).indexOf(b)>-1&&(o=(d=p.barWidth/x.length)*this.visibleI+g*(100-parseInt(this.barOptions.barWidth,10))/100/2+d*(this.visibleI+x.indexOf(b))+g*A)),{barYPosition:n,barXPosition:o,barHeight:h,barWidth:d}}},{key:"drawRangeColumnPaths",value:function(i){var a=i.indexes,r=i.x,n=i.xDivision,o=i.barWidth,l=i.barXPosition,c=i.zeroH,h=this.w,d=a.i,u=a.j,g=a.realIndex,p=a.translationsIndex,f=this.yRatio[p],x=this.getRangeValue(g,u),b=Math.min(x.start,x.end),m=Math.max(x.start,x.end);this.series[d][u]===void 0||this.series[d][u]===null?b=c:(b=c-b/f,m=c-m/f);var v=Math.abs(m-b),A=this.barHelpers.getColumnPaths({barXPosition:l,barWidth:o,y1:b,y2:m,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:g,i:g,j:u,w:h});if(h.globals.isXNumeric){var y=this.getBarXForNumericXAxis({x:r,j:u,realIndex:g,barWidth:o});r=y.x,l=y.barXPosition}else r+=n;return{pathTo:A.pathTo,pathFrom:A.pathFrom,barHeight:v,x:r,y:x.start<0&&x.end<0?b:m,goalY:this.barHelpers.getGoalValues("y",null,c,d,u,p),barXPosition:l}}},{key:"preventBarOverflow",value:function(i){var a=this.w;return i<0&&(i=0),i>a.globals.gridWidth&&(i=a.globals.gridWidth),i}},{key:"drawRangeBarPaths",value:function(i){var a=i.indexes,r=i.y,n=i.y1,o=i.y2,l=i.yDivision,c=i.barHeight,h=i.barYPosition,d=i.zeroW,u=this.w,g=a.realIndex,p=a.j,f=this.preventBarOverflow(d+n/this.invertedYRatio),x=this.preventBarOverflow(d+o/this.invertedYRatio),b=this.getRangeValue(g,p),m=Math.abs(x-f),v=this.barHelpers.getBarpaths({barYPosition:h,barHeight:c,x1:f,x2:x,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:g,realIndex:g,j:p,w:u});return u.globals.isXNumeric||(r+=l),{pathTo:v.pathTo,pathFrom:v.pathFrom,barWidth:m,x:b.start<0&&b.end<0?f:x,goalX:this.barHelpers.getGoalValues("x",d,null,g,p),y:r}}},{key:"getRangeValue",value:function(i,a){var r=this.w;return{start:r.globals.seriesRangeStart[i][a],end:r.globals.seriesRangeEnd[i][a]}}}]),t}(),mu=function(){function s(e){N(this,s),this.w=e.w,this.lineCtx=e}return B(s,[{key:"sameValueSeriesFix",value:function(e,t){var i=this.w;if((i.config.fill.type==="gradient"||i.config.fill.type[e]==="gradient")&&new ge(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,r=e.y,n=e.i,o=e.j,l=e.prevY,c=this.w,h=[],d=[],u=this.lineCtx.categoryAxisCorrection+c.config.markers.offsetX;return c.globals.isXNumeric&&(u=(c.globals.seriesX[i][0]-c.globals.minX)/this.lineCtx.xRatio+c.config.markers.offsetX),o===0&&(h.push(u),d.push(T.isNumber(t[n][0])?l+c.config.markers.offsetY:null)),h.push(a+c.config.markers.offsetX),d.push(T.isNumber(t[n][o+1])?r+c.config.markers.offsetY:null),{x:h,y:d}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,i=e.pathFromArea,a=e.realIndex,r=this.w,n=0;n<r.globals.previousPaths.length;n++){var o=r.globals.previousPaths[n];(o.type==="line"||o.type==="area")&&o.paths.length>0&&parseInt(o.realIndex,10)===parseInt(a,10)&&(o.type==="line"?(this.lineCtx.appendPathFrom=!1,t=r.globals.previousPaths[n].paths[0].d):o.type==="area"&&(this.lineCtx.appendPathFrom=!1,i=r.globals.previousPaths[n].paths[0].d,r.config.stroke.show&&r.globals.previousPaths[n].paths[1]&&(t=r.globals.previousPaths[n].paths[1].d)))}return{pathFromLine:t,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(e){var t,i,a,r=e.i,n=e.realIndex,o=e.series,l=e.prevY,c=e.lineYPosition,h=e.translationsIndex,d=this.w,u=d.config.chart.stacked&&!d.globals.comboCharts||d.config.chart.stacked&&d.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((t=this.w.config.series[n])===null||t===void 0?void 0:t.type)==="bar"||((i=this.w.config.series[n])===null||i===void 0?void 0:i.type)==="column");if(((a=o[r])===null||a===void 0?void 0:a[0])!==void 0)l=(c=u&&r>0?this.lineCtx.prevSeriesY[r-1][0]:this.lineCtx.zeroY)-o[r][0]/this.lineCtx.yRatio[h]+2*(this.lineCtx.isReversed?o[r][0]/this.lineCtx.yRatio[h]:0);else if(u&&r>0&&o[r][0]===void 0){for(var g=r-1;g>=0;g--)if(o[g][0]!==null&&o[g][0]!==void 0){l=c=this.lineCtx.prevSeriesY[g][0];break}}return{prevY:l,lineYPosition:c}}}]),s}(),vu=function(s){for(var e,t,i,a,r=function(h){for(var d=[],u=h[0],g=h[1],p=d[0]=Cs(u,g),f=1,x=h.length-1;f<x;f++)u=g,g=h[f+1],d[f]=.5*(p+(p=Cs(u,g)));return d[f]=p,d}(s),n=s.length-1,o=[],l=0;l<n;l++)i=Cs(s[l],s[l+1]),Math.abs(i)<1e-6?r[l]=r[l+1]=0:(a=(e=r[l]/i)*e+(t=r[l+1]/i)*t)>9&&(a=3*i/Math.sqrt(a),r[l]=a*e,r[l+1]=a*t);for(var c=0;c<=n;c++)a=(s[Math.min(n,c+1)][0]-s[Math.max(0,c-1)][0])/(6*(1+r[c]*r[c])),o.push([a||0,r[c]*a||0]);return o},yu=function(s){var e=vu(s),t=s[1],i=s[0],a=[],r=e[1],n=e[0];a.push(i,[i[0]+n[0],i[1]+n[1],t[0]-r[0],t[1]-r[1],t[0],t[1]]);for(var o=2,l=e.length;o<l;o++){var c=s[o],h=e[o];a.push([c[0]-h[0],c[1]-h[1],c[0],c[1]])}return a},wu=function(s,e,t){var i=s.slice(e,t);if(e){if(t-e>1&&i[1].length<6){var a=i[0].length;i[1]=[2*i[0][a-2]-i[0][a-4],2*i[0][a-1]-i[0][a-3]].concat(i[1])}i[0]=i[0].slice(-2)}return i};function Cs(s,e){return(e[1]-s[1])/(e[0]-s[0])}var Ms=function(){function s(e,t,i){N(this,s),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 $o(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new mu(this),this.markers=new Kt(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return B(s,[{key:"draw",value:function(e,t,i,a){var r,n=this.w,o=new H(this.ctx),l=n.globals.comboCharts?t:n.config.chart.type,c=o.group({class:"apexcharts-".concat(l,"-series apexcharts-plot-series")}),h=new ge(this.ctx,n);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=h.getLogSeries(e),this.yRatio=h.getLogYRatios(this.yRatio),this.prevSeriesY=[];for(var d=[],u=0;u<e.length;u++){e=this.lineHelpers.sameValueSeriesFix(u,e);var g=n.globals.comboCharts?i[u]:u,p=this.yRatio.length>1?g:0;this._initSerieVariables(e,u,g);var f=[],x=[],b=[],m=n.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,g),n.globals.isXNumeric&&n.globals.seriesX.length>0&&(m=(n.globals.seriesX[g][0]-n.globals.minX)/this.xRatio),b.push(m);var v,A=m,y=void 0,S=A,w=this.zeroY,k=this.zeroY;w=this.lineHelpers.determineFirstPrevY({i:u,realIndex:g,series:e,prevY:w,lineYPosition:0,translationsIndex:p}).prevY,n.config.stroke.curve==="monotoneCubic"&&e[u][0]===null?f.push(null):f.push(w),v=w,l==="rangeArea"&&(y=k=this.lineHelpers.determineFirstPrevY({i:u,realIndex:g,series:a,prevY:k,lineYPosition:0,translationsIndex:p}).prevY,x.push(f[0]!==null?k:null));var M=this._calculatePathsFrom({type:l,series:e,i:u,realIndex:g,translationsIndex:p,prevX:S,prevY:w,prevY2:k}),O=[f[0]],P=[x[0]],L={type:l,series:e,realIndex:g,translationsIndex:p,i:u,x:m,y:1,pX:A,pY:v,pathsFrom:M,linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:b,yArrj:f,y2Arrj:x,seriesRangeEnd:a},C=this._iterateOverDataPoints(F(F({},L),{},{iterations:l==="rangeArea"?e[u].length-1:void 0,isRangeStart:!0}));if(l==="rangeArea"){for(var _=this._calculatePathsFrom({series:a,i:u,realIndex:g,prevX:S,prevY:k}),I=this._iterateOverDataPoints(F(F({},L),{},{series:a,xArrj:[m],yArrj:O,y2Arrj:P,pY:y,areaPaths:C.areaPaths,pathsFrom:_,iterations:a[u].length-1,isRangeStart:!1})),E=C.linePaths.length/2,z=0;z<E;z++)C.linePaths[z]=I.linePaths[z+E]+C.linePaths[z];C.linePaths.splice(E),C.pathFromLine=I.pathFromLine+C.pathFromLine}else C.pathFromArea+="z";this._handlePaths({type:l,realIndex:g,i:u,paths:C}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),d.push(this.elSeries)}if(((r=n.config.series[0])===null||r===void 0?void 0:r.zIndex)!==void 0&&d.sort(function(D,Y){return Number(D.node.getAttribute("zIndex"))-Number(Y.node.getAttribute("zIndex"))}),n.config.chart.stacked)for(var R=d.length-1;R>=0;R--)c.add(d[R]);else for(var X=0;X<d.length;X++)c.add(d[X]);return c}},{key:"_initSerieVariables",value:function(e,t,i){var a=this.w,r=new H(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;var n=0;if(this.yRatio.length>1&&(this.yaxisIndex=a.globals.seriesYAxisReverseMap[i],n=i),this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed,this.zeroY=a.globals.gridHeight-this.baseLineY[n]-(this.isReversed?a.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[n]:0),this.areaBottomY=this.zeroY,(this.zeroY>a.globals.gridHeight||a.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=a.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=r.group({class:"apexcharts-series",zIndex:a.config.series[i].zIndex!==void 0?a.config.series[i].zIndex:i,seriesName:T.escapeString(a.globals.seriesNames[i])}),this.elPointsMain=r.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),a.globals.hasNullValues){var o=this.markers.plotChartMarkers({pointsPos:{x:[0],y:[a.globals.gridHeight+a.globals.markers.largestSize]},seriesIndex:t,j:0,pSize:.1,alwaysDrawMarker:!0,isVirtualPoint:!0});o!==null&&this.elPointsMain.add(o)}this.elDataLabelsWrap=r.group({class:"apexcharts-datalabels","data:realIndex":i});var l=e[t].length===a.globals.dataPoints;this.elSeries.attr({"data:longestSeries":l,rel:t+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,i,a,r,n=e.type,o=e.series,l=e.i,c=e.realIndex,h=e.translationsIndex,d=e.prevX,u=e.prevY,g=e.prevY2,p=this.w,f=new H(this.ctx);if(o[l][0]===null){for(var x=0;x<o[l].length;x++)if(o[l][x]!==null){d=this.xDivision*x,u=this.zeroY-o[l][x]/this.yRatio[h],t=f.move(d,u),i=f.move(d,this.areaBottomY);break}}else t=f.move(d,u),n==="rangeArea"&&(t=f.move(d,g)+f.line(d,u)),i=f.move(d,this.areaBottomY)+f.line(d,u);if(a=f.move(0,this.areaBottomY)+f.line(0,this.areaBottomY),r=f.move(0,this.areaBottomY)+f.line(0,this.areaBottomY),p.globals.previousPaths.length>0){var b=this.lineHelpers.checkPreviousPaths({pathFromLine:a,pathFromArea:r,realIndex:c});a=b.pathFromLine,r=b.pathFromArea}return{prevX:d,prevY:u,linePath:t,areaPath:i,pathFromLine:a,pathFromArea:r}}},{key:"_handlePaths",value:function(e){var t=e.type,i=e.realIndex,a=e.i,r=e.paths,n=this.w,o=new H(this.ctx),l=new Be(this.ctx);this.prevSeriesY.push(r.yArrj),n.globals.seriesXvalues[i]=r.xArrj,n.globals.seriesYvalues[i]=r.yArrj;var c=n.config.forecastDataPoints;if(c.count>0&&t!=="rangeArea"){var h=n.globals.seriesXvalues[i][n.globals.seriesXvalues[i].length-c.count-1],d=o.drawRect(h,0,n.globals.gridWidth,n.globals.gridHeight,0);n.globals.dom.elForecastMask.appendChild(d.node);var u=o.drawRect(0,0,h,n.globals.gridHeight,0);n.globals.dom.elNonForecastMask.appendChild(u.node)}this.pointsChart||n.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var g={i:a,realIndex:i,animationDelay:a,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if(t==="area")for(var p=l.fillPath({seriesNumber:i}),f=0;f<r.areaPaths.length;f++){var x=o.renderPaths(F(F({},g),{},{pathFrom:r.pathFromArea,pathTo:r.areaPaths[f],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:p}));this.elSeries.add(x)}if(n.config.stroke.show&&!this.pointsChart){var b=null;if(t==="line")b=l.fillPath({seriesNumber:i,i:a});else if(n.config.stroke.fill.type==="solid")b=n.globals.stroke.colors[i];else{var m=n.config.fill;n.config.fill=n.config.stroke.fill,b=l.fillPath({seriesNumber:i,i:a}),n.config.fill=m}for(var v=0;v<r.linePaths.length;v++){var A=b;t==="rangeArea"&&(A=l.fillPath({seriesNumber:i}));var y=F(F({},g),{},{pathFrom:r.pathFromLine,pathTo:r.linePaths[v],stroke:b,strokeWidth:this.strokeWidth,strokeLineCap:n.config.stroke.lineCap,fill:t==="rangeArea"?A:"none"}),S=o.renderPaths(y);if(this.elSeries.add(S),S.attr("fill-rule","evenodd"),c.count>0&&t!=="rangeArea"){var w=o.renderPaths(y);w.node.setAttribute("stroke-dasharray",c.dashArray),c.strokeWidth&&w.node.setAttribute("stroke-width",c.strokeWidth),this.elSeries.add(w),w.attr("clip-path","url(#forecastMask".concat(n.globals.cuid,")")),S.attr("clip-path","url(#nonForecastMask".concat(n.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t,i,a=this,r=e.type,n=e.series,o=e.iterations,l=e.realIndex,c=e.translationsIndex,h=e.i,d=e.x,u=e.y,g=e.pX,p=e.pY,f=e.pathsFrom,x=e.linePaths,b=e.areaPaths,m=e.seriesIndex,v=e.lineYPosition,A=e.xArrj,y=e.yArrj,S=e.y2Arrj,w=e.isRangeStart,k=e.seriesRangeEnd,M=this.w,O=new H(this.ctx),P=this.yRatio,L=f.prevY,C=f.linePath,_=f.areaPath,I=f.pathFromLine,E=f.pathFromArea,z=T.isNumber(M.globals.minYArr[l])?M.globals.minYArr[l]:M.globals.minY;o||(o=M.globals.dataPoints>1?M.globals.dataPoints-1:M.globals.dataPoints);var R=function(ee,re){return re-ee/P[c]+2*(a.isReversed?ee/P[c]:0)},X=u,D=M.config.chart.stacked&&!M.globals.comboCharts||M.config.chart.stacked&&M.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((t=this.w.config.series[l])===null||t===void 0?void 0:t.type)==="bar"||((i=this.w.config.series[l])===null||i===void 0?void 0:i.type)==="column"),Y=M.config.stroke.curve;Array.isArray(Y)&&(Y=Array.isArray(m)?Y[m[h]]:Y[h]);for(var G,K=0,q=0;q<o&&n[h].length!==0;q++){var ie=n[h][q+1]===void 0||n[h][q+1]===null;if(M.globals.isXNumeric){var Z=M.globals.seriesX[l][q+1];M.globals.seriesX[l][q+1]===void 0&&(Z=M.globals.seriesX[l][o-1]),d=(Z-M.globals.minX)/this.xRatio}else d+=this.xDivision;D?h>0&&M.globals.collapsedSeries.length<M.config.series.length-1?v=this.prevSeriesY[function(ee){for(var re=ee;re>0;re--){if(!(M.globals.collapsedSeriesIndices.indexOf(m?.[re]||re)>-1))return re;re--}return 0}(h-1)][q+1]:v=this.zeroY:v=this.zeroY,ie?u=R(z,v):(u=R(n[h][q+1],v),r==="rangeArea"&&(X=R(k[h][q+1],v))),A.push(n[h][q+1]===null?null:d),!ie||M.config.stroke.curve!=="smooth"&&M.config.stroke.curve!=="monotoneCubic"?(y.push(u),S.push(X)):(y.push(null),S.push(null));var V=this.lineHelpers.calculatePoints({series:n,x:d,y:u,realIndex:l,i:h,j:q,prevY:L}),$=this._createPaths({type:r,series:n,i:h,realIndex:l,j:q,x:d,y:u,y2:X,xArrj:A,yArrj:y,y2Arrj:S,pX:g,pY:p,pathState:K,segmentStartX:G,linePath:C,areaPath:_,linePaths:x,areaPaths:b,curve:Y,isRangeStart:w});b=$.areaPaths,x=$.linePaths,g=$.pX,p=$.pY,K=$.pathState,G=$.segmentStartX,_=$.areaPath,C=$.linePath,!this.appendPathFrom||M.globals.hasNullValues||Y==="monotoneCubic"&&r==="rangeArea"||(I+=O.line(d,this.areaBottomY),E+=O.line(d,this.areaBottomY)),this.handleNullDataPoints(n,V,h,q,l),this._handleMarkersAndLabels({type:r,pointsPos:V,i:h,j:q,realIndex:l,isRangeStart:w})}return{yArrj:y,xArrj:A,pathFromArea:E,areaPaths:b,pathFromLine:I,linePaths:x,linePath:C,areaPath:_}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,i=e.pointsPos,a=e.isRangeStart,r=e.i,n=e.j,o=e.realIndex,l=this.w,c=new Gt(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,n,{realIndex:o,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{l.globals.series[r].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var h=this.markers.plotChartMarkers({pointsPos:i,seriesIndex:o,j:n+1});h!==null&&this.elPointsMain.add(h)}var d=c.drawDataLabel({type:t,isRangeStart:a,pos:i,i:o,j:n+1});d!==null&&this.elDataLabelsWrap.add(d)}},{key:"_createPaths",value:function(e){var t=e.type,i=e.series,a=e.i;e.realIndex;var r,n=e.j,o=e.x,l=e.y,c=e.xArrj,h=e.yArrj,d=e.y2,u=e.y2Arrj,g=e.pX,p=e.pY,f=e.pathState,x=e.segmentStartX,b=e.linePath,m=e.areaPath,v=e.linePaths,A=e.areaPaths,y=e.curve,S=e.isRangeStart,w=new H(this.ctx),k=this.areaBottomY,M=t==="rangeArea",O=t==="rangeArea"&&S;switch(y){case"monotoneCubic":var P=S?h:u;switch(f){case 0:if(P[n+1]===null)break;f=1;case 1:if(!(M?c.length===i[a].length:n===i[a].length-2))break;case 2:var L=S?c:c.slice().reverse(),C=S?P:P.slice().reverse(),_=(r=C,L.map(function(Z,V){return[Z,r[V]]}).filter(function(Z){return Z[1]!==null})),I=_.length>1?yu(_):_,E=[];M&&(O?A=_:E=A.reverse());var z=0,R=0;if(function(Z,V){for(var $=function(ii){var ke=[],Ve=0;return ii.forEach(function(Zl){Zl!==null?Ve++:Ve>0&&(ke.push(Ve),Ve=0)}),Ve>0&&ke.push(Ve),ke}(Z),ee=[],re=0,fe=0;re<$.length;fe+=$[re++])ee[re]=wu(V,fe,fe+$[re]);return ee}(C,I).forEach(function(Z){z++;var V=function(re){for(var fe="",ii=0;ii<re.length;ii++){var ke=re[ii],Ve=ke.length;Ve>4?(fe+="C".concat(ke[0],", ").concat(ke[1]),fe+=", ".concat(ke[2],", ").concat(ke[3]),fe+=", ".concat(ke[4],", ").concat(ke[5])):Ve>2&&(fe+="S".concat(ke[0],", ").concat(ke[1]),fe+=", ".concat(ke[2],", ").concat(ke[3]))}return fe}(Z),$=R,ee=(R+=Z.length)-1;O?b=w.move(_[$][0],_[$][1])+V:M?b=w.move(E[$][0],E[$][1])+w.line(_[$][0],_[$][1])+V+w.line(E[ee][0],E[ee][1]):(b=w.move(_[$][0],_[$][1])+V,m=b+w.line(_[ee][0],k)+w.line(_[$][0],k)+"z",A.push(m)),v.push(b)}),M&&z>1&&!O){var X=v.slice(z).reverse();v.splice(z),X.forEach(function(Z){return v.push(Z)})}f=0}break;case"smooth":var D=.35*(o-g);if(i[a][n]===null)f=0;else switch(f){case 0:if(x=g,b=O?w.move(g,u[n])+w.line(g,p):w.move(g,p),m=w.move(g,p),i[a][n+1]===null||i[a][n+1]===void 0){v.push(b),A.push(m);break}if(f=1,n<i[a].length-2){var Y=w.curve(g+D,p,o-D,l,o,l);b+=Y,m+=Y;break}case 1:if(i[a][n+1]===null)b+=O?w.line(g,d):w.move(g,p),m+=w.line(g,k)+w.line(x,k)+"z",v.push(b),A.push(m),f=-1;else{var G=w.curve(g+D,p,o-D,l,o,l);b+=G,m+=G,n>=i[a].length-2&&(O&&(b+=w.curve(o,l,o,l,o,d)+w.move(o,d)),m+=w.curve(o,l,o,l,o,k)+w.line(x,k)+"z",v.push(b),A.push(m),f=-1)}}g=o,p=l;break;default:var K=function(Z,V,$){var ee=[];switch(Z){case"stepline":ee=w.line(V,null,"H")+w.line(null,$,"V");break;case"linestep":ee=w.line(null,$,"V")+w.line(V,null,"H");break;case"straight":ee=w.line(V,$)}return ee};if(i[a][n]===null)f=0;else switch(f){case 0:if(x=g,b=O?w.move(g,u[n])+w.line(g,p):w.move(g,p),m=w.move(g,p),i[a][n+1]===null||i[a][n+1]===void 0){v.push(b),A.push(m);break}if(f=1,n<i[a].length-2){var q=K(y,o,l);b+=q,m+=q;break}case 1:if(i[a][n+1]===null)b+=O?w.line(g,d):w.move(g,p),m+=w.line(g,k)+w.line(x,k)+"z",v.push(b),A.push(m),f=-1;else{var ie=K(y,o,l);b+=ie,m+=ie,n>=i[a].length-2&&(O&&(b+=w.line(o,d)),m+=w.line(o,k)+w.line(x,k)+"z",v.push(b),A.push(m),f=-1)}}g=o,p=l}return{linePaths:v,areaPaths:A,pX:g,pY:p,pathState:f,segmentStartX:x,linePath:b,areaPath:m}}},{key:"handleNullDataPoints",value:function(e,t,i,a,r){var n=this.w;if(e[i][a]===null&&n.config.markers.showNullDataPoints||e[i].length===1){var o=this.strokeWidth-n.config.markers.strokeWidth/2;o>0||(o=0);var l=this.markers.plotChartMarkers({pointsPos:t,seriesIndex:r,j:a+1,pSize:o,alwaysDrawMarker:!0});l!==null&&this.elPointsMain.add(l)}}}]),s}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function s(o,l,c,h){this.xoffset=o,this.yoffset=l,this.height=h,this.width=c,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(d){var u,g=[],p=this.xoffset,f=this.yoffset,x=r(d)/this.height,b=r(d)/this.width;if(this.width>=this.height)for(u=0;u<d.length;u++)g.push([p,f,p+x,f+d[u]/x]),f+=d[u]/x;else for(u=0;u<d.length;u++)g.push([p,f,p+d[u]/b,f+b]),p+=d[u]/b;return g},this.cutArea=function(d){var u;if(this.width>=this.height){var g=d/this.height,p=this.width-g;u=new s(this.xoffset+g,this.yoffset,p,this.height)}else{var f=d/this.width,x=this.height-f;u=new s(this.xoffset,this.yoffset+f,this.width,x)}return u}}function e(o,l,c,h,d){h=h===void 0?0:h,d=d===void 0?0:d;var u=t(function(g,p){var f,x=[],b=p/r(g);for(f=0;f<g.length;f++)x[f]=g[f]*b;return x}(o,l*c),[],new s(h,d,l,c),[]);return function(g){var p,f,x=[];for(p=0;p<g.length;p++)for(f=0;f<g[p].length;f++)x.push(g[p][f]);return x}(u)}function t(o,l,c,h){var d,u,g;if(o.length!==0)return d=c.shortestEdge(),function(p,f,x){var b;if(p.length===0)return!0;(b=p.slice()).push(f);var m=i(p,x),v=i(b,x);return m>=v}(l,u=o[0],d)?(l.push(u),t(o.slice(1),l,c,h)):(g=c.cutArea(r(l),h),h.push(c.getCoordinates(l)),t(o,[],g,h)),h;h.push(c.getCoordinates(l))}function i(o,l){var c=Math.min.apply(Math,o),h=Math.max.apply(Math,o),d=r(o);return Math.max(Math.pow(l,2)*h/Math.pow(d,2),Math.pow(d,2)/(Math.pow(l,2)*c))}function a(o){return o&&o.constructor===Array}function r(o){var l,c=0;for(l=0;l<o.length;l++)c+=o[l];return c}function n(o){var l,c=0;if(a(o[0]))for(l=0;l<o.length;l++)c+=n(o[l]);else c=r(o);return c}return function o(l,c,h,d,u){d=d===void 0?0:d,u=u===void 0?0:u;var g,p,f=[],x=[];if(a(l[0])){for(p=0;p<l.length;p++)f[p]=n(l[p]);for(g=e(f,c,h,d,u),p=0;p<l.length;p++)x.push(o(l[p],g[p][2]-g[p][0],g[p][3]-g[p][1],g[p][0],g[p][1]))}else x=e(l,c,h,d,u);return x}}();var ku=function(){function s(e,t){N(this,s),this.ctx=e,this.w=e.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new el(e),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return B(s,[{key:"draw",value:function(e){var t=this,i=this.w,a=new H(this.ctx),r=new Be(this.ctx),n=a.group({class:"apexcharts-treemap"});if(i.globals.noData)return n;var o=[];return e.forEach(function(l){var c=l.map(function(h){return Math.abs(h)});o.push(c)}),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach(function(l,c){l.data.forEach(function(h){Array.isArray(t.labels[c])||(t.labels[c]=[]),t.labels[c].push(h.x)})}),window.TreemapSquared.generate(o,i.globals.gridWidth,i.globals.gridHeight).forEach(function(l,c){var h=a.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:T.escapeString(i.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(i.config.chart.dropShadow.enabled){var d=i.config.chart.dropShadow;new ye(t.ctx).dropShadow(n,d,c)}var u=a.group({class:"apexcharts-data-labels"}),g={xMin:1/0,yMin:1/0,xMax:-1/0,yMax:-1/0};l.forEach(function(I,E){var z=I[0],R=I[1],X=I[2],D=I[3];g.xMin=Math.min(g.xMin,z),g.yMin=Math.min(g.yMin,R),g.xMax=Math.max(g.xMax,X),g.yMax=Math.max(g.yMax,D);var Y=t.helpers.getShadeColor(i.config.chart.type,c,E,t.negRange),G=Y.color,K=r.fillPath({color:G,seriesNumber:c,dataPointIndex:E}),q=a.drawRect(z,R,X-z,D-R,i.config.plotOptions.treemap.borderRadius,"#fff",1,t.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?G:i.globals.stroke.colors[c]);q.attr({cx:z,cy:R,index:c,i:c,j:E,width:X-z,height:D-R,fill:K}),q.node.classList.add("apexcharts-treemap-rect"),t.helpers.addListeners(q);var ie={x:z+(X-z)/2,y:R+(D-R)/2,width:0,height:0},Z={x:z,y:R,width:X-z,height:D-R};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var V=1;i.globals.resized||(V=i.config.chart.animations.speed),t.animateTreemap(q,ie,Z,V)}if(i.globals.dataChanged){var $=1;t.dynamicAnim.enabled&&i.globals.shouldAnimate&&($=t.dynamicAnim.speed,i.globals.previousPaths[c]&&i.globals.previousPaths[c][E]&&i.globals.previousPaths[c][E].rect&&(ie=i.globals.previousPaths[c][E].rect),t.animateTreemap(q,ie,Z,$))}var ee=t.getFontSize(I),re=i.config.dataLabels.formatter(t.labels[c][E],{value:i.globals.series[c][E],seriesIndex:c,dataPointIndex:E,w:i});i.config.plotOptions.treemap.dataLabels.format==="truncate"&&(ee=parseInt(i.config.dataLabels.style.fontSize,10),re=t.truncateLabels(re,ee,z,R,X,D));var fe=null;i.globals.series[c][E]&&(fe=t.helpers.calculateDataLabels({text:re,x:(z+X)/2,y:(R+D)/2+t.strokeWidth/2+ee/3,i:c,j:E,colorProps:Y,fontSize:ee,series:e})),i.config.dataLabels.enabled&&fe&&t.rotateToFitLabel(fe,ee,re,z,R,X,D),h.add(q),fe!==null&&h.add(fe)});var p=i.config.plotOptions.treemap.seriesTitle;if(i.config.series.length>1&&p&&p.show){var f=i.config.series[c].name||"";if(f&&g.xMin<1/0&&g.yMin<1/0){var x=p.offsetX,b=p.offsetY,m=p.borderColor,v=p.borderWidth,A=p.borderRadius,y=p.style,S=y.color||i.config.chart.foreColor,w={left:y.padding.left,right:y.padding.right,top:y.padding.top,bottom:y.padding.bottom},k=a.getTextRects(f,y.fontSize,y.fontFamily),M=k.width+w.left+w.right,O=k.height+w.top+w.bottom,P=g.xMin+(x||0),L=g.yMin+(b||0),C=a.drawRect(P,L,M,O,A,y.background,1,v,m),_=a.drawText({x:P+w.left,y:L+w.top+.75*k.height,text:f,fontSize:y.fontSize,fontFamily:y.fontFamily,fontWeight:y.fontWeight,foreColor:S,cssClass:y.cssClass||""});h.add(C),h.add(_)}}h.add(u),n.add(h)}),n}},{key:"getFontSize",value:function(e){var t=this.w,i=function a(r){var n,o=0;if(Array.isArray(r[0]))for(n=0;n<r.length;n++)o+=a(r[n]);else for(n=0;n<r.length;n++)o+=r[n].length;return o}(this.labels)/function a(r){var n,o=0;if(Array.isArray(r[0]))for(n=0;n<r.length;n++)o+=a(r[n]);else for(n=0;n<r.length;n++)o+=1;return o}(this.labels);return function(a,r){var n=a*r,o=Math.pow(n,.5);return Math.min(o/i,parseInt(t.config.dataLabels.style.fontSize,10))}(e[2]-e[0],e[3]-e[1])}},{key:"rotateToFitLabel",value:function(e,t,i,a,r,n,o){var l=new H(this.ctx),c=l.getTextRects(i,t);if(c.width+this.w.config.stroke.width+5>n-a&&c.width<=o-r){var h=l.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(h.x," ").concat(h.y,") translate(").concat(c.height/3,")"))}}},{key:"truncateLabels",value:function(e,t,i,a,r,n){var o=new H(this.ctx),l=o.getTextRects(e,t).width+this.w.config.stroke.width+5>r-i&&n-a>r-i?n-a:r-i,c=o.getTextBasedOnMaxWidth({text:e,maxWidth:l,fontSize:t});return e.length!==c.length&&l/t<5?"":c}},{key:"animateTreemap",value:function(e,t,i,a){var r=new $t(this.ctx);r.animateRect(e,t,i,a,function(){r.animationCompleted(e)})}}]),s}(),al=86400,Au=10/al,Su=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return B(s,[{key:"calculateTimeScaleTicks",value:function(e,t){var i=this,a=this.w;if(a.globals.allSeriesCollapsed)return a.globals.labels=[],a.globals.timescaleLabels=[],[];var r=new ve(this.ctx),n=(t-e)/864e5;this.determineInterval(n),a.globals.disableZoomIn=!1,a.globals.disableZoomOut=!1,n<Au?a.globals.disableZoomIn=!0:n>5e4&&(a.globals.disableZoomOut=!0);var o=r.getTimeUnitsfromTimestamp(e,t,this.utc),l=a.globals.gridWidth/n,c=l/24,h=c/60,d=h/60,u=Math.floor(24*n),g=Math.floor(1440*n),p=Math.floor(n*al),f=Math.floor(n),x=Math.floor(n/30),b=Math.floor(n/365),m={minMillisecond:o.minMillisecond,minSecond:o.minSecond,minMinute:o.minMinute,minHour:o.minHour,minDate:o.minDate,minMonth:o.minMonth,minYear:o.minYear},v={firstVal:m,currentMillisecond:m.minMillisecond,currentSecond:m.minSecond,currentMinute:m.minMinute,currentHour:m.minHour,currentMonthDate:m.minDate,currentDate:m.minDate,currentMonth:m.minMonth,currentYear:m.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:c,minutesWidthOnXAxis:h,secondsWidthOnXAxis:d,numberOfSeconds:p,numberOfMinutes:g,numberOfHours:u,numberOfDays:f,numberOfMonths:x,numberOfYears:b};switch(this.tickInterval){case"years":this.generateYearScale(v);break;case"months":case"half_year":this.generateMonthScale(v);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(v);break;case"hours":this.generateHourScale(v);break;case"minutes_fives":case"minutes":this.generateMinuteScale(v);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(v)}var A=this.timeScaleArray.map(function(y){var S={position:y.position,unit:y.unit,year:y.year,day:y.day?y.day:1,hour:y.hour?y.hour:0,month:y.month+1};return y.unit==="month"?F(F({},S),{},{day:1,value:y.value+1}):y.unit==="day"||y.unit==="hour"?F(F({},S),{},{value:y.value}):y.unit==="minute"?F(F({},S),{},{value:y.value,minute:y.value}):y.unit==="second"?F(F({},S),{},{value:y.value,minute:y.minute,second:y.second}):y});return A.filter(function(y){var S=1,w=Math.ceil(a.globals.gridWidth/120),k=y.value;a.config.xaxis.tickAmount!==void 0&&(w=a.config.xaxis.tickAmount),A.length>w&&(S=Math.floor(A.length/w));var M=!1,O=!1;switch(i.tickInterval){case"years":y.unit==="year"&&(M=!0);break;case"half_year":S=7,y.unit==="year"&&(M=!0);break;case"months":S=1,y.unit==="year"&&(M=!0);break;case"months_fortnight":S=15,y.unit!=="year"&&y.unit!=="month"||(M=!0),k===30&&(O=!0);break;case"months_days":S=10,y.unit==="month"&&(M=!0),k===30&&(O=!0);break;case"week_days":S=8,y.unit==="month"&&(M=!0);break;case"days":S=1,y.unit==="month"&&(M=!0);break;case"hours":y.unit==="day"&&(M=!0);break;case"minutes_fives":case"seconds_fives":k%5!=0&&(O=!0);break;case"seconds_tens":k%10!=0&&(O=!0)}if(i.tickInterval==="hours"||i.tickInterval==="minutes_fives"||i.tickInterval==="seconds_tens"||i.tickInterval==="seconds_fives"){if(!O)return!0}else if((k%S==0||M)&&!O)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var i=this.w,a=this.formatDates(e),r=this.removeOverlappingTS(a);i.globals.timescaleLabels=r.slice(),new fa(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,r=e.daysWidthOnXAxis,n=e.numberOfYears,o=t.minYear,l=0,c=new ve(this.ctx),h="year";if(t.minDate>1||t.minMonth>0){var d=c.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);l=(c.determineDaysOfYear(t.minYear)-d+1)*r,o=t.minYear+1,this.timeScaleArray.push({position:l,value:o,unit:h,year:o,month:T.monthMod(i+1)})}else t.minDate===1&&t.minMonth===0&&this.timeScaleArray.push({position:l,value:o,unit:h,year:a,month:T.monthMod(i+1)});for(var u=o,g=l,p=0;p<n;p++)u++,g=c.determineDaysOfYear(u-1)*r+g,this.timeScaleArray.push({position:g,value:u,unit:h,year:u,month:1})}},{key:"generateMonthScale",value:function(e){var t=e.firstVal,i=e.currentMonthDate,a=e.currentMonth,r=e.currentYear,n=e.daysWidthOnXAxis,o=e.numberOfMonths,l=a,c=0,h=new ve(this.ctx),d="month",u=0;if(t.minDate>1){c=(h.determineDaysOfMonths(a+1,t.minYear)-i+1)*n,l=T.monthMod(a+1);var g=r+u,p=T.monthMod(l),f=l;l===0&&(d="year",f=g,p=1,g+=u+=1),this.timeScaleArray.push({position:c,value:f,unit:d,year:g,month:p})}else this.timeScaleArray.push({position:c,value:l,unit:d,year:r,month:T.monthMod(a)});for(var x=l+1,b=c,m=0,v=1;m<o;m++,v++){(x=T.monthMod(x))===0?(d="year",u+=1):d="month";var A=this._getYear(r,x,u);b=h.determineDaysOfMonths(x,A)*n+b;var y=x===0?A:x;this.timeScaleArray.push({position:b,value:y,unit:d,year:A,month:x===0?1:x}),x++}}},{key:"generateDayScale",value:function(e){var t=e.firstVal,i=e.currentMonth,a=e.currentYear,r=e.hoursWidthOnXAxis,n=e.numberOfDays,o=new ve(this.ctx),l="day",c=t.minDate+1,h=c,d=function(v,A,y){return v>o.determineDaysOfMonths(A+1,y)&&(h=1,l="month",g=A+=1),A},u=(24-t.minHour)*r,g=c,p=d(h,i,a);t.minHour===0&&t.minDate===1?(u=0,g=T.monthMod(t.minMonth),l="month",h=t.minDate):t.minDate!==1&&t.minHour===0&&t.minMinute===0&&(u=0,c=t.minDate,g=c,p=d(h=c,i,a),g!==1&&(l="day")),this.timeScaleArray.push({position:u,value:g,unit:l,year:this._getYear(a,p,0),month:T.monthMod(p),day:h});for(var f=u,x=0;x<n;x++){l="day",p=d(h+=1,p,this._getYear(a,p,0));var b=this._getYear(a,p,0);f=24*r+f;var m=h===1?T.monthMod(p):h;this.timeScaleArray.push({position:f,value:m,unit:l,year:b,month:T.monthMod(p),day:m})}}},{key:"generateHourScale",value:function(e){var t=e.firstVal,i=e.currentDate,a=e.currentMonth,r=e.currentYear,n=e.minutesWidthOnXAxis,o=e.numberOfHours,l=new ve(this.ctx),c="hour",h=function(S,w){return S>l.determineDaysOfMonths(w+1,r)&&(x=1,w+=1),{month:w,date:x}},d=function(S,w){return S>l.determineDaysOfMonths(w+1,r)?w+=1:w},u=60-(t.minMinute+t.minSecond/60),g=u*n,p=t.minHour+1,f=p;u===60&&(g=0,f=p=t.minHour);var x=i;f>=24&&(f=0,c="day",p=x+=1);var b=h(x,a).month;b=d(x,b),p>31&&(p=x=1),this.timeScaleArray.push({position:g,value:p,unit:c,day:x,hour:f,year:r,month:T.monthMod(b)}),f++;for(var m=g,v=0;v<o;v++){c="hour",f>=24&&(f=0,c="day",b=h(x+=1,b).month,b=d(x,b));var A=this._getYear(r,b,0);m=60*n+m;var y=f===0?x:f;this.timeScaleArray.push({position:m,value:y,unit:c,hour:f,day:x,year:A,month:T.monthMod(b)}),f++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,i=e.currentSecond,a=e.currentMinute,r=e.currentHour,n=e.currentDate,o=e.currentMonth,l=e.currentYear,c=e.minutesWidthOnXAxis,h=e.secondsWidthOnXAxis,d=e.numberOfMinutes,u=a+1,g=n,p=o,f=l,x=r,b=(60-i-t/1e3)*h,m=0;m<d;m++)u>=60&&(u=0,(x+=1)===24&&(x=0)),this.timeScaleArray.push({position:b,value:u,unit:"minute",hour:x,minute:u,day:g,year:this._getYear(f,p,0),month:T.monthMod(p)}),b+=c,u++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,i=e.currentSecond,a=e.currentMinute,r=e.currentHour,n=e.currentDate,o=e.currentMonth,l=e.currentYear,c=e.secondsWidthOnXAxis,h=e.numberOfSeconds,d=i+1,u=a,g=n,p=o,f=l,x=r,b=(1e3-t)/1e3*c,m=0;m<h;m++)d>=60&&(d=0,++u>=60&&(u=0,++x===24&&(x=0))),this.timeScaleArray.push({position:b,value:d,unit:"second",hour:x,minute:u,second:d,day:g,year:this._getYear(f,p,0),month:T.monthMod(p)}),b+=c,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 r=a.value.toString(),n=new ve(t.ctx),o=t.createRawDateString(a,r),l=n.getDate(n.parseDate(o));if(t.utc||(l=n.getDate(n.parseDateWithTimezone(o))),i.config.xaxis.labels.format===void 0){var c="dd MMM",h=i.config.xaxis.labels.datetimeFormatter;a.unit==="year"&&(c=h.year),a.unit==="month"&&(c=h.month),a.unit==="day"&&(c=h.day),a.unit==="hour"&&(c=h.hour),a.unit==="minute"&&(c=h.minute),a.unit==="second"&&(c=h.second),r=n.formatDate(l,c)}else r=n.formatDate(l,i.config.xaxis.labels.format);return{dateString:o,position:a.position,value:r,unit:a.unit,year:a.year,month:a.month}})}},{key:"removeOverlappingTS",value:function(e){var t,i=this,a=new H(this.ctx),r=!1;e.length>0&&e[0].value&&e.every(function(l){return l.value.length===e[0].value.length})&&(r=!0,t=a.getTextRects(e[0].value).width);var n=0,o=e.map(function(l,c){if(c>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var h=r?t:a.getTextRects(e[n].value).width,d=e[n].position;return l.position>d+h+10?(n=c,l):null}return l});return o=o.filter(function(l){return l!==null})}},{key:"_getYear",value:function(e,t,i){return e+Math.floor(t/12)+i}}]),s}(),Cu=function(){function s(e,t){N(this,s),this.ctx=t,this.w=t.w,this.el=e}return B(s,[{key:"setupElements",value:function(){var e=this.w,t=e.globals,i=e.config,a=i.chart.type;t.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].includes(a),t.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].includes(a),t.isBarHorizontal=["bar","rangeBar","boxPlot"].includes(a)&&i.plotOptions.bar.horizontal,t.chartClass=".apexcharts".concat(t.chartID),t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),H.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas ".concat(t.chartClass.substring(1))}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=window.SVG().addTo(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(i.chart.offsetX,", ").concat(i.chart.offsetY,")")}),t.dom.Paper.node.style.background=i.theme.mode!=="dark"||i.chart.background?i.theme.mode!=="light"||i.chart.background?i.chart.background:"#fff":"#343A3F",this.setSVGDimensions(),t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject"),H.setAttrs(t.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elWrap.appendChild(t.dom.elLegendWrap),t.dom.Paper.node.appendChild(t.dom.elLegendForeign),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var i=this.w,a=this.ctx,r=i.config,n=i.globals,o={line:{series:[],i:[]},area:{series:[],i:[]},scatter:{series:[],i:[]},bubble:{series:[],i:[]},bar:{series:[],i:[]},candlestick:{series:[],i:[]},boxPlot:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},l=r.chart.type||"line",c=null,h=0;n.series.forEach(function(S,w){var k=e[w].type==="column"?"bar":e[w].type||(l==="column"?"bar":l);o[k]?(k==="rangeArea"?(o[k].series.push(n.seriesRangeStart[w]),o[k].seriesRangeEnd.push(n.seriesRangeEnd[w])):o[k].series.push(S),o[k].i.push(w),k==="bar"&&(i.globals.columnSeries=o.bar)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(k)?c=k:console.warn("You have specified an unrecognized series type (".concat(k,").")),l!==k&&k!=="scatter"&&h++}),h>0&&(c&&console.warn("Chart or series type ".concat(c," cannot appear with other chart or series types.")),o.bar.series.length>0&&r.plotOptions.bar.horizontal&&(h-=o.bar.series.length,o.bar={series:[],i:[]},i.globals.columnSeries={series:[],i:[]},console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"))),n.comboCharts||(n.comboCharts=h>0);var d=new Ms(a,t),u=new Ss(a,t);a.pie=new il(a);var g=new xu(a);a.rangeBar=new bu(a,t);var p=new pu(a),f=[];if(n.comboCharts){var x,b,m=new ge(a);if(o.area.series.length>0&&(x=f).push.apply(x,me(m.drawSeriesByGroup(o.area,n.areaGroups,"area",d))),o.bar.series.length>0)if(r.chart.stacked){var v=new co(a,t);f.push(v.draw(o.bar.series,o.bar.i))}else a.bar=new Vt(a,t),f.push(a.bar.draw(o.bar.series,o.bar.i));if(o.rangeArea.series.length>0&&f.push(d.draw(o.rangeArea.series,"rangeArea",o.rangeArea.i,o.rangeArea.seriesRangeEnd)),o.line.series.length>0&&(b=f).push.apply(b,me(m.drawSeriesByGroup(o.line,n.lineGroups,"line",d))),o.candlestick.series.length>0&&f.push(u.draw(o.candlestick.series,"candlestick",o.candlestick.i)),o.boxPlot.series.length>0&&f.push(u.draw(o.boxPlot.series,"boxPlot",o.boxPlot.i)),o.rangeBar.series.length>0&&f.push(a.rangeBar.draw(o.rangeBar.series,o.rangeBar.i)),o.scatter.series.length>0){var A=new Ms(a,t,!0);f.push(A.draw(o.scatter.series,"scatter",o.scatter.i))}if(o.bubble.series.length>0){var y=new Ms(a,t,!0);f.push(y.draw(o.bubble.series,"bubble",o.bubble.i))}}else switch(r.chart.type){case"line":f=d.draw(n.series,"line");break;case"area":f=d.draw(n.series,"area");break;case"bar":r.chart.stacked?f=new co(a,t).draw(n.series):(a.bar=new Vt(a,t),f=a.bar.draw(n.series));break;case"candlestick":f=new Ss(a,t).draw(n.series,"candlestick");break;case"boxPlot":f=new Ss(a,t).draw(n.series,r.chart.type);break;case"rangeBar":f=a.rangeBar.draw(n.series);break;case"rangeArea":f=d.draw(n.seriesRangeStart,"rangeArea",void 0,n.seriesRangeEnd);break;case"heatmap":f=new fu(a,t).draw(n.series);break;case"treemap":f=new ku(a,t).draw(n.series);break;case"pie":case"donut":case"polarArea":f=a.pie.draw(n.series);break;case"radialBar":f=g.draw(n.series);break;case"radar":f=p.draw(n.series);break;default:f=d.draw(n.series)}return f}},{key:"setSVGDimensions",value:function(){var e=this.w,t=e.globals,i=e.config;i.chart.width=i.chart.width||"100%",i.chart.height=i.chart.height||"auto",t.svgWidth=i.chart.width,t.svgHeight=i.chart.height;var a=T.getDimensions(this.el),r=i.chart.width.toString().split(/[0-9]+/g).pop();r==="%"?T.isNumber(a[0])&&(a[0].width===0&&(a=T.getDimensions(this.el.parentNode)),t.svgWidth=a[0]*parseInt(i.chart.width,10)/100):r!=="px"&&r!==""||(t.svgWidth=parseInt(i.chart.width,10));var n=String(i.chart.height).toString().split(/[0-9]+/g).pop();if(t.svgHeight!=="auto"&&t.svgHeight!=="")if(n==="%"){var o=T.getDimensions(this.el.parentNode);t.svgHeight=o[1]*parseInt(i.chart.height,10)/100}else t.svgHeight=parseInt(i.chart.height,10);else t.svgHeight=t.axisCharts?t.svgWidth/1.61:t.svgWidth/1.2;if(t.svgWidth=Math.max(t.svgWidth,0),t.svgHeight=Math.max(t.svgHeight,0),H.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),n!=="%"){var l=i.chart.sparkline.enabled?0:t.axisCharts?i.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(t.svgHeight+l,"px")}t.dom.elWrap.style.width="".concat(t.svgWidth,"px"),t.dom.elWrap.style.height="".concat(t.svgHeight,"px")}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,i=e.translateX;H.setAttrs(e.dom.elGraphical.node,{transform:"translate(".concat(i,", ").concat(t,")")})}},{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,["top","bottom"].includes(e.config.legend.position)&&e.config.legend.show&&!e.config.legend.floating&&(i=new Zo(this.ctx).legendHelpers.getLegendDimensions().clwh+7);var r=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),n=2.05*e.globals.radialSize;if(r&&!e.config.chart.sparkline.enabled&&e.config.plotOptions.radialBar.startAngle!==0){var o=T.getBoundingClientRect(r);n=o.bottom;var l=o.bottom-o.top;n=Math.max(2.05*e.globals.radialSize,l)}var c=Math.ceil(n+t.translateY+i+a);t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",c),e.config.chart.height&&String(e.config.chart.height).includes("%")||(t.dom.elWrap.style.height="".concat(c,"px"),H.setAttrs(t.dom.Paper.node,{height:c}),t.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(c,"px"))}},{key:"coreCalculations",value:function(){new Fs(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map(function(){return[]})},i=new Vo,a=this.w.globals;i.initGlobalVars(a),a.seriesXvalues=t(),a.seriesYvalues=t()}},{key:"isMultipleY",value:function(){return!!(Array.isArray(this.w.config.yaxis)&&this.w.config.yaxis.length>1)&&(this.w.globals.isMultipleYAxis=!0,!0)}},{key:"xySettings",value:function(){var e=this.w,t=null;if(e.globals.axisCharts){if(e.config.xaxis.crosshairs.position==="back"&&new Ys(this.ctx).drawXCrosshairs(),e.config.yaxis[0].crosshairs.position==="back"&&new Ys(this.ctx).drawYCrosshairs(),e.config.xaxis.type==="datetime"&&e.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new Su(this.ctx);var i=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}t=new ge(this.ctx).getCalculatedRatios()}return t}},{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.ctx,i=this.w;if(i.config.chart.brush.enabled&&typeof i.config.chart.events.selection!="function"){var a=Array.isArray(i.config.chart.brush.targets)?i.config.chart.brush.targets:[i.config.chart.brush.target];a.forEach(function(r){var n=t.constructor.getChartByID(r);n.w.globals.brushSource=e.ctx,typeof n.w.config.chart.events.zoomed!="function"&&(n.w.config.chart.events.zoomed=function(){return e.updateSourceChart(n)}),typeof n.w.config.chart.events.scrolled!="function"&&(n.w.config.chart.events.scrolled=function(){return e.updateSourceChart(n)})}),i.config.chart.events.selection=function(r,n){a.forEach(function(o){t.constructor.getChartByID(o).ctx.updateHelpers._updateOptions({xaxis:{min:n.xaxis.min,max:n.xaxis.max}},!1,!1,!1,!1)})}}}}]),s}(),Mu=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{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],r=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],n=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(o){var l=[t.ctx];r&&(l=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(l=[t.ctx],t.ctx.w.globals.isExecCalled=!1),l.forEach(function(c,h){var d=c.w;if(d.globals.shouldAnimate=a,i||(d.globals.resized=!0,d.globals.dataChanged=!0,a&&c.series.getPreviousPaths()),e&&Nt(e)==="object"&&(c.config=new Ii(e),e=ge.extendArrayProps(c.config,e,d),c.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,d.config=T.extend(d.config,e),n&&(d.globals.lastXAxis=e.xaxis?T.clone(e.xaxis):[],d.globals.lastYAxis=e.yaxis?T.clone(e.yaxis):[],d.globals.initialConfig=T.extend({},d.config),d.globals.initialSeries=T.clone(d.config.series),e.series))){for(var u=0;u<d.globals.collapsedSeriesIndices.length;u++){var g=d.config.series[d.globals.collapsedSeriesIndices[u]];d.globals.collapsedSeries[u].data=d.globals.axisCharts?g.data.slice():g}for(var p=0;p<d.globals.ancillaryCollapsedSeriesIndices.length;p++){var f=d.config.series[d.globals.ancillaryCollapsedSeriesIndices[p]];d.globals.ancillaryCollapsedSeries[p].data=d.globals.axisCharts?f.data.slice():f}c.series.emptyCollapsedSeries(d.config.series)}return c.update(e).then(function(){h===l.length-1&&o(c)})})})}},{key:"_updateSeries",value:function(e,t){var i=this,a=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(r){var n,o=i.w;return o.globals.shouldAnimate=t,o.globals.dataChanged=!0,t&&i.ctx.series.getPreviousPaths(),o.globals.axisCharts?((n=e.map(function(l,c){return i._extendSeries(l,c)})).length===0&&(n=[{data:[]}]),o.config.series=n):o.config.series=e.slice(),a&&(o.globals.initialConfig.series=T.clone(o.config.series),o.globals.initialSeries=T.clone(o.config.series)),i.ctx.update().then(function(){r(i.ctx)})})}},{key:"_extendSeries",value:function(e,t){var i=this.w,a=i.config.series[t];return F(F({},i.config.series[t]),{},{name:e.name?e.name:a?.name,color:e.color?e.color:a?.color,type:e.type?e.type:a?.type,group:e.group?e.group:a?.group,hidden:e.hidden!==void 0?e.hidden:a?.hidden,data:e.data?e.data:a?.data,zIndex:e.zIndex!==void 0?e.zIndex:t})}},{key:"toggleDataPointSelection",value:function(e,t){var i=this.w,a=null,r=".apexcharts-series[data\\:realIndex='".concat(e,"']");return i.globals.axisCharts?a=i.globals.dom.Paper.findOne("".concat(r," path[j='").concat(t,"'], ").concat(r," circle[j='").concat(t,"'], ").concat(r," rect[j='").concat(t,"']")):t===void 0&&(a=i.globals.dom.Paper.findOne("".concat(r," path[j='").concat(e,"']")),i.config.chart.type!=="pie"&&i.config.chart.type!=="polarArea"&&i.config.chart.type!=="donut"||this.ctx.pie.pieClicked(e)),a?(new H(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 Pi(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,r=i.globals.lastYAxis;e&&e.xaxis&&(a=e.xaxis),e&&e.yaxis&&(r=e.yaxis),i.config.xaxis.min=a.min,i.config.xaxis.max=a.max;var n=function(o){r[o]!==void 0&&(i.config.yaxis[o].min=r[o].min,i.config.yaxis[o].max=r[o].max)};i.config.yaxis.map(function(o,l){i.globals.zoomed||r[l]!==void 0?n(l):t.ctx.opts.yaxis[l]!==void 0&&(o.min=t.ctx.opts.yaxis[l].min,o.max=t.ctx.opts.yaxis[l].max)})}}]),s}();(function(){function s(){for(var r=arguments.length>0&&arguments[0]!==d?arguments[0]:[],n=arguments.length>1?arguments[1]:d,o=arguments.length>2?arguments[2]:d,l=arguments.length>3?arguments[3]:d,c=arguments.length>4?arguments[4]:d,h=arguments.length>5?arguments[5]:d,d=arguments.length>6?arguments[6]:d,u=r.slice(n,o||d),g=l.slice(c,h||d),p=0,f={pos:[0,0],start:[0,0]},x={pos:[0,0],start:[0,0]};u[p]=e.call(f,u[p]),g[p]=e.call(x,g[p]),u[p][0]!=g[p][0]||u[p][0]=="M"||u[p][0]=="A"&&(u[p][4]!=g[p][4]||u[p][5]!=g[p][5])?(Array.prototype.splice.apply(u,[p,1].concat(i.call(f,u[p]))),Array.prototype.splice.apply(g,[p,1].concat(i.call(x,g[p])))):(u[p]=t.call(f,u[p]),g[p]=t.call(x,g[p])),!(++p==u.length&&p==g.length);)p==u.length&&u.push(["C",f.pos[0],f.pos[1],f.pos[0],f.pos[1],f.pos[0],f.pos[1]]),p==g.length&&g.push(["C",x.pos[0],x.pos[1],x.pos[0],x.pos[1],x.pos[0],x.pos[1]]);return{start:u,dest:g}}function e(r){switch(r[0]){case"z":case"Z":r[0]="L",r[1]=this.start[0],r[2]=this.start[1];break;case"H":r[0]="L",r[2]=this.pos[1];break;case"V":r[0]="L",r[2]=r[1],r[1]=this.pos[0];break;case"T":r[0]="Q",r[3]=r[1],r[4]=r[2],r[1]=this.reflection[1],r[2]=this.reflection[0];break;case"S":r[0]="C",r[6]=r[4],r[5]=r[3],r[4]=r[2],r[3]=r[1],r[2]=this.reflection[1],r[1]=this.reflection[0]}return r}function t(r){var n=r.length;return this.pos=[r[n-2],r[n-1]],"SCQT".indexOf(r[0])!=-1&&(this.reflection=[2*this.pos[0]-r[n-4],2*this.pos[1]-r[n-3]]),r}function i(r){var n=[r];switch(r[0]){case"M":return this.pos=this.start=[r[1],r[2]],n;case"L":r[5]=r[3]=r[1],r[6]=r[4]=r[2],r[1]=this.pos[0],r[2]=this.pos[1];break;case"Q":r[6]=r[4],r[5]=r[3],r[4]=1*r[4]/3+2*r[2]/3,r[3]=1*r[3]/3+2*r[1]/3,r[2]=1*this.pos[1]/3+2*r[2]/3,r[1]=1*this.pos[0]/3+2*r[1]/3;break;case"A":n=function(o,l){var c,h,d,u,g,p,f,x,b,m,v,A,y,S,w,k,M,O,P,L,C,_,I,E,z,R,X=Math.abs(l[1]),D=Math.abs(l[2]),Y=l[3]%360,G=l[4],K=l[5],q=l[6],ie=l[7],Z=new ne(o),V=new ne(q,ie),$=[];if(X===0||D===0||Z.x===V.x&&Z.y===V.y)return[["C",Z.x,Z.y,V.x,V.y,V.x,V.y]];for(c=new ne((Z.x-V.x)/2,(Z.y-V.y)/2).transform(new Q().rotate(Y)),h=c.x*c.x/(X*X)+c.y*c.y/(D*D),h>1&&(X*=h=Math.sqrt(h),D*=h),d=new Q().rotate(Y).scale(1/X,1/D).rotate(-Y),Z=Z.transform(d),V=V.transform(d),u=[V.x-Z.x,V.y-Z.y],p=u[0]*u[0]+u[1]*u[1],g=Math.sqrt(p),u[0]/=g,u[1]/=g,f=p<4?Math.sqrt(1-p/4):0,G===K&&(f*=-1),x=new ne((V.x+Z.x)/2+f*-u[1],(V.y+Z.y)/2+f*u[0]),b=new ne(Z.x-x.x,Z.y-x.y),m=new ne(V.x-x.x,V.y-x.y),v=Math.acos(b.x/Math.sqrt(b.x*b.x+b.y*b.y)),b.y<0&&(v*=-1),A=Math.acos(m.x/Math.sqrt(m.x*m.x+m.y*m.y)),m.y<0&&(A*=-1),K&&v>A&&(A+=2*Math.PI),!K&&v<A&&(A-=2*Math.PI),S=Math.ceil(2*Math.abs(v-A)/Math.PI),k=[],M=v,y=(A-v)/S,w=4*Math.tan(y/4)/3,C=0;C<=S;C++)P=Math.cos(M),O=Math.sin(M),L=new ne(x.x+P,x.y+O),k[C]=[new ne(L.x+w*O,L.y-w*P),L,new ne(L.x-w*O,L.y+w*P)],M+=y;for(k[0][0]=k[0][1].clone(),k[k.length-1][2]=k[k.length-1][1].clone(),d=new Q().rotate(Y).scale(X,D).rotate(-Y),C=0,_=k.length;C<_;C++)k[C][0]=k[C][0].transform(d),k[C][1]=k[C][1].transform(d),k[C][2]=k[C][2].transform(d);for(C=1,_=k.length;C<_;C++)I=(L=k[C-1][2]).x,E=L.y,z=(L=k[C][0]).x,R=L.y,q=(L=k[C][1]).x,ie=L.y,$.push(["C",I,E,z,R,q,ie]);return $}(this.pos,r),r=n[0]}return r[0]="C",this.pos=[r[5],r[6]],this.reflection=[2*r[5]-r[3],2*r[6]-r[4]],n}function a(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;if(n===!1)return!1;for(var o=n,l=r.length;o<l;++o)if(r[o][0]=="M")return o;return!1}U(Pe,{morph:function(r,n,o,l,c){for(var h=this.parse(r),d=this.parse(n),u=0,g=0,p=!1,f=!1;u!==!1||g!==!1;){var x;p=a(h,u!==!1&&u+1),f=a(d,g!==!1&&g+1),u===!1&&(u=(x=new Pe(b.start).bbox()).height==0||x.width==0?h.push(h[0])-1:h.push(["M",x.x+x.width/2,x.y+x.height/2])-1),g===!1&&(g=(x=new Pe(b.dest).bbox()).height==0||x.width==0?d.push(d[0])-1:d.push(["M",x.x+x.width/2,x.y+x.height/2])-1);var b=s(h,u,p,d,g,f);h=h.slice(0,u).concat(b.start,p===!1?[]:h.slice(p)),d=d.slice(0,g).concat(b.dest,f===!1?[]:d.slice(f)),u=p!==!1&&u+b.start.length,g=f!==!1&&g+b.dest.length}this._array=h,this.destination=new Pe,this.destination._array=d;var m=this.fromArray(h.map(function(v,A){var y=d[A].map(function(S,w){return w===0?S:l.step(v[w],d[A][w],o,c[A],c)});return y}));return m}})})();var ho=s=>(s.changedTouches&&(s=s.changedTouches[0]),{x:s.clientX,y:s.clientY}),Ns=class{constructor(e){e.remember("_draggable",this),this.el=e,this.drag=this.drag.bind(this),this.startDrag=this.startDrag.bind(this),this.endDrag=this.endDrag.bind(this)}init(e){e?(this.el.on("mousedown.drag",this.startDrag),this.el.on("touchstart.drag",this.startDrag,{passive:!1})):(this.el.off("mousedown.drag"),this.el.off("touchstart.drag"))}startDrag(e){let t=!e.type.indexOf("mouse");if(t&&e.which!==1&&e.buttons!==0||this.el.dispatch("beforedrag",{event:e,handler:this}).defaultPrevented)return;e.preventDefault(),e.stopPropagation(),this.init(!1),this.box=this.el.bbox(),this.lastClick=this.el.point(ho(e));let i=(t?"mouseup":"touchend")+".drag";qe(window,(t?"mousemove":"touchmove")+".drag",this.drag,this,{passive:!1}),qe(window,i,this.endDrag,this,{passive:!1}),this.el.fire("dragstart",{event:e,handler:this,box:this.box})}drag(e){let{box:t,lastClick:i}=this,a=this.el.point(ho(e)),r=a.x-i.x,n=a.y-i.y;if(!r&&!n)return t;let o=t.x+r,l=t.y+n;this.box=new xe(o,l,t.w,t.h),this.lastClick=a,this.el.dispatch("dragmove",{event:e,handler:this,box:this.box}).defaultPrevented||this.move(o,l)}move(e,t){this.el.type==="svg"?je.prototype.move.call(this.el,e,t):this.el.move(e,t)}endDrag(e){this.drag(e),this.el.fire("dragend",{event:e,handler:this,box:this.box}),Re(window,"mousemove.drag"),Re(window,"touchmove.drag"),Re(window,"mouseup.drag"),Re(window,"touchend.drag"),this.init(!0)}};function Bs(s,e,t,i=null){return function(a){a.preventDefault(),a.stopPropagation();var r=a.pageX||a.touches[0].pageX,n=a.pageY||a.touches[0].pageY;e.fire(s,{x:r,y:n,event:a,index:i,points:t})}}function Ws([s,e],{a:t,b:i,c:a,d:r,e:n,f:o}){return[s*t+e*a+n,s*i+e*r+o]}U(we,{draggable(s=!0){return(this.remember("_draggable")||new Ns(this)).init(s),this}});var sl=class{constructor(s){this.el=s,s.remember("_selectHandler",this),this.selection=new je,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);let e=zi();this.observer=new e.MutationObserver(this.mutationHandler)}init(s){this.createHandle=s.createHandle||this.createHandleFn,this.createRot=s.createRot||this.createRotFn,this.updateHandle=s.updateHandle||this.updateHandleFn,this.updateRot=s.updateRot||this.updateRotFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createResizeHandles(),this.updateResizeHandles(),this.createRotationHandle(),this.updateRotationHandle(),this.observer.observe(this.el.node,{attributes:!0})}active(s,e){if(!s)return this.selection.clear().remove(),void this.observer.disconnect();this.init(e)}createSelection(){this.selection.polygon(this.handlePoints).addClass("svg_select_shape")}updateSelection(){this.selection.get(0).plot(this.handlePoints)}createResizeHandles(){this.handlePoints.forEach((s,e,t)=>{let i=this.order[e];this.createHandle.call(this,this.selection,s,e,t,i),this.selection.get(e+1).addClass("svg_select_handle svg_select_handle_"+i).on("mousedown.selection touchstart.selection",Bs(i,this.el,this.handlePoints,e))})}createHandleFn(s){s.polyline()}updateHandleFn(s,e,t,i){let a=i.at(t-1),r=i[(t+1)%i.length],n=e,o=[n[0]-a[0],n[1]-a[1]],l=[n[0]-r[0],n[1]-r[1]],c=Math.sqrt(o[0]*o[0]+o[1]*o[1]),h=Math.sqrt(l[0]*l[0]+l[1]*l[1]),d=[o[0]/c,o[1]/c],u=[l[0]/h,l[1]/h],g=[n[0]-10*d[0],n[1]-10*d[1]],p=[n[0]-10*u[0],n[1]-10*u[1]];s.plot([g,n,p])}updateResizeHandles(){this.handlePoints.forEach((s,e,t)=>{let i=this.order[e];this.updateHandle.call(this,this.selection.get(e+1),s,e,t,i)})}createRotFn(s){s.line(),s.circle(5)}getPoint(s){return this.handlePoints[this.order.indexOf(s)]}getPointHandle(s){return this.selection.get(this.order.indexOf(s)+1)}updateRotFn(s,e){let t=this.getPoint("t");s.get(0).plot(t[0],t[1],e[0],e[1]),s.get(1).center(e[0],e[1])}createRotationHandle(){let s=this.selection.group().addClass("svg_select_handle_rot").on("mousedown.selection touchstart.selection",Bs("rot",this.el,this.handlePoints));this.createRot.call(this,s)}updateRotationHandle(){let s=this.selection.findOne("g.svg_select_handle_rot");this.updateRot(s,this.rotationPoint,this.handlePoints)}updatePoints(){let s=this.el.bbox(),e=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.handlePoints=this.getHandlePoints(s).map(t=>Ws(t,e)),this.rotationPoint=Ws(this.getRotationPoint(s),e)}getHandlePoints({x:s,x2:e,y:t,y2:i,cx:a,cy:r}=this.el.bbox()){return[[s,t],[a,t],[e,t],[e,r],[e,i],[a,i],[s,i],[s,r]]}getRotationPoint({y:s,cx:e}=this.el.bbox()){return[e,s-20]}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updateResizeHandles(),this.updateRotationHandle()}},uo=s=>function(e=!0,t={}){typeof e=="object"&&(t=e,e=!0);let i=this.remember("_"+s.name);return i||(e.prototype instanceof sl?(i=new e(this),e=!0):i=new s(this),this.remember("_"+s.name,i)),i.active(e,t),this};function js(s,e,t,i=null){return function(a){a.preventDefault(),a.stopPropagation();var r=a.pageX||a.touches[0].pageX,n=a.pageY||a.touches[0].pageY;e.fire(s,{x:r,y:n,event:a,index:i,points:t})}}function Gs([s,e],{a:t,b:i,c:a,d:r,e:n,f:o}){return[s*t+e*a+n,s*i+e*r+o]}U(we,{select:uo(sl)}),U([Ze,Ke,yt],{pointSelect:uo(class{constructor(s){this.el=s,s.remember("_pointSelectHandler",this),this.selection=new je,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);let e=zi();this.observer=new e.MutationObserver(this.mutationHandler)}init(s){this.createHandle=s.createHandle||this.createHandleFn,this.updateHandle=s.updateHandle||this.updateHandleFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createPointHandles(),this.updatePointHandles(),this.observer.observe(this.el.node,{attributes:!0})}active(s,e){if(!s)return this.selection.clear().remove(),void this.observer.disconnect();this.init(e)}createSelection(){this.selection.polygon(this.points).addClass("svg_select_shape_pointSelect")}updateSelection(){this.selection.get(0).plot(this.points)}createPointHandles(){this.points.forEach((s,e,t)=>{this.createHandle.call(this,this.selection,s,e,t),this.selection.get(e+1).addClass("svg_select_handle_point").on("mousedown.selection touchstart.selection",Bs("point",this.el,this.points,e))})}createHandleFn(s){s.circle(5)}updateHandleFn(s,e){s.center(e[0],e[1])}updatePointHandles(){this.points.forEach((s,e,t)=>{this.updateHandle.call(this,this.selection.get(e+1),s,e,t)})}updatePoints(){let s=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.points=this.el.array().map(e=>Ws(e,s))}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updatePointHandles()}})});var pa=class{constructor(e){this.el=e,e.remember("_selectHandler",this),this.selection=new je,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);let t=zi();this.observer=new t.MutationObserver(this.mutationHandler)}init(e){this.createHandle=e.createHandle||this.createHandleFn,this.createRot=e.createRot||this.createRotFn,this.updateHandle=e.updateHandle||this.updateHandleFn,this.updateRot=e.updateRot||this.updateRotFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createResizeHandles(),this.updateResizeHandles(),this.createRotationHandle(),this.updateRotationHandle(),this.observer.observe(this.el.node,{attributes:!0})}active(e,t){if(!e)return this.selection.clear().remove(),void this.observer.disconnect();this.init(t)}createSelection(){this.selection.polygon(this.handlePoints).addClass("svg_select_shape")}updateSelection(){this.selection.get(0).plot(this.handlePoints)}createResizeHandles(){this.handlePoints.forEach((e,t,i)=>{let a=this.order[t];this.createHandle.call(this,this.selection,e,t,i,a),this.selection.get(t+1).addClass("svg_select_handle svg_select_handle_"+a).on("mousedown.selection touchstart.selection",js(a,this.el,this.handlePoints,t))})}createHandleFn(e){e.polyline()}updateHandleFn(e,t,i,a){let r=a.at(i-1),n=a[(i+1)%a.length],o=t,l=[o[0]-r[0],o[1]-r[1]],c=[o[0]-n[0],o[1]-n[1]],h=Math.sqrt(l[0]*l[0]+l[1]*l[1]),d=Math.sqrt(c[0]*c[0]+c[1]*c[1]),u=[l[0]/h,l[1]/h],g=[c[0]/d,c[1]/d],p=[o[0]-10*u[0],o[1]-10*u[1]],f=[o[0]-10*g[0],o[1]-10*g[1]];e.plot([p,o,f])}updateResizeHandles(){this.handlePoints.forEach((e,t,i)=>{let a=this.order[t];this.updateHandle.call(this,this.selection.get(t+1),e,t,i,a)})}createRotFn(e){e.line(),e.circle(5)}getPoint(e){return this.handlePoints[this.order.indexOf(e)]}getPointHandle(e){return this.selection.get(this.order.indexOf(e)+1)}updateRotFn(e,t){let i=this.getPoint("t");e.get(0).plot(i[0],i[1],t[0],t[1]),e.get(1).center(t[0],t[1])}createRotationHandle(){let e=this.selection.group().addClass("svg_select_handle_rot").on("mousedown.selection touchstart.selection",js("rot",this.el,this.handlePoints));this.createRot.call(this,e)}updateRotationHandle(){let e=this.selection.findOne("g.svg_select_handle_rot");this.updateRot(e,this.rotationPoint,this.handlePoints)}updatePoints(){let e=this.el.bbox(),t=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.handlePoints=this.getHandlePoints(e).map(i=>Gs(i,t)),this.rotationPoint=Gs(this.getRotationPoint(e),t)}getHandlePoints({x:e,x2:t,y:i,y2:a,cx:r,cy:n}=this.el.bbox()){return[[e,i],[r,i],[t,i],[t,n],[t,a],[r,a],[e,a],[e,n]]}getRotationPoint({y:e,cx:t}=this.el.bbox()){return[t,e-20]}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updateResizeHandles(),this.updateRotationHandle()}},go=s=>function(e=!0,t={}){typeof e=="object"&&(t=e,e=!0);let i=this.remember("_"+s.name);return i||(e.prototype instanceof pa?(i=new e(this),e=!0):i=new s(this),this.remember("_"+s.name,i)),i.active(e,t),this};U(we,{select:go(pa)}),U([Ze,Ke,yt],{pointSelect:go(class{constructor(s){this.el=s,s.remember("_pointSelectHandler",this),this.selection=new je,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);let e=zi();this.observer=new e.MutationObserver(this.mutationHandler)}init(s){this.createHandle=s.createHandle||this.createHandleFn,this.updateHandle=s.updateHandle||this.updateHandleFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createPointHandles(),this.updatePointHandles(),this.observer.observe(this.el.node,{attributes:!0})}active(s,e){if(!s)return this.selection.clear().remove(),void this.observer.disconnect();this.init(e)}createSelection(){this.selection.polygon(this.points).addClass("svg_select_shape_pointSelect")}updateSelection(){this.selection.get(0).plot(this.points)}createPointHandles(){this.points.forEach((s,e,t)=>{this.createHandle.call(this,this.selection,s,e,t),this.selection.get(e+1).addClass("svg_select_handle_point").on("mousedown.selection touchstart.selection",js("point",this.el,this.points,e))})}createHandleFn(s){s.circle(5)}updateHandleFn(s,e){s.center(e[0],e[1])}updatePointHandles(){this.points.forEach((s,e,t)=>{this.updateHandle.call(this,this.selection.get(e+1),s,e,t)})}updatePoints(){let s=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.points=this.el.array().map(e=>Gs(e,s))}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updatePointHandles()}})});var sa=s=>(s.changedTouches&&(s=s.changedTouches[0]),{x:s.clientX,y:s.clientY}),fo=s=>{let e=1/0,t=1/0,i=-1/0,a=-1/0;for(let r=0;r<s.length;r++){let n=s[r];e=Math.min(e,n[0]),t=Math.min(t,n[1]),i=Math.max(i,n[0]),a=Math.max(a,n[1])}return new xe(e,t,i-e,a-t)},xa=class{constructor(e){this.el=e,e.remember("_ResizeHandler",this),this.lastCoordinates=null,this.eventType="",this.lastEvent=null,this.handleResize=this.handleResize.bind(this),this.resize=this.resize.bind(this),this.endResize=this.endResize.bind(this),this.rotate=this.rotate.bind(this),this.movePoint=this.movePoint.bind(this)}active(e,t){this.preserveAspectRatio=t.preserveAspectRatio??!1,this.aroundCenter=t.aroundCenter??!1,this.grid=t.grid??0,this.degree=t.degree??0,this.el.off(".resize"),e&&(this.el.on(["lt.resize","rt.resize","rb.resize","lb.resize","t.resize","r.resize","b.resize","l.resize","rot.resize","point.resize"],this.handleResize),this.lastEvent&&(this.eventType==="rot"?this.rotate(this.lastEvent):this.eventType==="point"?this.movePoint(this.lastEvent):this.resize(this.lastEvent)))}handleResize(e){this.eventType=e.type;let{event:t,index:i,points:a}=e.detail,r=!t.type.indexOf("mouse");if(r&&(t.which||t.buttons)!==1||this.el.dispatch("beforeresize",{event:e,handler:this}).defaultPrevented)return;this.box=this.el.bbox(),this.startPoint=this.el.point(sa(t)),this.index=i,this.points=a.slice();let n=(r?"mousemove":"touchmove")+".resize",o=(r?"mouseup":"touchcancel.resize touchend")+".resize";e.type==="point"?qe(window,n,this.movePoint):e.type==="rot"?qe(window,n,this.rotate):qe(window,n,this.resize),qe(window,o,this.endResize)}resize(e){this.lastEvent=e;let t=this.snapToGrid(this.el.point(sa(e))),i=t.x-this.startPoint.x,a=t.y-this.startPoint.y;this.preserveAspectRatio&&this.aroundCenter&&(i*=2,a*=2);let r=this.box.x+i,n=this.box.y+a,o=this.box.x2+i,l=this.box.y2+a,c=new xe(this.box);if(this.eventType.includes("l")&&(c.x=Math.min(r,this.box.x2),c.x2=Math.max(r,this.box.x2)),this.eventType.includes("r")&&(c.x=Math.min(o,this.box.x),c.x2=Math.max(o,this.box.x)),this.eventType.includes("t")&&(c.y=Math.min(n,this.box.y2),c.y2=Math.max(n,this.box.y2)),this.eventType.includes("b")&&(c.y=Math.min(l,this.box.y),c.y2=Math.max(l,this.box.y)),c.width=c.x2-c.x,c.height=c.y2-c.y,this.preserveAspectRatio){let h=c.width/this.box.width,d=c.height/this.box.height,u=["lt","t","rt","r","rb","b","lb","l"],g=(u.indexOf(this.eventType)+4)%u.length,p=this.aroundCenter?[this.box.cx,this.box.cy]:this.points[g],f=this.eventType.includes("t")||this.eventType.includes("b")?d:h;f=this.eventType.length===2?Math.max(h,d):f,c=function(x,b,m){let v=[[x.x,x.y],[x.x+x.width,x.y],[x.x+x.width,x.y+x.height],[x.x,x.y+x.height]].map(([A,y])=>{let S=A-b[0],w=(y-b[1])*m;return[S*m+b[0],w+b[1]]});return fo(v)}(this.box,p,f)}this.el.dispatch("resize",{box:new xe(c),angle:0,eventType:this.eventType,event:e,handler:this}).defaultPrevented||this.el.size(c.width,c.height).move(c.x,c.y)}movePoint(e){this.lastEvent=e;let{x:t,y:i}=this.snapToGrid(this.el.point(sa(e))),a=this.el.array().slice();a[this.index]=[t,i],this.el.dispatch("resize",{box:fo(a),angle:0,eventType:this.eventType,event:e,handler:this}).defaultPrevented||this.el.plot(a)}rotate(e){this.lastEvent=e;let t=this.startPoint,i=this.el.point(sa(e)),{cx:a,cy:r}=this.box,n=t.x-a,o=t.y-r,l=i.x-a,c=i.y-r,h=Math.sqrt(n*n+o*o)*Math.sqrt(l*l+c*c);if(h===0)return;let d=Math.acos((n*l+o*c)/h)/Math.PI*180;if(!d)return;i.x<t.x&&(d=-d);let u=new Q(this.el),{x:g,y:p}=new ne(a,r).transformO(u),{rotate:f}=u.decompose(),x=this.snapToAngle(f+d)-f;this.el.dispatch("resize",{box:this.box,angle:x,eventType:this.eventType,event:e,handler:this}).defaultPrevented||this.el.transform(u.rotateO(x,g,p))}endResize(e){this.eventType!=="rot"&&this.eventType!=="point"&&this.resize(e),this.lastEvent=null,this.eventType="",Re(window,"mousemove.resize touchmove.resize"),Re(window,"mouseup.resize touchend.resize")}snapToGrid(e){return this.grid&&(e.x=Math.round(e.x/this.grid)*this.grid,e.y=Math.round(e.y/this.grid)*this.grid),e}snapToAngle(e){return this.degree&&(e=Math.round(e/this.degree)*this.degree),e}};U(we,{resize:function(s=!0,e={}){typeof s=="object"&&(e=s,s=!0);let t=this.remember("_ResizeHandler");return t||(s.prototype instanceof xa?(t=new s(this),s=!0):t=new xa(this),this.remember("_resizeHandler",t)),t.active(s,e),this}}),window.SVG===void 0&&(window.SVG=Bd),window.Apex===void 0&&(window.Apex={});var po=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","highlightSeries","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 $t(this.ctx),this.ctx.axes=new Jd(this.ctx),this.ctx.core=new Cu(this.ctx.el,this.ctx),this.ctx.config=new Ii({}),this.ctx.data=new ir(this.ctx),this.ctx.grid=new Uo(this.ctx),this.ctx.graphics=new H(this.ctx),this.ctx.coreUtils=new ge(this.ctx),this.ctx.crosshairs=new Ys(this.ctx),this.ctx.events=new Zd(this.ctx),this.ctx.exports=new wi(this.ctx),this.ctx.fill=new Be(this.ctx),this.ctx.localization=new Kd(this.ctx),this.ctx.options=new vt,this.ctx.responsive=new Qd(this.ctx),this.ctx.series=new He(this.ctx),this.ctx.theme=new eu(this.ctx),this.ctx.formatters=new Ri(this.ctx),this.ctx.titleSubtitle=new tu(this.ctx),this.ctx.legend=new Zo(this.ctx),this.ctx.toolbar=new Ko(this.ctx),this.ctx.tooltip=new lo(this.ctx),this.ctx.dimensions=new fa(this.ctx),this.ctx.updateHelpers=new Mu(this.ctx),this.ctx.zoomPanSelection=new ou(this.ctx),this.ctx.w.globals.tooltip=new lo(this.ctx)}}]),s}(),xo=function(){function s(e){N(this,s),this.ctx=e,this.w=e.w}return B(s,[{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(){this.removeClass("*"),this.off()},!0),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 r=this.w.globals.dom.baseEl;r&&this.ctx.eventList.forEach(function(o){r.removeEventListener(o,t.ctx.events.documentEvent)});var n=this.w.globals.dom;if(this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(n.Paper),n.Paper.remove(),n.elWrap=null,n.elGraphical=null,n.elLegendWrap=null,n.elLegendForeign=null,n.baseEl=null,n.elGridRect=null,n.elGridRectMask=null,n.elGridRectBarMask=null,n.elGridRectMarkerMask=null,n.elForecastMask=null,n.elNonForecastMask=null,n.elDefs=null}}]),s}(),Ls=new WeakMap,rl=function(){function s(e,t){N(this,s),this.opts=t,this.ctx=this,this.w=new qd(t).init(),this.el=e,this.w.globals.cuid=T.randomId(),this.w.globals.chartID=this.w.config.chart.id?T.escapeString(this.w.config.chart.id):this.w.globals.cuid,new po(this).initModules(),this.lastUpdateOptions=null,this.create=T.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return B(s,[{key:"render",value:function(){var e=this;return new Promise(function(t,i){if(T.elementExists(e.el)){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;typeof a=="function"&&a(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(u,g){var p=!1;if(u.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var f=u.getBoundingClientRect();u.style.display!=="none"&&f.width!==0||(p=!0)}var x=new ResizeObserver(function(b){p&&g.call(u,b),p=!0});u.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(u.children).forEach(function(b){return x.observe(b)}):x.observe(u),Ls.set(g,x)}(e.el.parentNode,e.parentResizeHandler);var r=e.el.getRootNode&&e.el.getRootNode(),n=T.is("ShadowRoot",r),o=e.el.ownerDocument,l=n?r.getElementById("apexcharts-css"):o.getElementById("apexcharts-css");if(!l){var c;(l=document.createElement("style")).id="apexcharts-css",l.textContent=`@keyframes opaque {
|
172
|
+
0% {
|
173
|
+
opacity: 0
|
174
|
+
}
|
175
|
+
|
176
|
+
to {
|
177
|
+
opacity: 1
|
178
|
+
}
|
179
|
+
}
|
180
|
+
|
181
|
+
@keyframes resizeanim {
|
182
|
+
|
183
|
+
0%,
|
184
|
+
to {
|
185
|
+
opacity: 0
|
186
|
+
}
|
187
|
+
}
|
188
|
+
|
189
|
+
.apexcharts-canvas {
|
190
|
+
position: relative;
|
191
|
+
direction: ltr !important;
|
192
|
+
user-select: none
|
193
|
+
}
|
194
|
+
|
195
|
+
.apexcharts-canvas ::-webkit-scrollbar {
|
196
|
+
-webkit-appearance: none;
|
197
|
+
width: 6px
|
198
|
+
}
|
199
|
+
|
200
|
+
.apexcharts-canvas ::-webkit-scrollbar-thumb {
|
201
|
+
border-radius: 4px;
|
202
|
+
background-color: rgba(0, 0, 0, .5);
|
203
|
+
box-shadow: 0 0 1px rgba(255, 255, 255, .5);
|
204
|
+
-webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)
|
205
|
+
}
|
206
|
+
|
207
|
+
.apexcharts-inner {
|
208
|
+
position: relative
|
209
|
+
}
|
210
|
+
|
211
|
+
.apexcharts-text tspan {
|
212
|
+
font-family: inherit
|
213
|
+
}
|
214
|
+
|
215
|
+
rect.legend-mouseover-inactive,
|
216
|
+
.legend-mouseover-inactive rect,
|
217
|
+
.legend-mouseover-inactive path,
|
218
|
+
.legend-mouseover-inactive circle,
|
219
|
+
.legend-mouseover-inactive line,
|
220
|
+
.legend-mouseover-inactive text.apexcharts-yaxis-title-text,
|
221
|
+
.legend-mouseover-inactive text.apexcharts-yaxis-label {
|
222
|
+
transition: .15s ease all;
|
223
|
+
opacity: .2
|
224
|
+
}
|
225
|
+
|
226
|
+
.apexcharts-legend-text {
|
227
|
+
padding-left: 15px;
|
228
|
+
margin-left: -15px;
|
229
|
+
}
|
230
|
+
|
231
|
+
.apexcharts-series-collapsed {
|
232
|
+
opacity: 0
|
233
|
+
}
|
234
|
+
|
235
|
+
.apexcharts-tooltip {
|
236
|
+
border-radius: 5px;
|
237
|
+
box-shadow: 2px 2px 6px -4px #999;
|
238
|
+
cursor: default;
|
239
|
+
font-size: 14px;
|
240
|
+
left: 62px;
|
241
|
+
opacity: 0;
|
242
|
+
pointer-events: none;
|
243
|
+
position: absolute;
|
244
|
+
top: 20px;
|
245
|
+
display: flex;
|
246
|
+
flex-direction: column;
|
247
|
+
overflow: hidden;
|
248
|
+
white-space: nowrap;
|
249
|
+
z-index: 12;
|
250
|
+
transition: .15s ease all
|
251
|
+
}
|
252
|
+
|
253
|
+
.apexcharts-tooltip.apexcharts-active {
|
254
|
+
opacity: 1;
|
255
|
+
transition: .15s ease all
|
256
|
+
}
|
257
|
+
|
258
|
+
.apexcharts-tooltip.apexcharts-theme-light {
|
259
|
+
border: 1px solid #e3e3e3;
|
260
|
+
background: rgba(255, 255, 255, .96)
|
261
|
+
}
|
262
|
+
|
263
|
+
.apexcharts-tooltip.apexcharts-theme-dark {
|
264
|
+
color: #fff;
|
265
|
+
background: rgba(30, 30, 30, .8)
|
266
|
+
}
|
267
|
+
|
268
|
+
.apexcharts-tooltip * {
|
269
|
+
font-family: inherit
|
270
|
+
}
|
271
|
+
|
272
|
+
.apexcharts-tooltip-title {
|
273
|
+
padding: 6px;
|
274
|
+
font-size: 15px;
|
275
|
+
margin-bottom: 4px
|
276
|
+
}
|
277
|
+
|
278
|
+
.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
|
279
|
+
background: #eceff1;
|
280
|
+
border-bottom: 1px solid #ddd
|
281
|
+
}
|
282
|
+
|
283
|
+
.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
|
284
|
+
background: rgba(0, 0, 0, .7);
|
285
|
+
border-bottom: 1px solid #333
|
286
|
+
}
|
287
|
+
|
288
|
+
.apexcharts-tooltip-text-goals-value,
|
289
|
+
.apexcharts-tooltip-text-y-value,
|
290
|
+
.apexcharts-tooltip-text-z-value {
|
291
|
+
display: inline-block;
|
292
|
+
margin-left: 5px;
|
293
|
+
font-weight: 600
|
294
|
+
}
|
295
|
+
|
296
|
+
.apexcharts-tooltip-text-goals-label:empty,
|
297
|
+
.apexcharts-tooltip-text-goals-value:empty,
|
298
|
+
.apexcharts-tooltip-text-y-label:empty,
|
299
|
+
.apexcharts-tooltip-text-y-value:empty,
|
300
|
+
.apexcharts-tooltip-text-z-value:empty,
|
301
|
+
.apexcharts-tooltip-title:empty {
|
302
|
+
display: none
|
303
|
+
}
|
304
|
+
|
305
|
+
.apexcharts-tooltip-text-goals-label,
|
306
|
+
.apexcharts-tooltip-text-goals-value {
|
307
|
+
padding: 6px 0 5px
|
308
|
+
}
|
309
|
+
|
310
|
+
.apexcharts-tooltip-goals-group,
|
311
|
+
.apexcharts-tooltip-text-goals-label,
|
312
|
+
.apexcharts-tooltip-text-goals-value {
|
313
|
+
display: flex
|
314
|
+
}
|
315
|
+
|
316
|
+
.apexcharts-tooltip-text-goals-label:not(:empty),
|
317
|
+
.apexcharts-tooltip-text-goals-value:not(:empty) {
|
318
|
+
margin-top: -6px
|
319
|
+
}
|
320
|
+
|
321
|
+
.apexcharts-tooltip-marker {
|
322
|
+
display: inline-block;
|
323
|
+
position: relative;
|
324
|
+
width: 16px;
|
325
|
+
height: 16px;
|
326
|
+
font-size: 16px;
|
327
|
+
line-height: 16px;
|
328
|
+
margin-right: 4px;
|
329
|
+
text-align: center;
|
330
|
+
vertical-align: middle;
|
331
|
+
color: inherit;
|
332
|
+
}
|
333
|
+
|
334
|
+
.apexcharts-tooltip-marker::before {
|
335
|
+
content: "";
|
336
|
+
display: inline-block;
|
337
|
+
width: 100%;
|
338
|
+
text-align: center;
|
339
|
+
color: currentcolor;
|
340
|
+
text-rendering: optimizeLegibility;
|
341
|
+
-webkit-font-smoothing: antialiased;
|
342
|
+
font-size: 26px;
|
343
|
+
font-family: Arial, Helvetica, sans-serif;
|
344
|
+
line-height: 14px;
|
345
|
+
font-weight: 900;
|
346
|
+
}
|
347
|
+
|
348
|
+
.apexcharts-tooltip-marker[shape="circle"]::before {
|
349
|
+
content: "\\25CF";
|
350
|
+
}
|
351
|
+
|
352
|
+
.apexcharts-tooltip-marker[shape="square"]::before,
|
353
|
+
.apexcharts-tooltip-marker[shape="rect"]::before {
|
354
|
+
content: "\\25A0";
|
355
|
+
transform: translate(-1px, -2px);
|
356
|
+
}
|
357
|
+
|
358
|
+
.apexcharts-tooltip-marker[shape="line"]::before {
|
359
|
+
content: "\\2500";
|
360
|
+
}
|
361
|
+
|
362
|
+
.apexcharts-tooltip-marker[shape="diamond"]::before {
|
363
|
+
content: "\\25C6";
|
364
|
+
font-size: 28px;
|
365
|
+
}
|
366
|
+
|
367
|
+
.apexcharts-tooltip-marker[shape="triangle"]::before {
|
368
|
+
content: "\\25B2";
|
369
|
+
font-size: 22px;
|
370
|
+
}
|
371
|
+
|
372
|
+
.apexcharts-tooltip-marker[shape="cross"]::before {
|
373
|
+
content: "\\2715";
|
374
|
+
font-size: 18px;
|
375
|
+
}
|
376
|
+
|
377
|
+
.apexcharts-tooltip-marker[shape="plus"]::before {
|
378
|
+
content: "\\2715";
|
379
|
+
transform: rotate(45deg) translate(-1px, -1px);
|
380
|
+
font-size: 18px;
|
381
|
+
}
|
382
|
+
|
383
|
+
.apexcharts-tooltip-marker[shape="star"]::before {
|
384
|
+
content: "\\2605";
|
385
|
+
font-size: 18px;
|
386
|
+
}
|
387
|
+
|
388
|
+
.apexcharts-tooltip-marker[shape="sparkle"]::before {
|
389
|
+
content: "\\2726";
|
390
|
+
font-size: 20px;
|
391
|
+
}
|
392
|
+
|
393
|
+
.apexcharts-tooltip-series-group {
|
394
|
+
padding: 0 10px;
|
395
|
+
display: none;
|
396
|
+
text-align: left;
|
397
|
+
justify-content: left;
|
398
|
+
align-items: center
|
399
|
+
}
|
400
|
+
|
401
|
+
.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
|
402
|
+
opacity: 1
|
403
|
+
}
|
404
|
+
|
405
|
+
.apexcharts-tooltip-series-group.apexcharts-active,
|
406
|
+
.apexcharts-tooltip-series-group:last-child {
|
407
|
+
padding-bottom: 4px
|
408
|
+
}
|
409
|
+
|
410
|
+
.apexcharts-tooltip-y-group {
|
411
|
+
padding: 6px 0 5px
|
412
|
+
}
|
413
|
+
|
414
|
+
.apexcharts-custom-tooltip,
|
415
|
+
.apexcharts-tooltip-box {
|
416
|
+
padding: 4px 8px
|
417
|
+
}
|
418
|
+
|
419
|
+
.apexcharts-tooltip-boxPlot {
|
420
|
+
display: flex;
|
421
|
+
flex-direction: column-reverse
|
422
|
+
}
|
423
|
+
|
424
|
+
.apexcharts-tooltip-box>div {
|
425
|
+
margin: 4px 0
|
426
|
+
}
|
427
|
+
|
428
|
+
.apexcharts-tooltip-box span.value {
|
429
|
+
font-weight: 700
|
430
|
+
}
|
431
|
+
|
432
|
+
.apexcharts-tooltip-rangebar {
|
433
|
+
padding: 5px 8px
|
434
|
+
}
|
435
|
+
|
436
|
+
.apexcharts-tooltip-rangebar .category {
|
437
|
+
font-weight: 600;
|
438
|
+
color: #777
|
439
|
+
}
|
440
|
+
|
441
|
+
.apexcharts-tooltip-rangebar .series-name {
|
442
|
+
font-weight: 700;
|
443
|
+
display: block;
|
444
|
+
margin-bottom: 5px
|
445
|
+
}
|
446
|
+
|
447
|
+
.apexcharts-xaxistooltip,
|
448
|
+
.apexcharts-yaxistooltip {
|
449
|
+
opacity: 0;
|
450
|
+
pointer-events: none;
|
451
|
+
color: #373d3f;
|
452
|
+
font-size: 13px;
|
453
|
+
text-align: center;
|
454
|
+
border-radius: 2px;
|
455
|
+
position: absolute;
|
456
|
+
z-index: 10;
|
457
|
+
background: #eceff1;
|
458
|
+
border: 1px solid #90a4ae
|
459
|
+
}
|
460
|
+
|
461
|
+
.apexcharts-xaxistooltip {
|
462
|
+
padding: 9px 10px;
|
463
|
+
transition: .15s ease all
|
464
|
+
}
|
465
|
+
|
466
|
+
.apexcharts-xaxistooltip.apexcharts-theme-dark {
|
467
|
+
background: rgba(0, 0, 0, .7);
|
468
|
+
border: 1px solid rgba(0, 0, 0, .5);
|
469
|
+
color: #fff
|
470
|
+
}
|
471
|
+
|
472
|
+
.apexcharts-xaxistooltip:after,
|
473
|
+
.apexcharts-xaxistooltip:before {
|
474
|
+
left: 50%;
|
475
|
+
border: solid transparent;
|
476
|
+
content: " ";
|
477
|
+
height: 0;
|
478
|
+
width: 0;
|
479
|
+
position: absolute;
|
480
|
+
pointer-events: none
|
481
|
+
}
|
482
|
+
|
483
|
+
.apexcharts-xaxistooltip:after {
|
484
|
+
border-color: transparent;
|
485
|
+
border-width: 6px;
|
486
|
+
margin-left: -6px
|
487
|
+
}
|
488
|
+
|
489
|
+
.apexcharts-xaxistooltip:before {
|
490
|
+
border-color: transparent;
|
491
|
+
border-width: 7px;
|
492
|
+
margin-left: -7px
|
493
|
+
}
|
494
|
+
|
495
|
+
.apexcharts-xaxistooltip-bottom:after,
|
496
|
+
.apexcharts-xaxistooltip-bottom:before {
|
497
|
+
bottom: 100%
|
498
|
+
}
|
499
|
+
|
500
|
+
.apexcharts-xaxistooltip-top:after,
|
501
|
+
.apexcharts-xaxistooltip-top:before {
|
502
|
+
top: 100%
|
503
|
+
}
|
504
|
+
|
505
|
+
.apexcharts-xaxistooltip-bottom:after {
|
506
|
+
border-bottom-color: #eceff1
|
507
|
+
}
|
508
|
+
|
509
|
+
.apexcharts-xaxistooltip-bottom:before {
|
510
|
+
border-bottom-color: #90a4ae
|
511
|
+
}
|
512
|
+
|
513
|
+
.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,
|
514
|
+
.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {
|
515
|
+
border-bottom-color: rgba(0, 0, 0, .5)
|
516
|
+
}
|
517
|
+
|
518
|
+
.apexcharts-xaxistooltip-top:after {
|
519
|
+
border-top-color: #eceff1
|
520
|
+
}
|
521
|
+
|
522
|
+
.apexcharts-xaxistooltip-top:before {
|
523
|
+
border-top-color: #90a4ae
|
524
|
+
}
|
525
|
+
|
526
|
+
.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,
|
527
|
+
.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {
|
528
|
+
border-top-color: rgba(0, 0, 0, .5)
|
529
|
+
}
|
530
|
+
|
531
|
+
.apexcharts-xaxistooltip.apexcharts-active {
|
532
|
+
opacity: 1;
|
533
|
+
transition: .15s ease all
|
534
|
+
}
|
535
|
+
|
536
|
+
.apexcharts-yaxistooltip {
|
537
|
+
padding: 4px 10px
|
538
|
+
}
|
539
|
+
|
540
|
+
.apexcharts-yaxistooltip.apexcharts-theme-dark {
|
541
|
+
background: rgba(0, 0, 0, .7);
|
542
|
+
border: 1px solid rgba(0, 0, 0, .5);
|
543
|
+
color: #fff
|
544
|
+
}
|
545
|
+
|
546
|
+
.apexcharts-yaxistooltip:after,
|
547
|
+
.apexcharts-yaxistooltip:before {
|
548
|
+
top: 50%;
|
549
|
+
border: solid transparent;
|
550
|
+
content: " ";
|
551
|
+
height: 0;
|
552
|
+
width: 0;
|
553
|
+
position: absolute;
|
554
|
+
pointer-events: none
|
555
|
+
}
|
556
|
+
|
557
|
+
.apexcharts-yaxistooltip:after {
|
558
|
+
border-color: transparent;
|
559
|
+
border-width: 6px;
|
560
|
+
margin-top: -6px
|
561
|
+
}
|
562
|
+
|
563
|
+
.apexcharts-yaxistooltip:before {
|
564
|
+
border-color: transparent;
|
565
|
+
border-width: 7px;
|
566
|
+
margin-top: -7px
|
567
|
+
}
|
568
|
+
|
569
|
+
.apexcharts-yaxistooltip-left:after,
|
570
|
+
.apexcharts-yaxistooltip-left:before {
|
571
|
+
left: 100%
|
572
|
+
}
|
573
|
+
|
574
|
+
.apexcharts-yaxistooltip-right:after,
|
575
|
+
.apexcharts-yaxistooltip-right:before {
|
576
|
+
right: 100%
|
577
|
+
}
|
578
|
+
|
579
|
+
.apexcharts-yaxistooltip-left:after {
|
580
|
+
border-left-color: #eceff1
|
581
|
+
}
|
582
|
+
|
583
|
+
.apexcharts-yaxistooltip-left:before {
|
584
|
+
border-left-color: #90a4ae
|
585
|
+
}
|
586
|
+
|
587
|
+
.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,
|
588
|
+
.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {
|
589
|
+
border-left-color: rgba(0, 0, 0, .5)
|
590
|
+
}
|
591
|
+
|
592
|
+
.apexcharts-yaxistooltip-right:after {
|
593
|
+
border-right-color: #eceff1
|
594
|
+
}
|
595
|
+
|
596
|
+
.apexcharts-yaxistooltip-right:before {
|
597
|
+
border-right-color: #90a4ae
|
598
|
+
}
|
599
|
+
|
600
|
+
.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,
|
601
|
+
.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {
|
602
|
+
border-right-color: rgba(0, 0, 0, .5)
|
603
|
+
}
|
604
|
+
|
605
|
+
.apexcharts-yaxistooltip.apexcharts-active {
|
606
|
+
opacity: 1
|
607
|
+
}
|
608
|
+
|
609
|
+
.apexcharts-yaxistooltip-hidden {
|
610
|
+
display: none
|
611
|
+
}
|
612
|
+
|
613
|
+
.apexcharts-xcrosshairs,
|
614
|
+
.apexcharts-ycrosshairs {
|
615
|
+
pointer-events: none;
|
616
|
+
opacity: 0;
|
617
|
+
transition: .15s ease all
|
618
|
+
}
|
619
|
+
|
620
|
+
.apexcharts-xcrosshairs.apexcharts-active,
|
621
|
+
.apexcharts-ycrosshairs.apexcharts-active {
|
622
|
+
opacity: 1;
|
623
|
+
transition: .15s ease all
|
624
|
+
}
|
625
|
+
|
626
|
+
.apexcharts-ycrosshairs-hidden {
|
627
|
+
opacity: 0
|
628
|
+
}
|
629
|
+
|
630
|
+
.apexcharts-selection-rect {
|
631
|
+
cursor: move
|
632
|
+
}
|
633
|
+
|
634
|
+
.svg_select_shape {
|
635
|
+
stroke-width: 1;
|
636
|
+
stroke-dasharray: 10 10;
|
637
|
+
stroke: black;
|
638
|
+
stroke-opacity: 0.1;
|
639
|
+
pointer-events: none;
|
640
|
+
fill: none;
|
641
|
+
}
|
642
|
+
|
643
|
+
.svg_select_handle {
|
644
|
+
stroke-width: 3;
|
645
|
+
stroke: black;
|
646
|
+
fill: none;
|
647
|
+
}
|
648
|
+
|
649
|
+
.svg_select_handle_r {
|
650
|
+
cursor: e-resize;
|
651
|
+
}
|
652
|
+
|
653
|
+
.svg_select_handle_l {
|
654
|
+
cursor: w-resize;
|
655
|
+
}
|
656
|
+
|
657
|
+
.apexcharts-svg.apexcharts-zoomable.hovering-zoom {
|
658
|
+
cursor: crosshair
|
659
|
+
}
|
660
|
+
|
661
|
+
.apexcharts-svg.apexcharts-zoomable.hovering-pan {
|
662
|
+
cursor: move
|
663
|
+
}
|
664
|
+
|
665
|
+
.apexcharts-menu-icon,
|
666
|
+
.apexcharts-pan-icon,
|
667
|
+
.apexcharts-reset-icon,
|
668
|
+
.apexcharts-selection-icon,
|
669
|
+
.apexcharts-toolbar-custom-icon,
|
670
|
+
.apexcharts-zoom-icon,
|
671
|
+
.apexcharts-zoomin-icon,
|
672
|
+
.apexcharts-zoomout-icon {
|
673
|
+
cursor: pointer;
|
674
|
+
width: 20px;
|
675
|
+
height: 20px;
|
676
|
+
line-height: 24px;
|
677
|
+
color: #6e8192;
|
678
|
+
text-align: center
|
679
|
+
}
|
680
|
+
|
681
|
+
.apexcharts-menu-icon svg,
|
682
|
+
.apexcharts-reset-icon svg,
|
683
|
+
.apexcharts-zoom-icon svg,
|
684
|
+
.apexcharts-zoomin-icon svg,
|
685
|
+
.apexcharts-zoomout-icon svg {
|
686
|
+
fill: #6e8192
|
687
|
+
}
|
688
|
+
|
689
|
+
.apexcharts-selection-icon svg {
|
690
|
+
fill: #444;
|
691
|
+
transform: scale(.76)
|
692
|
+
}
|
693
|
+
|
694
|
+
.apexcharts-theme-dark .apexcharts-menu-icon svg,
|
695
|
+
.apexcharts-theme-dark .apexcharts-pan-icon svg,
|
696
|
+
.apexcharts-theme-dark .apexcharts-reset-icon svg,
|
697
|
+
.apexcharts-theme-dark .apexcharts-selection-icon svg,
|
698
|
+
.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,
|
699
|
+
.apexcharts-theme-dark .apexcharts-zoom-icon svg,
|
700
|
+
.apexcharts-theme-dark .apexcharts-zoomin-icon svg,
|
701
|
+
.apexcharts-theme-dark .apexcharts-zoomout-icon svg {
|
702
|
+
fill: #f3f4f5
|
703
|
+
}
|
704
|
+
|
705
|
+
.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,
|
706
|
+
.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,
|
707
|
+
.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {
|
708
|
+
fill: #008ffb
|
709
|
+
}
|
710
|
+
|
711
|
+
.apexcharts-theme-light .apexcharts-menu-icon:hover svg,
|
712
|
+
.apexcharts-theme-light .apexcharts-reset-icon:hover svg,
|
713
|
+
.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,
|
714
|
+
.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,
|
715
|
+
.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,
|
716
|
+
.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {
|
717
|
+
fill: #333
|
718
|
+
}
|
719
|
+
|
720
|
+
.apexcharts-menu-icon,
|
721
|
+
.apexcharts-selection-icon {
|
722
|
+
position: relative
|
723
|
+
}
|
724
|
+
|
725
|
+
.apexcharts-reset-icon {
|
726
|
+
margin-left: 5px
|
727
|
+
}
|
728
|
+
|
729
|
+
.apexcharts-menu-icon,
|
730
|
+
.apexcharts-reset-icon,
|
731
|
+
.apexcharts-zoom-icon {
|
732
|
+
transform: scale(.85)
|
733
|
+
}
|
734
|
+
|
735
|
+
.apexcharts-zoomin-icon,
|
736
|
+
.apexcharts-zoomout-icon {
|
737
|
+
transform: scale(.7)
|
738
|
+
}
|
739
|
+
|
740
|
+
.apexcharts-zoomout-icon {
|
741
|
+
margin-right: 3px
|
742
|
+
}
|
743
|
+
|
744
|
+
.apexcharts-pan-icon {
|
745
|
+
transform: scale(.62);
|
746
|
+
position: relative;
|
747
|
+
left: 1px;
|
748
|
+
top: 0
|
749
|
+
}
|
750
|
+
|
751
|
+
.apexcharts-pan-icon svg {
|
752
|
+
fill: #fff;
|
753
|
+
stroke: #6e8192;
|
754
|
+
stroke-width: 2
|
755
|
+
}
|
756
|
+
|
757
|
+
.apexcharts-pan-icon.apexcharts-selected svg {
|
758
|
+
stroke: #008ffb
|
759
|
+
}
|
760
|
+
|
761
|
+
.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {
|
762
|
+
stroke: #333
|
763
|
+
}
|
764
|
+
|
765
|
+
.apexcharts-toolbar {
|
766
|
+
position: absolute;
|
767
|
+
z-index: 11;
|
768
|
+
max-width: 176px;
|
769
|
+
text-align: right;
|
770
|
+
border-radius: 3px;
|
771
|
+
padding: 0 6px 2px;
|
772
|
+
display: flex;
|
773
|
+
justify-content: space-between;
|
774
|
+
align-items: center
|
775
|
+
}
|
776
|
+
|
777
|
+
.apexcharts-menu {
|
778
|
+
background: #fff;
|
779
|
+
position: absolute;
|
780
|
+
top: 100%;
|
781
|
+
border: 1px solid #ddd;
|
782
|
+
border-radius: 3px;
|
783
|
+
padding: 3px;
|
784
|
+
right: 10px;
|
785
|
+
opacity: 0;
|
786
|
+
min-width: 110px;
|
787
|
+
transition: .15s ease all;
|
788
|
+
pointer-events: none
|
789
|
+
}
|
790
|
+
|
791
|
+
.apexcharts-menu.apexcharts-menu-open {
|
792
|
+
opacity: 1;
|
793
|
+
pointer-events: all;
|
794
|
+
transition: .15s ease all
|
795
|
+
}
|
796
|
+
|
797
|
+
.apexcharts-menu-item {
|
798
|
+
padding: 6px 7px;
|
799
|
+
font-size: 12px;
|
800
|
+
cursor: pointer
|
801
|
+
}
|
802
|
+
|
803
|
+
.apexcharts-theme-light .apexcharts-menu-item:hover {
|
804
|
+
background: #eee
|
805
|
+
}
|
806
|
+
|
807
|
+
.apexcharts-theme-dark .apexcharts-menu {
|
808
|
+
background: rgba(0, 0, 0, .7);
|
809
|
+
color: #fff
|
810
|
+
}
|
811
|
+
|
812
|
+
@media screen and (min-width:768px) {
|
813
|
+
.apexcharts-canvas:hover .apexcharts-toolbar {
|
814
|
+
opacity: 1
|
815
|
+
}
|
816
|
+
}
|
817
|
+
|
818
|
+
.apexcharts-canvas .apexcharts-element-hidden,
|
819
|
+
.apexcharts-datalabel.apexcharts-element-hidden,
|
820
|
+
.apexcharts-hide .apexcharts-series-points {
|
821
|
+
opacity: 0;
|
822
|
+
}
|
823
|
+
|
824
|
+
.apexcharts-hidden-element-shown {
|
825
|
+
opacity: 1;
|
826
|
+
transition: 0.25s ease all;
|
827
|
+
}
|
828
|
+
|
829
|
+
.apexcharts-datalabel,
|
830
|
+
.apexcharts-datalabel-label,
|
831
|
+
.apexcharts-datalabel-value,
|
832
|
+
.apexcharts-datalabels,
|
833
|
+
.apexcharts-pie-label {
|
834
|
+
cursor: default;
|
835
|
+
pointer-events: none
|
836
|
+
}
|
837
|
+
|
838
|
+
.apexcharts-pie-label-delay {
|
839
|
+
opacity: 0;
|
840
|
+
animation-name: opaque;
|
841
|
+
animation-duration: .3s;
|
842
|
+
animation-fill-mode: forwards;
|
843
|
+
animation-timing-function: ease
|
844
|
+
}
|
845
|
+
|
846
|
+
.apexcharts-radialbar-label {
|
847
|
+
cursor: pointer;
|
848
|
+
}
|
849
|
+
|
850
|
+
.apexcharts-annotation-rect,
|
851
|
+
.apexcharts-area-series .apexcharts-area,
|
852
|
+
.apexcharts-gridline,
|
853
|
+
.apexcharts-line,
|
854
|
+
.apexcharts-point-annotation-label,
|
855
|
+
.apexcharts-radar-series path:not(.apexcharts-marker),
|
856
|
+
.apexcharts-radar-series polygon,
|
857
|
+
.apexcharts-toolbar svg,
|
858
|
+
.apexcharts-tooltip .apexcharts-marker,
|
859
|
+
.apexcharts-xaxis-annotation-label,
|
860
|
+
.apexcharts-yaxis-annotation-label,
|
861
|
+
.apexcharts-zoom-rect,
|
862
|
+
.no-pointer-events {
|
863
|
+
pointer-events: none
|
864
|
+
}
|
865
|
+
|
866
|
+
.apexcharts-tooltip-active .apexcharts-marker {
|
867
|
+
transition: .15s ease all
|
868
|
+
}
|
869
|
+
|
870
|
+
.apexcharts-radar-series .apexcharts-yaxis {
|
871
|
+
pointer-events: none;
|
872
|
+
}
|
873
|
+
|
874
|
+
.resize-triggers {
|
875
|
+
animation: 1ms resizeanim;
|
876
|
+
visibility: hidden;
|
877
|
+
opacity: 0;
|
878
|
+
height: 100%;
|
879
|
+
width: 100%;
|
880
|
+
overflow: hidden
|
881
|
+
}
|
882
|
+
|
883
|
+
.contract-trigger:before,
|
884
|
+
.resize-triggers,
|
885
|
+
.resize-triggers>div {
|
886
|
+
content: " ";
|
887
|
+
display: block;
|
888
|
+
position: absolute;
|
889
|
+
top: 0;
|
890
|
+
left: 0
|
891
|
+
}
|
892
|
+
|
893
|
+
.resize-triggers>div {
|
894
|
+
height: 100%;
|
895
|
+
width: 100%;
|
896
|
+
background: #eee;
|
897
|
+
overflow: auto
|
898
|
+
}
|
899
|
+
|
900
|
+
.contract-trigger:before {
|
901
|
+
overflow: hidden;
|
902
|
+
width: 200%;
|
903
|
+
height: 200%
|
904
|
+
}
|
905
|
+
|
906
|
+
.apexcharts-bar-goals-markers {
|
907
|
+
pointer-events: none
|
908
|
+
}
|
909
|
+
|
910
|
+
.apexcharts-bar-shadows {
|
911
|
+
pointer-events: none
|
912
|
+
}
|
913
|
+
|
914
|
+
.apexcharts-rangebar-goals-markers {
|
915
|
+
pointer-events: none
|
916
|
+
}
|
917
|
+
|
918
|
+
.apexcharts-disable-transitions * {
|
919
|
+
transition: none !important;
|
920
|
+
}`;var h=((c=e.opts.chart)===null||c===void 0?void 0:c.nonce)||e.w.config.chart.nonce;h&&l.setAttribute("nonce",h),n?r.prepend(l):o.head.appendChild(l)}var d=e.create(e.w.config.series,{});if(!d)return t(e);e.mount(d).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(d)}).catch(function(u){i(u)})}else i(new Error("Element not found"))})}},{key:"create",value:function(e,t){var i=this,a=this.w;new po(this).initModules();var r=this.w.globals;if(r.noData=!1,r.animationEnded=!1,!T.elementExists(this.el)||(this.responsive.checkResponsiveConfig(t),a.config.xaxis.convertedCatToNumeric&&new Pi(a.config).convertCatToNumericXaxis(a.config,this.ctx),this.core.setupElements(),a.config.chart.type==="treemap"&&(a.config.grid.show=!1,a.config.yaxis[0].show=!1),r.svgWidth===0))return r.animationEnded=!0,null;var n=e;e.forEach(function(u,g){u.hidden&&(n=i.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:g}))});var o=ge.checkComboSeries(n,a.config.chart.type);r.comboCharts=o.comboCharts,r.comboBarCount=o.comboBarCount;var l=n.every(function(u){return u.data&&u.data.length===0});(n.length===0||l&&r.collapsedSeries.length<1)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(n),this.theme.init(),new Kt(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),r.noData&&r.collapsedSeries.length!==r.series.length&&!a.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),r.axisCharts&&(this.core.coreCalculations(),a.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=a.globals.minX,this.ctx.toolbar.maxX=a.globals.maxX),this.formatters.heatmapLabelFormatters(),new ge(this).getLargestMarkerSize(),this.dimensions.plotCoords();var c=this.core.xySettings();this.grid.createGridMask();var h=this.core.plotChartType(n,c),d=new Gt(this);return d.bringForward(),a.config.dataLabels.background.enabled&&d.dataLabelsBackground(),this.core.shiftGraphPosition(),a.globals.dataPoints>50&&a.globals.dom.elWrap.classList.add("apexcharts-disable-transitions"),{elGraph:h,xyRatios:c,dimensions:{plot:{left:a.globals.translateX,top:a.globals.translateY,width:a.globals.gridWidth,height:a.globals.gridHeight}}}}},{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(r,n){if(i.el===null)return n(new Error("Not enough data to display or target element not found"));(t===null||a.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new Uo(i);var o,l,c=i.grid.drawGrid();if(i.annotations=new Ud(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),a.config.grid.position==="back"&&(c&&a.globals.dom.elGraphical.add(c.el),c!=null&&(o=c.elGridBorders)!==null&&o!==void 0&&o.node&&a.globals.dom.elGraphical.add(c.elGridBorders)),Array.isArray(t.elGraph))for(var h=0;h<t.elGraph.length;h++)a.globals.dom.elGraphical.add(t.elGraph[h]);else a.globals.dom.elGraphical.add(t.elGraph);a.config.grid.position==="front"&&(c&&a.globals.dom.elGraphical.add(c.el),c!=null&&(l=c.elGridBorders)!==null&&l!==void 0&&l.node&&a.globals.dom.elGraphical.add(c.elGridBorders)),a.config.xaxis.crosshairs.position==="front"&&i.crosshairs.drawXCrosshairs(),a.config.yaxis[0].crosshairs.position==="front"&&i.crosshairs.drawYCrosshairs(),a.config.chart.type!=="treemap"&&i.axes.drawAxis(a.config.chart.type,c);var d=new Ti(e.ctx,c),u=new ar(e.ctx,c);if(c!==null&&(d.xAxisLabelCorrections(c.xAxisTickWidth),u.setYAxisTextAlignments(),a.config.yaxis.map(function(p,f){a.globals.ignoreYAxisIndexes.indexOf(f)===-1&&u.yAxisTitleRotate(f,p.opposite)})),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 g=a.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(p){g[p]=!1})}a.config.chart.toolbar.show&&!a.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}a.globals.memory.methodsToExec.length>0&&a.globals.memory.methodsToExec.forEach(function(p){p.method(p.params,!1,p.context)}),a.globals.axisCharts||a.globals.noData||i.core.resizeNonAxisCharts(),r(i)})}},{key:"destroy",value:function(){window.removeEventListener("resize",this.windowResizeHandler),function(t,i){var a=Ls.get(i);a&&(a.disconnect(),Ls.delete(i))}(this.el.parentNode,this.parentResizeHandler);var e=this.w.config.chart.id;e&&Apex._chartInstances.forEach(function(t,i){t.id===T.escapeString(e)&&Apex._chartInstances.splice(i,1)}),new xo(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],r=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],n=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],o=this.w;return o.globals.selection=void 0,this.lastUpdateOptions&&JSON.stringify(this.lastUpdateOptions)===JSON.stringify(e)?this:(this.lastUpdateOptions=T.clone(e),e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map(function(l,c){return t.updateHelpers._extendSeries(l,c)})),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),o.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,i,a,r,n))}},{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(),r=0;r<a.length;r++)if(e[r]!==null&&e[r]!==void 0)for(var n=0;n<e[r].data.length;n++)a[r].data.push(e[r].data[n]);return i.w.config.series=a,t&&(i.w.globals.initialSeries=T.clone(i.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise(function(i,a){if(t.lastUpdateOptions&&JSON.stringify(t.lastUpdateOptions)===JSON.stringify(e))return i(t);t.lastUpdateOptions=T.clone(e),new xo(t.ctx).clear({isUpdating:!0});var r=t.create(t.w.config.series,e);if(!r)return i(t);t.mount(r).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(n){a(n)})})}},{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:"highlightSeries",value:function(e){this.series.highlightSeries(e)}},{key:"isSeriesHidden",value:function(e){this.series.isSeriesHidden(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;return new Fs(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new Fs(this.ctx).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 wi(this.ctx).dataURI(e)}},{key:"getSvgString",value:function(e){return new wi(this.ctx).getSvgString(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new wi(this.ctx).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=T.escapeString(e);if(Apex._chartInstances){var 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 s(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 r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];a=i[t].apply(i,n)}return a}}},{key:"merge",value:function(e,t){return T.extend(e,t)}}]),s}();var yr=kr(Ul());window.dayjs=ql.default;window.debug=yr.debug;window.Alpine=ps;window.ApexCharts=rl;ps.start();yr.debug.browser.warn("Lesli application","LesliAssets");})();
|
921
|
+
/*
|
922
|
+
Lesli
|
923
|
+
|
924
|
+
Copyright (c) 2025, Lesli Technologies, S. A.
|
925
|
+
|
926
|
+
This program is free software: you can redistribute it and/or modify
|
927
|
+
it under the terms of the GNU General Public License as published by
|
928
|
+
the Free Software Foundation, either version 3 of the License, or
|
929
|
+
(at your option) any later version.
|
930
|
+
|
931
|
+
This program is distributed in the hope that it will be useful,
|
932
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
933
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
934
|
+
GNU General Public License for more details.
|
935
|
+
|
936
|
+
You should have received a copy of the GNU General Public License
|
937
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
938
|
+
|
939
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
940
|
+
|
941
|
+
Made with ♥ by LesliTech
|
942
|
+
Building a better future, one line of code at a time.
|
943
|
+
|
944
|
+
@contact hello@lesli.tech
|
945
|
+
@website https://www.lesli.tech
|
946
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
947
|
+
|
948
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
949
|
+
// ·
|
950
|
+
*/
|
951
|
+
/*! Bundled license information:
|
952
|
+
|
953
|
+
lesli-js/src/debug/utils.js:
|
954
|
+
lesli-js/src/debug/nodejs.js:
|
955
|
+
lesli-js/src/debug/index.js:
|
956
|
+
lesli-js/index.js:
|
957
|
+
(*
|
958
|
+
Lesli
|
959
|
+
|
960
|
+
Copyright (c) 2021, Lesli Technologies, S. A.
|
961
|
+
|
962
|
+
This program is free software: you can redistribute it and/or modify
|
963
|
+
it under the terms of the GNU General Public License as published by
|
964
|
+
the Free Software Foundation, either version 3 of the License, or
|
965
|
+
(at your option) any later version.
|
966
|
+
|
967
|
+
This program is distributed in the hope that it will be useful,
|
968
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
969
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
970
|
+
GNU General Public License for more details.
|
971
|
+
|
972
|
+
You should have received a copy of the GNU General Public License
|
973
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
974
|
+
|
975
|
+
Lesli JS - JavaScript utilities for JavaScript applications
|
976
|
+
|
977
|
+
Powered by LesliTech
|
978
|
+
Building a better future, one line of code at a time.
|
979
|
+
|
980
|
+
@contact <hello@lesli.tech>
|
981
|
+
@website <https://lesli.tech>
|
982
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
983
|
+
|
984
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
985
|
+
// ·
|
986
|
+
*)
|
987
|
+
|
988
|
+
lesli-js/src/debug/browser.js:
|
989
|
+
(*
|
990
|
+
Lesli
|
991
|
+
|
992
|
+
Copyright (c) 2020, Lesli Technologies, S. A.
|
993
|
+
|
994
|
+
This program is free software: you can redistribute it and/or modify
|
995
|
+
it under the terms of the GNU General Public License as published by
|
996
|
+
the Free Software Foundation, either version 3 of the License, or
|
997
|
+
(at your option) any later version.
|
998
|
+
|
999
|
+
This program is distributed in the hope that it will be useful,
|
1000
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
1001
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
1002
|
+
GNU General Public License for more details.
|
1003
|
+
|
1004
|
+
You should have received a copy of the GNU General Public License
|
1005
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
1006
|
+
|
1007
|
+
Lesli JS - JavaScript utilities for JavaScript applications
|
1008
|
+
|
1009
|
+
Powered by LesliTech
|
1010
|
+
Building a better future, one line of code at a time.
|
1011
|
+
|
1012
|
+
@contact <hello@lesli.tech>
|
1013
|
+
@website <https://lesli.tech>
|
1014
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
1015
|
+
|
1016
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
1017
|
+
// ·
|
1018
|
+
*)
|
1019
|
+
|
1020
|
+
lesli-js/src/color/palette.js:
|
1021
|
+
(*
|
1022
|
+
Lesli
|
1023
|
+
|
1024
|
+
Copyright {c} 2021', Lesli Technologies', S. A.
|
1025
|
+
|
1026
|
+
This program is free software: you can redistribute it and/or modify
|
1027
|
+
it under the terms of the GNU General Public License as published by
|
1028
|
+
the Free Software Foundation', either version 3 of the License', or
|
1029
|
+
{at your option} any later version.
|
1030
|
+
|
1031
|
+
This program is distributed in the hope that it will be useful',
|
1032
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
1033
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
1034
|
+
GNU General Public License for more details.
|
1035
|
+
|
1036
|
+
You should have received a copy of the GNU General Public License
|
1037
|
+
along with this program. If not', see <http://www.gnu.org/licenses/>.
|
1038
|
+
|
1039
|
+
Lesli JS - JavaScript utilities for JavaScript applications
|
1040
|
+
|
1041
|
+
Powered by The Lesli Development Team
|
1042
|
+
Building a better future', one line of code at a time.
|
1043
|
+
|
1044
|
+
@contact <hello@lesli.tech>
|
1045
|
+
@website <https://lesli.tech>
|
1046
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
1047
|
+
|
1048
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
1049
|
+
// ·
|
1050
|
+
*)
|
1051
|
+
|
1052
|
+
lesli-js/src/color/graph.js:
|
1053
|
+
lesli-js/src/color/index.js:
|
1054
|
+
(*
|
1055
|
+
Lesli
|
1056
|
+
|
1057
|
+
Copyright (c) 2021, Lesli Technologies, S. A.
|
1058
|
+
|
1059
|
+
This program is free software: you can redistribute it and/or modify
|
1060
|
+
it under the terms of the GNU General Public License as published by
|
1061
|
+
the Free Software Foundation, either version 3 of the License, or
|
1062
|
+
(at your option) any later version.
|
1063
|
+
|
1064
|
+
This program is distributed in the hope that it will be useful,
|
1065
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
1066
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
1067
|
+
GNU General Public License for more details.
|
1068
|
+
|
1069
|
+
You should have received a copy of the GNU General Public License
|
1070
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
1071
|
+
|
1072
|
+
Lesli JS - JavaScript utilities for JavaScript applications
|
1073
|
+
|
1074
|
+
Powered by The Lesli Development Team
|
1075
|
+
Building a better future, one line of code at a time.
|
1076
|
+
|
1077
|
+
@contact <hello@lesli.tech>
|
1078
|
+
@website <https://lesli.tech>
|
1079
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
1080
|
+
|
1081
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
1082
|
+
// ·
|
1083
|
+
*)
|
1084
|
+
|
1085
|
+
apexcharts/dist/apexcharts.esm.js:
|
1086
|
+
(*!
|
1087
|
+
* ApexCharts v4.7.0
|
1088
|
+
* (c) 2018-2025 ApexCharts
|
1089
|
+
* Released under the MIT License.
|
1090
|
+
*)
|
1091
|
+
(*!
|
1092
|
+
* @svgdotjs/svg.select.js - An extension of svg.js which allows to select elements with mouse
|
1093
|
+
* @version 4.0.1
|
1094
|
+
* https://github.com/svgdotjs/svg.select.js
|
1095
|
+
*
|
1096
|
+
* @copyright Ulrich-Matthias Schäfer
|
1097
|
+
* @license MIT
|
1098
|
+
*
|
1099
|
+
* BUILT: Mon Jul 01 2024 15:04:42 GMT+0200 (Central European Summer Time)
|
1100
|
+
*)
|
1101
|
+
(*!
|
1102
|
+
* @svgdotjs/svg.resize.js - An extension for svg.js which allows to resize elements which are selected
|
1103
|
+
* @version 2.0.4
|
1104
|
+
* https://github.com/svgdotjs/svg.resize.js
|
1105
|
+
*
|
1106
|
+
* @copyright [object Object]
|
1107
|
+
* @license MIT
|
1108
|
+
*
|
1109
|
+
* BUILT: Fri Sep 13 2024 12:43:14 GMT+0200 (Central European Summer Time)
|
1110
|
+
*)
|
1111
|
+
*/
|