turbulence 1.3.0 → 1.4.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 +4 -4
- data/CHANGELOG.md +20 -1
- data/Gemfile.lock +1 -1
- data/lib/turbulence/cli_parser.rb +4 -0
- data/lib/turbulence/command_line_interface.rb +19 -0
- data/lib/turbulence/configuration.rb +8 -6
- data/lib/turbulence/generators/scatterplot.rb +8 -2
- data/lib/turbulence/generators/treemap.rb +12 -8
- data/lib/turbulence/version.rb +1 -1
- data/spec/turbulence/command_line_interface_spec.rb +20 -0
- data/spec/turbulence/generators/treemap_spec.rb +2 -2
- data/template/highcharts-heatmap.js +23 -0
- data/template/highcharts-treemap.js +11 -0
- data/template/highcharts.js +28 -162
- data/template/treemap.html +121 -27
- data/template/turbulence.html +34 -12
- metadata +3 -1
data/template/highcharts.js
CHANGED
|
@@ -1,162 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
Highcharts JS
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
b[d]);return e}function
|
|
10
|
-
b){Bc=y(a,b.animation)}function Bd(){var a=Sa.global.useUTC;Cc=a?Date.UTC:function(b,c,d,e,f,g){return(new Date(b,c,y(d,1),y(e,0),y(f,0),y(g,0))).getTime()};$c=a?"getUTCMinutes":"getMinutes";ad=a?"getUTCHours":"getHours";bd=a?"getUTCDay":"getDay";oc=a?"getUTCDate":"getDate";Dc=a?"getUTCMonth":"getMonth";Ec=a?"getUTCFullYear":"getFullYear";Cd=a?"setUTCMinutes":"setMinutes";Dd=a?"setUTCHours":"setHours";cd=a?"setUTCDate":"setDate";Ed=a?"setUTCMonth":"setMonth";Fd=a?"setUTCFullYear":"setFullYear"}function Fc(a){Gc||
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
G?6:-4,rotation:M&&!G&&90},r);if(!o)k.label=o=ca.text(r.text,0,0).attr({align:r.textAlign||r.align,rotation:r.rotation,zIndex:S}).css(r.style).add();G=[C[1],C[4],C[6]||C[1]];C=[C[2],C[5],C[7]||C[2]];na=nb.apply(Ua,G);S=nb.apply(Ua,C);o.align(r,false,{x:na,y:S,width:Da.apply(Ua,G)-na,height:Da.apply(Ua,C)-S});o.show()}else o&&o.hide();return k},destroy:function(){for(var k in this){this[k]&&this[k].destroy&&this[k].destroy();delete this[k]}mc(Nb,this)}};va=function(k,p,r,o){var T=1,Z=0,G=o?ja:D;o=
|
|
29
|
-
o?gb:K;G||(G=D);if(r){T*=-1;Z=A}if(Xb){T*=-1;Z-=T*A}if(p){if(Xb)k=A-k;k=k/G+o}else k=T*(k-o)*G+Z;return k};Ka=function(k,p,r){var o,T,Z;k=va(k,null,null,r);var G=r&&Oc||Pa,B=r&&hd||Xa,ha;r=T=U(k+wa);o=Z=U(G-k-wa);if(isNaN(k))ha=true;else if(M){o=da;Z=G-pb;if(r<X||r>X+Aa)ha=true}else{r=X;T=B-zb;if(o<da||o>da+ta)ha=true}return ha?null:ca.crispLine([Za,r,o,Ca,T,Z],p||0)};if(Ga&&ma&&Xb===Ra)Xb=true;oa(s,{addPlotBand:ua,addPlotLine:ua,adjustTickAmount:function(){if(Fb&&!N&&!Va&&!Mb){var k=ec,p=ra.length;
|
|
30
|
-
ec=Fb[H];if(p<ec){for(;ra.length<ec;)ra.push(L(ra[ra.length-1]+Wa));D*=(p-1)/(ec-1);P=ra[ra.length-1]}if(I(k)&&ec!=k)s.isDirty=true}},categories:Va,getExtremes:function(){return{min:K,max:P,dataMin:Ta,dataMax:u}},getPlotLinePath:Ka,getThreshold:function(k){if(K>k)k=K;else if(P<k)k=P;return va(k,0,1)},isXAxis:ma,options:h,plotLinesAndBands:Nb,getOffset:function(){var k=$.length&&I(K)&&I(P),p=0,r=0,o=h.title,T=h.labels,Z=[-1,1,1,-1][E];if(!rb){rb=ca.g("axis").attr({zIndex:7}).add();Gb=ca.g("grid").attr({zIndex:1}).add()}fc=
|
|
31
|
-
0;if(k||Mb){t(ra,function(B){if(qb[B])qb[B].addLabel();else qb[B]=new x(B);if(E===0||E==2||{1:"left",3:"right"}[E]==T.align)fc=Da(qb[B].getLabelSize(),fc)});if(Nc)fc+=(Nc-1)*16}else for(var G in qb){qb[G].destroy();delete qb[G]}if(o&&o.text){if(!s.axisTitle)s.axisTitle=ca.text(o.text,0,0).attr({zIndex:7,rotation:o.rotation||0,align:o.textAlign||{low:"left",middle:"center",high:"right"}[o.align]}).css(o.style).add();p=s.axisTitle.getBBox()[M?"height":"width"];r=y(o.margin,M?5:10)}Q=Z*(h.offset||Pb[E]);
|
|
32
|
-
ed=fc+(E!=2&&fc&&Z*h.labels[M?"y":"x"])+r;Pb[E]=Da(Pb[E],ed+p+Z*Q)},render:bb,setCategories:function(k,p){s.categories=Va=k;t($,function(r){r.translate();r.setTooltipPoints(true)});s.isDirty=true;y(p,true)&&m.redraw()},setExtremes:function(k,p,r,o){r=y(r,true);La(s,"setExtremes",{min:k,max:p},function(){qa=k;Na=p;r&&m.redraw(o)})},setScale:Ea,setTickPositions:ga,translate:va,redraw:function(){gc.resetTracker&&gc.resetTracker();bb();t(Nb,function(k){k.render()});t($,function(k){k.isDirty=true})},removePlotBand:Ja,
|
|
33
|
-
removePlotLine:Ja,reversed:Xb,stacks:fa});for(gd in Md)Qa(s,gd,Md[gd]);Ea()}function d(){var m={};return{add:function(h,x,w,O){if(!m[h]){x=ca.text(x,0,0).css(a.toolbar.itemStyle).align({align:"right",x:-zb-20,y:da+30}).on("click",O).attr({align:"right",zIndex:20}).add();m[h]=x}},remove:function(h){Fc(m[h].element);m[h]=null}}}function e(m){function h(){var H=this.points||nc(this),A=H[0].series.xAxis,D=this.x;A=A&&A.options.type=="datetime";var ja=Jb(D)||A,wa;wa=ja?['<span style="font-size: 10px">',
|
|
34
|
-
A?Mc("%A, %b %e, %Y",D):D,"</span><br/>"]:[];t(H,function(va){wa.push(va.point.tooltipFormatter(ja))});return wa.join("")}function x(H,A){E=ma?H:(2*E+H)/3;fa=ma?A:(fa+A)/2;s.translate(E,fa);id=cb(H-E)>1||cb(A-fa)>1?function(){x(H,A)}:null}function w(){if(!ma){var H=q.hoverPoints;s.hide();t(ga,function(A){A&&A.hide()});H&&t(H,function(A){A.setState()});q.hoverPoints=null;ma=true}}var O,ia=m.borderWidth,L=m.crosshairs,ga=[],Ea=m.style,ua=m.shared,bb=pa(Ea.padding),Ja=ia+bb,ma=true,Oa,M,E=0,fa=0;Ea.padding=
|
|
35
|
-
0;var s=ca.g("tooltip").attr({zIndex:8}).add(),N=ca.rect(Ja,Ja,0,0,m.borderRadius,ia).attr({fill:m.backgroundColor,"stroke-width":ia}).add(s).shadow(m.shadow),Q=ca.text("",bb+Ja,pa(Ea.fontSize)+bb+Ja).attr({zIndex:1}).css(Ea).add(s);s.hide();return{shared:ua,refresh:function(H){var A,D,ja,wa=0,va={},Ka=[];ja=H.tooltipPos;A=m.formatter||h;va=q.hoverPoints;var rb=function(Fa){return{series:Fa.series,point:Fa,x:Fa.category,y:Fa.y,percentage:Fa.percentage,total:Fa.total||Fa.stackTotal}};if(ua){va&&t(va,
|
|
36
|
-
function(Fa){Fa.setState()});q.hoverPoints=H;t(H,function(Fa){Fa.setState(xb);wa+=Fa.plotY;Ka.push(rb(Fa))});D=H[0].plotX;wa=U(wa)/H.length;va={x:H[0].category};va.points=Ka;H=H[0]}else va=rb(H);va=A.call(va);O=H.series;D=ua?D:H.plotX;wa=ua?wa:H.plotY;A=U(ja?ja[0]:Ga?Aa-wa:D);D=U(ja?ja[1]:Ga?ta-D:wa);ja=ua||!H.series.isCartesian||hc(A,D);if(va===false||!ja)w();else{if(ma){s.show();ma=false}Q.attr({text:va});ja=Q.getBBox();Oa=ja.width+2*bb;M=ja.height+2*bb;N.attr({width:Oa,height:M,stroke:m.borderColor||
|
|
37
|
-
H.color||O.color||"#606060"});A=A-Oa+X-25;D=D-M+da+10;if(A<7){A=7;D-=30}if(D<5)D=5;else if(D+M>Pa)D=Pa-M-5;x(U(A-Ja),U(D-Ja))}if(L){L=nc(L);D=L.length;for(var Gb;D--;)if(L[D]&&(Gb=H.series[D?"yAxis":"xAxis"])){A=Gb.getPlotLinePath(H[D?"y":"x"],1);if(ga[D])ga[D].attr({d:A,visibility:Ab});else{ja={"stroke-width":L[D].width||1,stroke:L[D].color||"#C0C0C0",zIndex:2};if(L[D].dashStyle)ja.dashstyle=L[D].dashStyle;ga[D]=ca.path(A).attr(ja).add()}}}},hide:w}}function f(m,h){function x(E){var fa;E=E||sb.event;
|
|
38
|
-
if(!E.target)E.target=E.srcElement;fa=E.touches?E.touches.item(0):E;if(E.type!="mousemove"||sb.opera){for(var s=sa,N={left:s.offsetLeft,top:s.offsetTop};s=s.offsetParent;){N.left+=s.offsetLeft;N.top+=s.offsetTop;if(s!=za.body&&s!=za.documentElement){N.left-=s.scrollLeft;N.top-=s.scrollTop}}qc=N}if(Ac){E.chartX=E.x;E.chartY=E.y}else if(fa.layerX===Ra){E.chartX=fa.pageX-qc.left;E.chartY=fa.pageY-qc.top}else{E.chartX=E.layerX;E.chartY=E.layerY}return E}function w(E){var fa={xAxis:[],yAxis:[]};t(ab,function(s){var N=
|
|
39
|
-
s.translate,Q=s.isXAxis;fa[Q?"xAxis":"yAxis"].push({axis:s,value:N((Ga?!Q:Q)?E.chartX-X:ta-E.chartY+da,true)})});return fa}function O(){var E=m.hoverSeries,fa=m.hoverPoint;fa&&fa.onMouseOut();E&&E.onMouseOut();rc&&rc.hide();jd=null}function ia(){if(ua){var E={xAxis:[],yAxis:[]},fa=ua.getBBox(),s=fa.x-X,N=fa.y-da;if(Ea){t(ab,function(Q){var H=Q.translate,A=Q.isXAxis,D=Ga?!A:A,ja=H(D?s:ta-N-fa.height,true);H=H(D?s+fa.width:ta-N,true);E[A?"xAxis":"yAxis"].push({axis:Q,min:nb(ja,H),max:Da(ja,H)})});La(m,
|
|
40
|
-
"selection",E,kd)}ua=ua.destroy()}m.mouseIsDown=ld=Ea=false;Bb(za,Hb?"touchend":"mouseup",ia)}var L,ga,Ea,ua,bb=v.zoomType,Ja=/x/.test(bb),ma=/y/.test(bb),Oa=Ja&&!Ga||ma&&Ga,M=ma&&!Ga||Ja&&Ga;Pc=function(){if(Qc){Qc.translate(X,da);Ga&&Qc.attr({width:m.plotWidth,height:m.plotHeight}).invert()}else m.trackerGroup=Qc=ca.g("tracker").attr({zIndex:9}).add()};Pc();if(h.enabled)m.tooltip=rc=e(h);(function(){var E=true;sa.onmousedown=function(s){s=x(s);m.mouseIsDown=ld=true;L=s.chartX;ga=s.chartY;Qa(za,
|
|
41
|
-
Hb?"touchend":"mouseup",ia)};var fa=function(s){if(!(s&&s.touches&&s.touches.length>1)){s=x(s);if(!Hb)s.returnValue=false;var N=s.chartX,Q=s.chartY,H=!hc(N-X,Q-da);if(Hb&&s.type=="touchstart")if(ya(s.target,"isTracker"))m.runTrackerClick||s.preventDefault();else!ae&&!H&&s.preventDefault();if(H){E||O();if(N<X)N=X;else if(N>X+Aa)N=X+Aa;if(Q<da)Q=da;else if(Q>da+ta)Q=da+ta}if(ld&&s.type!="touchstart"){if(Ea=Math.sqrt(Math.pow(L-N,2)+Math.pow(ga-Q,2))>10){if(ic&&(Ja||ma)&&hc(L-X,ga-da))ua||(ua=ca.rect(X,
|
|
42
|
-
da,Oa?1:Aa,M?1:ta,0).attr({fill:"rgba(69,114,167,0.25)",zIndex:7}).add());if(ua&&Oa){N=N-L;ua.attr({width:cb(N),x:(N>0?0:N)+L})}if(ua&&M){Q=Q-ga;ua.attr({height:cb(Q),y:(Q>0?0:Q)+ga})}}}else if(!H){var A;Q=m.hoverPoint;N=m.hoverSeries;var D,ja,wa=Xa,va=Ga?s.chartY:s.chartX-X;if(rc&&h.shared){A=[];D=Ba.length;for(ja=0;ja<D;ja++)if(Ba[ja].visible&&Ba[ja].tooltipPoints.length){s=Ba[ja].tooltipPoints[va];s._dist=cb(va-s.plotX);wa=nb(wa,s._dist);A.push(s)}for(D=A.length;D--;)A[D]._dist>wa&&A.splice(D,
|
|
43
|
-
1);if(A.length&&A[0].plotX!=jd){rc.refresh(A);jd=A[0].plotX}}if(N&&N.tracker)(s=N.tooltipPoints[va])&&s!=Q&&s.onMouseOver()}return(E=H)||!ic}};sa.onmousemove=fa;Qa(sa,"mouseleave",O);sa.ontouchstart=function(s){if(Ja||ma)sa.onmousedown(s);fa(s)};sa.ontouchmove=fa;sa.ontouchend=function(){Ea&&O()};sa.onclick=function(s){var N=m.hoverPoint;s=x(s);s.cancelBubble=true;if(!Ea)if(N&&ya(s.target,"isTracker")){var Q=N.plotX,H=N.plotY;oa(N,{pageX:qc.left+X+(Ga?Aa-H:Q),pageY:qc.top+da+(Ga?ta-Q:H)});La(N.series,
|
|
44
|
-
"click",oa(s,{point:N}));N.firePointEvent("click",s)}else{oa(s,w(s));hc(s.chartX-X,s.chartY-da)&&La(m,"click",s)}Ea=false}})();Nd=setInterval(function(){id&&id()},32);oa(this,{zoomX:Ja,zoomY:ma,resetTracker:O})}function g(m){var h=m.type||v.type||v.defaultSeriesType,x=tb[h],w=q.hasRendered;if(w)if(Ga&&h=="column")x=tb.bar;else if(!Ga&&h=="bar")x=tb.column;h=new x;h.init(q,m);if(!w&&h.inverted)Ga=true;if(h.isCartesian)ic=h.isCartesian;Ba.push(h);return h}function i(){v.alignTicks!==false&&t(ab,function(m){m.adjustTickAmount()});
|
|
45
|
-
Fb=null}function l(m){var h=q.isDirtyLegend,x,w=q.isDirtyBox,O=Ba.length,ia=O,L=q.clipRect;for(bc(m,q);ia--;){m=Ba[ia];if(m.isDirty&&m.options.stacking){x=true;break}}if(x)for(ia=O;ia--;){m=Ba[ia];if(m.options.stacking)m.isDirty=true}t(Ba,function(ga){if(ga.isDirty){ga.cleanData();ga.getSegments();if(ga.options.legendType=="point")h=true}});if(h&&md.renderLegend){md.renderLegend();q.isDirtyLegend=false}if(ic){if(!Rc){Fb=null;t(ab,function(ga){ga.setScale()})}i();sc();t(ab,function(ga){if(ga.isDirty||
|
|
46
|
-
w){ga.redraw();w=true}})}if(w){nd();Pc();if(L){Sc(L);L.animate({width:q.plotSizeX,height:q.plotSizeY})}}t(Ba,function(ga){if(ga.isDirty&&ga.visible&&(!ga.isCartesian||ga.xAxis))ga.redraw()});gc&&gc.resetTracker&&gc.resetTracker();La(q,"redraw")}function j(){var m=a.xAxis||{},h=a.yAxis||{},x;m=nc(m);t(m,function(w,O){w.index=O;w.isX=true});h=nc(h);t(h,function(w,O){w.index=O});ab=m.concat(h);q.xAxis=[];q.yAxis=[];ab=jc(ab,function(w){x=new c(q,w);q[x.isXAxis?"xAxis":"yAxis"].push(x);return x});i()}
|
|
47
|
-
function n(m,h){kc=xa(a.title,m);tc=xa(a.subtitle,h);t([["title",m,kc],["subtitle",h,tc]],function(x){var w=x[0],O=q[w],ia=x[1];x=x[2];if(O&&ia){O.destroy();O=null}if(x&&x.text&&!O)q[w]=ca.text(x.text,0,0).attr({align:x.align,"class":"highcharts-"+w,zIndex:1}).css(x.style).add().align(x,false,uc)})}function z(){ib=v.renderTo;Od=Zb+od++;if(Jb(ib))ib=za.getElementById(ib);ib.innerHTML="";if(!ib.offsetWidth){Qb=ib.cloneNode(0);Ia(Qb,{position:lc,top:"-9999px",display:""});za.body.appendChild(Qb)}Tc=
|
|
48
|
-
(Qb||ib).offsetWidth;vc=(Qb||ib).offsetHeight;q.chartWidth=Xa=v.width||Tc||600;q.chartHeight=Pa=v.height||(vc>19?vc:400);q.container=sa=fb(Kb,{className:"highcharts-container"+(v.className?" "+v.className:""),id:Od},oa({position:Pd,overflow:ub,width:Xa+$a,height:Pa+$a,textAlign:"left"},v.style),Qb||ib);q.renderer=ca=v.forExport?new Uc(sa,Xa,Pa,true):new Qd(sa,Xa,Pa);var m,h;if(Rd&&sa.getBoundingClientRect){m=function(){Ia(sa,{left:0,top:0});h=sa.getBoundingClientRect();Ia(sa,{left:-h.left%1+$a,top:-h.top%
|
|
49
|
-
1+$a})};m();Qa(sb,"resize",m);Qa(q,"destroy",function(){Bb(sb,"resize",m)})}}function F(){function m(){var x=v.width||ib.offsetWidth,w=v.height||ib.offsetHeight;if(x&&w){if(x!=Tc||w!=vc){clearTimeout(h);h=setTimeout(function(){pd(x,w,false)},100)}Tc=x;vc=w}}var h;Qa(window,"resize",m);Qa(q,"destroy",function(){Bb(window,"resize",m)})}function W(){var m=a.labels,h=a.credits,x;n();md=q.legend=new be(q);sc();t(ab,function(w){w.setTickPositions(true)});i();sc();nd();ic&&t(ab,function(w){w.render()});
|
|
50
|
-
if(!q.seriesGroup)q.seriesGroup=ca.g("series-group").attr({zIndex:3}).add();t(Ba,function(w){w.translate();w.setTooltipPoints();w.render()});m.items&&t(m.items,function(){var w=oa(m.style,this.style),O=pa(w.left)+X,ia=pa(w.top)+da+12;delete w.left;delete w.top;ca.text(this.html,O,ia).attr({zIndex:2}).css(w).add()});if(!q.toolbar)q.toolbar=d(q);if(h.enabled&&!q.credits){x=h.href;ca.text(h.text,0,0).on("click",function(){if(x)location.href=x}).attr({align:h.position.align,zIndex:8}).css(h.style).add().align(h.position)}Pc();
|
|
51
|
-
q.hasRendered=true;if(Qb){ib.appendChild(sa);Fc(Qb)}}function ba(){var m=Ba.length,h=sa&&sa.parentNode;La(q,"destroy");Bb(sb,"unload",ba);Bb(q);for(t(ab,function(x){Bb(x)});m--;)Ba[m].destroy();if(I(sa)){sa.innerHTML="";Bb(sa);h&&h.removeChild(sa)}sa=null;ca.alignedObjects=null;clearInterval(Nd);for(m in q)delete q[m]}function ka(){if(!wc&&!sb.parent&&za.readyState!="complete")za.attachEvent("onreadystatechange",function(){za.detachEvent("onreadystatechange",ka);ka()});else{z();qd();rd();t(a.series||
|
|
52
|
-
[],function(m){g(m)});q.inverted=Ga=y(Ga,a.chart.inverted);j();q.render=W;q.tracker=gc=new f(q,a.tooltip);W();La(q,"load");b&&b.apply(q,[q]);t(q.callbacks,function(m){m.apply(q,[q])})}}Lc=xa(Lc,Sa.xAxis);fd=xa(fd,Sa.yAxis);Sa.xAxis=Sa.yAxis=null;a=xa(Sa,a);var v=a.chart,J=v.margin;J=Db(J)?J:[J,J,J,J];var ea=y(v.marginTop,J[0]),Y=y(v.marginRight,J[1]),V=y(v.marginBottom,J[2]),R=y(v.marginLeft,J[3]),Ha=v.spacingTop,Ya=v.spacingRight,sd=v.spacingBottom,Vc=v.spacingLeft,uc,kc,tc,da,zb,pb,X,Pb,ib,Qb,sa,
|
|
53
|
-
Od,Tc,vc,Xa,Pa,hd,Oc,td,ud,vd,wd,q=this,ae=(J=v.events)&&!!J.click,xd,hc,rc,ld,$b,Sd,yd,ta,Aa,gc,Qc,Pc,md,Rb,Sb,qc,ic=v.showAxes,Rc=0,ab=[],Fb,Ba=[],Ga,ca,id,Nd,jd,nd,sc,qd,rd,pd,kd,Td,be=function(m){function h(u,$){var qa=u.legendItem,Na=u.legendLine,P=u.legendSymbol,K=M.color,gb=$?L.itemStyle.color:K;K=$?u.color:K;qa&&qa.css({fill:gb});Na&&Na.attr({stroke:K});P&&P.attr({stroke:K,fill:K})}function x(u,$,qa){var Na=u.legendItem,P=u.legendLine,K=u.legendSymbol;u=u.checkbox;Na&&Na.attr({x:$,y:qa});
|
|
54
|
-
P&&P.translate($,qa-4);K&&K.attr({x:$+K.xOff,y:qa+K.yOff});if(u){u.x=$;u.y=qa}}function w(){t(bb,function(u){var $=u.checkbox;$&&Ia($,{left:Ka.attr("translateX")+u.legendItemWidth+$.x-40+$a,top:Ka.attr("translateY")+$.y-11+$a})})}function O(u){var $,qa,Na,P,K,gb=u.legendItem;P=u.series||u;if(!gb){K=/^(bar|pie|area|column)$/.test(P.type);u.legendItem=gb=ca.text(L.labelFormatter.call(u),0,0).css(u.visible?ma:M).on("mouseover",function(){u.setState(xb);gb.css(Oa)}).on("mouseout",function(){gb.css(u.visible?
|
|
55
|
-
ma:M);u.setState()}).on("click",function(){var Vb=function(){u.setVisible()};u.firePointEvent?u.firePointEvent("legendItemClick",null,Vb):La(u,"legendItemClick",null,Vb)}).attr({zIndex:2}).add(Ka);if(!K&&u.options&&u.options.lineWidth){var cc=u.options;P={"stroke-width":cc.lineWidth,zIndex:2};if(cc.dashStyle)P.dashstyle=cc.dashStyle;u.legendLine=ca.path([Za,-Ea-ua,0,Ca,-ua,0]).attr(P).add(Ka)}if(K)$=ca.rect(qa=-Ea-ua,Na=-11,Ea,12,2).attr({"stroke-width":0,zIndex:3}).add(Ka);else if(u.options&&u.options.marker&&
|
|
56
|
-
u.options.marker.enabled)$=ca.symbol(u.symbol,qa=-Ea/2-ua,Na=-4,u.options.marker.radius).attr(u.pointAttr[db]).attr({zIndex:3}).add(Ka);if($){$.xOff=qa;$.yOff=Na}u.legendSymbol=$;h(u,u.visible);if(u.options&&u.options.showCheckbox){u.checkbox=fb("input",{type:"checkbox",checked:u.selected,defaultChecked:u.selected},L.itemCheckboxStyle,sa);Qa(u.checkbox,"click",function(Vb){La(u,"checkboxClick",{checked:Vb.target.checked},function(){u.select()})})}}$=gb.getBBox();qa=u.legendItemWidth=L.itemWidth||
|
|
57
|
-
Ea+ua+$.width+fa;D=$.height;if(ga&&Q-N+qa>(Gb||Xa-2*E-N)){Q=N;H+=D}A=H;x(u,Q,H);if(ga)Q+=qa;else H+=D;rb=Gb||Da(ga?Q-N:qa,rb);bb.push(u)}function ia(){Q=N;H=s;A=rb=0;bb=[];Ka||(Ka=ca.g("legend").attr({zIndex:7}).add());Ta&&Fa.reverse();t(Fa,function(Na){if(Na.options.showInLegend)t(Na.options.legendType=="point"?Na.data:[Na],O)});Ta&&Fa.reverse();Rb=Gb||rb;Sb=A-s+D;if(wa||va){Rb+=2*E;Sb+=2*E;if(ja)Rb>0&&Sb>0&&ja.animate({width:Rb,height:Sb});else ja=ca.rect(0,0,Rb,Sb,L.borderRadius,wa||0).attr({stroke:L.borderColor,
|
|
58
|
-
"stroke-width":wa||0,fill:va||mb}).add(Ka).shadow(L.shadow);ja[bb.length?"show":"hide"]()}for(var u=["left","right","top","bottom"],$,qa=4;qa--;){$=u[qa];if(Ja[$]&&Ja[$]!="auto"){L[qa<2?"align":"verticalAlign"]=$;L[qa<2?"x":"y"]=pa(Ja[$])*(qa%2?-1:1)}}Ka.align(oa(L,{width:Rb,height:Sb}),true,uc);Rc||w()}var L=m.options.legend;if(L.enabled){var ga=L.layout=="horizontal",Ea=L.symbolWidth,ua=L.symbolPadding,bb,Ja=L.style,ma=L.itemStyle,Oa=L.itemHoverStyle,M=L.itemHiddenStyle,E=pa(Ja.padding),fa=20,s=
|
|
59
|
-
18,N=4+E+Ea+ua,Q,H,A,D=0,ja,wa=L.borderWidth,va=L.backgroundColor,Ka,rb,Gb=L.width,Fa=m.series,Ta=L.reversed;ia();Qa(m,"endResize",w);return{colorizeItem:h,destroyItem:function(u){var $=u.checkbox;t(["legendItem","legendLine","legendSymbol"],function(qa){u[qa]&&u[qa].destroy()});$&&Fc(u.checkbox)},renderLegend:ia}}};hc=function(m,h){return m>=0&&m<=Aa&&h>=0&&h<=ta};Td=function(){La(q,"selection",{resetSelection:true},kd);q.toolbar.remove("zoom")};kd=function(m){var h=Sa.lang,x=q.pointCount<100;q.toolbar.add("zoom",
|
|
60
|
-
h.resetZoom,h.resetZoomTitle,Td);!m||m.resetSelection?t(ab,function(w){w.setExtremes(null,null,false,x)}):t(m.xAxis.concat(m.yAxis),function(w){var O=w.axis;if(q.tracker[O.isXAxis?"zoomX":"zoomY"])O.setExtremes(w.min,w.max,false,x)});l()};sc=function(){var m=a.legend,h=y(m.margin,10),x=m.x,w=m.y,O=m.align,ia=m.verticalAlign,L;qd();if((q.title||q.subtitle)&&!I(ea))if(L=Da(q.title&&!kc.floating&&!kc.verticalAlign&&kc.y||0,q.subtitle&&!tc.floating&&!tc.verticalAlign&&tc.y||0))da=Da(da,L+y(kc.margin,
|
|
61
|
-
15)+Ha);if(m.enabled&&!m.floating)if(O=="right")I(Y)||(zb=Da(zb,Rb-x+h+Ya));else if(O=="left")I(R)||(X=Da(X,Rb+x+h+Vc));else if(ia=="top")I(ea)||(da=Da(da,Sb+w+h+Ha));else if(ia=="bottom")I(V)||(pb=Da(pb,Sb-w+h+sd));ic&&t(ab,function(ga){ga.getOffset()});I(R)||(X+=Pb[3]);I(ea)||(da+=Pb[0]);I(V)||(pb+=Pb[2]);I(Y)||(zb+=Pb[1]);rd()};pd=function(m,h,x){var w=q.title,O=q.subtitle;Rc+=1;bc(x,q);Oc=Pa;hd=Xa;Xa=U(m);Pa=U(h);Ia(sa,{width:Xa+$a,height:Pa+$a});ca.setSize(Xa,Pa,x);Aa=Xa-X-zb;ta=Pa-da-pb;Fb=
|
|
62
|
-
null;t(ab,function(ia){ia.isDirty=true;ia.setScale()});t(Ba,function(ia){ia.isDirty=true});q.isDirtyLegend=true;q.isDirtyBox=true;sc();w&&w.align(null,null,uc);O&&O.align(null,null,uc);l(x);Oc=null;La(q,"resize");setTimeout(function(){La(q,"endResize",null,function(){Rc-=1})},Bc&&Bc.duration||500)};rd=function(){q.plotLeft=X=U(X);q.plotTop=da=U(da);q.plotWidth=Aa=U(Xa-X-zb);q.plotHeight=ta=U(Pa-da-pb);q.plotSizeX=Ga?ta:Aa;q.plotSizeY=Ga?Aa:ta;uc={x:Vc,y:Ha,width:Xa-Vc-Ya,height:Pa-Ha-sd}};qd=function(){da=
|
|
63
|
-
y(ea,Ha);zb=y(Y,Ya);pb=y(V,sd);X=y(R,Vc);Pb=[0,0,0,0]};nd=function(){var m=v.borderWidth||0,h=v.backgroundColor,x=v.plotBackgroundColor,w=v.plotBackgroundImage,O,ia={x:X,y:da,width:Aa,height:ta};O=m+(v.shadow?8:0);if(m||h)if(td)td.animate({width:Xa-O,height:Pa-O});else td=ca.rect(O/2,O/2,Xa-O,Pa-O,v.borderRadius,m).attr({stroke:v.borderColor,"stroke-width":m,fill:h||mb}).add().shadow(v.shadow);if(x)if(ud)ud.animate(ia);else ud=ca.rect(X,da,Aa,ta,0).attr({fill:x}).add().shadow(v.plotShadow);if(w)if(vd)vd.animate(ia);
|
|
64
|
-
else vd=ca.image(w,X,da,Aa,ta).add();if(v.plotBorderWidth)if(wd)wd.animate(ia);else wd=ca.rect(X,da,Aa,ta,0,v.plotBorderWidth).attr({stroke:v.plotBorderColor,"stroke-width":v.plotBorderWidth,zIndex:4}).add();q.isDirtyBox=false};Wc=Ib=0;Qa(sb,"unload",ba);v.reflow!==false&&Qa(q,"load",F);if(J)for(xd in J)Qa(q,xd,J[xd]);q.options=a;q.series=Ba;q.addSeries=function(m,h,x){var w;if(m){bc(x,q);h=y(h,true);La(q,"addSeries",{options:m},function(){w=g(m);w.isDirty=true;q.isDirtyLegend=true;h&&q.redraw()})}return w};
|
|
65
|
-
q.animation=y(v.animation,true);q.destroy=ba;q.get=function(m){var h,x,w;for(h=0;h<ab.length;h++)if(ab[h].options.id==m)return ab[h];for(h=0;h<Ba.length;h++)if(Ba[h].options.id==m)return Ba[h];for(h=0;h<Ba.length;h++){w=Ba[h].data;for(x=0;x<w.length;x++)if(w[x].id==m)return w[x]}return null};q.getSelectedPoints=function(){var m=[];t(Ba,function(h){m=m.concat(zd(h.data,function(x){return x.selected}))});return m};q.getSelectedSeries=function(){return zd(Ba,function(m){return m.selected})};q.hideLoading=
|
|
66
|
-
function(){Xc($b,{opacity:0},{duration:a.loading.hideDuration,complete:function(){Ia($b,{display:mb})}});yd=false};q.isInsidePlot=hc;q.redraw=l;q.setSize=pd;q.setTitle=n;q.showLoading=function(m){var h=a.loading;if(!$b){$b=fb(Kb,{className:"highcharts-loading"},oa(h.style,{left:X+$a,top:da+$a,width:Aa+$a,height:ta+$a,zIndex:10,display:mb}),sa);Sd=fb("span",null,h.labelStyle,$b)}Sd.innerHTML=m||a.lang.loading;if(!yd){Ia($b,{opacity:0,display:""});Xc($b,{opacity:h.style.opacity},{duration:h.showDuration});
|
|
67
|
-
yd=true}};q.pointCount=0;ka()}var za=document,sb=window,Ua=Math,U=Ua.round,Lb=Ua.floor,dd=Ua.ceil,Da=Ua.max,nb=Ua.min,cb=Ua.abs,jb=Ua.cos,yb=Ua.sin,Tb=Ua.PI,Ud=Tb*2/360,xc=navigator.userAgent,Ac=/msie/i.test(xc)&&!sb.opera,yc=za.documentMode==8,ce=/AppleWebKit/.test(xc),Rd=/Firefox/.test(xc),wc=!!za.createElementNS&&!!za.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,Hb="ontouchstart"in za.documentElement,Ib,Wc,de={},od=0,ob=1,Gc,Sa,Mc,Bc,Yc,Ra,Kb="div",lc="absolute",Pd="relative",
|
|
68
|
-
ub="hidden",Zb="highcharts-",Ab="visible",$a="px",mb="none",Za="M",Ca="L",Vd="rgba(192,192,192,"+(wc?1.0E-6:0.0020)+")",db="",xb="hover",Cc,$c,ad,bd,oc,Dc,Ec,Cd,Dd,cd,Ed,Fd,eb=sb.HighchartsAdapter,Cb=eb||{},t=Cb.each,zd=Cb.grep,jc=Cb.map,xa=Cb.merge,Ad=Cb.hyphenate,Qa=Cb.addEvent,Bb=Cb.removeEvent,La=Cb.fireEvent,Xc=Cb.animate,Sc=Cb.stop,tb={};eb&&eb.init&&eb.init();if(!eb&&sb.jQuery){var kb=jQuery;t=function(a,b){for(var c=0,d=a.length;c<d;c++)if(b.call(a[c],a[c],c,a)===false)return c};zd=kb.grep;
|
|
69
|
-
jc=function(a,b){for(var c=[],d=0,e=a.length;d<e;d++)c[d]=b.call(a[d],a[d],d,a);return c};xa=function(){var a=arguments;return kb.extend(true,null,a[0],a[1],a[2],a[3])};Ad=function(a){return a.replace(/([A-Z])/g,function(b,c){return"-"+c.toLowerCase()})};Qa=function(a,b,c){kb(a).bind(b,c)};Bb=function(a,b,c){var d=za.removeEventListener?"removeEventListener":"detachEvent";if(za[d]&&!a[d])a[d]=function(){};kb(a).unbind(b,c)};La=function(a,b,c,d){var e=kb.Event(b),f="detached"+b;oa(e,c);if(a[b]){a[f]=
|
|
70
|
-
a[b];a[b]=null}kb(a).trigger(e);if(a[f]){a[b]=a[f];a[f]=null}d&&!e.isDefaultPrevented()&&d(e)};Xc=function(a,b,c){var d=kb(a);if(b.d){a.toD=b.d;b.d=1}d.stop();d.animate(b,c)};Sc=function(a){kb(a).stop()};kb.extend(kb.easing,{easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c}});var ee=jQuery.fx.step._default,fe=jQuery.fx.prototype.cur;kb.fx.step._default=function(a){var b=a.elem;b.attr?b.attr(a.prop,a.now):ee.apply(this,arguments)};kb.fx.step.d=function(a){var b=a.elem;if(!a.started){var c=Yc.init(b,
|
|
71
|
-
b.d,b.toD);a.start=c[0];a.end=c[1];a.started=true}b.attr("d",Yc.step(a.start,a.end,a.pos,b.toD))};kb.fx.prototype.cur=function(){var a=this.elem;return a.attr?a.attr(this.prop):fe.apply(this,arguments)}}Yc={init:function(a,b,c){b=b||"";var d=a.shift,e=b.indexOf("C")>-1,f=e?7:3,g;b=b.split(" ");c=[].concat(c);var i,l,j=function(n){for(g=n.length;g--;)n[g]==Za&&n.splice(g+1,0,n[g+1],n[g+2],n[g+1],n[g+2])};if(e){j(b);j(c)}if(a.isArea){i=b.splice(b.length-6,6);l=c.splice(c.length-6,6)}if(d){c=[].concat(c).splice(0,
|
|
72
|
-
f).concat(c);a.shift=false}if(b.length)for(a=c.length;b.length<a;){d=[].concat(b).splice(b.length-f,f);if(e){d[f-6]=d[f-2];d[f-5]=d[f-1]}b=b.concat(d)}if(i){b=b.concat(i);c=c.concat(l)}return[b,c]},step:function(a,b,c,d){var e=[],f=a.length;if(c==1)e=d;else if(f==b.length&&c<1)for(;f--;){d=parseFloat(a[f]);e[f]=isNaN(d)?a[f]:c*parseFloat(b[f]-d)+d}else e=b;return e}};eb={enabled:true,align:"center",x:0,y:15,style:{color:"#666",fontSize:"11px",lineHeight:"14px"}};Sa={colors:["#4572A7","#AA4643","#89A54E",
|
|
73
|
-
"#80699B","#3D96AE","#DB843D","#92A8CD","#A47D7C","#B5CA92"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:true},chart:{borderColor:"#4572A7",borderRadius:5,
|
|
74
|
-
defaultSeriesType:"line",ignoreHiddenSeries:true,spacingTop:10,spacingRight:10,spacingBottom:15,spacingLeft:10,style:{fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"},backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0"},title:{text:"Chart title",align:"center",y:15,style:{color:"#3E576F",fontSize:"16px"}},subtitle:{text:"",align:"center",y:30,style:{color:"#6D869F"}},plotOptions:{line:{allowPointSelect:false,showCheckbox:false,animation:{duration:1E3},
|
|
75
|
-
events:{},lineWidth:2,shadow:true,marker:{enabled:true,lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:xa(eb,{enabled:false,y:-6,formatter:function(){return this.y}}),showInLegend:true,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:true}},labels:{style:{position:lc,color:"#3E576F"}},legend:{enabled:true,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderWidth:1,
|
|
76
|
-
borderColor:"#909090",borderRadius:5,shadow:false,style:{padding:"5px"},itemStyle:{cursor:"pointer",color:"#3E576F"},itemHoverStyle:{cursor:"pointer",color:"#000000"},itemHiddenStyle:{color:"#C0C0C0"},itemCheckboxStyle:{position:lc,width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:0,y:0},loading:{hideDuration:100,labelStyle:{fontWeight:"bold",position:Pd,top:"1em"},showDuration:100,style:{position:lc,backgroundColor:"white",opacity:0.5,textAlign:"center"}},tooltip:{enabled:true,
|
|
77
|
-
backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:2,borderRadius:5,shadow:true,snap:Hb?25:10,style:{color:"#333333",fontSize:"12px",padding:"5px",whiteSpace:"nowrap"}},toolbar:{itemStyle:{color:"#4572A7",cursor:"pointer"}},credits:{enabled:true,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"10px"}}};var Lc={dateTimeLabelFormats:{second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",
|
|
78
|
-
week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:false,gridLineColor:"#C0C0C0",labels:eb,lineColor:"#C0D0E0",lineWidth:1,max:null,min:null,minPadding:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:false,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#6D869F",fontWeight:"bold"}},
|
|
79
|
-
type:"linear"},fd=xa(Lc,{endOnTick:true,gridLineWidth:1,tickPixelInterval:72,showLastLabel:true,labels:{align:"right",x:-8,y:3},lineWidth:0,maxPadding:0.05,minPadding:0.05,startOnTick:true,tickWidth:0,title:{rotation:270,text:"Y-values"}}),Zd={labels:{align:"right",x:-8,y:null},title:{rotation:270}},Yd={labels:{align:"left",x:8,y:null},title:{rotation:90}},Ld={labels:{align:"center",x:0,y:14},title:{rotation:0}},Xd=xa(Ld,{labels:{y:-5}}),vb=Sa.plotOptions;eb=vb.line;vb.spline=xa(eb);vb.scatter=xa(eb,
|
|
80
|
-
{lineWidth:0,states:{hover:{lineWidth:0}}});vb.area=xa(eb,{});vb.areaspline=xa(vb.area);vb.column=xa(eb,{borderColor:"#FFFFFF",borderWidth:1,borderRadius:0,groupPadding:0.2,marker:null,pointPadding:0.1,minPointLength:0,states:{hover:{brightness:0.1,shadow:false},select:{color:"#C0C0C0",borderColor:"#000000",shadow:false}}});vb.bar=xa(vb.column,{dataLabels:{align:"left",x:5,y:0}});vb.pie=xa(eb,{borderColor:"#FFFFFF",borderWidth:1,center:["50%","50%"],colorByPoint:true,dataLabels:{distance:30,enabled:true,
|
|
81
|
-
formatter:function(){return this.point.name},y:5},legendType:"point",marker:null,size:"75%",showInLegend:false,slicedOffset:10,states:{hover:{brightness:0.1,shadow:false}}});Bd();var Ub=function(a){var b=[],c;(function(d){if(c=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(d))b=[pa(c[1]),pa(c[2]),pa(c[3]),parseFloat(c[4],10)];else if(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(d))b=[pa(c[1],16),pa(c[2],16),pa(c[3],16),1]})(a);return{get:function(d){return b&&
|
|
82
|
-
!isNaN(b[0])?d=="rgb"?"rgb("+b[0]+","+b[1]+","+b[2]+")":d=="a"?b[3]:"rgba("+b.join(",")+")":a},brighten:function(d){if(ac(d)&&d!==0){var e;for(e=0;e<3;e++){b[e]+=pa(d*255);if(b[e]<0)b[e]=0;if(b[e]>255)b[e]=255}}return this},setOpacity:function(d){b[3]=d;return this}}};Mc=function(a,b,c){function d(F){return F.toString().replace(/^([0-9])$/,"0$1")}if(!I(b)||isNaN(b))return"Invalid date";a=y(a,"%Y-%m-%d %H:%M:%S");b=new Date(b*ob);var e=b[ad](),f=b[bd](),g=b[oc](),i=b[Dc](),l=b[Ec](),j=Sa.lang,n=j.weekdays;
|
|
83
|
-
j=j.months;b={a:n[f].substr(0,3),A:n[f],d:d(g),e:g,b:j[i].substr(0,3),B:j[i],m:d(i+1),y:l.toString().substr(2,2),Y:l,H:d(e),I:d(e%12||12),l:e%12||12,M:d(b[$c]()),p:e<12?"AM":"PM",P:e<12?"am":"pm",S:d(b.getSeconds())};for(var z in b)a=a.replace("%"+z,b[z]);return c?a.substr(0,1).toUpperCase()+a.substr(1):a};Hc.prototype={init:function(a,b){this.element=za.createElementNS("http://www.w3.org/2000/svg",b);this.renderer=a},animate:function(a,b,c){if(b=y(b,Bc,true)){b=xa(b);if(c)b.complete=c;Xc(this,a,
|
|
84
|
-
b)}else{this.attr(a);c&&c()}},attr:function(a,b){var c,d,e,f,g=this.element,i=g.nodeName,l=this.renderer,j,n=this.shadows,z,F=this;if(Jb(a)&&I(b)){c=a;a={};a[c]=b}if(Jb(a)){c=a;if(i=="circle")c={x:"cx",y:"cy"}[c]||c;else if(c=="strokeWidth")c="stroke-width";F=ya(g,c)||this[c]||0;if(c!="d"&&c!="visibility")F=parseFloat(F)}else for(c in a){j=false;d=a[c];if(c=="d"){if(d&&d.join)d=d.join(" ");if(/(NaN| {2}|^$)/.test(d))d="M 0 0";this.d=d}else if(c=="x"&&i=="text"){for(e=0;e<g.childNodes.length;e++){f=
|
|
85
|
-
g.childNodes[e];ya(f,"x")==ya(g,"x")&&ya(f,"x",d)}if(this.rotation)ya(g,"transform","rotate("+this.rotation+" "+d+" "+pa(a.y||ya(g,"y"))+")")}else if(c=="fill")d=l.color(d,g,c);else if(i=="circle"&&(c=="x"||c=="y"))c={x:"cx",y:"cy"}[c]||c;else if(c=="translateX"||c=="translateY"||c=="rotation"||c=="verticalAlign"){this[c]=d;this.updateTransform();j=true}else if(c=="stroke")d=l.color(d,g,c);else if(c=="dashstyle"){c="stroke-dasharray";if(d){d=d.toLowerCase().replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot",
|
|
86
|
-
"3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(e=d.length;e--;)d[e]=pa(d[e])*a["stroke-width"];d=d.join(",")}}else if(c=="isTracker")this[c]=d;else if(c=="width")d=pa(d);else if(c=="align"){c="text-anchor";d={left:"start",center:"middle",right:"end"}[d]}if(c=="strokeWidth")c="stroke-width";if(ce&&c=="stroke-width"&&d===0)d=1.0E-6;if(this.symbolName&&/^(x|y|r|start|end|innerR)/.test(c)){if(!z){this.symbolAttr(a);
|
|
87
|
-
z=true}j=true}if(n&&/^(width|height|visibility|x|y|d)$/.test(c))for(e=n.length;e--;)ya(n[e],c,d);if(c=="text"){this.textStr=d;this.added&&l.buildText(this)}else j||ya(g,c,d)}return F},symbolAttr:function(a){this.x=y(a.x,this.x);this.y=y(a.y,this.y);this.r=y(a.r,this.r);this.start=y(a.start,this.start);this.end=y(a.end,this.end);this.width=y(a.width,this.width);this.height=y(a.height,this.height);this.innerR=y(a.innerR,this.innerR);this.attr({d:this.renderer.symbols[this.symbolName](this.x,this.y,
|
|
88
|
-
this.r,{start:this.start,end:this.end,width:this.width,height:this.height,innerR:this.innerR})})},clip:function(a){return this.attr("clip-path","url("+this.renderer.url+"#"+a.id+")")},css:function(a){var b=this.element;b=a&&a.width&&b.nodeName=="text";if(a&&a.color)a.fill=a.color;this.styles=a=oa(this.styles,a);if(Ac&&!wc){b&&delete a.width;Ia(this.element,a)}else this.attr({style:Wd(a)});b&&this.added&&this.renderer.buildText(this);return this},on:function(a,b){var c=b;if(Hb&&a=="click"){a="touchstart";
|
|
89
|
-
c=function(d){d.preventDefault();b()}}this.element["on"+a]=c;return this},translate:function(a,b){return this.attr({translateX:a,translateY:b})},invert:function(){this.inverted=true;this.updateTransform();return this},updateTransform:function(){var a=this.translateX||0,b=this.translateY||0,c=this.inverted,d=this.rotation,e=[];if(c){a+=this.attr("width");b+=this.attr("height")}if(a||b)e.push("translate("+a+","+b+")");if(c)e.push("rotate(90) scale(-1,1)");else d&&e.push("rotate("+d+" "+this.x+" "+this.y+
|
|
90
|
-
")");e.length&&ya(this.element,"transform",e.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,b,c){if(a){this.alignOptions=a;this.alignByTranslate=b;c||this.renderer.alignedObjects.push(this)}else{a=this.alignOptions;b=this.alignByTranslate}c=y(c,this.renderer);var d=a.align,e=a.verticalAlign,f=(c.x||0)+(a.x||0),g=(c.y||0)+(a.y||0),i={};if(/^(right|center)$/.test(d))f+=(c.width-(a.width||0))/{right:1,center:2}[d];i[b?"translateX":"x"]=f;if(/^(bottom|middle)$/.test(e))g+=
|
|
91
|
-
(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1);i[b?"translateY":"y"]=g;this[this.placed?"animate":"attr"](i);this.placed=true;return this},getBBox:function(){var a,b,c,d=this.rotation,e=d*Ud;try{a=oa({},this.element.getBBox())}catch(f){a={width:0,height:0}}b=a.width;c=a.height;if(d){a.width=cb(c*yb(e))+cb(b*jb(e));a.height=cb(c*jb(e))+cb(b*yb(e))}return a},show:function(){return this.attr({visibility:Ab})},hide:function(){return this.attr({visibility:ub})},add:function(a){var b=this.renderer,
|
|
92
|
-
c=a||b,d=c.element||b.box,e=d.childNodes,f=this.element,g=ya(f,"zIndex");this.parentInverted=a&&a.inverted;this.textStr!==undefined&&b.buildText(this);if(g){c.handleZ=true;g=pa(g)}if(c.handleZ)for(c=0;c<e.length;c++){a=e[c];b=ya(a,"zIndex");if(a!=f&&(pa(b)>g||!I(g)&&I(b))){d.insertBefore(f,a);return this}}d.appendChild(f);this.added=true;return this},destroy:function(){var a=this.element||{},b=this.shadows,c=a.parentNode,d;a.onclick=a.onmouseout=a.onmouseover=a.onmousemove=null;Sc(this);c&&c.removeChild(a);
|
|
93
|
-
b&&t(b,function(e){(c=e.parentNode)&&c.removeChild(e)});mc(this.renderer.alignedObjects,this);for(d in this)delete this[d];return null},empty:function(){for(var a=this.element,b=a.childNodes,c=b.length;c--;)a.removeChild(b[c])},shadow:function(a){var b=[],c,d=this.element,e=this.parentInverted?"(-1,-1)":"(1,1)";if(a){for(a=1;a<=3;a++){c=d.cloneNode(0);ya(c,{isShadow:"true",stroke:"rgb(0, 0, 0)","stroke-opacity":0.05*a,"stroke-width":7-2*a,transform:"translate"+e,fill:mb});d.parentNode.insertBefore(c,
|
|
94
|
-
d);b.push(c)}this.shadows=b}return this}};var Uc=function(){this.init.apply(this,arguments)};Uc.prototype={init:function(a,b,c,d){var e=location,f;this.Element=Hc;f=this.createElement("svg").attr({xmlns:"http://www.w3.org/2000/svg",version:"1.1"});a.appendChild(f.element);this.box=f.element;this.boxWrapper=f;this.alignedObjects=[];this.url=Ac?"":e.href.replace(/#.*?$/,"");this.defs=this.createElement("defs").add();this.forExport=d;this.setSize(b,c,false)},createElement:function(a){var b=new this.Element;
|
|
95
|
-
b.init(this,a);return b},buildText:function(a){for(var b=a.element,c=y(a.textStr,"").toString().replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br[^>]?>/g),d=b.childNodes,e=/style="([^"]+)"/,f=/href="([^"]+)"/,g=ya(b,"x"),i=a.styles,l=Rd&&i&&i.HcDirection=="rtl"&&!this.forExport,j,n=i&&pa(i.width),z=i&&i.lineHeight,F,W=d.length;W--;)b.removeChild(d[W]);n&&!a.added&&
|
|
96
|
-
this.box.appendChild(b);t(c,function(ba,ka){var v,J=0,ea;ba=ba.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");v=ba.split("|||");t(v,function(Y){if(Y!==""||v.length==1){var V={},R=za.createElementNS("http://www.w3.org/2000/svg","tspan");e.test(Y)&&ya(R,"style",Y.match(e)[1].replace(/(;| |^)color([ :])/,"$1fill$2"));if(f.test(Y)){ya(R,"onclick",'location.href="'+Y.match(f)[1]+'"');Ia(R,{cursor:"pointer"})}Y=Y.replace(/<(.|\n)*?>/g,"")||" ";if(l){j=[];for(W=Y.length;W--;)j.push(Y.charAt(W));
|
|
97
|
-
Y=j.join("")}R.appendChild(za.createTextNode(Y));if(J)V.dx=3;else V.x=g;if(!J){if(ka){ea=pa(window.getComputedStyle(F,null).getPropertyValue("line-height"));if(isNaN(ea))ea=z||F.offsetHeight||18;ya(R,"dy",ea)}F=R}ya(R,V);b.appendChild(R);J++;if(n){Y=Y.replace(/-/g,"- ").split(" ");for(var Ha,Ya=[];Y.length||Ya.length;){Ha=b.getBBox().width;V=Ha>n;if(!V||Y.length==1){Y=Ya;Ya=[];if(Y.length){R=za.createElementNS("http://www.w3.org/2000/svg","tspan");ya(R,{x:g,dy:z||16});b.appendChild(R);if(Ha>n)n=Ha}}else{R.removeChild(R.firstChild);
|
|
98
|
-
Ya.unshift(Y.pop())}R.appendChild(za.createTextNode(Y.join(" ").replace(/- /g,"-")))}}}})})},crispLine:function(a,b){if(a[1]==a[4])a[1]=a[4]=U(a[1])+b%2/2;if(a[2]==a[5])a[2]=a[5]=U(a[2])+b%2/2;return a},path:function(a){return this.createElement("path").attr({d:a,fill:mb})},circle:function(a,b,c){a=Db(a)?a:{x:a,y:b,r:c};return this.createElement("circle").attr(a)},arc:function(a,b,c,d,e,f){if(Db(a)){b=a.y;c=a.r;d=a.innerR;e=a.start;f=a.end;a=a.x}return this.symbol("arc",a||0,b||0,c||0,{innerR:d||
|
|
99
|
-
0,start:e||0,end:f||0})},rect:function(a,b,c,d,e,f){if(arguments.length>1){var g=(f||0)%2/2;a=U(a||0)+g;b=U(b||0)+g;c=U((c||0)-2*g);d=U((d||0)-2*g)}g=Db(a)?a:{x:a,y:b,width:Da(c,0),height:Da(d,0)};return this.createElement("rect").attr(oa(g,{rx:e||g.r,ry:e||g.r,fill:mb}))},setSize:function(a,b,c){var d=this.alignedObjects,e=d.length;this.width=a;this.height=b;for(this.boxWrapper[y(c,true)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},g:function(a){return this.createElement("g").attr(I(a)&&
|
|
100
|
-
{"class":Zb+a})},image:function(a,b,c,d,e){var f={preserveAspectRatio:mb};arguments.length>1&&oa(f,{x:b,y:c,width:d,height:e});f=this.createElement("image").attr(f);f.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a);return f},symbol:function(a,b,c,d,e){var f,g=this.symbols[a];g=g&&g(b,c,d,e);var i=/^url\((.*?)\)$/;if(g){f=this.path(g);oa(f,{symbolName:a,x:b,y:c,r:d});e&&oa(f,e)}else if(i.test(a)){a=a.match(i)[1];f=this.image(a).attr({x:b,y:c});fb("img",{onload:function(){var l=de[this.src]||
|
|
101
|
-
[this.width,this.height];f.attr({width:l[0],height:l[1]}).translate(-U(l[0]/2),-U(l[1]/2))},src:a})}else f=this.circle(b,c,d);return f},symbols:{square:function(a,b,c){c=0.707*c;return[Za,a-c,b-c,Ca,a+c,b-c,a+c,b+c,a-c,b+c,"Z"]},triangle:function(a,b,c){return[Za,a,b-1.33*c,Ca,a+c,b+0.67*c,a-c,b+0.67*c,"Z"]},"triangle-down":function(a,b,c){return[Za,a,b+1.33*c,Ca,a-c,b-0.67*c,a+c,b-0.67*c,"Z"]},diamond:function(a,b,c){return[Za,a,b-c,Ca,a+c,b,a,b+c,a-c,b,"Z"]},arc:function(a,b,c,d){var e=d.start,
|
|
102
|
-
f=d.end-1.0E-6,g=d.innerR,i=jb(e),l=yb(e),j=jb(f);f=yb(f);d=d.end-e<Tb?0:1;return[Za,a+c*i,b+c*l,"A",c,c,0,d,1,a+c*j,b+c*f,Ca,a+g*j,b+g*f,"A",g,g,0,d,0,a+g*i,b+g*l,"Z"]}},clipRect:function(a,b,c,d){var e=Zb+od++,f=this.createElement("clipPath").attr({id:e}).add(this.defs);a=this.rect(a,b,c,d,0).add(f);a.id=e;return a},color:function(a,b,c){var d,e=/^rgba/;if(a&&a.linearGradient){var f=this;b=a.linearGradient;c=Zb+od++;var g,i,l;g=f.createElement("linearGradient").attr({id:c,gradientUnits:"userSpaceOnUse",
|
|
103
|
-
x1:b[0],y1:b[1],x2:b[2],y2:b[3]}).add(f.defs);t(a.stops,function(j){if(e.test(j[1])){d=Ub(j[1]);i=d.get("rgb");l=d.get("a")}else{i=j[1];l=1}f.createElement("stop").attr({offset:j[0],"stop-color":i,"stop-opacity":l}).add(g)});return"url("+this.url+"#"+c+")"}else if(e.test(a)){d=Ub(a);ya(b,c+"-opacity",d.get("a"));return d.get("rgb")}else return a},text:function(a,b,c){var d=Sa.chart.style;b=U(y(b,0));c=U(y(c,0));a=this.createElement("text").attr({x:b,y:c,text:a}).css({"font-family":d.fontFamily,"font-size":d.fontSize});
|
|
104
|
-
a.x=b;a.y=c;return a}};var Ma;if(!wc){var ge=wb(Hc,{init:function(a,b){var c=["<",b,' filled="f" stroked="f"'],d=["position: ",lc,";"];if(b=="shape"||b==Kb)d.push("left:0;top:0;width:10px;height:10px;");if(yc)d.push("visibility: ",b==Kb?ub:Ab);c.push(' style="',d.join(""),'"/>');if(b){c=b==Kb||b=="span"||b=="img"?c.join(""):a.prepVML(c);this.element=fb(c)}this.renderer=a},add:function(a){var b=this.renderer,c=this.element,d=b.box;d=a?a.element||a:d;a&&a.inverted&&b.invertChild(c,d);yc&&d.gVis==ub&&
|
|
105
|
-
Ia(c,{visibility:ub});d.appendChild(c);this.added=true;this.alignOnAdd&&this.updateTransform();return this},attr:function(a,b){var c,d,e,f=this.element||{},g=f.style,i=f.nodeName,l=this.renderer,j=this.symbolName,n,z,F=this.shadows,W=this;if(Jb(a)&&I(b)){c=a;a={};a[c]=b}if(Jb(a)){c=a;W=c=="strokeWidth"||c=="stroke-width"?this.strokeweight:this[c]}else for(c in a){d=a[c];n=false;if(j&&/^(x|y|r|start|end|width|height|innerR)/.test(c)){if(!z){this.symbolAttr(a);z=true}n=true}else if(c=="d"){d=d||[];
|
|
106
|
-
this.d=d.join(" ");e=d.length;for(n=[];e--;)n[e]=ac(d[e])?U(d[e]*10)-5:d[e]=="Z"?"x":d[e];d=n.join(" ")||"x";f.path=d;if(F)for(e=F.length;e--;)F[e].path=d;n=true}else if(c=="zIndex"||c=="visibility"){if(yc&&c=="visibility"&&i=="DIV"){f.gVis=d;n=f.childNodes;for(e=n.length;e--;)Ia(n[e],{visibility:d});if(d==Ab)d=null}if(d)g[c]=d;n=true}else if(/^(width|height)$/.test(c)){if(this.updateClipping){this[c]=d;this.updateClipping()}else g[c]=d;n=true}else if(/^(x|y)$/.test(c)){this[c]=d;if(f.tagName=="SPAN")this.updateTransform();
|
|
107
|
-
else g[{x:"left",y:"top"}[c]]=d}else if(c=="class")f.className=d;else if(c=="stroke"){d=l.color(d,f,c);c="strokecolor"}else if(c=="stroke-width"||c=="strokeWidth"){f.stroked=d?true:false;c="strokeweight";this[c]=d;if(ac(d))d+=$a}else if(c=="dashstyle"){(f.getElementsByTagName("stroke")[0]||fb(l.prepVML(["<stroke/>"]),null,null,f))[c]=d||"solid";this.dashstyle=d;n=true}else if(c=="fill")if(i=="SPAN")g.color=d;else{f.filled=d!=mb?true:false;d=l.color(d,f,c);c="fillcolor"}else if(c=="translateX"||c==
|
|
108
|
-
"translateY"||c=="rotation"||c=="align"){if(c=="align")c="textAlign";this[c]=d;this.updateTransform();n=true}else if(c=="text"){f.innerHTML=d;n=true}if(F&&c=="visibility")for(e=F.length;e--;)F[e].style[c]=d;if(!n)if(yc)f[c]=d;else ya(f,c,d)}return W},clip:function(a){var b=this,c=a.members;c.push(b);b.destroyClip=function(){mc(c,b)};return b.css(a.getCSS(b.inverted))},css:function(a){var b=this.element;if(b=a&&b.tagName=="SPAN"&&a.width){delete a.width;this.textWidth=b;this.updateTransform()}this.styles=
|
|
109
|
-
oa(this.styles,a);Ia(this.element,a);return this},destroy:function(){this.destroyClip&&this.destroyClip();Hc.prototype.destroy.apply(this)},empty:function(){for(var a=this.element.childNodes,b=a.length,c;b--;){c=a[b];c.parentNode.removeChild(c)}},getBBox:function(){var a=this.element;if(a.nodeName=="text")a.style.position=lc;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},on:function(a,b){this.element["on"+a]=function(){var c=sb.event;c.target=c.srcElement;b(c)};return this},
|
|
110
|
-
updateTransform:function(){if(this.added){var a=this,b=a.element,c=a.translateX||0,d=a.translateY||0,e=a.x||0,f=a.y||0,g=a.textAlign||"left",i={left:0,center:0.5,right:1}[g],l=g&&g!="left";if(c||d)a.css({marginLeft:c,marginTop:d});a.inverted&&t(b.childNodes,function(J){a.renderer.invertChild(J,b)});if(b.tagName=="SPAN"){var j,n;c=a.rotation;var z;j=0;d=1;var F=0,W;z=pa(a.textWidth);var ba=a.xCorr||0,ka=a.yCorr||0,v=[c,g,b.innerHTML,a.textWidth].join(",");if(v!=a.cTT){if(I(c)){j=c*Ud;d=jb(j);F=yb(j);
|
|
111
|
-
Ia(b,{filter:c?["progid:DXImageTransform.Microsoft.Matrix(M11=",d,", M12=",-F,", M21=",F,", M22=",d,", sizingMethod='auto expand')"].join(""):mb})}j=b.offsetWidth;n=b.offsetHeight;if(j>z){Ia(b,{width:z+$a,display:"block",whiteSpace:"normal"});j=z}z=U(pa(b.style.fontSize||12)*1.2);ba=d<0&&-j;ka=F<0&&-n;W=d*F<0;ba+=F*z*(W?1-i:i);ka-=d*z*(c?W?i:1-i:1);if(l){ba-=j*i*(d<0?-1:1);if(c)ka-=n*i*(F<0?-1:1);Ia(b,{textAlign:g})}a.xCorr=ba;a.yCorr=ka}Ia(b,{left:e+ba,top:f+ka});a.cTT=v}}else this.alignOnAdd=true},
|
|
112
|
-
shadow:function(a){var b=[],c=this.element,d=this.renderer,e,f=c.style,g,i=c.path;if(""+c.path==="")i="x";if(a){for(a=1;a<=3;a++){g=['<shape isShadow="true" strokeweight="',7-2*a,'" filled="false" path="',i,'" coordsize="100,100" style="',c.style.cssText,'" />'];e=fb(d.prepVML(g),null,{left:pa(f.left)+1,top:pa(f.top)+1});g=['<stroke color="black" opacity="',0.05*a,'"/>'];fb(d.prepVML(g),null,null,e);c.parentNode.insertBefore(e,c);b.push(e)}this.shadows=b}return this}});Ma=function(){this.init.apply(this,
|
|
113
|
-
arguments)};Ma.prototype=xa(Uc.prototype,{isIE8:xc.indexOf("MSIE 8.0")>-1,init:function(a,b,c){var d;this.Element=ge;this.alignedObjects=[];d=this.createElement(Kb);a.appendChild(d.element);this.box=d.element;this.boxWrapper=d;this.setSize(b,c,false);if(!za.namespaces.hcv){za.namespaces.add("hcv","urn:schemas-microsoft-com:vml");za.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}},clipRect:function(a,b,c,d){var e=
|
|
114
|
-
this.createElement();return oa(e,{members:[],left:a,top:b,width:c,height:d,getCSS:function(f){var g=this.top,i=this.left,l=i+this.width,j=g+this.height;g={clip:"rect("+U(f?i:g)+"px,"+U(f?j:l)+"px,"+U(f?l:j)+"px,"+U(f?g:i)+"px)"};!f&&yc&&oa(g,{width:l+$a,height:j+$a});return g},updateClipping:function(){t(e.members,function(f){f.css(e.getCSS(f.inverted))})}})},color:function(a,b,c){var d,e=/^rgba/;if(a&&a.linearGradient){var f,g,i=a.linearGradient,l,j,n,z;t(a.stops,function(F,W){if(e.test(F[1])){d=
|
|
115
|
-
Ub(F[1]);f=d.get("rgb");g=d.get("a")}else{f=F[1];g=1}if(W){n=f;z=g}else{l=f;j=g}});a=90-Ua.atan((i[3]-i[1])/(i[2]-i[0]))*180/Tb;c=["<",c,' colors="0% ',l,",100% ",n,'" angle="',a,'" opacity="',z,'" o:opacity2="',j,'" type="gradient" focus="100%" />'];fb(this.prepVML(c),null,null,b)}else if(e.test(a)&&b.tagName!="IMG"){d=Ub(a);c=["<",c,' opacity="',d.get("a"),'"/>'];fb(this.prepVML(c),null,null,b);return d.get("rgb")}else return a},prepVML:function(a){var b=this.isIE8;a=a.join("");if(b){a=a.replace("/>",
|
|
116
|
-
' xmlns="urn:schemas-microsoft-com:vml" />');a=a.indexOf('style="')==-1?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):a.replace('style="','style="display:inline-block;behavior:url(#default#VML);')}else a=a.replace("<","<hcv:");return a},text:function(a,b,c){var d=Sa.chart.style;return this.createElement("span").attr({text:a,x:U(b),y:U(c)}).css({whiteSpace:"nowrap",fontFamily:d.fontFamily,fontSize:d.fontSize})},path:function(a){return this.createElement("shape").attr({coordsize:"100 100",
|
|
117
|
-
d:a})},circle:function(a,b,c){return this.path(this.symbols.circle(a,b,c))},g:function(a){var b;if(a)b={className:Zb+a,"class":Zb+a};return this.createElement(Kb).attr(b)},image:function(a,b,c,d,e){var f=this.createElement("img").attr({src:a});arguments.length>1&&f.css({left:b,top:c,width:d,height:e});return f},rect:function(a,b,c,d,e,f){if(arguments.length>1){var g=(f||0)%2/2;a=U(a||0)+g;b=U(b||0)+g;c=U((c||0)-2*g);d=U((d||0)-2*g)}if(Db(a)){b=a.y;c=a.width;d=a.height;e=a.r;a=a.x}return this.symbol("rect",
|
|
118
|
-
a||0,b||0,e||0,{width:c||0,height:d||0})},invertChild:function(a,b){var c=b.style;Ia(a,{flip:"x",left:pa(c.width)-10,top:pa(c.height)-10,rotation:-90})},symbols:{arc:function(a,b,c,d){var e=d.start,f=d.end,g=jb(e),i=yb(e),l=jb(f),j=yb(f);d=d.innerR;var n=0.07/c,z=d&&0.1/d||0;if(f-e===0)return["x"];else if(2*Tb-f+e<n)l=-n;else if(f-e<z)l=jb(e+z);return["wa",a-c,b-c,a+c,b+c,a+c*g,b+c*i,a+c*l,b+c*j,"at",a-d,b-d,a+d,b+d,a+d*l,b+d*j,a+d*g,b+d*i,"x","e"]},circle:function(a,b,c){return["wa",a-c,b-c,a+c,
|
|
119
|
-
b+c,a+c,b,a+c,b,"e"]},rect:function(a,b,c,d){var e=d.width;d=d.height;var f=a+e,g=b+d;c=nb(c,e,d);return[Za,a+c,b,Ca,f-c,b,"wa",f-2*c,b,f,b+2*c,f-c,b,f,b+c,Ca,f,g-c,"wa",f-2*c,g-2*c,f,g,f,g-c,f-c,g,Ca,a+c,g,"wa",a,g-2*c,a+2*c,g,a+c,g,a,g-c,Ca,a,b+c,"wa",a,b,a+2*c,b+2*c,a,b+c,a+c,b,"x","e"]}}})}var Qd=wc?Uc:Ma;Hd.prototype.callbacks=[];var zc=function(){};zc.prototype={init:function(a,b){var c;this.series=a;this.applyOptions(b);this.pointAttr={};if(a.options.colorByPoint){c=a.chart.options.colors;
|
|
120
|
-
if(!this.options)this.options={};this.color=this.options.color=this.color||c[Ib++];if(Ib>=c.length)Ib=0}a.chart.pointCount++;return this},applyOptions:function(a){var b=this.series;this.config=a;if(ac(a)||a===null)this.y=a;else if(Db(a)&&!ac(a.length)){oa(this,a);this.options=a}else if(Jb(a[0])){this.name=a[0];this.y=a[1]}else if(ac(a[0])){this.x=a[0];this.y=a[1]}if(this.x===Ra)this.x=b.autoIncrement()},destroy:function(){var a=this,b=a.series,c;b.chart.pointCount--;a==b.chart.hoverPoint&&a.onMouseOut();
|
|
121
|
-
b.chart.hoverPoints=null;Bb(a);t(["graphic","tracker","group","dataLabel","connector"],function(d){a[d]&&a[d].destroy()});a.legendItem&&a.series.chart.legend.destroyItem(a);for(c in a)a[c]=null},select:function(a,b){var c=this,d=c.series.chart;c.selected=a=y(a,!c.selected);c.firePointEvent(a?"select":"unselect");c.setState(a&&"select");b||t(d.getSelectedPoints(),function(e){if(e.selected&&e!=c){e.selected=false;e.setState(db);e.firePointEvent("unselect")}})},onMouseOver:function(){var a=this.series.chart,
|
|
122
|
-
b=a.tooltip,c=a.hoverPoint;c&&c!=this&&c.onMouseOut();this.firePointEvent("mouseOver");b&&!b.shared&&b.refresh(this);this.setState(xb);a.hoverPoint=this},onMouseOut:function(){this.firePointEvent("mouseOut");this.setState();this.series.chart.hoverPoint=null},tooltipFormatter:function(a){var b=this.series;return['<span style="color:'+b.color+'">',this.name||b.name,"</span>: ",!a?"<b>x = "+(this.name||this.x)+",</b> ":"","<b>",!a?"y = ":"",this.y,"</b><br/>"].join("")},getDataLabelText:function(){return this.series.options.dataLabels.formatter.call({x:this.x,
|
|
123
|
-
y:this.y,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal})},update:function(a,b,c){var d=this,e=d.series,f=d.dataLabel,g=e.chart;b=y(b,true);d.firePointEvent("update",{options:a},function(){d.applyOptions(a);f&&f.attr({text:d.getDataLabelText()});if(Db(a)){e.getAttribs();d.graphic.attr(d.pointAttr[e.state])}e.isDirty=true;b&&g.redraw(c)})},remove:function(a,b){var c=this,d=c.series,e=d.chart,f=d.data;bc(b,e);a=y(a,true);c.firePointEvent("remove",null,function(){mc(f,
|
|
124
|
-
c);c.destroy();d.isDirty=true;a&&e.redraw()})},firePointEvent:function(a,b,c){var d=this,e=this.series.options;if(e.point.events[a]||d.options&&d.options.events&&d.options.events[a])this.importEvents();if(a=="click"&&e.allowPointSelect)c=function(f){d.select(null,f.ctrlKey||f.metaKey||f.shiftKey)};La(this,a,b,c)},importEvents:function(){if(!this.hasImportedEvents){var a=xa(this.series.options.point,this.options).events,b;this.events=a;for(b in a)Qa(this,b,a[b]);this.hasImportedEvents=true}},setState:function(a){var b=
|
|
125
|
-
this.series,c=b.options.states,d=vb[b.type].marker&&b.options.marker,e=d&&!d.enabled,f=(d=d&&d.states[a])&&d.enabled===false,g=b.stateMarkerGraphic,i=b.chart,l=this.pointAttr;a||(a=db);if(!(a==this.state||this.selected&&a!="select"||c[a]&&c[a].enabled===false||a&&(f||e&&!d.enabled))){if(this.graphic)this.graphic.attr(l[a]);else{if(a){if(!g)b.stateMarkerGraphic=g=i.renderer.circle(0,0,l[a].r).attr(l[a]).add(b.group);g.translate(this.plotX,this.plotY)}if(g)g[a?"show":"hide"]()}this.state=a}}};var lb=
|
|
126
|
-
function(){};lb.prototype={isCartesian:true,type:"line",pointClass:zc,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},init:function(a,b){var c,d;d=a.series.length;this.chart=a;b=this.setOptions(b);oa(this,{index:d,options:b,name:b.name||"Series "+(d+1),state:db,pointAttr:{},visible:b.visible!==false,selected:b.selected===true});d=b.events;for(c in d)Qa(this,c,d[c]);if(d&&d.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=
|
|
127
|
-
true;this.getColor();this.getSymbol();this.setData(b.data,false)},autoIncrement:function(){var a=this.options,b=this.xIncrement;b=y(b,a.pointStart,0);this.pointInterval=y(this.pointInterval,a.pointInterval,1);this.xIncrement=b+this.pointInterval;return b},cleanData:function(){var a=this.chart,b=this.data,c,d,e=a.smallestInterval,f,g;b.sort(function(i,l){return i.x-l.x});for(g=b.length-1;g>=0;g--)b[g-1]&&b[g-1].x==b[g].x&&b.splice(g-1,1);for(g=b.length-1;g>=0;g--)if(b[g-1]){f=b[g].x-b[g-1].x;if(d===
|
|
128
|
-
Ra||f<d){d=f;c=g}}if(e===Ra||d<e)a.smallestInterval=d;this.closestPoints=c},getSegments:function(){var a=-1,b=[],c=this.data;t(c,function(d,e){if(d.y===null){e>a+1&&b.push(c.slice(a+1,e));a=e}else e==c.length-1&&b.push(c.slice(a+1,e+1))});this.segments=b},setOptions:function(a){var b=this.chart.options.plotOptions;return xa(b[this.type],b.series,a)},getColor:function(){var a=this.chart.options.colors;this.color=this.options.color||a[Ib++]||"#0000ff";if(Ib>=a.length)Ib=0},getSymbol:function(){var a=
|
|
129
|
-
this.chart.options.symbols;this.symbol=this.options.marker.symbol||a[Wc++];if(Wc>=a.length)Wc=0},addPoint:function(a,b,c,d){var e=this.data,f=this.graph,g=this.area,i=this.chart;a=(new this.pointClass).init(this,a);bc(d,i);if(f&&c)f.shift=c;if(g){g.shift=c;g.isArea=true}b=y(b,true);e.push(a);c&&e[0].remove(false);this.isDirty=true;b&&i.redraw()},setData:function(a,b){var c=this,d=c.data,e=c.initialColor,f=c.chart,g=d&&d.length||0;c.xIncrement=null;if(I(e))Ib=e;for(a=jc(nc(a||[]),function(i){return(new c.pointClass).init(c,
|
|
130
|
-
i)});g--;)d[g].destroy();c.data=a;c.cleanData();c.getSegments();c.isDirty=true;f.isDirtyBox=true;y(b,true)&&f.redraw(false)},remove:function(a,b){var c=this,d=c.chart;a=y(a,true);if(!c.isRemoving){c.isRemoving=true;La(c,"remove",null,function(){c.destroy();d.isDirtyLegend=d.isDirtyBox=true;a&&d.redraw(b)})}c.isRemoving=false},translate:function(){for(var a=this.chart,b=this.options.stacking,c=this.xAxis.categories,d=this.yAxis,e=this.data,f=e.length;f--;){var g=e[f],i=g.x,l=g.y,j=g.low,n=d.stacks[(l<
|
|
131
|
-
0?"-":"")+this.stackKey];g.plotX=this.xAxis.translate(i);if(b&&this.visible&&n[i]){j=n[i];i=j.total;j.cum=j=j.cum-l;l=j+l;if(b=="percent"){j=i?j*100/i:0;l=i?l*100/i:0}g.percentage=i?g.y*100/i:0;g.stackTotal=i}if(I(j))g.yBottom=d.translate(j,0,1);if(l!==null)g.plotY=d.translate(l,0,1);g.clientX=a.inverted?a.plotHeight-g.plotX:g.plotX;g.category=c&&c[g.x]!==Ra?c[g.x]:g.x}},setTooltipPoints:function(a){var b=this.chart,c=b.inverted,d=[],e=U((c?b.plotTop:b.plotLeft)+b.plotSizeX),f,g,i=[];if(a)this.tooltipPoints=
|
|
132
|
-
null;t(this.segments,function(l){d=d.concat(l)});if(this.xAxis&&this.xAxis.reversed)d=d.reverse();t(d,function(l,j){f=d[j-1]?d[j-1].high+1:0;for(g=l.high=d[j+1]?Lb((l.plotX+(d[j+1]?d[j+1].plotX:e))/2):e;f<=g;)i[c?e-f++:f++]=l});this.tooltipPoints=i},onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(!(!Hb&&a.mouseIsDown)){b&&b!=this&&b.onMouseOut();this.options.events.mouseOver&&La(this,"mouseOver");this.tracker&&this.tracker.toFront();this.setState(xb);a.hoverSeries=this}},onMouseOut:function(){var a=
|
|
133
|
-
this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;d&&d.onMouseOut();this&&a.events.mouseOut&&La(this,"mouseOut");c&&!a.stickyTracking&&c.hide();this.setState();b.hoverSeries=null},animate:function(a){var b=this.chart,c=this.clipRect,d=this.options.animation;if(d&&!Db(d))d={};if(a){if(!c.isAnimating){c.attr("width",0);c.isAnimating=true}}else{c.animate({width:b.plotSizeX},d);this.animate=null}},drawPoints:function(){var a,b=this.data,c=this.chart,d,e,f,g,i,l;if(this.options.marker.enabled)for(f=
|
|
134
|
-
b.length;f--;){g=b[f];d=g.plotX;e=g.plotY;l=g.graphic;if(e!==Ra&&!isNaN(e)){a=g.pointAttr[g.selected?"select":db];i=a.r;if(l)l.animate({x:d,y:e,r:i});else g.graphic=c.renderer.symbol(y(g.marker&&g.marker.symbol,this.symbol),d,e,i).attr(a).add(this.group)}}},convertAttribs:function(a,b,c,d){var e=this.pointAttrToOptions,f,g,i={};a=a||{};b=b||{};c=c||{};d=d||{};for(f in e){g=e[f];i[f]=y(a[g],b[f],c[f],d[f])}return i},getAttribs:function(){var a=this,b=vb[a.type].marker?a.options.marker:a.options,c=
|
|
135
|
-
b.states,d=c[xb],e,f=a.color,g={stroke:f,fill:f},i=a.data,l=[],j,n=a.pointAttrToOptions;if(a.options.marker){d.radius=d.radius||b.radius+2;d.lineWidth=d.lineWidth||b.lineWidth+1}else d.color=d.color||Ub(d.color||f).brighten(d.brightness).get();l[db]=a.convertAttribs(b,g);t([xb,"select"],function(F){l[F]=a.convertAttribs(c[F],l[db])});a.pointAttr=l;for(f=i.length;f--;){g=i[f];if((b=g.options&&g.options.marker||g.options)&&b.enabled===false)b.radius=0;e=false;if(g.options)for(var z in n)if(I(b[n[z]]))e=
|
|
136
|
-
true;if(e){j=[];c=b.states||{};e=c[xb]=c[xb]||{};if(!a.options.marker)e.color=Ub(e.color||g.options.color).brighten(e.brightness||d.brightness).get();j[db]=a.convertAttribs(b,l[db]);j[xb]=a.convertAttribs(c[xb],l[xb],j[db]);j.select=a.convertAttribs(c.select,l.select,j[db])}else j=l;g.pointAttr=j}},destroy:function(){var a=this,b=a.chart,c=/\/5[0-9\.]+ Safari\//.test(xc),d,e;Bb(a);a.legendItem&&a.chart.legend.destroyItem(a);t(a.data,function(f){f.destroy()});t(["area","graph","dataLabelsGroup","group",
|
|
137
|
-
"tracker"],function(f){if(a[f]){d=c&&f=="group"?"hide":"destroy";a[f][d]()}});if(b.hoverSeries==a)b.hoverSeries=null;mc(b.series,a);for(e in a)delete a[e]},drawDataLabels:function(){if(this.options.dataLabels.enabled){var a,b,c=this.data,d=this.options.dataLabels,e,f=this.dataLabelsGroup,g=this.chart,i=g.inverted,l=this.type,j;if(!f)f=this.dataLabelsGroup=g.renderer.g(Zb+"data-labels").attr({visibility:this.visible?Ab:ub,zIndex:5}).translate(g.plotLeft,g.plotTop).add();j=d.color;if(j=="auto")j=null;
|
|
138
|
-
d.style.color=y(j,this.color);t(c,function(n){var z=n.barX;z=z&&z+n.barW/2||n.plotX||-999;var F=y(n.plotY,-999),W=n.dataLabel,ba=d.align;e=n.getDataLabelText();a=(i?g.plotWidth-F:z)+d.x;b=(i?g.plotHeight-z:F)+d.y;if(l=="column")a+={left:-1,right:1}[ba]*n.barW/2||0;if(W)W.animate({x:a,y:b});else if(I(e))W=n.dataLabel=g.renderer.text(e,a,b).attr({align:ba,rotation:d.rotation,zIndex:1}).css(d.style).add(f);i&&!d.y&&W.attr({y:b+parseInt(W.styles.lineHeight)*0.9-W.getBBox().height/2})})}},drawGraph:function(){var a=
|
|
139
|
-
this,b=a.options,c=a.graph,d=[],e,f=a.area,g=a.group,i=b.lineColor||a.color,l=b.lineWidth,j=b.dashStyle,n,z=a.chart.renderer,F=a.yAxis.getThreshold(b.threshold||0),W=/^area/.test(a.type),ba=[],ka=[];t(a.segments,function(v){n=[];t(v,function(V,R){if(a.getPointSpline)n.push.apply(n,a.getPointSpline(v,V,R));else{n.push(R?Ca:Za);R&&b.step&&n.push(V.plotX,v[R-1].plotY);n.push(V.plotX,V.plotY)}});if(v.length>1)d=d.concat(n);else ba.push(v[0]);if(W){var J=[],ea,Y=n.length;for(ea=0;ea<Y;ea++)J.push(n[ea]);
|
|
140
|
-
Y==3&&J.push(Ca,n[1],n[2]);if(b.stacking&&a.type!="areaspline")for(ea=v.length-1;ea>=0;ea--)J.push(v[ea].plotX,v[ea].yBottom);else J.push(Ca,v[v.length-1].plotX,F,Ca,v[0].plotX,F);ka=ka.concat(J)}});a.graphPath=d;a.singlePoints=ba;if(W){e=y(b.fillColor,Ub(a.color).setOpacity(b.fillOpacity||0.75).get());if(f)f.animate({d:ka});else a.area=a.chart.renderer.path(ka).attr({fill:e}).add(g)}if(c)c.animate({d:d});else if(l){c={stroke:i,"stroke-width":l};if(j)c.dashstyle=j;a.graph=z.path(d).attr(c).add(g).shadow(b.shadow)}},
|
|
141
|
-
render:function(){var a=this,b=a.chart,c,d,e=a.options,f=e.animation,g=f&&a.animate;f=g?f&&f.duration||500:0;var i=a.clipRect;d=b.renderer;if(!i){i=a.clipRect=!b.hasRendered&&b.clipRect?b.clipRect:d.clipRect(0,0,b.plotSizeX,b.plotSizeY);if(!b.clipRect)b.clipRect=i}if(!a.group){c=a.group=d.g("series");if(b.inverted){d=function(){c.attr({width:b.plotWidth,height:b.plotHeight}).invert()};d();Qa(b,"resize",d)}c.clip(a.clipRect).attr({visibility:a.visible?Ab:ub,zIndex:e.zIndex}).translate(b.plotLeft,b.plotTop).add(b.seriesGroup)}a.drawDataLabels();
|
|
142
|
-
g&&a.animate(true);a.getAttribs();a.drawGraph&&a.drawGraph();a.drawPoints();a.options.enableMouseTracking!==false&&a.drawTracker();g&&a.animate();setTimeout(function(){i.isAnimating=false;if((c=a.group)&&i!=b.clipRect&&i.renderer){c.clip(a.clipRect=b.clipRect);i.destroy()}},f);a.isDirty=false},redraw:function(){var a=this.chart,b=this.group;if(b){a.inverted&&b.attr({width:a.plotWidth,height:a.plotHeight});b.animate({translateX:a.plotLeft,translateY:a.plotTop})}this.translate();this.setTooltipPoints(true);
|
|
143
|
-
this.render()},setState:function(a){var b=this.options,c=this.graph,d=b.states;b=b.lineWidth;a=a||db;if(this.state!=a){this.state=a;if(!(d[a]&&d[a].enabled===false)){if(a)b=d[a].lineWidth||b+1;if(c&&!c.dashstyle)c.attr({"stroke-width":b},a?0:500)}}},setVisible:function(a,b){var c=this.chart,d=this.legendItem,e=this.group,f=this.tracker,g=this.dataLabelsGroup,i,l=this.data,j=c.options.chart.ignoreHiddenSeries;i=this.visible;i=(this.visible=a=a===Ra?!i:a)?"show":"hide";e&&e[i]();if(f)f[i]();else for(e=
|
|
144
|
-
l.length;e--;){f=l[e];f.tracker&&f.tracker[i]()}g&&g[i]();d&&c.legend.colorizeItem(this,a);this.isDirty=true;this.options.stacking&&t(c.series,function(n){if(n.options.stacking&&n.visible)n.isDirty=true});if(j)c.isDirtyBox=true;b!==false&&c.redraw();La(this,i)},show:function(){this.setVisible(true)},hide:function(){this.setVisible(false)},select:function(a){this.selected=a=a===Ra?!this.selected:a;if(this.checkbox)this.checkbox.checked=a;La(this,a?"select":"unselect")},drawTracker:function(){var a=
|
|
145
|
-
this,b=a.options,c=[].concat(a.graphPath),d=c.length,e=a.chart,f=e.options.tooltip.snap,g=a.tracker,i=b.cursor;i=i&&{cursor:i};var l=a.singlePoints,j;if(d)for(j=d+1;j--;){c[j]==Za&&c.splice(j+1,0,c[j+1]-f,c[j+2],Ca);if(j&&c[j]==Za||j==d)c.splice(j,0,Ca,c[j-2]+f,c[j-1])}for(j=0;j<l.length;j++){d=l[j];c.push(Za,d.plotX-f,d.plotY,Ca,d.plotX+f,d.plotY)}if(g)g.attr({d:c});else a.tracker=e.renderer.path(c).attr({isTracker:true,stroke:Vd,fill:mb,"stroke-width":b.lineWidth+2*f,visibility:a.visible?Ab:ub,
|
|
146
|
-
zIndex:1}).on(Hb?"touchstart":"mouseover",function(){e.hoverSeries!=a&&a.onMouseOver()}).on("mouseout",function(){b.stickyTracking||a.onMouseOut()}).css(i).add(e.trackerGroup)}};Ma=wb(lb);tb.line=Ma;Ma=wb(lb,{type:"area"});tb.area=Ma;Ma=wb(lb,{type:"spline",getPointSpline:function(a,b,c){var d=b.plotX,e=b.plotY,f=a[c-1],g=a[c+1],i,l,j,n;if(c&&c<a.length-1){a=f.plotY;j=g.plotX;g=g.plotY;var z;i=(1.5*d+f.plotX)/2.5;l=(1.5*e+a)/2.5;j=(1.5*d+j)/2.5;n=(1.5*e+g)/2.5;z=(n-l)*(j-d)/(j-i)+e-n;l+=z;n+=z;if(l>
|
|
147
|
-
a&&l>e){l=Da(a,e);n=2*e-l}else if(l<a&&l<e){l=nb(a,e);n=2*e-l}if(n>g&&n>e){n=Da(g,e);l=2*e-n}else if(n<g&&n<e){n=nb(g,e);l=2*e-n}b.rightContX=j;b.rightContY=n}if(c){b=["C",f.rightContX||f.plotX,f.rightContY||f.plotY,i||d,l||e,d,e];f.rightContX=f.rightContY=null}else b=[Za,d,e];return b}});tb.spline=Ma;Ma=wb(Ma,{type:"areaspline"});tb.areaspline=Ma;var Zc=wb(lb,{type:"column",pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",r:"borderRadius"},init:function(){lb.prototype.init.apply(this,
|
|
148
|
-
arguments);var a=this,b=a.chart;b.hasColumn=true;b.hasRendered&&t(b.series,function(c){if(c.type==a.type)c.isDirty=true})},translate:function(){var a=this,b=a.chart,c=0,d=a.xAxis.reversed,e=a.xAxis.categories,f={},g,i;lb.prototype.translate.apply(a);t(b.series,function(J){if(J.type==a.type){if(J.options.stacking){g=J.stackKey;if(f[g]===Ra)f[g]=c++;i=f[g]}else i=c++;J.columnIndex=i}});var l=a.options,j=a.data,n=a.closestPoints;b=cb(j[1]?j[n].plotX-j[n-1].plotX:b.plotSizeX/(e?e.length:1));e=b*l.groupPadding;
|
|
149
|
-
n=(b-2*e)/c;var z=l.pointWidth,F=I(z)?(n-z)/2:n*l.pointPadding,W=Da(y(z,n-2*F),1),ba=F+(e+((d?c-a.columnIndex:a.columnIndex)||0)*n-b/2)*(d?-1:1),ka=a.yAxis.getThreshold(l.threshold||0),v=y(l.minPointLength,5);t(j,function(J){var ea=J.plotY,Y=J.yBottom||ka,V=J.plotX+ba,R=dd(nb(ea,Y)),Ha=dd(Da(ea,Y)-R),Ya;if(cb(Ha)<v){if(v){Ha=v;R=cb(R-ka)>v?Y-v:ka-(ea<=ka?v:0)}Ya=R-3}oa(J,{barX:V,barY:R,barW:W,barH:Ha});J.shapeType="rect";J.shapeArgs={x:V,y:R,width:W,height:Ha,r:l.borderRadius};J.trackerArgs=I(Ya)&&
|
|
150
|
-
xa(J.shapeArgs,{height:Da(6,Ha+3),y:Ya})})},getSymbol:function(){},drawGraph:function(){},drawPoints:function(){var a=this,b=a.options,c=a.chart.renderer,d,e;t(a.data,function(f){var g=f.plotY;if(g!==Ra&&!isNaN(g)){d=f.graphic;e=f.shapeArgs;if(d){Sc(d);d.animate(e)}else f.graphic=c[f.shapeType](e).attr(f.pointAttr[f.selected?"select":db]).add(a.group).shadow(b.shadow)}})},drawTracker:function(){var a=this,b=a.chart,c=b.renderer,d,e,f=+new Date,g=a.options.cursor,i=g&&{cursor:g},l;t(a.data,function(j){e=
|
|
151
|
-
j.tracker;d=j.trackerArgs||j.shapeArgs;if(j.y!==null)if(e)e.attr(d);else j.tracker=c[j.shapeType](d).attr({isTracker:f,fill:Vd,visibility:a.visible?Ab:ub,zIndex:1}).on(Hb?"touchstart":"mouseover",function(n){l=n.relatedTarget||n.fromElement;b.hoverSeries!=a&&ya(l,"isTracker")!=f&&a.onMouseOver();j.onMouseOver()}).on("mouseout",function(n){if(!a.options.stickyTracking){l=n.relatedTarget||n.toElement;ya(l,"isTracker")!=f&&a.onMouseOut()}}).css(i).add(b.trackerGroup)})},animate:function(a){var b=this,
|
|
152
|
-
c=b.data;if(!a){t(c,function(d){var e=d.graphic;if(e){e.attr({height:0,y:b.yAxis.translate(0,0,1)});e.animate({height:d.barH,y:d.barY},b.options.animation)}});b.animate=null}},remove:function(){var a=this,b=a.chart;b.hasRendered&&t(b.series,function(c){if(c.type==a.type)c.isDirty=true});lb.prototype.remove.apply(a,arguments)}});tb.column=Zc;Ma=wb(Zc,{type:"bar",init:function(a){a.inverted=this.inverted=true;Zc.prototype.init.apply(this,arguments)}});tb.bar=Ma;Ma=wb(lb,{type:"scatter",translate:function(){var a=
|
|
153
|
-
this;lb.prototype.translate.apply(a);t(a.data,function(b){b.shapeType="circle";b.shapeArgs={x:b.plotX,y:b.plotY,r:a.chart.options.tooltip.snap}})},drawTracker:function(){var a=this,b=a.options.cursor,c=b&&{cursor:b},d;t(a.data,function(e){(d=e.graphic)&&d.attr({isTracker:true}).on("mouseover",function(){a.onMouseOver();e.onMouseOver()}).on("mouseout",function(){a.options.stickyTracking||a.onMouseOut()}).css(c)})},cleanData:function(){}});tb.scatter=Ma;Ma=wb(zc,{init:function(){zc.prototype.init.apply(this,
|
|
154
|
-
arguments);var a=this,b;oa(a,{visible:a.visible!==false,name:y(a.name,"Slice")});b=function(){a.slice()};Qa(a,"select",b);Qa(a,"unselect",b);return a},setVisible:function(a){var b=this.series.chart,c=this.tracker,d=this.dataLabel,e=this.connector,f;f=(this.visible=a=a===Ra?!this.visible:a)?"show":"hide";this.group[f]();c&&c[f]();d&&d[f]();e&&e[f]();this.legendItem&&b.legend.colorizeItem(this,a)},slice:function(a,b,c){var d=this.series.chart,e=this.slicedTranslation;bc(c,d);y(b,true);a=this.sliced=
|
|
155
|
-
I(a)?a:!this.sliced;this.group.animate({translateX:a?e[0]:d.plotLeft,translateY:a?e[1]:d.plotTop})}});Ma=wb(lb,{type:"pie",isCartesian:false,pointClass:Ma,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=Ib},animate:function(){var a=this;t(a.data,function(b){var c=b.graphic;b=b.shapeArgs;var d=-Tb/2;if(c){c.attr({r:0,start:d,end:d});c.animate({r:b.r,start:b.start,end:b.end},a.options.animation)}});a.animate=null},translate:function(){var a=
|
|
156
|
-
0,b=-0.25,c=this.options,d=c.slicedOffset,e=d+c.borderWidth,f=c.center,g=this.chart,i=g.plotWidth,l=g.plotHeight,j,n,z,F=this.data,W=2*Tb,ba,ka=nb(i,l),v,J,ea,Y=c.dataLabels.distance;f.push(c.size,c.innerSize||0);f=jc(f,function(V,R){return(v=/%$/.test(V))?[i,l,ka,ka][R]*pa(V)/100:V});this.getX=function(V,R){z=Ua.asin((V-f[1])/(f[2]/2+Y));return f[0]+(R?-1:1)*jb(z)*(f[2]/2+Y)};this.center=f;t(F,function(V){a+=V.y});t(F,function(V){ba=a?V.y/a:0;j=U(b*W*1E3)/1E3;b+=ba;n=U(b*W*1E3)/1E3;V.shapeType="arc";
|
|
157
|
-
V.shapeArgs={x:f[0],y:f[1],r:f[2]/2,innerR:f[3]/2,start:j,end:n};z=(n+j)/2;V.slicedTranslation=jc([jb(z)*d+g.plotLeft,yb(z)*d+g.plotTop],U);J=jb(z)*f[2]/2;ea=yb(z)*f[2]/2;V.tooltipPos=[f[0]+J*0.7,f[1]+ea*0.7];V.labelPos=[f[0]+J+jb(z)*Y,f[1]+ea+yb(z)*Y,f[0]+J+jb(z)*e,f[1]+ea+yb(z)*e,f[0]+J,f[1]+ea,Y<0?"center":z<W/4?"left":"right",z];V.percentage=ba*100;V.total=a});this.setTooltipPoints()},render:function(){this.getAttribs();this.drawPoints();this.options.enableMouseTracking!==false&&this.drawTracker();
|
|
158
|
-
this.drawDataLabels();this.options.animation&&this.animate&&this.animate();this.isDirty=false},drawPoints:function(){var a=this.chart,b=a.renderer,c,d,e,f;t(this.data,function(g){d=g.graphic;f=g.shapeArgs;e=g.group;if(!e)e=g.group=b.g("point").attr({zIndex:5}).add();c=g.sliced?g.slicedTranslation:[a.plotLeft,a.plotTop];e.translate(c[0],c[1]);if(d)d.animate(f);else g.graphic=b.arc(f).attr(oa(g.pointAttr[db],{"stroke-linejoin":"round"})).add(g.group);g.visible===false&&g.setVisible(false)})},drawDataLabels:function(){var a=
|
|
159
|
-
this.data,b,c=this.chart,d=this.options.dataLabels,e=y(d.connectorPadding,10),f=y(d.connectorWidth,1),g,i,l=d.distance>0,j,n,z=this.center[1],F=[[],[],[],[]],W,ba,ka,v,J,ea,Y,V=4,R;lb.prototype.drawDataLabels.apply(this);t(a,function(Ha){var Ya=Ha.labelPos[7];F[Ya<0?0:Ya<Tb/2?1:Ya<Tb?2:3].push(Ha)});F[1].reverse();F[3].reverse();for(Y=function(Ha,Ya){return Ha.y>Ya.y};V--;){a=0;b=[].concat(F[V]);b.sort(Y);for(R=b.length;R--;)b[R].rank=R;for(v=0;v<2;v++){n=(ea=V%3)?9999:-9999;J=ea?-1:1;for(R=0;R<F[V].length;R++){b=
|
|
160
|
-
F[V][R];if(g=b.dataLabel){i=b.labelPos;ka=Ab;W=i[0];ba=i[1];j||(j=g&&g.getBBox().height);if(l)if(v&&b.rank<a)ka=ub;else if(!ea&&ba<n+j||ea&&ba>n-j){ba=n+J*j;W=this.getX(ba,V>1);if(!ea&&ba+j>z||ea&&ba-j<z)if(v)ka=ub;else a++}if(b.visible===false)ka=ub;if(ka==Ab)n=ba;if(v){g.attr({visibility:ka,align:i[6]})[g.moved?"animate":"attr"]({x:W+d.x+({left:e,right:-e}[i[6]]||0),y:ba+d.y});g.moved=true;if(l&&f){g=b.connector;i=[Za,W+(i[6]=="left"?5:-5),ba,Ca,W,ba,Ca,i[2],i[3],Ca,i[4],i[5]];if(g){g.animate({d:i});
|
|
161
|
-
g.attr("visibility",ka)}else b.connector=g=this.chart.renderer.path(i).attr({"stroke-width":f,stroke:d.connectorColor||"#606060",visibility:ka,zIndex:3}).translate(c.plotLeft,c.plotTop).add()}}}}}}},drawTracker:Zc.prototype.drawTracker,getSymbol:function(){}});tb.pie=Ma;sb.Highcharts={Chart:Hd,dateFormat:Mc,pathAnim:Yc,getOptions:function(){return Sa},numberFormat:Gd,Point:zc,Color:Ub,Renderer:Qd,seriesTypes:tb,setOptions:function(a){Sa=xa(Sa,a);Bd();return Sa},Series:lb,addEvent:Qa,createElement:fb,
|
|
162
|
-
discardElement:Fc,css:Ia,each:t,extend:oa,map:jc,merge:xa,pick:y,extendClass:wb,version:"2.1.3"}})();
|
|
1
|
+
!/**
|
|
2
|
+
* Highcharts JS v13.0.0 (2026-06-11)
|
|
3
|
+
* @module highcharts/highcharts
|
|
4
|
+
*
|
|
5
|
+
* (c) 2009-2026 Highsoft AS
|
|
6
|
+
*
|
|
7
|
+
* A commercial license may be required depending on use,
|
|
8
|
+
* see www.highcharts.com/license
|
|
9
|
+
*/function(t,e){"object"==typeof exports&&"object"==typeof module?(t._Highcharts=e(),module.exports=t._Highcharts):"function"==typeof define&&define.amd?define("highcharts/highcharts",[],e):"object"==typeof exports?(t._Highcharts=e(),exports.highcharts=t._Highcharts):(t.Highcharts&&t.Highcharts.error(16,!0),t.Highcharts=e())}("u"<typeof window?this:window,()=>(()=>{"use strict";let t,e,i,s,o;var r,a,n,h,l,d,c,p,g,u,f,m,x,y,b,v,k,w,M,C,S,T,A,P,L={};L.d=(t,e)=>{for(var i in e)L.o(e,i)&&!L.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},L.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var O={};L.d(O,{default:()=>or}),(r=g||(g={})).SVG_NS="http://www.w3.org/2000/svg",r.product="Highcharts",r.version="13.0.0",r.win="u">typeof window?window:{},r.doc=r.win.document,r.svg=!!r.doc?.createElementNS?.(r.SVG_NS,"svg")?.createSVGRect,r.pageLang=r.doc?.documentElement?.closest("[lang]")?.lang,r.userAgent=r.win.navigator?.userAgent||"",r.isChrome=r.win.chrome,r.isFirefox=-1!==r.userAgent.indexOf("Firefox"),r.isMS=/(edge|msie|trident)/i.test(r.userAgent)&&!r.win.opera,r.isSafari=!r.isChrome&&-1!==r.userAgent.indexOf("Safari"),r.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(r.userAgent),r.isWebKit=-1!==r.userAgent.indexOf("AppleWebKit"),r.deg2rad=2*Math.PI/360,r.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],r.noop=function(){},r.supportsPassiveEvents=function(){let t=!1;if(!r.isMS){let e=Object.defineProperty({},"passive",{get:function(){t=!0}});r.win.addEventListener&&r.win.removeEventListener&&(r.win.addEventListener("testPassive",r.noop,e),r.win.removeEventListener("testPassive",r.noop,e))}return t}(),r.charts=[],r.composed=[],r.dateFormats={},r.seriesTypes={},r.symbolSizes={},r.chartCount=0;let E=g,I={dark:{backgroundColor:"#141414",neutralColor:"#ffffff",highlightColor:"#2caffe"},light:{backgroundColor:"#ffffff",neutralColor:"#000000",highlightColor:"#0022ff",positiveColor:"#06b535",negativeColor:"#f21313"}},{doc:D,win:B}=E;function N(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let r=o.hcEvents;E.Point&&t instanceof E.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let a=t.addEventListener;a&&a.call(t,e,i,!!E.supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),r[e]||(r[e]=[]);let n={fn:i,order:"number"==typeof s.order?s.order:1/0};return r[e].push(n),r[e].sort((t,e)=>t.order-e.order),function(){tw(t,e,i)}}function z(t){let e=t.length,i=t[0];for(;e--;)t[e]<i&&(i=t[e]);return i}function R(t){let e=t.length,i=t[0];for(;e--;)t[e]>i&&(i=t[e]);return i}function W(t,e,i){let s,o=th(e)&&!j(i),r=(e,i)=>{j(e)?t.setAttribute(i,e):o?(s=t.getAttribute(i))||"class"!==i||(s=t.getAttribute(i+"Name")):t.removeAttribute(i)};return th(e)?r(i,e):tu(e,r),s}function H(t,e,i){return t>e?t<i?t:i:e}function G(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}function X(t,e,i,s,o){let r=D.createElement(t);return e&&_(r,e),o&&Y(r,{padding:"0",border:"none",margin:"0"}),i&&Y(r,i),s&&s.appendChild(r),r}function F(t,e=0,i){let s=e%2/2,o=i?-1:1;return(Math.round(t*o-s)+s)*o}function Y(t,e){_(t.style,e)}function j(t){return null!=t}function $(t,e,i){tu(t,function(s,o){s!==e&&s?.destroy&&s.destroy(),(s?.destroy||!i)&&delete t[o]})}function V(t){t?.parentElement?.removeChild(t)}function U(t,e,i,s){let o={};return!function t(e,o,r,a){let n=i?o:e;tu(e,function(i,h){if(!a&&s&&s.indexOf(h)>-1&&o[h]){i=tM(i),r[h]=[];for(let e=0;e<Math.max(i.length,o[h].length);e++)o[h][e]&&(void 0===i[e]?r[h][e]=o[h][e]:(r[h][e]={},t(i[e],o[h][e],r[h][e],a+1)))}else tc(i,!0)&&!i.nodeType?(r[h]=tl(i)?[]:{},t(i,o[h]||{},r[h],a+1),0===Object.keys(r[h]).length&&("colorAxis"!==h||0!==a)&&delete r[h]):(e[h]!==o[h]||h in e&&!(h in o))&&"__proto__"!==h&&"constructor"!==h&&(r[h]=n[h])})}(t,e,o,0),o}function Z(t,e){let i=t.length;for(;i--;)if(t[i]===e){t.splice(i,1);break}}function _(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function K(t,e){let i=function(){};return i.prototype=new t,_(i.prototype,e),i}function q(t,e,i,s){if(i=i||{},D?.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==E)){let s=D.createEvent("Events");s.initEvent(e,!0,!0),i=_(s,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||_(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});let s=[],o=t,r=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[e]&&(s.length&&(r=!0),s.unshift.apply(s,o.hcEvents[e])),o=Object.getPrototypeOf(o);r&&s.sort((t,e)=>t.order-e.order),s.forEach(e=>{!1===e.fn.call(t,i,t)&&i.preventDefault()})}s&&!i.defaultPrevented&&s.call(t,i)}let J=(t="")=>({center:.5,right:1,middle:.5,bottom:1})[t]||0;function Q(t,e){let i,s,o,r,a=!e;return t.forEach(t=>{if(t.length>1)for(r=s=t.length-1;r>0;r--)(o=t[r]-t[r-1])<0&&!a?(e?.(),e=void 0):o&&(void 0===i||o<i)&&(i=o)}),i}function tt(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function te(t,e){let i=t.split(".");for(;i.length&&j(e);){let t=i.shift();if(void 0===t||"__proto__"===t)return;if("this"===t){let t;return tc(e)&&(t=e["@this"]),t??e}let s=e[t.replace(/[\\'"]/g,"")];if(!j(s)||"function"==typeof s||"number"==typeof s.nodeType||s===B)return;e=s}return e}function ti(t,e,i){let s;if("width"===e){let e=Math.min(t.offsetWidth,t.scrollWidth),i=t.getBoundingClientRect?.().width;return i<e&&i>=e-1&&(e=Math.floor(i)),Math.max(0,e-(ti(t,"padding-left",!0)||0)-(ti(t,"padding-right",!0)||0))}if("height"===e)return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(ti(t,"padding-top",!0)||0)-(ti(t,"padding-bottom",!0)||0));let o=B.getComputedStyle(t,void 0);return o&&(s=o.getPropertyValue(e),tx(i,"opacity"!==e)&&(s=ty(s))),s}let ts=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){let i,s=t.length;for(i=0;i<s;i++)if(e(t[i],i))return t[i]};function to(t){j(t)&&clearTimeout(t)}function tr(t){return tc(t)&&"number"==typeof t.nodeType}function ta(t){let e=t?.constructor;return!!(tc(t,!0)&&!tr(t)&&e?.name&&"Object"!==e.name)}function tn(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function th(t){return"string"==typeof t}function tl(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function td(t){return"function"==typeof t}function tc(t,e){return!!t&&"object"==typeof t&&(!e||!tl(t))}function tp(t,...e){let i,s=[t,...e],o={},r=function(t,e){return"object"!=typeof t&&(t={}),tu(e,function(i,s){"__proto__"!==s&&"constructor"!==s&&(!tc(i,!0)||ta(i)||tr(i)?t[s]=e[s]:t[s]=r(t[s]||{},i))}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let a=s.length;for(i=0;i<a;i++)o=r(o,s[i]);return o}function tg(t,e,i,s,o){let r,a=t;i=tx(i,tt(t));let n=t/i;for(!e&&(e=o?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===s&&(1===i?e=e.filter(function(t){return t%1==0}):i<=.1&&(e=[1/i]))),r=0;r<e.length&&(a=e[r],(!o||!(a*i>=t))&&(o||!(n<=(e[r]+(e[r+1]||e[r]))/2)));r++);return G(a*i,-Math.round(Math.log(.001)/Math.LN10))}function tu(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function tf(t){let e=D.documentElement,i=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:i.top+(B.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(B.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:i.width,height:i.height}}function tm(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t}function tx(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function ty(t,e){return parseInt(t,e||10)}function tb(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function tv(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)}function tk(t,...e){let i,s;do for(s of(i=t,e))t=t.replace(s[0],s[1]);while(t!==i);return t}function tw(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function o(i){let o,r;t.nodeName&&(e?(o={})[e]=!0:o=i,tu(o,function(t,e){if(i[e])for(r=i[e].length;r--;)s(e,i[e][r].fn)}))}let r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){let t=r.hcEvents;if(e){let r=t[e]||[];i?(t[e]=r.filter(function(t){return i!==t.fn}),s(e,i)):(o(t),t[e]=[])}else o(t),delete r.hcEvents}}function tM(t){return tl(t)?t:[t]}function tC(t,e){let i,s,o=t.length;for(s=0;s<o;s++)t[s].safeI=s;for(t.sort(function(t,s){return 0===(i=e(t,s))?t.safeI-s.safeI:i}),s=0;s<o;s++)delete t[s].safeI}function tS(t,e,i){return e>0?setTimeout(t,e,i):(t.call(0,i),-1)}function tT(t){return th(t)?t.substring(0,1).toUpperCase()+t.substring(1):String(t)}let{charts:tA,win:tP}=E;function tL(t,e,i,s){let o=e?"Highcharts error":"Highcharts warning";32===t&&(t=`${o}: Deprecated member`);let r=tn(t),a=r?`${o} #${t}: www.highcharts.com/errors/${t}/`:t.toString();if(void 0!==s){let t="";r&&(a+="?"),tu(s,function(e,i){t+=`
|
|
10
|
+
- ${i}: ${e}`,r&&(a+=encodeURI(i)+"="+encodeURI(e))}),a+=t}q(E,"displayError",{chart:i,code:t,message:a,params:s},function(){if(e)throw Error(a);tP.console&&-1===tL.messages.indexOf(a)&&console.warn(a)}),tL.messages.push(a)}function tO(t,e){let i,s=t.options.index,o=e.length;for(i=t.options.isInternal?o:0;i<o+1;i++)if(!e[i]||tn(s)&&s<tx(e[i].options.index,e[i]._i)||e[i].options.isInternal){e.splice(i,0,t);break}return i}(tL||(tL={})).messages=[];let tE={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5};Math.easeInOutSine=function(t){return -.5*(Math.cos(Math.PI*t)-1)};let tI=(i=Math.random().toString(36).substring(2,9)+"-",s=0,function(){return"highcharts-"+(t?"":i)+s++});tP.jQuery&&(tP.jQuery.fn.highcharts=function(){let t=[].slice.call(arguments);if(this[0])return t[0]?(new E[th(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):tA[W(this[0],"data-highcharts-chart")]});let{pageLang:tD,win:tB}=E,tN=E.isSafari&&tB.Intl&&!tB.Intl.DateTimeFormat.prototype.formatRange,tz=class{constructor(t,e){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=tB.Date,this.update(t),this.lang=e}update(t={}){this.dTLCache={},this.options=t=tp(!0,this.options,t);let{timezoneOffset:e,useUTC:i,locale:s}=t;this.Date=t.Date||tB.Date||Date;let o=t.timezone;j(i)&&(o=i?"UTC":void 0),e&&e%60==0&&(o="Etc/GMT"+(e>0?"+":"")+e/60),this.variableTimezone="UTC"!==o&&o?.indexOf("Etc/GMT")!==0,this.timezone=o,this.lang&&s&&(this.lang.locale=s),["months","shortMonths","weekdays","shortWeekdays"].forEach(t=>{let e=/months/i.test(t),i=/short/.test(t),s={timeZone:"UTC"};s[e?"month":"weekday"]=i?"short":"long",this[t]=(e?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(t=>this.dateFormat(s,(e?31:1)*24*36e5*t))})}toParts(t){let[e,i,s,o,r,a,n]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},t,"es").split(/(?:, | |\/|:)/g);return[+o,s-1,+i,+r,+a,+n,Math.floor(Number(t)||0)%1e3,"DLMXJVS".indexOf(e)]}dateTimeFormat(t,e,i=this.options.locale||tD){let s=JSON.stringify(t)+i;th(t)&&(t=this.str2dtf(t));let o=this.dTLCache[s];if(!o){t.timeZone??(t.timeZone=this.timezone);try{o=new Intl.DateTimeFormat(i,t)}catch(e){/Invalid time zone/i.test(e.message)?(tL(34),t.timeZone="UTC",o=new Intl.DateTimeFormat(i,t)):tL(e.message,!1)}}return this.dTLCache[s]=o,o?.format(e)||""}str2dtf(t,e={}){let i={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};return Object.keys(i).forEach(s=>{-1!==t.indexOf(s)&&_(e,i[s])}),e}makeTime(t,e,i=1,s=0,o,r,a){let n=this.Date.UTC(t,e,i,s,o||0,r||0,a||0);if("UTC"!==this.timezone){let t=this.getTimezoneOffset(n);if(n+=t,-1!==[2,3,8,9,10,11].indexOf(e)&&(s<5||s>20)){let e=this.getTimezoneOffset(n);t!==e?n+=e-t:t-36e5!==this.getTimezoneOffset(n-36e5)||tN||(n-=36e5)}}return n}parse(t){if(!th(t))return t??void 0;let e=(t=t.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(t),i=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(t);e||i||(t+="Z");let s=Date.parse(t);if(tn(s))return s+(!e||i?this.getTimezoneOffset(s):0)}getTimezoneOffset(t){if("UTC"!==this.timezone){let[e,i,s,o,r=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},t,"en").split(/(GMT|:)/).map(Number),a=-(60*(s+r/60)*6e4);if(tn(a))return a}return 0}dateFormat(t,e,i){let s=this.lang;if(!j(e)||isNaN(e))return s?.invalidDate||"";if(th(t=t??"%Y-%m-%d %H:%M:%S")){let i,o=/%\[([a-zA-Z]+)\]/g;for(;i=o.exec(t);)t=t.replace(i[0],this.dateTimeFormat(i[1],e,s?.locale))}if(th(t)&&-1!==t.indexOf("%")){let i=this,[o,r,a,n,h,l,d,c]=this.toParts(e),p=s?.weekdays||this.weekdays,g=s?.shortWeekdays||this.shortWeekdays,u=s?.months||this.months,f=s?.shortMonths||this.shortMonths;tu(_({a:g?g[c]:p[c].substr(0,3),A:p[c],d:tm(a),e:tm(a,2," "),w:c,v:s?.weekFrom??"",b:f[r],B:u[r],m:tm(r+1),o:r+1,y:o.toString().substr(2,2),Y:o,H:tm(n),k:n,I:tm(n%12||12),l:n%12||12,M:tm(h),p:n<12?"AM":"PM",P:n<12?"am":"pm",S:tm(l),L:tm(d,3)},E.dateFormats),function(s,o){if(th(t))for(;-1!==t.indexOf("%"+o);)t=t.replace("%"+o,"function"==typeof s?s.call(i,e,i):s)})}else if(tc(t)){let i=(this.getTimezoneOffset(e)||0)/36e5,s=this.timezone||"Etc/GMT"+(i>=0?"+":"")+i,{prefix:o="",suffix:r=""}=t;t=o+this.dateTimeFormat(_({timeZone:s},t),e)+r}return i?tT(t):t}resolveDTLFormat(t){return tc(t,!0)?tc(t,!0)&&void 0===t.main?{main:t}:t:{main:(t=tM(t))[0],from:t[1],to:t[2]}}getDateFormat(t,e,i,s){let o=this.dateFormat("%m-%d %H:%M:%S.%L",e),r="01-01 00:00:00.000",a={millisecond:15,second:12,minute:9,hour:6,day:3},n="millisecond",h=n;for(n in tE){if(t&&t===tE.week&&+this.dateFormat("%w",e)===i&&o.substr(6)===r.substr(6)){n="week";break}if(t&&tE[n]>t){n=h;break}if(a[n]&&o.substr(a[n])!==r.substr(a[n]))break;"week"!==n&&(h=n)}return this.resolveDTLFormat(s[n]).main}},tR=class extends tz{getBoundaryTicks(t,e,i,s){let o={};if(e===tE.year)return o;let r=j(i)&&j(s),a=e<tE.hour,n=e<tE.day,h=e<tE.month,l=e>=tE.hour?9e5:e>=tE.minute?6e4:e>=tE.second&&1e3;if(t.length<1e4){let d=!0;for(let c=0;c<t.length;c++){let p=t[c];if(r){if(p<i)continue;if(p>s)break}if(d){if(e===tE.month){o[p]="year",d=!1;continue}if(e===tE.hour){o[p]="day",d=!1;continue}}if(l&&p%l!=0){d=!1;continue}let[,g,u,f,m,x,y]=this.toParts(p),b=!f&&!m&&!x&&!y;a&&0===m&&(o[p]="hour"),n&&b&&(o[p]="day"),h&&1===u&&b&&(o[p]="month"),0===g&&1===u&&b&&(o[p]="year"),d=!1}}return o}getTimeTicks(t,e,i,s){let o=[],{count:r=1,unitRange:a}=t,n=e,[h,l,d,c,p,g]=this.toParts(e),u=(e||0)%1e3,f;if(s??(s=1),j(e)){if(u=a>=tE.second?0:r*Math.floor(u/r),a>=tE.second&&(g=a>=tE.minute?0:r*Math.floor(g/r)),a>=tE.minute&&(p=a>=tE.hour?0:r*Math.floor(p/r)),a>=tE.hour&&(c=a>=tE.day?0:r*Math.floor(c/r)),a>=tE.day&&(d=a>=tE.month?1:Math.max(1,r*Math.floor(d/r))),a>=tE.month&&(l=a>=tE.year?0:r*Math.floor(l/r)),a>=tE.year&&(h-=h%r),a===tE.week){r&&(e=this.makeTime(h,l,d,c,p,g,u));let t=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},e,"es"),i="DLMXJVS".indexOf(t);d+=-i+s+(i<s?-7:0)}e=this.makeTime(h,l,d,c,p,g,u),this.variableTimezone&&j(i)&&(f=i-e>4*tE.month||this.getTimezoneOffset(e)!==this.getTimezoneOffset(i));let t=e,n=1;for(;t<i;)o.push(t),a===tE.year?t=this.makeTime(h+n*r,0):a===tE.month?t=this.makeTime(h,l+n*r):f&&(a===tE.day||a===tE.week)?t=this.makeTime(h,l,d+n*r*(a===tE.day?1:7)):f&&a===tE.hour&&r>1?t=this.makeTime(h,l,d,c+n*r):t+=a*r,n++;o.push(t)}return o.info=_(t,{boundaryTicks:this.getBoundaryTicks(o,a,n,i),totalRange:a*r}),o}},{isTouchDevice:tW}=E,tH={palette:I,colors:Array(10).fill(1).map((t,e)=>`var(--highcharts-color-${e})`),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{weekFrom:"week from",chartTitle:"Chart title",locale:void 0,loading:"Loading...",months:void 0,seriesName:"Series {add index 1}",shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],pieSliceName:"Slice",resetZoom:"Reset zoom",yAxisTitle:"Values",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"var(--highcharts-neutral-color-3)",padding:8,r:2,stroke:"var(--highcharts-neutral-color-20)","stroke-width":1,style:{color:"var(--highcharts-neutral-color-80)",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"var(--highcharts-neutral-color-10)"},select:{fill:"var(--highcharts-highlight-color-10)",style:{color:"var(--highcharts-neutral-color-100)",fontWeight:"bold"}},disabled:{style:{color:"var(--highcharts-neutral-color-20)"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,selectionMarkerFill:"color-mix(var(--highcharts-highlight-color-80) 25%, transparent)",type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"var(--highcharts-highlight-color-80)",backgroundColor:"var(--highcharts-background-color)",plotBorderColor:"var(--highcharts-neutral-color-20)"},title:{style:{color:"var(--highcharts-neutral-color-80)",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"var(--highcharts-neutral-color-60)",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"var(--highcharts-neutral-color-60)",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"var(--highcharts-neutral-color-40)",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"var(--highcharts-highlight-color-100)",inactiveColor:"var(--highcharts-neutral-color-20)"},itemStyle:{color:"var(--highcharts-neutral-color-80)",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"var(--highcharts-neutral-color-100)"},itemHiddenStyle:{color:"var(--highcharts-neutral-color-60)",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{color:"var(--highcharts-neutral-color-80)",fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"var(--highcharts-background-color)",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:t=>Math.sqrt(1-Math.pow(t-1,2))},borderColor:"light-dark(var(--highcharts-neutral-color-5), var(--highcharts-neutral-color-20))",borderRadius:5,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%[Y]"},footerFormat:"",header:{distance:5,shape:"callout",style:{fontSize:"1em"}},hideDelay:500,showDelay:0,padding:8,position:{x:0,y:3},shared:!1,snap:tW?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"var(--highcharts-background-color)",borderWidth:void 0,stickOnContact:!1,style:{color:"var(--highcharts-neutral-color-80)",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",verticalAlign:"bottom",x:-10,y:-5},style:{cursor:"pointer",color:"var(--highcharts-neutral-color-40)",fontSize:"0.6em"},text:"Highcharts.com"}},tG=new tR(tH.time,tH.lang),tX={defaultOptions:tH,defaultTime:tG,getOptions:function(){return tH},setOptions:function(t){return q(E,"setOptions",{options:t}),tp(!0,tH,t),t.time&&tG.update(tH.time),t.lang&&"locale"in t.lang&&tG.update({locale:t.lang.locale}),t.lang?.chartTitle&&(tH.title={...tH.title,text:t.lang.chartTitle}),tH}},{win:tF}=E,tY=(t,e,i)=>0===i?t:1===i?e:`color-mix(in srgb,${t},${e} ${100*i}%)`,tj=t=>th(t)&&!!t&&"none"!==t;class t${static parse(t){return t?new t$(t):t$.None}constructor(t){let e,i,s,o;this.rgba=[NaN,NaN,NaN,NaN],this.input=t;const r=E.Color;if(r&&r!==t$)return new r(t);if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map(t=>new t$(t[1]));else if("string"==typeof t)for(this.input=t=t$.names[t.toLowerCase()]||t,s=t$.parsers.length;s--&&!i;)(e=(o=t$.parsers[s]).regex.exec(t))&&(i=o.parse(e));i&&(this.rgba=i)}get(t){let e=this.input,i=this.rgba;if(this.output)return this.output;if("object"==typeof e&&void 0!==this.stops){let i=tp(e);return i.stops=[].slice.call(i.stops),this.stops.forEach((e,s)=>{i.stops[s]=[i.stops[s][0],e.get(t)]}),i}return i&&tn(i[0])?"rgb"!==t&&(t||1!==i[3])?"a"===t?`${i[3]}`:"rgba("+i.join(",")+")":"rgb("+i[0]+","+i[1]+","+i[2]+")":e}brighten(t){let e=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(tn(t)&&0!==t)if(tn(e[0]))for(let i=0;i<3;i++)e[i]+=ty(255*t),e[i]<0&&(e[i]=0),e[i]>255&&(e[i]=255);else t$.useColorMix&&tj(this.input)&&(this.output=tY(this.input,t>0?"white":"black",Math.abs(t)));return this}setOpacity(t){return tn(this.rgba[0])?this.rgba[3]=t:t$.useColorMix&&tj(this.input)&&(this.output=tY(this.input,"#0000",1-t)),this}tweenTo(t,e){let i=this.rgba,s=t.rgba;if(!tn(i[0])||!tn(s[0]))return t$.useColorMix&&tj(this.input)&&tj(t.input)&&e<.99?tY(this.input,t.input,e):t.input||"none";let o=1!==s[3]||1!==i[3],r=(t,s)=>t+(i[s]-t)*(1-e),a=s.slice(0,3).map(r).map(Math.round);return o&&a.push(r(s[3],3)),(o?"rgba(":"rgb(")+a.join(",")+")"}}t$.names={white:"#ffffff",black:"#000000"},t$.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(t){return[ty(t[1]),ty(t[2]),ty(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(t){return[ty(t[1]),ty(t[2]),ty(t[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(t){return[ty(t[1]+t[1],16),ty(t[2]+t[2],16),ty(t[3]+t[3],16),j(t[4])?ty(t[4]+t[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(t){return[ty(t[1],16),ty(t[2],16),ty(t[3],16),j(t[4])?ty(t[4],16)/255:1]}}],t$.useColorMix=tF.CSS?.supports("color","color-mix(in srgb,red,blue 9%)"),t$.None=new t$("");let{parse:tV}=t$,{win:tU}=E;class tZ{constructor(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}dSetter(){let t=this.paths,e=t?.[0],i=t?.[1],s=this.now||0,o=[];if(1!==s&&e&&i)if(e.length===i.length&&s<1)for(let t=0;t<i.length;t++){let r=e[t],a=i[t],n=[];for(let t=0;t<a.length;t++){let e=r[t],i=a[t];tn(e)&&tn(i)&&("A"!==a[0]||4!==t&&5!==t)?n[t]=e+s*(i-e):n[t]=i}o.push(n)}else o=i;else o=this.toD||[];this.elem.attr("d",o,void 0,!0)}update(){let t=this.elem,e=this.prop,i=this.now,s=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,s&&s.call(t,i,this)}run(t,e,i){let s=this,o=s.options,r=function(t){return!r.stopped&&s.step(t)},a=tU.requestAnimationFrame||function(t){setTimeout(t,13)},n=function(){for(let t=0;t<tZ.timers.length;t++)tZ.timers[t]()||tZ.timers.splice(t--,1);tZ.timers.length&&a(n)};t!==e||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=e,this.unit=i,this.now=this.start,this.pos=0,r.elem=this.elem,r.prop=this.prop,r()&&1===tZ.timers.push(r)&&a(n)):(delete o.curAnim[this.prop],o.complete&&0===Object.keys(o.curAnim).length&&o.complete.call(this.elem))}step(t){let e,i,s=+new Date,o=this.options,r=this.elem,a=o.complete,n=o.duration,h=o.curAnim;return r.attr&&!r.element?e=!1:t||s>=n+this.startTime?(this.now=this.end,this.pos=1,this.update(),h[this.prop]=!0,i=!0,tu(h,function(t){!0!==t&&(i=!1)}),i&&a&&a.call(r),e=!1):(this.pos=o.easing((s-this.startTime)/n),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e}initPath(t,e,i){let s=t.startX,o=t.endX,r=i.slice(),a=t.isArea,n=a?2:1,h=e&&i.length>e.length&&i.hasStackedCliffs,l,d,c,p,g=e?.slice();if(!g||h)return[r,r];function u(t,e){for(;t.length<d;){let i=t[0],s=e[d-t.length];if(s&&"M"===i[0]&&("C"===s[0]?t[0]=["C",i[1],i[2],i[1],i[2],i[1],i[2]]:t[0]=["L",i[1],i[2]]),t.unshift(i),a){let e=t.pop();t.push(t[t.length-1],e)}}}function f(t){for(;t.length<d;){let e=t[Math.floor(t.length/n)-1].slice();if("C"===e[0]&&(e[1]=e[5],e[2]=e[6]),a){let i=t[Math.floor(t.length/n)].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}}if(s&&o&&o.length){for(c=0;c<s.length;c++)if(s[c]===o[0]){l=c;break}else if(s[0]===o[o.length-s.length+c]){l=c,p=!0;break}else if(s[s.length-1]===o[o.length-s.length+c]){l=s.length-c;break}void 0===l&&(g=[])}return g.length&&tn(l)&&(d=r.length+l*n,p?(u(g,r),f(r)):(u(r,g),f(g))),[g,r]}fillSetter(){tZ.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,tV(this.start).tweenTo(tV(this.end),this.pos),void 0,!0)}}function t_(t){return tc(t)?tp({duration:500,defer:0},t):{duration:500*!!t,defer:0}}function tK(t,e){let i=tZ.timers.length;for(;i--;)tZ.timers[i].elem!==t||e&&e!==tZ.timers[i].prop||(tZ.timers[i].stopped=!0)}tZ.timers=[];let tq={animate:function(t,e,i){let s,o="",r,a,n;tc(i)||(n=arguments,i={duration:n[2],easing:n[3],complete:n[4]}),tn(i.duration)||(i.duration=400),i.easing="function"==typeof i.easing?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=tp(e),tu(e,function(n,h){tK(t,h),a=new tZ(t,i,h),r=void 0,"d"===h&&tl(e.d)?(a.paths=a.initPath(t,t.pathArray,e.d),a.toD=e.d,s=0,r=1):t.attr?s=t.attr(h):(s=parseFloat(ti(t,h))||0,"opacity"!==h&&(o="px")),r||(r=n),"string"==typeof r&&r.match("px")&&(r=r.replace(/px/g,"")),a.run(s,r,o)})},animObject:t_,getDeferredAnimation:function(t,e,i){let s=t_(e),o=i?[i]:t.series,r=0,a=0;return o.forEach(t=>{let i=t_(t.options.animation);r=tc(e)&&j(e.defer)?s.defer:Math.max(r,i.duration+i.defer),a=Math.min(s.duration,i.duration)}),t.renderer.forExport&&(r=0),{defer:Math.max(0,r-a),duration:Math.min(r,a)}},setAnimation:function(t,e){e.renderer.globalAnimation=tx(t,e.options.chart.animation,!0)},stop:tK},{SVG_NS:tJ,win:tQ}=E,{trustedTypes:t0}=tQ,t1=t0&&td(t0.createPolicy)&&t0.createPolicy("highcharts",{createHTML:t=>t}),t2=t1?t1.createHTML(""):"";class t5{static filterUserAttributes(t){return tu(t,(e,i)=>{let s=!0;-1===t5.allowedAttributes.indexOf(i)&&(s=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(i)&&(s=th(e)&&t5.allowedReferences.some(t=>0===e.indexOf(t))),s||(tL(33,!1,void 0,{"Invalid attribute in config":`${i}`}),delete t[i]),th(e)&&t[i]&&(t[i]=e.replace(/</g,"<"))}),t}static parseStyle(t){return t.split(";").reduce((t,e)=>{let i=e.split(":").map(t=>t.trim()),s=i.shift();return s&&i.length&&(t[s.replace(/-([a-z])/g,t=>t[1].toUpperCase())]=i.join(":")),t},{})}static setElementHTML(t,e){t.innerHTML=t5.emptyHTML,e&&new t5(e).addToDOM(t)}constructor(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}addToDOM(t){return function t(e,i){let s;return tM(e).forEach(function(e){let o,r=e.tagName,a=e.textContent?E.doc.createTextNode(e.textContent):void 0,n=t5.bypassHTMLFiltering;if(r)if("#text"===r)o=a;else if(-1!==t5.allowedTags.indexOf(r)||n){let s="svg"===r?tJ:i.namespaceURI||tJ,h=E.doc.createElementNS(s,r),l=e.attributes||{};tu(e,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(l[e]=t)}),W(h,n?l:t5.filterUserAttributes(l)),e.style&&Y(h,e.style),a&&h.appendChild(a),t(e.children||[],h),o=h}else tL(33,!1,void 0,{"Invalid tagName in config":r});o&&i.appendChild(o),s=o}),s}(this.nodes,t)}parseMarkup(t){let e,i=[];t=t.trim().replace(/ style=(["'])/g," data-style=$1");try{e=new DOMParser().parseFromString(t1?t1.createHTML(t):t,"text/html")}catch{}if(!e){let i=X("div");i.innerHTML=t,e={body:i}}let s=(t,e)=>{let i=t.nodeName.toLowerCase(),o={tagName:i};"#text"===i&&(o.textContent=t.textContent||"");let r=t.attributes;if(r){let t={};[].forEach.call(r,e=>{"data-style"===e.name?o.style=t5.parseStyle(e.value):t[e.name]=e.value}),o.attributes=t}if(t.childNodes.length){let e=[];[].forEach.call(t.childNodes,t=>{s(t,e)}),e.length&&(o.children=e)}e.push(o)};return[].forEach.call(e.body.childNodes,t=>s(t,i)),i}}t5.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","aria-sort","class","clip-path","color","colspan","cx","cy","d","disabled","dx","dy","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","result","role","rowspan","scope","slope","src","startOffset","stdDeviation","stroke-linecap","stroke-width","stroke","style","summary","tabindex","tableValues","target","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],t5.allowedReferences=["https://","http://","mailto:","/","../","./","#"],t5.allowedTags=["#text","a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","tbody","td","text","textPath","th","thead","title","tr","tspan","u","ul"],t5.emptyHTML=t2,t5.bypassHTMLFiltering=!1;let{defaultOptions:t3,defaultTime:t6}=tX,{pageLang:t9}=E,t4={add:(t,e)=>t+e,divide:(t,e)=>0!==e?G(t/e):"",eq:(t,e)=>t==e,each:function(t){let e=arguments[arguments.length-1];return!!tl(t)&&t.map((i,s)=>t7(e.body,_(tc(i)?i:{"@this":i},{"@index":s,"@first":0===s,"@last":s===t.length-1}))).join("")},ge:(t,e)=>t>=e,gt:(t,e)=>t>e,if:t=>!!t,le:(t,e)=>t<=e,lt:(t,e)=>t<e,multiply:(t,e)=>G(t*e,15),ne:(t,e)=>t!=e,subtract:(t,e)=>t-e,ucfirst:tT,unless:t=>!t},t8={};function t7(t="",e,i){let s=/\{([^{}]+)\}/g,o=/\(([^()]+)\)/g,r=[],a=/f$/,n=/\.(\d)/,h=i?.options?.lang||t3.lang,l=i?.time||t6,d=i?.numberFormatter||et.bind(i),c=(t="")=>{let i;return"true"===t||"false"!==t&&((i=Number(t)).toString()===t?i:/^["'].+["']$/.test(t)?t.slice(1,-1):te(t,e))},p,g,u=0,f;for(;null!==(p=s.exec(t));){let i=p,s=o.exec(p[1]);s&&(p=s,f=!0),g?.isBlock||(g={ctx:e,expression:p[1],find:p[0],isBlock:"#"===p[1].charAt(0),start:p.index,startInner:p.index+p[0].length,length:p[0].length});let a=(g.isBlock?i:p)[1].split(" ")[0].replace("#","");t4[a]&&(g.isBlock&&a===g.fn&&u++,g.fn||(g.fn=a));let n="else"===p[1];if(g.isBlock&&g.fn&&(p[1]===`/${g.fn}`||n))if(u)!n&&u--;else{let e=g.startInner,i=t.substr(e,p.index-e);void 0===g.body?(g.body=i,g.startInner=p.index+p[0].length):g.elseBody=i,g.find+=i+p[0],n||(r.push(g),g=void 0)}else g.isBlock||r.push(g);if(s&&!g?.isBlock)break}return r.forEach(s=>{let r,p,{body:g,elseBody:u,expression:f,fn:m}=s;if(m){let t=[s],o=[],a=f.length,n=0,h;for(p=0;p<=a;p++){let t=f.charAt(p);h||'"'!==t&&"'"!==t?h===t&&(h=""):h=t,h||" "!==t&&p!==a||(o.push(f.substr(n,p-n)),n=p+1)}for(p=t4[m].length;p--;)t.unshift(c(o[p+1]));r=t4[m].apply(e,t),s.isBlock&&"boolean"==typeof r&&(r=t7(r?g:u,e,i))}else{let t=/^["'].+["']$/.test(f)?[f]:f.split(":");if(r=c(t.shift()||""),t.length&&"number"==typeof r){let e=t.join(":");if(a.test(e)){let t=parseInt((e.match(n)||["","-1"])[1],10);null!==r&&(r=d(r,t,h.decimalPoint,e.indexOf(",")>-1?h.thousandsSep:""))}else r=l.dateFormat(e,r)}o.lastIndex=0,o.test(s.find)&&th(r)&&(r=`"${r}"`)}t=t.replace(s.find,tx(r,""))}),f?t7(t,e,i):t}function et(t,e,i,s){e*=1;let o,r,[a,n]=(t=+t||0).toString().split("e").map(Number),h=this?.options?.lang||t3.lang,l=(t.toString().split(".")[1]||"").split("e")[0].length,d=e,c={};i??(i=h.decimalPoint),s??(s=h.thousandsSep),-1===e?e=Math.min(l,20):tn(e)?e&&n<0&&((r=e+n)>=0?(a=+a.toExponential(r).split("e")[0],e=r):(a=Math.floor(a),t=e<20?+(a*Math.pow(10,n)).toFixed(e):0,n=0)):e=2,n&&(e??(e=2),t=a),tn(e)&&e>=0&&(c.minimumFractionDigits=e,c.maximumFractionDigits=e),""===s&&(c.useGrouping=!1);let p=s||i,g=p?"en":this?.locale||h.locale||t9,u=JSON.stringify(c)+g;return o=(t8[u]??(t8[u]=new Intl.NumberFormat(g,c))).format(t),p&&(o=o.replace(/([,\.])/g,"_$1").replace(/_\,/g,s??",").replace("_.",i??".")),(e||0!=+o)&&(!(n<0)||d)||(o="0"),n&&0!=+o&&(o+="e"+(n<0?"":"+")+n),o}let ee={dateFormat:function(t,e,i){return t6.dateFormat(t,e,i)},format:t7,helpers:t4,numberFormat:et};(u||(u={})).distribute=function t(e,i,s){let o=e,r=o.reducedLen||i,a=(t,e)=>t.target-e.target,n=[],h=e.length,l=[],d=n.push,c,p=!0,g,u,f=0;for(c=h;c--;)f+=e[c].size;if(f>r){if(tC(e,(t,e)=>(e.rank||0)-(t.rank||0)),e[0].rank===e[e.length-1].rank){let t=[[0,h-1]];for(;t.length&&f>r;){let i=t.shift();if(!i)break;g=e[c=Math.floor((i[0]+i[1])/2)],tb(l,c)&&(f-=g.size),i[0]<c&&t.push([i[0],c-1]),c<i[1]&&t.push([c+1,i[1]])}}else for(c=h-1;f>r&&c>=0;)g=e[c],tb(l,c)&&(f-=g.size),c--;l.sort((t,e)=>e-t).forEach(t=>d.apply(n,e.splice(t,1)))}for(tC(e,a),e=e.map(t=>({size:t.size,targets:[t.target],align:tx(t.align,.5)}));p;){for(c=e.length;c--;)g=e[c],u=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=H(u-g.size*g.align,0,i-g.size);for(c=e.length,p=!1;c--;)c>0&&e[c-1].pos+e[c-1].size>e[c].pos&&(e[c-1].size+=e[c].size,e[c-1].targets=e[c-1].targets.concat(e[c].targets),e[c-1].align=.5,e[c-1].pos+e[c-1].size>i&&(e[c-1].pos=i-e[c-1].size),e.splice(c,1),p=!0)}return d.apply(o,n),c=0,e.some(e=>{let r=0;return(e.targets||[]).some(()=>(o[c].pos=e.pos+r,void 0!==s&&Math.abs(o[c].pos-o[c].target)>s)?(o.slice(0,c+1).forEach(t=>delete t.pos),o.reducedLen=(o.reducedLen||i)-.1*i,o.reducedLen>.1*i&&t(o,i,s),!0):(r+=o[c].size,c++,!1))}),tC(o,a),o};let ei=u,{animate:es,animObject:eo,stop:er}=tq,{deg2rad:ea,doc:en,svg:eh,SVG_NS:el,win:ed,isFirefox:ec}=E;class ep{_defaultGetter(t){let e=tx(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0);return/^-?[\d\.]+$/.test(e)&&(e=parseFloat(e)),e}_defaultSetter(t,e,i){i.setAttribute(e,t)}add(t){let e,i=this.renderer,s=this.element;return t&&(this.parentGroup=t),void 0!==this.textStr&&"text"===this.element.nodeName&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(s),this.onAdd&&this.onAdd(),this}addClass(t,e){let i=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce(function(t,e){return -1===i.indexOf(e)&&t.push(e),t},i?[i]:[]).join(" "))!==i&&this.attr("class",t),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(t,e,i,s=!0){let o=this.renderer,r=o.alignedObjects,a=!!t;t?(this.alignOptions=t,this.alignByTranslate=e,this.alignTo=i):(t=this.alignOptions||{},e=this.alignByTranslate,i=this.alignTo);let n=!i||th(i)?i||"renderer":void 0;n&&(a&&tb(r,this),i=void 0);let h=tx(i,o[n],o),l=(h.x||0)+(t.x||0)+((h.width||0)-(t.width||0))*J(t.align),d=(h.y||0)+(t.y||0)+((h.height||0)-(t.height||0))*J(t.verticalAlign),c={};return t.align&&(c["text-align"]=t.align),c[e?"translateX":"x"]=Math.round(l),c[e?"translateY":"y"]=Math.round(d),s&&(this[this.placed?"animate":"attr"](c),this.placed=!0),this.alignAttr=c,this}alignSetter(t){let e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))}animate(t,e,i){let s=eo(tx(e,this.renderer.globalAnimation,!0)),o=s.defer;return en.hidden&&(s.duration=0),0!==s.duration?(i&&(s.complete=i),tS(()=>{this.element&&es(this,t,s)},o)):(this.attr(t,void 0,i||s.complete),tu(t,function(t,e){s.step&&s.step.call(this,t,{prop:e,pos:1,elem:this})},this)),this}applyTextOutline(t){let e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));let i=t.indexOf(" "),s=t.substring(i+1),o=t.substring(0,i);if(o&&"none"!==o&&E.svg){this.fakeTS=!0,o=o.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline();let t=en.createElementNS(el,"tspan");W(t,{class:"highcharts-text-outline",fill:s,stroke:s,"stroke-width":o,"stroke-linejoin":"round"});let i=e.querySelector("textPath")||e;[].forEach.call(i.childNodes,e=>{let i=e.cloneNode(!0);i.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(t=>i.removeAttribute(t)),t.appendChild(i)});let r=0;[].forEach.call(i.querySelectorAll("text tspan"),t=>{r+=Number(t.getAttribute("dy"))});let a=en.createElementNS(el,"tspan");a.textContent="",W(a,{x:Number(e.getAttribute("x")),dy:-r}),t.appendChild(a),i.insertBefore(t,i.firstChild)}}attr(t,e,i,s){let{element:o}=this,r=ep.symbolCustomAttribs,a,n,h=this,l;return"string"==typeof t&&void 0!==e&&(a=t,(t={})[a]=e),"string"==typeof t?h=(this[t+"Getter"]||this._defaultGetter).call(this,t,o):(tu(t,function(e,i){l=!1,s||er(this,i),this.symbolName&&-1!==r.indexOf(i)&&(n||(this.symbolAttr(t),n=!0),l=!0),this.rotation&&("x"===i||"y"===i)&&(this.doTransform=!0),l||(this[i+"Setter"]||this._defaultSetter).call(this,e,i,o)},this),this.afterSetters()),i&&i.call(this),h}clip(t){if(t&&!t.clipPath){let e=tI()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);_(t,{clipPath:i,id:e,count:0}),t.add(i)}return this.attr("clip-path",t?`url(${this.renderer.url}#${t.id})`:"none")}crisp(t,e){e=Math.round(e||t.strokeWidth||0);let i=t.x||this.x||0,s=t.y||this.y||0,o=(t.width||this.width||0)+i,r=(t.height||this.height||0)+s,a=F(i,e),n=F(s,e);return _(t,{x:a,y:n,width:F(o,e)-a,height:F(r,e)-n}),j(t.strokeWidth)&&(t.strokeWidth=e),t}complexColor(t,e,i){let s=this.renderer,o,r,a,n,h,l,d,c,p,g=[],u;q(this.renderer,"complexColor",{args:arguments},()=>{if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(a=t[r],h=s.gradients,l=t.stops,c=i.radialReference,tl(a)&&(t[r]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&c&&!j(a.gradientUnits)&&(n=a,a=tp(a,s.getRadialAttr(c,n),{gradientUnits:"userSpaceOnUse"})),tu(a,function(t,e){"id"!==e&&g.push(e,t)}),tu(l,function(t){g.push(t)}),h[g=g.join(",")])p=h[g].attr("id");else{a.id=p=tI();let t=h[g]=s.createElement(r).attr(a).add(s.defs);t.radAttr=n,t.stops=[],l.forEach(([e,i])=>{0===i.indexOf("rgba")?(i=(o=t$.parse(i)).get("rgb"),d=o.get("a")):d=1;let r=s.createElement("stop").attr({offset:e,"stop-color":i,"stop-opacity":d}).add(t);t.stops.push(r)})}u="url("+s.url+"#"+p+")",i.setAttribute(e,u),i.gradient=g,t.toString=function(){return u}}})}css(t){let e=this.styles,i={},s=this.element,o=this.renderer,r,a=!e;if(e&&tu(t,function(t,s){e&&e[s]!==t&&(i[s]=t,a=!0)}),a){e&&(t=_(e,i)),null===t.width||"auto"===t.width?delete this.textWidth:"text"===s.nodeName.toLowerCase()&&t.width&&(r=this.textWidth=ty(t.width)),_(this.styles,t),r&&!eh&&o.forExport&&delete t.width;let a=ec&&t.fontSize||null;a&&(tn(a)||/^\d+$/.test(a))&&(t.fontSize+="px");let n=tp(t);s.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(t=>n&&delete n[t]),n.color&&(n.fill=n.color,delete n.color)),Y(s,n)}return this.added&&("text"===this.element.nodeName&&o.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline)),this}dashstyleSetter(t){let e,i=this["stroke-width"];if("inherit"===i&&(i=1),t){let s=(t=t.toLowerCase()).replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(e=s.length;e--;)s[e]=""+ty(s[e])*tx(i,NaN);t=s.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}}destroy(){let t=this,{element:e={},renderer:i,stops:s}=t,o=e.ownerSVGElement;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,er(t),t.clipPath&&o){let e=t.clipPath;[].forEach.call(o.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){t.getAttribute("clip-path").indexOf(e.element.id)>-1&&t.removeAttribute("clip-path")}),t.clipPath=e.destroy()}if(s){for(let t of s)t.destroy();s.length=0}t.safeRemoveChild(e),t.alignOptions&&Z(i.alignedObjects,t),tu(t,(e,i)=>{(t[i]?.parentGroup===t||-1!==["connector","foreignObject"].indexOf(i))&&t[i]?.destroy?.(),delete t[i]})}dSetter(t,e,i){tl(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((t,e,i)=>e?.join?(i?t+" ":"")+e.join(" "):(e||"").toString(),"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)}fillSetter(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)}hrefSetter(t,e,i){i.setAttributeNS("http://www.w3.org/1999/xlink",e,t)}getBBox(t,e){let i,s,o,{element:r,renderer:a,styles:n,textStr:h}=this,{cache:l,cacheKeys:d}=a,c=r.namespaceURI===this.SVG_NS,p=tx(e,this.rotation,0),g=a.styledMode?r&&ep.prototype.getStyle.call(r,"font-size"):n.fontSize,u=this.getBBoxCacheKey([a.rootFontSize,this.textWidth,this.alignValue,n.fontWeight,n.lineClamp,n.textOverflow,g,p]);if(u&&!t&&(i=l[u]),!i||i.polygon){if(c||a.forExport){try{o=this.fakeTS&&function(t){let e=r.querySelector(".highcharts-text-outline");e&&Y(e,{display:t})},td(o)&&o("none"),i=r.getBBox?_({},r.getBBox()):{width:r.offsetWidth,height:r.offsetHeight,x:0,y:0},td(o)&&o("")}catch{}(!i||i.width<0)&&(i={x:0,y:0,width:0,height:0})}else i=this.htmlGetBBox();s=i.height,c&&(i.height=s=({"11px,17":14,"13px,20":16})[`${g||""},${Math.round(s)}`]||s),p&&(i=this.getRotatedBox(i,p));let t={bBox:i};q(this,"afterGetBBox",t),i=t.bBox}if(u&&(""===h||i.height>0)){for(;d.length>250;)delete l[d.shift()];l[u]||d.push(u),l[u]=i}return i}getBBoxCacheKey(t){if(j(this.textStr)){let e=""+this.textStr;return -1===e.indexOf("<")&&(e=e.replace(/\d/g,"0")),[e,...t].join(",")}}getRotatedBox(t,e){let{x:i,y:s,width:o,height:r}=t,{alignValue:a,translateY:n,rotationOriginX:h=0,rotationOriginY:l=0}=this,d=J(a),c=Number(this.element.getAttribute("y")||0)-(n?0:s),p=e*ea,g=(e-90)*ea,u=Math.cos(p),f=Math.sin(p),m=o*u,x=o*f,y=Math.cos(g),b=Math.sin(g),[[v,k],[w,M]]=[h,l].map(t=>[t-t*u,t*f]),C=i+d*(o-m)+v+M+c*y,S=C+m,T=S-r*y,A=T-m,P=s+c-d*x-k+w+c*b,L=P+x,O=L-r*b,E=O-x,I=Math.min(C,S,T,A),D=Math.min(P,L,O,E),B=Math.max(C,S,T,A)-I,N=Math.max(P,L,O,E)-D;return{x:I,y:D,width:B,height:N,polygon:[[C,P],[S,L],[T,O],[A,E]]}}getStyle(t){return ed.getComputedStyle(this.element||this,"").getPropertyValue(t)}hasClass(t){return -1!==(""+this.attr("class")).split(" ").indexOf(t)}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(t,e){this.onEvents={},this.opacity=1,this.SVG_NS=el,this.element="div"===e||"body"===e?X(e):en.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},q(this,"afterInit")}on(t,e){let{onEvents:i}=this;return i[t]&&i[t](),i[t]=N(this.element,t,e),this}opacitySetter(t,e,i){let s=Number(Number(t).toFixed(3));this.opacity=s,i.setAttribute(e,s)}reAlign(){this.alignOptions?.width&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(t){return this.attr("class",(""+this.attr("class")).replace(th(t)?RegExp(`(^| )${t}( |$)`):t," ").replace(/ +/g," ").trim())}removeTextOutline(){let t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)}safeRemoveChild(t){let e=t.parentNode;e&&e.removeChild(t)}setRadialReference(t){let e=this.element.gradient&&this.renderer.gradients[this.element.gradient]||void 0;return this.element.radialReference=t,e?.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this}shadow(t){let{renderer:e}=this,i=tp(this.parentGroup?.rotation===90?{offsetX:-1,offsetY:-1}:{},tc(t)?t:{}),s=e.shadowDefinition(i);return this.attr({filter:t?`url(${e.url}#${s})`:"none"})}show(t=!0){return this.attr({visibility:t?"inherit":"visible"})}"stroke-widthSetter"(t,e,i){this[e]=t,i.setAttribute(e,t)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let t=this.getStyle("stroke-width"),e=0,i;return/px$/.test(t)?e=ty(t):""!==t&&(W(i=en.createElementNS(el,"rect"),{width:t,"stroke-width":0}),this.element.parentNode.appendChild(i),e=i.getBBox().width,i.parentNode.removeChild(i)),e}symbolAttr(t){let e=this;ep.symbolCustomAttribs.forEach(function(i){e[i]=tx(t[i],e[i])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})}textSetter(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(t){let e=this.element,i=e.getElementsByTagName("title")[0]||en.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=tk(tx(t,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let t=this.element;return t.parentNode.appendChild(t),this}translate(t,e){return this.attr({translateX:t,translateY:e})}updateTransform(t="transform"){let{element:e,foreignObject:i,matrix:s,rotation:o=0,rotationOriginX:r,rotationOriginY:a,scaleX:n,scaleY:h,text:l,translateX:d=0,translateY:c=0}=this,p=[`translate(${d},${c})`];j(s)&&p.push("matrix("+s.join(",")+")"),o&&p.push("rotate("+o+" "+(r??e.getAttribute("x")??this.x??0)+" "+(a??e.getAttribute("y")??this.y??0)+")"),(j(n)||j(h))&&p.push(`scale(${n??1} ${h??1})`),p.length&&!(l||this).textPath&&(i?.element||e).setAttribute(t,p.join(" "))}visibilitySetter(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t}xGetter(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)}zIndexSetter(t,e){let{element:i,parentGroup:s,renderer:o}=this,r=s?.element||o.box,a=r===o.box,n,h,l,d=!1,c,p=this.added,g;if(j(t)?(i.setAttribute("data-z-index",t),t*=1,this[e]===t&&(p=!1)):j(this[e])&&i.removeAttribute("data-z-index"),this[e]=t,p){for((t=this.zIndex)&&s&&(s.handleZ=!0),g=(n=r.childNodes).length-1;g>=0&&!d;g--)c=!j(l=(h=n[g]).getAttribute("data-z-index")),h!==i&&(j(t)&&t<0&&c&&!a&&!g?(r.insertBefore(i,n[g]),d=!0):(j(t)&&parseFloat(l||"")<=t||c&&(!j(t)||t>=0))&&(r.insertBefore(i,n[g+1]),d=!0));d||(r.insertBefore(i,n[3*!!a]),d=!0)}return d}}ep.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],ep.prototype.strokeSetter=ep.prototype.fillSetter,ep.prototype.yGetter=ep.prototype.xGetter,ep.prototype.matrixSetter=ep.prototype.rotationOriginXSetter=ep.prototype.rotationOriginYSetter=ep.prototype.rotationSetter=ep.prototype.scaleXSetter=ep.prototype.scaleYSetter=ep.prototype.translateXSetter=ep.prototype.translateYSetter=ep.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0};let eg=ep,{charts:eu}=E,ef=["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],em=[null,"#00e272","#efdf00"];class ex{constructor(t,e){this.defaultOptions=I,this.options=tp(I),this.cssVars={light:{},dark:{}},this.renderer=t,this.update(e)}injectCSS(t){let e,i,s,{cssVars:o,renderer:r}=this,a=Object.keys(U(t,this.defaultOptions)).length>0,n=Math.max(t.colors?.length||0,ef.length),h="light",l=(t,e)=>{th(t)&&(e=e.replace(/([0-9]+)/g,"-$1").replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`),o[h][`--highcharts-${e}`]=t)};for(let e of["light","dark"]){let i=t[e]||{},s={},r=new t$(i?.neutralColor||""),a=new t$(i?.backgroundColor||""),d=new t$(i?.highlightColor||"");h=e,[3,5,10,20,40,60,80,100].forEach(t=>{s[`neutralColor${t}`]=a.tweenTo(r,t/100),s[`highlightColor${t}`]=a.tweenTo(d,t/100)});for(let s=0;s<n;s++)l(i?.colors?.[s]||t.colors?.[s]||("dark"===e?em:[])?.[s]||ef[s]||"#888a",`color${s}`);tu(i,l),tu(s,l),"light"===e&&_(o.dark,o.light)}let d=r.defs.element,c=a?`*[data-highcharts-chart="${r.chartIndex}"]`:"",p=d.querySelector("style.highcharts-palette")||r.box.ownerDocument.createElement("style");p.parentNode||(p.nonce="highcharts",p.className="highcharts-palette",d.appendChild(p)),i=(e=t=>{let e="";return tu(o.light,(i,s)=>{e+=t&&i!==o.dark[s]?` ${s}: light-dark(${i}, ${o.dark[s]});
|
|
11
|
+
`:` ${s}: ${i};
|
|
12
|
+
`}),e})(),s=e(!0),p.textContent=`${c||":root"} {
|
|
13
|
+
${i}
|
|
14
|
+
}
|
|
15
|
+
@supports (color: light-dark(#fff, #000)) {
|
|
16
|
+
${c||":root"} {
|
|
17
|
+
${s}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
.highcharts-container {
|
|
21
|
+
color-scheme: light dark;
|
|
22
|
+
}
|
|
23
|
+
.highcharts-light .highcharts-container {
|
|
24
|
+
color-scheme: light;
|
|
25
|
+
}
|
|
26
|
+
.highcharts-dark .highcharts-container {
|
|
27
|
+
color-scheme: dark;
|
|
28
|
+
}`}update(t){let e=this.renderer.box.parentElement,i=eu?.[this.renderer.chartIndex];t=tp(!0,this.options,t),i&&(i.options.palette=t),!1!==t.injectCSS&&this.injectCSS(t),e&&(th(t.colorScheme)&&["light","dark","inherit"].includes(t.colorScheme)?e.style.colorScheme=t.colorScheme:e.style.removeProperty("color-scheme"))}}class ey extends eg{constructor(t,e,i,s,o,r,a,n,h,l){let d;super(t,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=e,this.x=i,this.y=s,this.anchorX=r,this.anchorY=a,this.baseline=h,this.className=l,this.addClass("button"===l?"highcharts-no-tooltip":"highcharts-label"),l&&this.addClass("highcharts-"+l),this.text=t.text(void 0,0,0,n).attr({zIndex:1}),"string"==typeof o&&((d=/^url\((.*?)\)$/.test(o))||this.renderer.symbols[o])&&(this.symbolKey=o),this.bBox=ey.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=t.styledMode||d,this.deferredAttr={},this.alignFactor=0}alignSetter(t){let e=J(t);this.textAlign=t,e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&tn(this.xSetting)&&this.attr({x:this.xSetting}),this.updateTextPadding())}anchorXSetter(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)}boxAttr(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e}css(t){if(t){let e={};t=tp(t),ey.textProps.forEach(i=>{void 0!==t[i]&&(e[i]=t[i],delete t[i])}),this.text.css(e),"fontSize"in e||"fontWeight"in e||"width"in e?this.updateTextPadding():"textOverflow"in e&&this.updateBoxSize(),"color"in e&&this.updateBackground()}return eg.prototype.css.call(this,t)}destroy(){tw(this.element,"mouseenter"),tw(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),eg.prototype.destroy.call(this)}fillSetter(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)}getBBox(t,e){(this.textStr&&0===this.bBox.width&&0===this.bBox.height||this.rotation)&&this.updateBoxSize();let{padding:i,height:s=0,translateX:o=0,translateY:r=0,width:a=0}=this,n=tx(this.paddingLeft,i),h=e??(this.rotation||0),l={width:a,height:s,x:o+this.bBox.x-n,y:r+this.bBox.y-i+this.baselineOffset};return h&&(l=this.getRotatedBox(l,h)),l}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(t){this.heightSetting=t,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1),this.updateBackground()}onAdd(){this.text.add(this),this.attr({text:tx(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&j(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(t,e){tn(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0}rSetter(t,e){this.boxAttr(e,t)}strokeSetter(t,e){this.stroke=t,this.boxAttr(e,t)}"stroke-widthSetter"(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)}"text-alignSetter"(t){this.textAlign=this["text-align"]=t,this.updateTextPadding()}textSetter(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding(),this.reAlign()}updateBackground(){"contrast"===this.fill&&this.box?.attr({fill:this.renderer.getContrast(this.text.styles.color||"#000"),"fill-opacity":.65})}updateBoxSize(){let t,e=this.text,i={},s=this.padding,o=this.bBox=(!tn(this.widthSetting)||!tn(this.heightSetting)||this.textAlign)&&j(e.textStr)?e.getBBox(void 0,0):ey.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||o.height||0)+2*s;let r=this.renderer.fontMetrics(e);if(this.baselineOffset=s+Math.min((this.text.firstLineMetrics||r).b,o.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-r.h)/2),this.needsBox&&!e.textPath){if(!this.box){let t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();t.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this)}i.x=t=this.getCrispAdjust(),i.y=(this.baseline?-this.baselineOffset:0)+t,i.width=Math.round(this.width),i.height=Math.round(this.height),this.box.attr(_(i,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let t=this.text,e=t.styles.textAlign||this.textAlign;if(!t.textPath){this.updateBoxSize();let i=this.baseline?0:this.baselineOffset,s=(this.paddingLeft??this.padding)+J(e)*(this.widthSetting??this.bBox.width);(s!==t.x||i!==t.y)&&(t.attr({align:e,x:s}),void 0!==i&&t.attr("y",i)),t.x=s,t.y=i}}widthSetter(t){this.widthSetting=tn(t)?t:void 0,this.doUpdate=!0}getPaddedWidth(){let t=this.padding,e=tx(this.paddingLeft,t),i=tx(this.paddingRight,t);return(this.widthSetting||this.bBox.width||0)+e+i}xSetter(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.anchorX&&(this["forceAnimate:anchorX"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)}ySetter(t){this.anchorY&&(this["forceAnimate:anchorY"]=!0),this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)}}function eb(t,e,i,s,o){let r=[];if(o){let a=o.start||0,n=o.end||0,h=tx(o.r,i),l=tx(o.r,s||i),d=1e-4>Math.abs(n-a-2*Math.PI);d&&(a=Math.PI/2,n=2.5*Math.PI-1e-4);let c=o.innerR,p=tx(o.open,d),g=d?0:Math.cos(a),u=d?1:Math.sin(a),f=d?0:Math.cos(n),m=d?1:Math.sin(n),x=tx(o.longArc,n-a-Math.PI<1e-4?0:1),y=["A",h,l,0,x,tx(o.clockwise,1),t+(d?.001:h*f),e+l*m];y.params={start:a,end:n,cx:t,cy:e},r.push(["M",t+h*g,e+l*u],y),j(c)&&((y=["A",c,c,0,x,j(o.clockwise)?1-o.clockwise:0,t+(d?-.001:c*g),e+c*u]).params={start:n,end:a,cx:t,cy:e},r.push(p?["M",t+c*f,e+c*m]:["L",t+c*f,e+c*m],y)),p||r.push(["Z"])}return r}function ev(t,e,i,s,o){return o?.r?ek(t,e,i,s,o):[["M",t,e],["L",t+i,e],["L",t+i,e+s],["L",t,e+s],["Z"]]}function ek(t,e,i,s,o){let r=o?.r||0;return[["M",t+r,e],["L",t+i-r,e],["A",r,r,0,0,1,t+i,e+r],["L",t+i,e+s-r],["A",r,r,0,0,1,t+i-r,e+s],["L",t+r,e+s],["A",r,r,0,0,1,t,e+s-r],["L",t,e+r],["A",r,r,0,0,1,t+r,e],["Z"]]}ey.emptyBBox={width:0,height:0,x:0,y:0},ey.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];let ew={arc:eb,callout:function(t,e,i,s,o){let r=Math.min(o?.r||0,i,s),a=r+6,n=o?.anchorX,h=o?.anchorY||0,l=ek(t,e,i,s,{r});if(!tn(n)||n<i&&n>0&&h<s&&h>0)return l;if(t+n>i-a)if(h>e+a&&h<e+s-a)l.splice(3,1,["L",t+i,h-6],["L",t+i+6,h],["L",t+i,h+6],["L",t+i,e+s-r]);else if(n<i){let o=h<e+a,d=o?e:e+s;l.splice(o?2:5,0,["L",n,h],["L",t+i-r,d])}else l.splice(3,1,["L",t+i,s/2],["L",n,h],["L",t+i,s/2],["L",t+i,e+s-r]);else if(t+n<a)if(h>e+a&&h<e+s-a)l.splice(7,1,["L",t,h+6],["L",t-6,h],["L",t,h-6],["L",t,e+r]);else if(n>0){let i=h<e+a,o=i?e:e+s;l.splice(i?1:6,0,["L",n,h],["L",t+r,o])}else l.splice(7,1,["L",t,s/2],["L",n,h],["L",t,s/2],["L",t,e+r]);else h>s&&n<i-a?l.splice(5,1,["L",n+6,e+s],["L",n,e+s+6],["L",n-6,e+s],["L",t+r,e+s]):h<0&&n>a&&l.splice(1,1,["L",n-6,e],["L",n,e-6],["L",n+6,e],["L",i-r,e]);return l},circle:function(t,e,i,s){return eb(t+i/2,e+s/2,i/2,s/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s/2],["L",t+i/2,e+s],["L",t,e+s/2],["Z"]]},rect:ev,roundedRect:ek,square:ev,triangle:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s],["L",t,e+s],["Z"]]},"triangle-down":function(t,e,i,s){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+s],["Z"]]}},{doc:eM,SVG_NS:eC,win:eS}=E,eT=(t,e)=>t.substring(0,e)+"…",eA=class{constructor(t){const e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e?.lineHeight,this.textOutline=e?.textOutline,this.ellipsis=e?.textOverflow==="ellipsis",this.lineClamp=e?.lineClamp,this.noWrap=e?.whiteSpace==="nowrap"}buildSVG(){let t=this.svgElement,e=t.element,i=t.renderer,s=tx(t.textStr,"").toString(),o=-1!==s.indexOf("<"),r=e.childNodes,a=!t.added&&i.box,n=[s,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,t.getStyle("font-size"),t.styles.lineClamp,this.width].join(",");if(n!==t.textCache){t.textCache=n,delete t.actualWidth;for(let t=r.length;t--;)e.removeChild(r[t]);if(o||this.ellipsis||this.width||t.textPath||-1!==s.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(s))){if(""!==s){a&&a.appendChild(e);let i=new t5(s);this.modifyTree(i.nodes),i.addToDOM(e),this.modifyDOM(),this.ellipsis&&-1!==(e.textContent||"").indexOf("…")&&t.attr("title",this.unescapeEntities(t.textStr||"",["<",">"])),a&&a.removeChild(e)}}else e.appendChild(eM.createTextNode(this.unescapeEntities(s)));th(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}}modifyDOM(){let t,e=this.svgElement,i=W(e.element,"x");for(e.firstLineMetrics=void 0;t=e.element.firstChild;)if(/^[\s\u200B]*$/.test(t.textContent||" "))e.element.removeChild(t);else break;[].forEach.call(e.element.querySelectorAll("tspan.highcharts-br"),(t,s)=>{t.nextSibling&&t.previousSibling&&(0===s&&1===t.previousSibling.nodeType&&(e.firstLineMetrics=e.renderer.fontMetrics(t.previousSibling)),W(t,{dy:this.getLineHeight(t.nextSibling),x:i}))});let s=this.width||0;if(!s)return;let o=(t,o)=>{let r=t.textContent||"",a=r.replace(/([^\^])-/g,"$1- ").split(" "),n=!this.noWrap&&(a.length>1||e.element.childNodes.length>1),h=this.getLineHeight(o),l=Math.max(0,s-.8*h),d=0,c=e.actualWidth;if(n){let r=[],n=[];for(;o.firstChild&&o.firstChild!==t;)n.push(o.firstChild),o.removeChild(o.firstChild);for(;a.length;)if(a.length&&!this.noWrap&&d>0&&(r.push(t.textContent||""),t.textContent=a.join(" ").replace(/- /g,"-")),this.truncate(t,void 0,a,0===d&&c||0,s,l,(t,e)=>a.slice(0,e).join(" ").replace(/- /g,"-")),c=e.actualWidth,d++,this.lineClamp&&d>=this.lineClamp){a.length&&(this.truncate(t,t.textContent||"",void 0,0,s,l,eT),t.textContent=t.textContent?.replace("…","")+"…");break}n.forEach(e=>{o.insertBefore(e,t)}),r.forEach(e=>{o.insertBefore(eM.createTextNode(e),t);let s=eM.createElementNS(eC,"tspan");s.textContent="",W(s,{dy:h,x:i}),o.insertBefore(s,t)})}else this.ellipsis&&r&&this.truncate(t,r,void 0,0,s,l,eT)},r=t=>{[].slice.call(t.childNodes).forEach(i=>{i.nodeType===eS.Node.TEXT_NODE?o(i,t):(-1!==i.className.baseVal.indexOf("highcharts-br")&&(e.actualWidth=0),r(i))})};r(e.element)}getLineHeight(t){let e=t.nodeType===eS.Node.TEXT_NODE?t.parentElement:t;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e||this.svgElement.element).h}modifyTree(t){let e=(i,s)=>{let{attributes:o={},children:r,style:a={},tagName:n}=i,h=this.renderer.styledMode;if("b"===n||"strong"===n?h?o.class="highcharts-strong":a.fontWeight="bold":("i"===n||"em"===n)&&(h?o.class="highcharts-emphasized":a.fontStyle="italic"),a?.color&&(a.fill=a.color),"br"===n){o.class="highcharts-br",i.textContent="";let e=t[s+1];e?.textContent&&(e.textContent=e.textContent.replace(/^ +/gm,""))}else"a"===n&&r&&r.some(t=>"#text"===t.tagName)&&(i.children=[{children:r,tagName:"tspan"}]);"#text"!==n&&"a"!==n&&(i.tagName="tspan"),_(i,{attributes:o,style:a}),r&&r.filter(t=>"#text"!==t.tagName).forEach(e)};t.forEach(e),q(this.svgElement,"afterModifyTree",{nodes:t})}truncate(t,e,i,s,o,r,a){let n,h,l=this.svgElement,{rotation:d}=l,c=[],p=i&&!s?1:0,g=(e||i||"").length,u=g;i||(o=r);let f=function(e,o){let r=o||e,a=t.parentNode;if(a&&void 0===c[r]&&a.getSubStringLength)try{c[r]=s+a.getSubStringLength(0,i?r+1:r)}catch{}return c[r]};if(l.rotation=0,s+(h=f(t.textContent.length))>o){for(;p<=g;)u=Math.ceil((p+g)/2),i&&(n=a(i,u)),h=f(u,n&&n.length-1),p===g?p=g+1:h>o?g=u-1:p=u;0===g?t.textContent="":e&&g===e.length-1||(t.textContent=n||a(e||i,u)),this.ellipsis&&h>o&&this.truncate(t,t.textContent||"",void 0,0,o,r,eT)}i&&i.splice(0,u),l.actualWidth=h,l.rotation=d}unescapeEntities(t,e){return tu(this.renderer.escapes,function(i,s){e&&-1!==e.indexOf(i)||(t=t.toString().replace(RegExp(i,"g"),s))}),t}},{defaultOptions:eP}=tX,{charts:eL,deg2rad:eO,doc:eE,isFirefox:eI,isMS:eD,isWebKit:eB,noop:eN,SVG_NS:ez,symbolSizes:eR,win:eW}=E;class eH{constructor(t,e,i,s,o,r,a,n,h){let l,d;this.x=0,this.y=0;const c=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),p=c.element;t.appendChild(p),W(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&W(p,"xmlns",this.SVG_NS),this.box=p,this.boxWrapper=c,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(eE.createTextNode("Created with Highcharts 13.0.0")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=o,this.styledMode=a,this.chartIndex=h||0,this.gradients={},this.cache={},this.cacheKeys=[],this.asyncCounter=0,this.rootFontSize=c.getStyle("font-size"),this.setSize(e,i,!1),a||(c.css(this.getStyle(s||{})),this.palette=new ex(this,n||eP.palette)),eI&&t.getBoundingClientRect&&((l=function(){Y(t,{left:0,top:0}),d=t.getBoundingClientRect(),Y(t,{left:Math.ceil(d.left)-d.left+"px",top:Math.ceil(d.top)-d.top+"px"})})(),this.unSubPixelFix=N(eW,"resize",l))}definition(t){return new t5([t]).addToDOM(this.defs.element)}getReferenceURL(){if((eI||eB)&&eE.getElementsByTagName("base").length){if(!j(e)){let t=tI(),i=new t5([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:t},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${t})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(eE.body);Y(i,{position:"fixed",top:0,left:0,zIndex:9e5});let s=eE.elementFromPoint(6,6);e=s?.id==="hitme",eE.body.removeChild(i)}if(e)return tk(eW.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(t){return this.style=_({fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif',fontSize:"1rem"},t),this.style}setStyle(t){this.boxWrapper.css(this.getStyle(t))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),$(this.gradients||{}),this.gradients=null,this.defs=t.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects.length=0,null}createElement(t){return new this.Element(this,t)}getRadialAttr(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}}shadowDefinition(t){let e=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(t).map(e=>`${e}-${t[e]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),i=tp({color:"#000000",offsetX:0,offsetY:2,opacity:.05,width:6},t);return this.defs.element.querySelector(`#${e}`)||this.definition({tagName:"filter",attributes:{id:e,filterUnits:i.filterUnits},children:this.getShadowFilterContent(i)}),e}getShadowFilterContent(t){return[{tagName:"feDropShadow",attributes:{dx:t.offsetX,dy:t.offsetY,"flood-color":t.color,"flood-opacity":Math.min(5*t.opacity,1),stdDeviation:t.width/2}}]}buildText(t){new eA(t).buildSVG()}getContrast(t){if("transparent"===t)return"#000000";let e=t$.parse(t).rgba,i=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(tn(e[0])||!t$.useColorMix){let t=e.map(t=>{let e=t/255;return e<=.04?e/12.92:Math.pow((e+.055)/1.055,2.4)}),i=.2126*t[0]+.7152*t[1]+.0722*t[2];return 1.05/(i+.05)>(i+.05)/.05?"#FFFFFF":"#000000"}return"color(from "+t+" srgb"+i+i+i+")"}button(t,e,i,s,o={},r,a,n,h,l){let d=this.label(t,e,i,h,void 0,void 0,l,void 0,"button"),c=this.styledMode,p=arguments,g=0;o=tp(eP.global.buttonTheme,o),c&&(delete o.fill,delete o.stroke,delete o["stroke-width"]);let u=o.states||{},f=o.style||{};delete o.states,delete o.style;let m=[t5.filterUserAttributes(o)],x=[f];return c||["hover","select","disabled"].forEach((t,e)=>{m.push(tp(m[0],t5.filterUserAttributes(p[e+5]||u[t]||{}))),x.push(m[e+1].style),delete m[e+1].style}),N(d.element,eD?"mouseover":"mouseenter",function(){3!==g&&d.setState(1)}),N(d.element,eD?"mouseout":"mouseleave",function(){3!==g&&d.setState(g)}),d.setState=(t=0)=>{if(1!==t&&(d.state=g=t),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t]),!c){d.attr(m[t]);let e=x[t];tc(e)&&d.css(e)}},d.attr(m[0]),!c&&(d.css(_({cursor:"default"},f)),l&&d.text.css({pointerEvents:"none"})),d.on("touchstart",t=>t.stopPropagation()).on("click",function(t){3!==g&&s?.call(d,t)})}crispLine(t,e){let[i,s]=t;return j(i[1])&&i[1]===s[1]&&(i[1]=s[1]=F(i[1],e)),j(i[2])&&i[2]===s[2]&&(i[2]=s[2]=F(i[2],e)),t}path(t){let e=this.styledMode?{}:{fill:"none"};return tl(t)?e.d=t:tc(t)&&_(e,t),this.createElement("path").attr(e)}circle(t,e,i){let s=tc(t)?t:void 0===t?{}:{x:t,y:e,r:i},o=this.createElement("circle");return o.xSetter=o.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},o.attr(s)}arc(t,e,i,s,o,r){let a;tc(t)?(e=(a=t).y,i=a.r,s=a.innerR,o=a.start,r=a.end,t=a.x):a={innerR:s,start:o,end:r};let n=this.symbol("arc",t,e,i,i,a);return n.r=i,n}rect(t,e,i,s,o,r){let a=tc(t)?t:void 0===t?{}:{x:t,y:e,r:o,width:Math.max(i||0,0),height:Math.max(s||0,0)},n=this.createElement("rect");return this.styledMode||(void 0!==r&&(a["stroke-width"]=r,_(a,n.crisp(a))),a.fill="none"),n.rSetter=function(t,e,i){n.r=t,W(i,{rx:t,ry:t})},n.rGetter=function(){return n.r||0},n.attr(a)}roundedRect(t){return this.symbol("roundedRect").attr(t)}setSize(t,e,i){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:tx(i,!0)?void 0:0}),this.alignElements()}g(t){let e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e}image(t,e,i,s,o,r){let a={preserveAspectRatio:"none"};tn(e)&&(a.x=e),tn(i)&&(a.y=i),tn(s)&&(a.width=s),tn(o)&&(a.height=o);let n=this.createElement("image").attr(a),h=function(e){n.attr({href:t}),r.call(n,e)};if(r){n.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let e=new eW.Image;N(e,"load",h),e.src=t,e.complete&&h({})}else n.attr({href:t});return n}symbol(t,e,i,s,o,r){let a,n,h,l,d=this,c=/^url\((.*?)\)$/,p=c.test(t),g=!p&&(this.symbols[t]?t:"circle"),u=g&&this.symbols[g];if(u)"number"==typeof e&&(n=u.call(this.symbols,e||0,i||0,s||0,o||0,r)),a=this.path(n),d.styledMode||a.attr("fill","none"),_(a,{symbolName:g||void 0,x:e,y:i,width:s,height:o}),r&&_(a,r);else if(p){h=t.match(c)[1];let s=a=this.image(h);s.imgwidth=tx(r?.width,eR[h]?.width),s.imgheight=tx(r?.height,eR[h]?.height),l=t=>t.attr({width:t.width,height:t.height}),["width","height"].forEach(t=>{s[`${t}Setter`]=function(t,e){this[e]=t;let{alignByTranslate:i,element:s,width:o,height:a,imgwidth:n,imgheight:h}=this,l="width"===e?n:h,d=1;r&&"within"===r.backgroundSize&&o&&a&&n&&h?(d=Math.min(o/n,a/h),W(s,{width:Math.round(n*d),height:Math.round(h*d)})):s&&l&&s.setAttribute(e,l),!i&&n&&h&&this.translate(((o||0)-n*d)/2,((a||0)-h*d)/2)}}),j(e)&&s.attr({x:e,y:i}),s.isImg=!0,j(s.imgwidth)&&j(s.imgheight)?l(s):(s.attr({width:0,height:0}),X("img",{onload:function(){let t=eL[d.chartIndex];0===this.width&&(Y(this,{position:"absolute",top:"-999em"}),eE.body.appendChild(this)),eR[h]={width:this.width,height:this.height},s.imgwidth=this.width,s.imgheight=this.height,s.element&&l(s),this.parentNode&&this.parentNode.removeChild(this),d.asyncCounter--,d.asyncCounter||!t||t.hasLoaded||t.onload()},src:h}),this.asyncCounter++)}return a}clipRect(t,e,i,s){return this.rect(t,e,i,s,0)}text(t,e,i,s){let o={};if(s&&(this.allowHTML||!this.forExport))return this.html(t,e,i);o.x=Math.round(e||0),i&&(o.y=Math.round(i)),j(t)&&(o.text=t);let r=this.createElement("text").attr(o);return s&&(!this.forExport||this.allowHTML)||(r.xSetter=function(t,e,i){let s=i.getElementsByTagName("tspan"),o=i.getAttribute(e);for(let i=0,r;i<s.length;i++)(r=s[i]).getAttribute(e)===o&&r.setAttribute(e,t);i.setAttribute(e,t)}),r}fontMetrics(t){let e=tn(t)?t:ty(eg.prototype.getStyle.call(t,"font-size")||0),i=e<24?e+3:Math.round(1.2*e),s=Math.round(.8*i);return{h:i,b:s,f:e}}rotCorr(t,e,i){let s=t;return e&&i&&(s=Math.max(s*Math.cos(e*eO),4)),{x:-t/3*Math.sin(e*eO),y:s}}pathToSegments(t){let e=[],i=[],s={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let o=0;o<t.length;o++)th(i[0])&&tn(t[o])&&i.length===s[i[0].toUpperCase()]&&t.splice(o,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[o]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[o]);return e.push(i.slice(0)),e}label(t,e,i,s,o,r,a,n,h){return new ey(this,t,e,i,s,o,r,a,n,h)}alignElements(){this.alignedObjects.forEach(t=>t.align())}}_(eH.prototype,{Element:eg,SVG_NS:ez,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:ew,draw:eN}),E.Renderer=eH;let{composed:eG,isFirefox:eX}=E;class eF extends eg{static compose(t){tb(eG,"HTMLElement")&&(t.prototype.html=function(t,e,i){return new eF(this,"div").attr({text:t,x:Math.round(e),y:Math.round(i)})})}constructor(t,e){super(t,e),this.foreignObject=t.createElement("foreignObject").attr({zIndex:2}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(t,e,i){this.xCorr=-t*i,this.yCorr=-e}css(t){let e,{element:i}=this,s=t&&"width"in t,o=s&&t.width;return s&&(delete t.width,this.textWidth=ty(o)||void 0,e=!0),t?.textOverflow==="ellipsis"&&(t.overflow="hidden",t.whiteSpace="nowrap"),t?.lineClamp?(t.display="-webkit-box",t.WebkitLineClamp=t.lineClamp,t.WebkitBoxOrient="vertical",t.overflow="hidden"):t?.lineClamp===0&&(t.display="inline-block"),tn(Number(t?.fontSize))&&(t.fontSize+="px"),_(this.styles,t),Y(i,t),e&&this.updateTransform(),this}htmlGetBBox(){let{element:t}=this;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}updateTransform(){let t;if(!this.added){this.alignOnAdd=!0;return}let{element:e,foreignObject:i,oldTextWidth:s,renderer:o,rotation:r,scaleX:a,styles:{display:n="inline-block",whiteSpace:h},textAlign:l="left",textWidth:d,x:c=0,y:p=0}=this,g=()=>this.textPxLength?this.textPxLength:(Y(e,{width:"",whiteSpace:h||"nowrap"}),e.offsetWidth),u=[r,l,e.innerHTML,d,this.textAlign].join(",");if(Y(e,{display:"inline-block",verticalAlign:"top"}),d!==s){let t=g(),i=d||0,l=!o.styledMode&&""===e.style.textOverflow&&e.style.webkitLineClamp;(i>s||t>i||l)&&(/[\-\s\u00AD]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(Y(e,{width:(r||a||t>i)&&tn(d)?d+"px":l?Math.min(t+1,i)+"px":"auto",display:n,whiteSpace:h||"normal"}),this.oldTextWidth=d)}i.attr({width:o.width,height:o.height}),u!==this.cTT&&(t=o.fontMetrics(e).b,this.getSpanCorrection(!j(r)&&!this.textWidth&&this.textPxLength||e.offsetWidth,t,J(l))),super.updateTransform(),tn(c)&&tn(p)?(i.attr({x:c+(this.xCorr||0),y:p+(this.yCorr||0),width:e.offsetWidth+4,height:e.offsetHeight+1,"transform-origin":e.getAttribute("transform-origin")||"0 0"}),Y(e,{display:n,textAlign:l})):eX&&i.attr({width:0,height:0}),this.cTT=u}add(t){let{foreignObject:e,renderer:i}=this;return e.add(t),super.add(i.createElement("body").attr({xmlns:"http://www.w3.org/1999/xhtml"}).css({background:"transparent",margin:"0 3px 0 0"}).add(e)),this.alignOnAdd&&this.updateTransform(),this}textSetter(t){t!==this.textStr&&(delete this.oldTextWidth,t5.setElementHTML(this.element,t??""),this.textStr=t,this.doTransform=!0)}alignSetter(t){this.alignValue=this.textAlign=t,this.doTransform=!0}xSetter(t,e){this[e]=t,this.doTransform=!0}}let eY=eF.prototype;eY.ySetter=eY.xSetter,(a=f||(f={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%[HMSL]",range:!1},second:{main:"%[HMS]",range:!1},minute:{main:"%[HM]",range:!1},hour:{main:"%[HM]",boundary:void 0,range:!1},day:{main:"%[eb]",boundary:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]",boundary:void 0},year:{main:"%[Y]",boundary:void 0}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"var(--highcharts-neutral-color-80)",cursor:"default",fontSize:"0.8em",textOverflow:"ellipsis"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"var(--highcharts-neutral-color-60)",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"var(--highcharts-neutral-color-5)",minorGridLineWidth:1,minorTickColor:"var(--highcharts-neutral-color-40)",lineColor:"var(--highcharts-neutral-color-80)",lineWidth:1,gridLineColor:"var(--highcharts-neutral-color-10)",gridLineWidth:void 0,tickColor:"var(--highcharts-neutral-color-80)"},a.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return this.axis.chart.numberFormatter(this.total||0,-1)},style:{color:"var(--highcharts-neutral-color-100)",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};let ej=f;(m||(m={})).registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},tu(e.events,function(e,i){t.eventOptions[i]!==e&&(t.eventOptions[i]&&(tw(t,i,t.eventOptions[i]),delete t.eventOptions[i]),td(e)&&(t.eventOptions[i]=e,N(t,i,e,{order:0})))})};let e$=m,{deg2rad:eV}=E,eU=class{constructor(t,e,i,s,o){this.isNew=!0,this.isNewLabel=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,q(this,"init"),i||s||this.addLabel()}addLabel(){let t=this,e=t.axis,i=e.options,s=e.chart,o=e.categories,r=e.logarithmic,a=e.names,n=t.pos,h=tx(t.options?.labels,i.labels),l=e.tickPositions,d=n===l[0],c=n===l[l.length-1],p=l.info,g=p?.boundaryTicks[n],u=i.dateTimeLabelFormats,f=t.label,m,x,y,b=this.parameters.category||(o?tx(o[n],a[n],n):n);if(r&&tn(b)&&(b=G(r.lin2log(b))),e.dateTime&&u)if(p){let t=p.unitName,e={millisecond:"hour",second:"hour",minute:"hour",hour:"day",day:"month",week:"month",month:"year",year:"year"}[t],o=!i.grid?.enabled&&g&&e&&u[e]?.boundary||u[t];m=(x=s.time.resolveDTLFormat(o)).main}else tn(b)&&(m=e.dateTime.getXDateFormat(b,u||{}));t.isFirst=d,t.isLast=c,t.boundary=g;let v={axis:e,chart:s,dateTimeLabelFormat:m,boundary:g,isFirst:d,isLast:c,pos:n,tick:t,tickPositionInfo:p,value:b};q(this,"labelFormat",v);let k=t=>h.formatter?h.formatter.call(t,t):h.format?(t.text=e.defaultLabelFormatter.call(t),ee.format(h.format,t,s)):e.defaultLabelFormatter.call(t),w=k.call(v,v),M=x?.list;M?t.shortenLabel=function(){for(y=0;y<M.length;y++)if(_(v,{dateTimeLabelFormat:M[y]}),f.attr({text:k.call(v,v)}),f.getBBox().width<e.getSlotWidth(t)-2*(h.padding||0))return;f.attr({text:""})}:t.shortenLabel=void 0,f?f.textStr!==w&&(!f.textWidth||h.style.width||f.styles.width||f.css({width:void 0}),f.attr({text:w}),f.textPxLength=f.getBBox().width):(t.label=f=t.createLabel(w,h),t.rotation=0)}createLabel(t,e,i){let s=this.axis,{renderer:o,styledMode:r}=s.chart,a=e.style.whiteSpace,n=j(t)&&e.enabled?o.text(t,i?.x,i?.y,e.useHTML).add(s.labelGroup):void 0;return n&&(r||n.css(tp(e.style)),n.textPxLength=n.getBBox().width,!r&&a&&n.css({whiteSpace:a})),n}destroy(){$(this,this.axis)}getPosition(t,e,i,s){let o=this.axis,r=o.chart,a=s&&r.oldChartHeight||r.chartHeight,n={x:t?G(o.translate(e+i,void 0,void 0,s)+o.transB):o.left+o.offset+(o.opposite?(s&&r.oldChartWidth||r.chartWidth)-o.right-o.left:0),y:t?a-o.bottom+o.offset-(o.opposite?o.height:0):G(a-o.translate(e+i,void 0,void 0,s)-o.transB)};return n.y=H(n.y,-1e9,1e9),q(this,"afterGetPosition",{pos:n}),n}getLabelPosition(t,e,i,s,o,r,a,n){let h,l,d=this.axis,c=d.transA,p=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,g=d.staggerLines,u=d.tickRotCorr||{x:0,y:0},f=s||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),m=o.distance,x={};return h=0===d.side?i.rotation?-m:-i.getBBox().height:2===d.side?u.y+m:Math.cos(i.rotation*eV)*(u.y-i.getBBox(!1,0).height/2),j(o.y)&&(h=0===d.side&&d.horiz?o.y+h:o.y),t=t+tx(o.x,[0,1,0,-1][d.side]*m)+f+u.x-(r&&s?r*c*(p?-1:1):0),e=e+h-(r&&!s?r*c*(p?1:-1):0),g&&(l=a/(n||1)%g,d.opposite&&(l=g-l-1),e+=l*(d.labelOffset/g)),x.x=t,x.y=Math.round(e),q(this,"afterGetLabelPosition",{pos:x,tickmarkOffset:r,index:a}),x}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(t,e,i,s,o=!1,r){return r.crispLine([["M",t,e],["L",t+(o?0:-i),e+(o?i:0)]],s)}handleOverflow(t){let e=this.axis,i=e.options.labels,s=t.x,o=e.chart.chartWidth,r=e.chart.spacing,a=tx(e.labelLeft,Math.min(e.pos,r[3])),n=tx(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,o-r[1])),h=this.label,l=this.rotation,d=J(e.labelAlign||h.attr("align")),c=h.getBBox().width,p=e.getSlotWidth(this),g=p,u=1,f;l||"justify"!==i.overflow?l<0&&s-d*c<a?f=Math.round(s/Math.cos(l*eV)-a):l>0&&s+d*c>n&&(f=Math.round((o-s)/Math.cos(l*eV))):(s-d*c<a?g=t.x+g*(1-d)-a:s+(1-d)*c>n&&(g=n-t.x+g*d,u=-1),(g=Math.min(p,g))<p&&"center"===e.labelAlign&&(t.x+=u*(p-g-d*(p-Math.min(c,g)))),(c>g||e.autoRotation&&h?.styles?.width)&&(f=g)),f&&h&&(this.shortenLabel?this.shortenLabel():h.css(_({},{width:Math.floor(f)+"px",lineClamp:+!e.isRadial})))}render(t,e,i){let s=this.axis,o=s.horiz,r=this.pos,a=tx(this.tickmarkOffset,s.tickmarkOffset),n=this.getPosition(o,r,a,e),h=n.x,l=n.y,d=s.pos,c=d+s.len,p=o?h:l,g=tx(i,this.label?.newOpacity,1);!s.chart.polar&&(G(p)<d||p>c)&&(i=0),i??(i=1),this.isActive=!0,this.renderGridLine(e,i),this.renderMark(n,i),this.renderLabel(n,e,g,t),this.isNew=!1,q(this,"afterRender")}renderGridLine(t,e){let i=this.axis,s=i.options,o={},r=this.pos,a=this.type,n=tx(this.tickmarkOffset,i.tickmarkOffset),h=i.chart.renderer,l=this.gridLine,d,c=s.gridLineWidth,p=s.gridLineColor,g=s.gridLineDashStyle;"minor"===this.type&&(c=s.minorGridLineWidth,p=s.minorGridLineColor,g=s.minorGridLineDashStyle),l||(i.chart.styledMode||(o.stroke=p,o["stroke-width"]=c||0,o.dashstyle=g),a||(o.zIndex=1),t&&(e=0),this.gridLine=l=h.path().attr(o).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(i.gridGroup)),l&&(d=i.getPlotLinePath({value:r+n,lineWidth:l.strokeWidth(),force:"pass",old:t,acrossPanes:!1}))&&l[t||this.isNew?"attr":"animate"]({d:d,opacity:e})}renderMark(t,e){let i=this.axis,s=i.options,o=i.chart.renderer,r=this.type,a=i.tickSize(r?r+"Tick":"tick"),n=t.x,h=t.y,l=tx(s["minor"!==r?"tickWidth":"minorTickWidth"],!r&&i.isXAxis?1:0),d=s["minor"!==r?"tickColor":"minorTickColor"],c=this.mark,p=!c;a&&(i.opposite&&(a[0]=-a[0]),!c&&(this.mark=c=o.path().addClass("highcharts-"+(r?r+"-":"")+"tick").add(i.axisGroup),i.chart.styledMode||c.attr({stroke:d,"stroke-width":l})),c[p?"attr":"animate"]({d:this.getMarkPath(n,h,a[0],c.strokeWidth(),i.horiz,o),opacity:e}))}renderLabel(t,e,i,s){let o=this.axis,r=o.horiz,a=o.options,n=this.label,h=a.labels,l=h.step,d=tx(this.tickmarkOffset,o.tickmarkOffset),c=t.x,p=t.y,g=!0;n&&tn(c)&&(n.xy=t=this.getLabelPosition(c,p,n,r,h,d,s,l),(!this.isFirst||this.isLast||a.showFirstLabel)&&(!this.isLast||this.isFirst||a.showLastLabel)?r&&!e&&0!==i&&this.handleOverflow(t):g=!1,l&&s%l&&(g=!1),g&&tn(t.y)?(t.opacity=i,n[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(n.hide(),this.isNewLabel=!0))}},{animObject:eZ}=tq,{xAxis:e_,yAxis:eK}=ej,{parse:eq}=t$,{defaultOptions:eJ}=tX,{registerEventOptions:eQ}=e$,{deg2rad:e0}=E,e1=(t,e)=>tg(e,void 0,void 0,tx(t.options.allowDecimals,e<.5||void 0!==t.tickAmount),!!t.tickAmount);_(eJ,{xAxis:e_,yAxis:tp(e_,eK)});class e2{constructor(t,e,i){this.clippable=!0,this.init(t,e,i)}init(t,e,i=this.coll){let s="xAxis"===i,o=this.isZAxis||(t.inverted?!s:s);this.chart=t,this.horiz=o,this.isXAxis=s,this.coll=i,q(this,"init",{userOptions:e}),this.opposite=tx(e.opposite,this.opposite),this.side=tx(e.side,this.side,o?2*!this.opposite:this.opposite?1:3),this.setOptions(e);let r=this.options,a=r.labels;this.type??(this.type=r.type||"linear"),this.uniqueNames??(this.uniqueNames=r.uniqueNames??!0),q(this,"afterSetType"),this.userOptions=e,this.minPixelPadding=0,this.reversed=tx(r.reversed,this.reversed),this.visible=r.visible,this.zoomEnabled=r.zoomEnabled,this.hasNames="category"===this.type||!0===r.categories,this.categories=tl(r.categories)&&r.categories||(this.hasNames?[]:void 0),this.names||(this.names=[]),this.namesMap||(this.namesMap={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=j(r.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=r.minRange||r.maxZoom,this.range=r.range,this.max=void 0,this.min=void 0;let n=tx(r.crosshair,tM(t.options.tooltip.crosshairs)[+!s]);this.crosshair=!0===n?{}:n,-1===t.axes.indexOf(this)&&(s?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),tO(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&s&&!j(this.reversed)&&(this.reversed=!0),this.labelRotation=tn(a.rotation)?a.rotation:void 0,eQ(this,r),q(this,"afterInit")}setOptions(t){let e=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=tp(e,"yAxis"===this.coll?{title:{text:this.chart.options.lang.yAxisTitle}}:{},eJ[this.coll],t),q(this,"afterSetOptions",{userOptions:t})}defaultLabelFormatter(){let t=this.axis,e=this.chart,{numberFormatter:i}=e,s=tn(this.value)?this.value:NaN,o=t.chart.time,r=t.categories,a=this.dateTimeLabelFormat,n=eJ.lang,h=n.numericSymbols,l=n.numericSymbolMagnitude||1e3,d=t.logarithmic?Math.abs(s):t.tickInterval,c=h?.length,p,g;if(r)g=`${this.value}`;else if(a)g=o.dateFormat(a,s,!0);else if(c&&h&&d>=1e3)for(;c--&&void 0===g;)d>=(p=Math.pow(l,c+1))&&10*s%p==0&&null!==h[c]&&0!==s&&(g=i(s/p,-1,void 0,void 0,e)+h[c]);return g??(g=i(s,-1,void 0,1e4>Math.abs(s)?"":void 0,e)),g}getSeriesExtremes(){let t,e=this;q(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=void 0,e.softThreshold=!e.isXAxis,e.series.forEach(i=>{if(i.reserveSpace()){let s=i.options,o,r=s.threshold,a,n;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=(r||0)&&(r=void 0),e.isXAxis)(o=i.getColumn("x")).length&&(o=e.logarithmic?o.filter(t=>t>0):o,a=(t=i.getXExtremes(o)).min,n=t.max,tn(a)||a instanceof Date||(o=o.filter(tn),a=(t=i.getXExtremes(o)).min,n=t.max),o.length&&(e.dataMin=Math.min(tx(e.dataMin,a),a),e.dataMax=Math.max(tx(e.dataMax,n),n)));else{let t=i.applyExtremes();tn(t.dataMin)&&(a=t.dataMin,e.dataMin=Math.min(tx(e.dataMin,a),a)),tn(t.dataMax)&&(n=t.dataMax,e.dataMax=Math.max(tx(e.dataMax,n),n)),j(r)&&(e.threshold=r),(!s.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}})}),q(this,"afterGetSeriesExtremes")}translate(t,e,i,s,o,r){let a=this.linkedParent||this,n=s&&a.old?a.old.min:a.min;if(!tn(n))return NaN;let h=a.minPixelPadding,l=(a.isOrdinal||a.brokenAxis?.hasBreaks||a.logarithmic&&o)&&!!a.lin2val,d=1,c=0,p=s&&a.old?a.old.transA:a.transA,g=0;return p||(p=a.transA),i&&(d*=-1,c=a.len),a.reversed&&(d*=-1,c-=d*(a.sector||a.len)),e?(g=(t=t*d+c-h)/p+n,l&&(g=a.lin2val(g))):(l&&(t=a.val2lin(t)),g=d*(t-n)*p+c+d*h+(tn(r)?p*r:0),a.isRadial||(g=G(g))),g}toPixels(t,e){return this.translate(this.chart?.time.parse(t)??NaN,!1,!this.horiz,void 0,!0)+(e?0:this.pos)}toValue(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(t){let e=this,i=e.chart,s=e.left,o=e.top,r=t.old,a=t.value,n=t.lineWidth,h=r&&i.oldChartHeight||i.chartHeight,l=r&&i.oldChartWidth||i.chartWidth,d=e.transB,c=t.translatedValue,p=t.force,g,u,f,m,x;function y(t,e,i){return"pass"!==p&&(t<e||t>i)&&(p?t=H(t,e,i):x=!0),t}let b={value:a,lineWidth:n,old:r,force:p,acrossPanes:t.acrossPanes,translatedValue:c};return q(this,"getPlotLinePath",b,function(t){g=f=(c=H(c=tx(c,e.translate(a,void 0,void 0,r)),-1e9,1e9))+d,u=m=h-c-d,tn(c)?e.horiz?(u=o,m=h-e.bottom+(e.options.isInternal?0:i.scrollablePixelsY||0),g=f=y(g,s,s+e.width)):(g=s,f=l-e.right+(i.scrollablePixelsX||0),u=m=y(u,o,o+e.height)):(x=!0,p=!1),t.path=x&&!p?void 0:i.renderer.crispLine([["M",g,u],["L",f,m]],n||1)}),b.path}getLinearTickPositions(t,e,i){let s,o,r,a=G(Math.floor(e/t)*t),n=G(Math.ceil(i/t)*t),h=[];if(G(a+t)===a&&(r=20),this.single)return[e];for(s=a;s<=n&&(h.push(s),(s=G(s+t,r))!==o);)o=s;return h}getMinorTickInterval(){let{minorTicks:t,minorTickInterval:e}=this.options;return!0===t?tx(e,"auto"):!1!==t?e:void 0}getMinorTickPositions(){let t=this.options,e=this.tickPositions,i=this.minorTickInterval,s=this.pointRangePadding||0,o=(this.min||0)-s,r=(this.max||0)+s,a=this.brokenAxis?.hasBreaks?this.brokenAxis.unitLength:r-o,n=[],h;if(a&&a/i<this.len/3){let s=this.logarithmic;if(s)this.paddedTicks.forEach(function(t,e,o){e&&n.push.apply(n,s.getLogTickPositions(i,o[e-1],o[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())n=n.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(i),o,r,t.startOfWeek));else for(h=o+(e[0]-o)%i;h<=r&&h!==n[0];h+=i)n.push(h)}return 0!==n.length&&this.trimTicks(n),n}adjustForMinRange(){let t=this.options,e=this.logarithmic,i=this.chart.time,{max:s,min:o,minRange:r}=this,a,n,h,l;this.isXAxis&&void 0===r&&!e&&(r=j(t.min)||j(t.max)||j(t.floor)||j(t.ceiling)?null:Math.min(5*(Q(this.series.map(t=>{let e=t.getColumn("x");return t.xIncrement?e.slice(0,2):e}))||0),this.dataMax-this.dataMin)),tn(s)&&tn(o)&&tn(r)&&s-o<r&&(n=this.dataMax-this.dataMin>=r,a=(r-s+o)/2,h=[o-a,i.parse(t.min)??o-a],n&&(h[2]=e?e.log2lin(this.dataMin):this.dataMin),l=[(o=R(h))+r,i.parse(t.max)??o+r],n&&(l[2]=e?e.log2lin(this.dataMax):this.dataMax),(s=z(l))-o<r&&(h[0]=s-r,h[1]=i.parse(t.min)??s-r,o=R(h))),this.minRange=r,this.min=o,this.max=s}getClosest(){let t,e;if(this.categories)e=1;else{let i=[];this.series.forEach(function(t){let s=t.closestPointRange,o=t.getColumn("x");1===o.length?i.push(o[0]):t.sorted&&j(s)&&t.reserveSpace()&&(e=j(e)?Math.min(e,s):s)}),i.length&&(i.sort((t,e)=>t-e),t=Q([i]))}return t&&e?Math.min(t,e):t||e}nameToX(t,e){let i,s=tl(this.options.categories),{name:o,series:r}=t,a=s?this.categories:this.names,n=this.namesMap;return r.requireSorting=!1,j(e)||(e=this.uniqueNames&&a?s?a.indexOf(o):n[o]??-1:r.autoIncrement()),-1===e?!s&&a&&(i=a.length):tn(e)&&(i=e),void 0!==i?(this.names[i]=t.name,n[t.name]=i):i=tn(t.x)?t.x:r.autoIncrement(),i}updateNames(){let t=this,{names:e,namesMap:i}=this;e.length>0&&(Object.keys(i).forEach(function(t){delete i[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(e=>{if(e.xIncrement=null,delete e.xColumn,!e.points||e.isDirtyData)t.max=Math.max(t.max||0,e.dataTable.rowCount-1),e.processData(),e.generatePoints();else{let t=e.getColumn("x");e.points?.forEach(e=>{e.x=t[e.index]})}}))}setAxisTranslation(){let t=this,e=t.max-t.min,i=t.linkedParent,s=!!t.categories,o=t.isXAxis,r=t.axisPointRange||0,a,n=0,h=0,l,d=t.transA;(o||s||r)&&(a=t.getClosest(),i?(n=i.minPointOffset,h=i.pointRangePadding):t.series.forEach(function(e){let i=s?1:o?tx(e.options.pointRange,a,0):t.axisPointRange||0,l=e.options.pointPlacement;if(r=Math.max(r,i),!t.single||s){let t=e.is("xrange")?!o:o;n=Math.max(n,t&&th(l)?0:i/2),h=Math.max(h,t&&"on"===l?0:i)}}),l=t.ordinal?.slope&&a?t.ordinal.slope/a:1,t.minPointOffset=n*=l,t.pointRangePadding=h*=l,t.pointRange=Math.min(r,t.single&&s?1:e),o&&(t.closestPointRange=a)),t.translationSlope=t.transA=d=t.staticScale||t.len/(e+h||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=d*n,q(this,"afterSetAxisTranslation")}minFromRange(){let{max:t,min:e}=this;return tn(t)&&tn(e)&&t-e||void 0}setTickInterval(t){let{categories:e,chart:i,dataMax:s,dataMin:o,dateTime:r,isXAxis:a,logarithmic:n,options:h,softThreshold:l}=this,d=i.time,c=tn(this.threshold)?this.threshold:void 0,p=this.minRange||0,{ceiling:g,floor:u,linkedTo:f,softMax:m,softMin:x}=h,y=tn(f)&&i[this.coll]?.[f],b=h.tickPixelInterval,v=h.maxPadding,k=h.minPadding,w=0,M,C=tn(h.tickInterval)&&h.tickInterval>=0?h.tickInterval:void 0,S,T,A,P;if(r||e||y||this.getTickAmount(),A=tx(this.userMin,d.parse(h.min)),P=tx(this.userMax,d.parse(h.max)),y?(this.linkedParent=y,M=y.getExtremes(),this.min=tx(M.min,M.dataMin),this.max=tx(M.max,M.dataMax),this.type!==y.type&&tL(11,!0,i)):(l&&j(c)&&tn(s)&&tn(o)&&(o>=c?(S=c,k=0):s<=c&&(T=c,v=0)),this.min=tx(A,S,o),this.max=tx(P,T,s)),tn(this.max)&&tn(this.min)&&(n&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,tx(o,this.min))&&tL(10,!0,i),this.min=G(n.log2lin(this.min),16),this.max=G(n.log2lin(this.max),16)),this.range&&tn(o)&&(this.userMin=this.min=A=Math.max(o,this.minFromRange()||0),this.userMax=P=this.max,this.range=void 0)),q(this,"foundExtremes"),this.adjustForMinRange(),tn(this.min)&&tn(this.max)){if(!tn(this.userMin)&&tn(x)&&x<this.min&&(this.min=A=x),!tn(this.userMax)&&tn(m)&&m>this.max&&(this.max=P=m),e||this.axisPointRange||this.stacking?.usePercentage||y||(w=this.max-this.min)&&(!j(A)&&k&&(this.min-=w*k),!j(P)&&v&&(this.max+=w*v)),!tn(this.userMin)&&tn(u)&&(this.min=Math.max(this.min,u)),!tn(this.userMax)&&tn(g)&&(this.max=Math.min(this.max,g)),l&&tn(o)&&tn(s)){let t=c||0;!j(A)&&this.min<t&&o>=t?this.min=h.minRange?Math.min(t,this.max-p):t:!j(P)&&this.max>t&&s<=t&&(this.max=h.minRange?Math.max(t,this.min+p):t)}!i.polar&&this.min>this.max&&(j(h.min)?this.max=this.min:j(h.max)&&(this.min=this.max)),w=this.max-this.min}if(this.min!==this.max&&tn(this.min)&&tn(this.max)?y&&!C&&b===y.options.tickPixelInterval?this.tickInterval=C=y.tickInterval:this.tickInterval=tx(C,this.tickAmount?w/Math.max(this.tickAmount-1,1):void 0,e?1:w*b/Math.max(this.len,b)):this.tickInterval=1,a&&!t){let t=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(e){e.forceCrop=e.forceCropping?.(),e.processData(t)}),q(this,"postProcessData",{hasExtremesChanged:t})}this.setAxisTranslation(),q(this,"initialAxisTranslation"),this.pointRange&&!C&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let L=tx(h.minTickInterval,r&&!this.series.some(t=>!t.sorted)?this.closestPointRange:0);!C&&L&&this.tickInterval<L&&(this.tickInterval=L),r||n||C||(this.tickInterval=e1(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){let t=this.options,e=t.tickPositions,i=t.tickPositioner,s=this.getMinorTickInterval(),o=!this.isPanning,r=o&&t.startOnTick,a=o&&t.endOnTick,n=[],h;if(this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.single=this.min===this.max&&j(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==t.allowDecimals),e)n=e.slice();else if(tn(this.min)&&tn(this.max)){if(!this.ordinal?.positions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))n=[this.min,this.max],tL(19,!1,this.chart);else if(this.dateTime)n=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal?.positions,this.closestPointRange,!0);else if(this.logarithmic)n=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let t=this.tickInterval,e=t;for(;e<=2*t;)if(n=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&n.length>this.tickAmount)this.tickInterval=e1(this,e*=1.1);else break}n.length>this.len&&(n=[n[0],n[n.length-1]])[0]===n[1]&&(n.length=1),i&&(this.tickPositions=n,(h=i.apply(this,[this.min,this.max,this]))&&(n=h))}this.isDirty||n.length===this.tickPositions?.length||(this.isDirty=!0),this.tickPositions=n,this.minorTickInterval="auto"===s&&this.tickInterval?this.tickInterval/t.minorTicksPerMajor:s,this.paddedTicks=n.slice(0),this.trimTicks(n,r,a),!this.isLinked&&tn(this.min)&&tn(this.max)&&(this.single&&n.length<2&&!this.categories&&!this.series.some(t=>t.is("heatmap")&&"between"===t.options.pointPlacement)&&(this.min-=.5,this.max+=.5),e||h||this.adjustTickAmount()),q(this,"afterSetTickPositions")}trimTicks(t,e,i){let s=t[0],o=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(q(this,"trimTicks"),!this.isLinked||!this.grid){if(e&&tn(s))this.min=s;else if(t.length)for(;this.min-r>t[0];)t.shift();if(i&&tn(o))this.max=o;else for(;this.max+r<t[t.length-1];)t.pop();0===t.length&&j(s)&&!this.options.tickPositions&&t.push((o+s)/2)}}alignToOthers(){let t,e=this,i=e.chart,s=[this],o=e.options,r=i.options.chart,a="yAxis"===this.coll&&r.alignThresholds,n=[];if(e.thresholdAlignment=void 0,(!1!==r.alignTicks&&o.alignTicks||a)&&!1!==o.startOnTick&&!1!==o.endOnTick&&!e.logarithmic){let o=t=>{let{horiz:e,options:i}=t;return[e?i.left:i.top,i.width,i.height,i.pane].join(",")},r=o(this);i[this.coll].forEach(function(i){let{series:a}=i;a.length&&a.some(t=>t.visible)&&i!==e&&o(i)===r&&(t=!0,s.push(i))})}if(t&&a){s.forEach(t=>{let i=t.getThresholdAlignment(e);tn(i)&&n.push(i)});let t=n.length>1?n.reduce((t,e)=>t+=e,0)/n.length:void 0;s.forEach(e=>{e.thresholdAlignment=t})}return t}getThresholdAlignment(t){if((!tn(this.dataMin)||this!==t&&this.series.some(t=>t.isDirty||t.isDirtyData||t.xAxis?.isDirty))&&this.getSeriesExtremes(),tn(this.threshold)){let t=H((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(t=1-t),t}}getTickAmount(){let t=this.options,e=t.tickPixelInterval,i=t.tickAmount;j(t.tickInterval)||i||!(this.len<e)||this.isRadial||this.logarithmic||!t.startOnTick||!t.endOnTick||(i=2),!i&&this.alignToOthers()&&(i=Math.ceil(this.len/e)+1),i<4&&(this.finalTickAmt=i,i=5),this.tickAmount=i}adjustTickAmount(){let t=this,{finalTickAmt:e,max:i,min:s,options:o,tickPositions:r,tickAmount:a,thresholdAlignment:n}=t,h=r?.length,l=tx(t.threshold,t.softThreshold?0:null),d,c,p=t.tickInterval,g,u=()=>r.push(G(r[r.length-1]+p)),f=()=>r.unshift(G(r[0]-p));if(tn(n)&&(g=0===n?0:1===n?a-1:Math.round(H(n*(a-1),1,a-2)),o.reversed&&(g=a-1-g)),t.hasData()&&tn(s)&&tn(i)){let n=()=>{t.transA*=(h-1)/(a-1),t.min=o.startOnTick?r[0]:Math.min(s,r[0]),t.max=o.endOnTick?r[r.length-1]:Math.max(i,r[r.length-1])};if(tn(g)&&tn(t.threshold)){for(;r[g]!==l||r.length!==a||r[0]>s||r[r.length-1]<i;){for(r.length=0,r.push(t.threshold);r.length<a;)void 0===r[g]||r[g]>t.threshold?f():u();if(p>8*t.tickInterval)break;p*=2}n()}else if(h<a){for(;r.length<a;)r.length%2||s===l?u():f();n()}if(j(e)){for(c=d=r.length;c--;)(3===e&&c%2==1||e<=2&&c>0&&c<d-1)&&r.splice(c,1);t.finalTickAmt=void 0}}}setScale(){let{coll:t,stacking:e}=this,i=!1,s=!1;this.series.forEach(t=>{i=i||t.isDirtyData||t.isDirty,s=s||t.xAxis?.isDirty||!1}),this.setAxisSize();let o=this.len!==this.old?.len;o||i||s||this.isLinked||this.forceRedraw||this.userMin!==this.old?.userMin||this.userMax!==this.old?.userMax||this.alignToOthers()?(e&&"yAxis"===t&&e.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),e&&"xAxis"===t&&e.buildStacks(),this.isDirty||(this.isDirty=o||this.min!==this.old?.min||this.max!==this.old?.max)):e&&e.cleanStacks(),i&&delete this.allExtremes,q(this,"afterSetScale")}setExtremes(t,e,i=!0,s,o){let r=this.chart;this.series.forEach(t=>{delete t.kdTree}),t=r.time.parse(t),e=r.time.parse(e),q(this,"setExtremes",o=_(o,{min:t,max:e}),t=>{this.userMin=t.min,this.userMax=t.max,this.eventArgs=t,i&&r.redraw(s)})}setAxisSize(){let t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],s=this.horiz,o=this.width=Math.round(tv(tx(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),r=this.height=Math.round(tv(tx(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),a=this.top=Math.round(tv(tx(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop)),n=this.left=Math.round(tv(tx(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-r-a,this.right=t.chartWidth-o-n,this.len=Math.max(s?o:r,0),this.pos=s?n:a}getExtremes(){let t=this.logarithmic;return{min:t?G(t.lin2log(this.min)):this.min,max:t?G(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(t){let e=this.logarithmic,i=e?e.lin2log(this.min):this.min,s=e?e.lin2log(this.max):this.max;return null===t||t===-1/0?t=i:t===1/0?t=s:i>t?t=i:s<t&&(t=s),this.translate(t,0,1,0,1)}autoLabelAlign(t){let e=((t-90*this.side)%360+360)%360,i={align:"center"};return q(this,"autoLabelAlign",i,function(t){e>15&&e<165?t.align="right":e>195&&e<345&&(t.align="left")}),i.align}tickSize(t){let e=this.options,i=tx(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),s=e["tick"===t?"tickLength":"minorTickLength"],o;i&&s&&("inside"===e[t+"Position"]&&(s=-s),o=[s,i]);let r={tickSize:o,prefix:t};return q(this,"afterTickSize",r),r.tickSize}labelMetrics(){let t=this.chart.renderer,e=this.ticks,i=e[Object.keys(e)[0]]||{};return this.chart.renderer.fontMetrics(i.label||t.box)}unsquish(){let t=this.options.labels,e=t.padding||0,i=this.horiz,s=this.tickInterval,o=this.len/((+!!this.categories+this.max-this.min)/s),r=t.rotation,a=G(.8*this.labelMetrics().h),n=Math.max(this.max-this.min,0),h=function(t){let i=(t+2*e)/(o||1);return(i=i>1?Math.ceil(i):1)*s>n&&t!==1/0&&o!==1/0&&n&&(i=Math.ceil(n/s)),G(i*s)},l=s,d,c=Number.MAX_VALUE,p;if(i){if(!t.staggerLines&&(tn(r)?p=[r]:o<t.autoRotationLimit&&(p=t.autoRotation)),p){let t,e;for(let i of p)(i===r||i&&i>=-90&&i<=90)&&(e=(t=h(Math.abs(a/Math.sin(e0*i))))+Math.abs(i/360))<c&&(c=e,d=i,l=t)}}else l=h(.75*a);return this.autoRotation=p,this.labelRotation=tx(d,tn(r)?r:0),t.step?s:l}getSlotWidth(t){let e=this.chart,i=this.horiz,s=this.options.labels,o=Math.max(this.tickPositions.length-!this.categories,1),r=e.margin[3];if(t&&tn(t.slotWidth))return t.slotWidth;if(i&&s.step<2&&!this.isRadial)return s.rotation?0:(this.staggerLines||1)*this.len/o;if(!i){let t=s.style.width;if(void 0!==t)return parseInt(String(t),10);if(!this.opposite&&r)return r-e.spacing[3]}return .33*e.chartWidth}renderUnsquish(){let t=this.chart,e=t.renderer,i=this.tickPositions,s=this.ticks,o=this.options.labels,r=o.style,a=this.horiz,n=this.getSlotWidth(),h=Math.max(1,Math.round(n-(a?2*(o.padding||0):o.distance||0))),l={},d=this.labelMetrics(),c=r.lineClamp,p,g=c??(Math.floor(this.len/(i.length*d.h))||1),u=0;th(o.rotation)||(l.rotation=o.rotation||0),i.forEach(function(t){u=Math.max(u,s[t].label?.textPxLength||0)}),this.maxLabelLength=u,this.autoRotation?u>h&&u>d.h?l.rotation=this.labelRotation:this.labelRotation=0:n&&(p=h),l.rotation&&(p=u>.5*t.chartHeight?.33*t.chartHeight:u,c||(g=1)),this.labelAlign=o.align||this.autoLabelAlign(this.labelRotation||0),this.labelAlign&&(l.align=this.labelAlign),i.forEach(function(t){let e=s[t],i=e?.label,o=r.width,a={};i&&(i.attr(l),e.shortenLabel?e.shortenLabel():p&&!o&&"nowrap"!==r.whiteSpace&&(p<(i.textPxLength||0)||"DIV"===i.element.tagName)?i.css(_(a,{width:`${p}px`,lineClamp:g})):(i.styles.width||i.textWidth||i.styles.lineClamp)&&!a.width&&!o&&i.css({width:"auto",lineClamp:0}),e.rotation=l.rotation)},this),this.tickRotCorr=e.rotCorr(d.b,this.labelRotation||0,0!==this.side)}hasData(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&j(this.min)&&j(this.max)}addTitle(t){let e,i=this.chart.renderer,s=this.horiz,o=this.opposite,r=this.options.title,a=this.chart.styledMode;this.axisTitle||((e=r.textAlign)||(e=(s?{low:"left",middle:"center",high:"right"}:{low:o?"right":"left",middle:"center",high:o?"left":"right"})[r.align]),this.axisTitle=i.text(r.text||"",0,0,r.useHTML).attr({zIndex:7,rotation:r.rotation||0,align:e}).addClass("highcharts-axis-title"),a||this.axisTitle.css(tp(r.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||r.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)}generateTick(t){let e=this.ticks;e[t]?e[t].addLabel():e[t]=new eU(this,t)}createGroups(){let{axisParent:t,chart:e,coll:i,options:s}=this,o=e.renderer,r=(e,r,a)=>o.g(e).attr({zIndex:a}).addClass(`highcharts-${i.toLowerCase()}${r} `+(this.isRadial?`highcharts-radial-axis${r} `:"")+(s.className||"")).add(t);this.axisGroup||(this.gridGroup=r("grid","-grid",s.gridZIndex).clip(this.clippable?e.plotClipInner:void 0),this.axisGroup=r("axis","",s.zIndex),this.labelGroup=r("axis-labels","-labels",s.labels.zIndex))}shuffleTicks(){let t=this.ticks,e=this.old?.names;if("category"===this.type&&e){e.forEach((i,s)=>{let o=this.namesMap[i];j(o)&&s!==o&&(t[s]&&(t[s].pos=o,this.isDirty=!0),t[o]&&-1===this.names.indexOf(e[o])&&(t[o].pos=NaN))});let i=Object.values(t);Object.keys(t).forEach(e=>{delete t[e]}),i.forEach(e=>{isNaN(e.pos)?e.destroy():t[e.pos]=e})}}getOffset(){let{chart:t,horiz:e,options:i,side:s,ticks:o,tickPositions:r,coll:a}=this,n=this.hasData(),h=i.title,l=i.labels,d=tn(i.crossing),c=t.axisOffset,p=t.clipOffset,g=[-1,1,1,-1][s],u=this.tickRotCorr||{x:0,y:0},f=0,m,x=0,y,b=0,v=0,k,w,M;if(this.showAxis=m=n||i.showEmpty,this.staggerLines=this.horiz&&l.staggerLines||void 0,this.createGroups(),n||this.isLinked?(this.shuffleTicks(),r.forEach(this.generateTick.bind(this)),this.renderUnsquish(),f=Math.abs((u=this.tickRotCorr).x),M=this.reserveSpaceDefault=0===s||2===s||({1:"left",3:"right"})[s]===this.labelAlign,(l.reserveSpace??(!d&&null)??("center"===this.labelAlign||null)??M)&&r.forEach(function(t){v=Math.max(o[t].getLabelSize(),v)}),this.staggerLines&&(v*=this.staggerLines),!e&&tn(this.labelRotation)&&M&&(v-=f),this.labelOffset=v*(this.opposite?-1:1)):tu(o,function(t,e){t.destroy(),delete o[e]}),h?.text&&!1!==h.enabled&&(this.addTitle(m),m&&!d&&!1!==h.reserveSpace&&(this.titleOffset=x=this.axisTitle.getBBox()[e?"height":"width"],b=j(y=h.offset)?0:tx(h.margin,e?5:10))),this.renderLine(),this.offset=g*(tn(i.offset)?i.offset:c[s]?c[s]+(i.margin||0):0),w=0===s?-this.labelMetrics().h:2===s?u.y:0,k=Math.abs(v)+b,v&&(k-=w,k+=g*(e?l.y??u.y+g*l.distance:l.x??(M?g*(l.distance-f):u.x+g*l.distance)),!e&&!M&&"center"===this.labelAlign&&tn(this.labelRotation)&&(k+=f)),this.axisTitleMargin=y??k,this.maxLabelDimensions=this.getMaxLabelDimensions?.(o,r),"colorAxis"!==a&&p){let t=this.tickSize("tick");c[s]=Math.max(c[s],(this.axisTitleMargin||0)+x+g*this.offset,k,r?.length&&t?t[0]+g*this.offset:0);let e=!this.axisLine||i.offset?0:this.axisLine.strokeWidth()/2;p[s]=Math.max(p[s],e)}q(this,"afterGetOffset")}getLinePath(t){let e=this.chart,i=this.opposite,s=this.offset,o=this.horiz,r=this.left+(i?this.width:0)+s,a=e.chartHeight-this.bottom-(i?this.height:0)+s;return i&&(t*=-1),e.renderer.crispLine([["M",o?this.left:r,o?a:this.top],["L",o?e.chartWidth-this.right:r,o?a:e.chartHeight-this.bottom]],t)}renderLine(){let{chart:t,offset:e=0,options:i}=this;this.axisLine||(this.axisLine=t.renderer.path().addClass("highcharts-axis-line").attr(t.styledMode?{}:{stroke:i.lineColor,"stroke-width":i.lineWidth,zIndex:7}).clip(this.clippable&&e<=0?t.plotClipOuter:void 0).add(this.axisGroup))}getTitlePosition(t){let e=this.horiz,i=this.left,s=this.top,o=this.len,r=this.options.title,a=e?i:s,n=this.opposite,h=this.offset,l=r.x,d=r.y,c=this.chart.renderer.fontMetrics(t),p=t?Math.max(t.getBBox(!1,0).height-c.h-1,0):0,g={low:a+(e?0:o),middle:a+o/2,high:a+(e?o:0)}[r.align],u=(e?s+this.height:i)+(e?1:-1)*(n?-1:1)*(this.axisTitleMargin||0)+[-p,p,c.f,-p][this.side],f={x:e?g+l:u+(n?this.width:0)+h+l,y:e?u+d-(n?this.height:0)+h:g+d};return q(this,"afterGetTitlePosition",{titlePosition:f}),f}renderMinorTick(t,e){let i=this.minorTicks;i[t]||(i[t]=new eU(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)}renderTick(t,e,i){let s=this.isLinked,o=this.ticks;(!s||t>=this.min&&t<=this.max||this.grid?.isColumn)&&(o[t]||(o[t]=new eU(this,t)),i&&o[t].isNew&&o[t].render(e,!0,-1),o[t].render(e))}render(){let t,e,i=this,s=i.chart,o=i.logarithmic,r=s.renderer,a=i.options,n=i.isLinked,h=i.tickPositions,l=i.axisTitle,d=i.ticks,c=i.minorTicks,p=i.alternateBands,g=a.stackLabels,u=a.alternateGridColor,f=a.crossing,m=i.tickmarkOffset,x=i.axisLine,y=i.showAxis,b=eZ(r.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[d,c,p].forEach(function(t){tu(t,function(t){t.isActive=!1})}),tn(f)){let t=this.isXAxis?s.yAxis[0]:s.xAxis[0],e=[1,-1,-1,1][this.side];if(t){let s=t.toPixels(f,!0);i.horiz&&(s=t.len-s),i.offset=e*s}}if(i.hasData()||n){let r=i.chart.hasRendered&&i.old&&tn(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(t){i.renderMinorTick(t,r)}),h.length&&(h.forEach(function(t,e){i.renderTick(t,e,r)}),m&&(0===i.min||i.single)&&(d[-1]||(d[-1]=new eU(i,-1,null,!0)),d[-1].render(-1))),u&&h.forEach(function(r,a){e=void 0!==h[a+1]?h[a+1]+m:i.max-m,a%2==0&&r<i.max&&e<=i.max+(s.polar?-m:m)&&(p[r]||(p[r]=new E.PlotLineOrBand(i,{})),t=r+m,p[r].options={from:o?o.lin2log(t):t,to:o?o.lin2log(e):e,color:u,className:"highcharts-alternate-grid"},p[r].render(),p[r].isActive=!0)}),i._addedPlotLB||(i._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(t){i.addPlotBandOrLine(t)}))}[d,c,p].forEach(function(t){let e=[],i=b.duration;tu(t,function(t,i){t.isActive||(t.render(i,!1,0),t.isActive=!1,e.push(i))}),tS(function(){let i=e.length;for(;i--;)t[e[i]]&&!t[e[i]].isActive&&(t[e[i]].destroy(),delete t[e[i]])},t!==p&&s.hasRendered&&i?i:0)}),x&&(x[x.isPlaced?"animate":"attr"]({d:this.getLinePath(x.strokeWidth())}),x.isPlaced=!0,x[y?"show":"hide"](y)),l&&y&&(l[l.isNew?"attr":"animate"](i.getTitlePosition(l)),l.isNew=!1),g?.enabled&&i.stacking&&i.stacking.renderStackTotals(),this.old||this.saveOld(),i.isDirty=!1,q(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})}saveOld(){this.old=tn(this.min)?{len:this.len,max:this.max,min:this.min,names:this.names.slice(),transA:this.transA,userMax:this.userMax,userMin:this.userMin}:void 0}getKeepProps(){return this.keepProps||e2.keepProps}destroy(t){let e=this,i=e.plotLinesAndBands,s=this.eventOptions;if(q(this,"destroy",{keepEvents:t}),t||tw(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){$(t)}),i){let t=i.length;for(;t--;)i[t].destroy()}for(let t in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[t]=e.plotLinesAndBandsGroups[t].destroy();tu(e,function(t,i){-1===e.getKeepProps().indexOf(i)&&delete e[i]}),this.eventOptions=s}drawCrosshair(t,e){let i,s,o,r,a=this.crosshair,n=a?.snap??!0,h=this.chart,l=this.cross;if(q(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross?.e),a&&!1!==(j(e)||!n)){if(clearTimeout(this.crossShowTimer),n?j(e)&&(s=tx("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):s=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),j(s)&&(r={value:e&&(this.isXAxis?e.x:tx(e.stackY,e.y)),translatedValue:s},h.polar&&_(r,{isCrosshair:!0,chartX:t?.chartX,chartY:t?.chartY,point:e}),i=this.getPlotLinePath(r)||null),!j(i))return void this.hideCrosshair();o=this.categories&&!this.isRadial,this.crossShowTimer=tS(()=>{let e=this.cross;e||(this.cross=e=h.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(o?"category ":"thin ")+(a.className||"")).attr({zIndex:tx(a.zIndex,2)}).clip(!1===a.clip?void 0:h.plotClipInner).add(),!h.styledMode&&(e.attr({stroke:a.color||(o?eq("var(--highcharts-highlight-color-20)").setOpacity(.25).get():"var(--highcharts-neutral-color-20)"),"stroke-width":tx(a.width,1)}).css({"pointer-events":"none"}),a.dashStyle&&e.attr({dashstyle:a.dashStyle}))),e.show().animate({d:i},eZ(a?.animation)),o&&!a.width&&e.attr({"stroke-width":this.transA}),this.cross&&(this.cross.e=t)},(!l||"hidden"===l.attr("visibility"))&&a.showDelay||0)}else this.hideCrosshair();q(this,"afterDrawCrosshair",{e:t,point:e})}hideCrosshair(){clearTimeout(this.crossShowTimer),this.cross&&this.cross.hide(),q(this,"afterHideCrosshair")}update(t,e){let i=this.chart;t=tp(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,tx(e,!0)&&i.redraw()}remove(t){let e=this.chart,i=this.coll,s=this.series,o=s.length;for(;o--;)s[o]&&s[o].remove(!1);Z(e.axes,this),Z(e[i]||[],this),e.orderItems(i),this.destroy(),e.isDirtyBox=!0,tx(t,!0)&&e.redraw()}setTitle(t,e){this.update({title:t},e)}setCategories(t,e){this.update({categories:t},e)}}e2.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],!function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function i(){if("datetime"!==this.type){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new s(this))}t.compose=function(t){return t.keepProps.includes("dateTime")||(t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,N(t,"afterSetType",i)),t};class s{constructor(t){this.axis=t}normalizeTimeTickInterval(t,e){let i=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],s=i[i.length-1],o=tE[s[0]],r=s[1],a,n;for(a=0;a<i.length;a++)if(o=tE[(s=i[a])[0]],r=s[1],i[a+1]){let e=(o*r[r.length-1]+tE[i[a+1][0]])/2;if(t<=e){n=e/t;break}}o===tE.year&&t<5*o&&(r=[1,2,5]);let h=tg(t/o,r,"year"===s[0]?Math.max(tt(t/o),1):1);return{unitRange:o,count:h,unitName:s[0],match:n}}getXDateFormat(t,e){let{axis:i}=this,s=i.chart.time;return i.closestPointRange?s.getDateFormat(i.closestPointRange,t,i.options.startOfWeek,e)||s.resolveDTLFormat(e.year).main:s.resolveDTLFormat(e.day).main}}t.Additions=s}(x||(x={}));let e5=x;!function(t){function e(){"logarithmic"!==this.type?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new s(this))}function i(){let t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}t.compose=function(t){return t.keepProps.includes("logarithmic")||(t.keepProps.push("logarithmic"),N(t,"afterSetType",e),N(t,"afterInit",i)),t};class s{constructor(t){this.axis=t}getLogTickPositions(t,e,i,s){let o=this.axis,r=o.len,a=o.options,n=[];if(s||(this.minorAutoInterval=void 0),t>=.5)t=Math.round(t),n=o.getLinearTickPositions(t,e,i);else if(t>=.08){let o,r,a,h,l,d,c,p=Math.floor(e);for(o=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],r=p;r<i+1&&!c;r++)for(a=0,h=o.length;a<h&&!c;a++)(l=this.log2lin(this.lin2log(r)*o[a]))>e&&(!s||d<=i)&&void 0!==d&&n.push(d),d>i&&(c=!0),d=l}else{let h=this.lin2log(e),l=this.lin2log(i),d=s?o.getMinorTickInterval():a.tickInterval,c=a.tickPixelInterval/(s?5:1),p=s?r/o.tickPositions.length:r;t=tg(t=tx("auto"===d?null:d,this.minorAutoInterval,(l-h)*c/(p||1))),n=o.getLinearTickPositions(t,h,l).map(this.log2lin),s||(this.minorAutoInterval=t/5)}return s||(o.tickInterval=t),n}lin2log(t){return Math.pow(10,t)}log2lin(t){return Math.log(t)/Math.LN10}}t.Additions=s}(y||(y={}));let e3=y;!function(t){let e;function i(t){return this.addPlotBandOrLine(t,"plotBands")}function s(t,i){let s=this.userOptions,o=new e(this,t);if(this.visible&&(o=o.render()),o){if(this._addedPlotLB||(this._addedPlotLB=!0,(s.plotLines||[]).concat(s.plotBands||[]).forEach(t=>{this.addPlotBandOrLine(t)})),i){let e=s[i]||[];e.push(t),s[i]=e}this.plotLinesAndBands.push(o)}return o}function o(t){return this.addPlotBandOrLine(t,"plotLines")}function r(t,e,i){i=i||this.options;let s=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),o=[],r=this.horiz,a=!tn(this.min)||!tn(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,n=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),h,l=1,d;if(n&&s)for(a&&(d=n.toString()===s.toString(),l=0),h=0;h<n.length;h+=2){let t=n[h],e=n[h+1],i=s[h],a=s[h+1];("M"===t[0]||"L"===t[0])&&("M"===e[0]||"L"===e[0])&&("M"===i[0]||"L"===i[0])&&("M"===a[0]||"L"===a[0])&&(r&&i[1]===t[1]?(i[1]+=l,a[1]+=l):r||i[2]!==t[2]||(i[2]+=l,a[2]+=l),o.push(["M",t[1],t[2]],["L",e[1],e[2]],["L",a[1],a[2]],["L",i[1],i[2]],["Z"])),o.isFlat=d}return o}function a(t){this.removePlotBandOrLine(t)}function n(t){let e=this.plotLinesAndBands,i=this.options,s=this.userOptions;if(e){let o=e.length;for(;o--;)e[o].id===t&&e[o].destroy();[i.plotLines||[],s.plotLines||[],i.plotBands||[],s.plotBands||[]].forEach(function(e){for(o=e.length;o--;)e[o]?.id===t&&Z(e,e[o])})}}function h(t){this.removePlotBandOrLine(t)}t.compose=function(t,l){let d=l.prototype;return d.addPlotBand||(e=t,_(d,{addPlotBand:i,addPlotLine:o,addPlotBandOrLine:s,getPlotBandPath:r,removePlotBand:a,removePlotLine:h,removePlotBandOrLine:n})),l}}(b||(b={}));let e6=b;class e9{static compose(t,e){return N(t,"afterInit",function(){this.labelCollectors.push(()=>{let t=[];for(let e of this.axes)for(let{label:i,options:s}of e.plotLinesAndBands)i&&!s?.label?.allowOverlap&&t.push(i);return t})}),e6.compose(e9,e)}constructor(t,e){this.axis=t,this.options=e,this.id=e.id}render(){q(this,"render");let{axis:t,options:e}=this,{chart:i,horiz:s,logarithmic:o}=t,{color:r,events:a,zIndex:n=0}=e,{renderer:h,time:l}=t.chart,d={},c=l.parse(e.to),p=l.parse(e.from),g=l.parse(e.value),u=e.borderWidth,f=e.label,{label:m,svgElem:x}=this,y=[],b,v=j(p)&&j(c),k=j(g),w=!x,M={class:"highcharts-plot-"+(v?"band ":"line ")+(e.className||"")},C=v?"bands":"lines";if(!i.styledMode&&(k?(M.stroke=r||"var(--highcharts-neutral-color-40)",M["stroke-width"]=tx(e.width,1),e.dashStyle&&(M.dashstyle=e.dashStyle)):v&&(M.fill=r||"var(--highcharts-highlight-color-10)",u&&(M.stroke=e.borderColor,M["stroke-width"]=u))),d.zIndex=n,C+="-"+n,(b=t.plotLinesAndBandsGroups[C])||(t.plotLinesAndBandsGroups[C]=b=h.g("plot-"+C).clip(i.plotClipOuter).attr(d).add()),x||(this.svgElem=x=h.path().attr(M).add(b)),j(g))y=t.getPlotLinePath({value:o?.log2lin(g)??g,lineWidth:x.strokeWidth(),acrossPanes:e.acrossPanes});else{if(!(j(p)&&j(c)))return;y=t.getPlotBandPath(o?.log2lin(p)??p,o?.log2lin(c)??c,e)}return!this.eventsAdded&&a&&(tu(a,(t,e)=>{x?.on(e,t=>{a[e].apply(this,[t,this])})}),this.eventsAdded=!0),(w||!x.d)&&y?.length?x.attr({d:y}):x&&(y?(x.show(),x.animate({d:y})):x.d&&(x.hide(),m&&(this.label=m=m.destroy()))),f&&(j(f.text)||j(f.formatter))&&y?.length&&t.width>0&&t.height>0&&!y.isFlat?(f=tp({align:s&&v?"center":void 0,x:s?!v&&4:10,verticalAlign:!s&&v?"middle":void 0,y:s?v?16:10:v?6:-4,rotation:s&&!v?90:0,...v?{inside:!0}:{}},f),this.renderLabel(f,y,v,n)):m&&m.hide(),this}renderLabel(t,e,i,s){let o=this.axis,r=o.chart.renderer,a=t.inside,n=this.label;n||(this.label=n=r.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||""),zIndex:s}),o.chart.styledMode||n.css(tp({color:o.chart.options.title?.style?.color,fontSize:"0.8em",textOverflow:i&&!a?"":"ellipsis"},t.style)),n.add());let h=e.xBounds||[e[0][1],e[1][1],i?e[2][1]:e[0][1]],l=e.yBounds||[e[0][2],e[1][2],i?e[2][2]:e[0][2]],d=z(h),c=z(l),p=R(h)-d;n.align(t,!1,{x:d,y:c,width:p,height:R(l)-c}),n.alignAttr.y-=r.fontMetrics(n).b,(!n.alignValue||"left"===n.alignValue||j(a))&&n.css({width:(t.style?.width||(i&&a?p:90===n.rotation?o.height-(n.alignAttr.y-o.top):(t.clip?o.width+o.left:o.chart.chartWidth)-n.alignAttr.x))+"px"}),n.show(!0)}getLabelText(t){return j(t.formatter)?t.formatter.call(this,this):t.text}destroy(){Z(this.axis.plotLinesAndBands,this),delete this.axis,$(this)}}let{animObject:e4}=tq,{format:e8}=ee,{composed:e7,dateFormats:it,doc:ie,isSafari:ii}=E,{distribute:is}=ei,io=t=>{clearTimeout(t.hideTimer),clearTimeout(t.showTimer)};class ir{constructor(t,e,i){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=t,this.init(t,e),this.pointer=i}bodyFormatter(t){return t.map(t=>{let e=t.series.tooltipOptions,i=t.formatPrefix||"point";return(e[i+"Formatter"]||t.tooltipFormatter).call(t,e[i+"Format"]||"",t)})}cleanSplit(t){this.chart.series.forEach(function(e){let i=e?.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})}defaultFormatter(t){let e,i=this.points||tM(this);return(e=(e=[t.headerFooterFormatter(i[0])]).concat(t.bodyFormatter(i))).push(t.headerFooterFormatter(i[0],!0)),e}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),V(this.container)),to(this.hideTimer),io(this)}getAnchor(t,e){let i,{chart:s,pointer:o}=this,r=s.inverted,a=s.plotTop,n=s.plotLeft;if(t=tM(t),t[0].series?.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)void 0===e.chartX&&(e=o.normalize(e)),i=[e.chartX-n,e.chartY-a];else if(t[0].tooltipPos)i=t[0].tooltipPos;else{let s=0,o=0;t.forEach(function(t){let e=t.pos(!0);e&&(s+=e[0],o+=e[1])}),s/=t.length,o/=t.length,this.shared&&t.length>1&&e&&(r?s=e.chartX:o=e.chartY),i=[s-n,o-a]}let h={point:t[0],ret:i};return q(this,"getAnchor",h),h.ret.map(Math.round)}getClassName(t,e,i){let s=this.options,o=t.series,r=o.options;return[s.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+tx(t.colorIndex,o.colorIndex),r?.className].filter(th).join(" ")}getLabel({anchorX:t,anchorY:e}={anchorX:0,anchorY:0}){let i=this,s=this.chart.styledMode,o=this.options,r=this.split&&this.allowShared,a=this.container,n=this.chart.renderer;if(this.label){let t=!this.label.hasClass("highcharts-label");(!r&&t||r&&!t)&&this.destroy()}if(!this.label){if(this.outside){let t=this.chart,e=t.options.chart.style;this.container=a=E.doc.createElement("div"),a.className="highcharts-container highcharts-tooltip-container "+(t.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),a.dataset.highchartsChart=t.index.toString(),Y(a,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(o.style.zIndex||0,(e?.zIndex||0)+3)}),this.renderer=n=new eH(a,0,0,e,void 0,void 0,n.styledMode)}if(r?this.label=n.g("tooltip"):(this.label=n.label("",t,e,o.shape||"callout",void 0,void 0,o.useHTML,void 0,"tooltip").attr({padding:o.padding,r:o.borderRadius}),s||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth??+!o.fixed}).css(o.style).css({pointerEvents:o.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),i.outside){let t=this.label;[t.xSetter,t.ySetter].forEach((e,s)=>{t[s?"ySetter":"xSetter"]=o=>{e.call(t,i.distance),t[s?"y":"x"]=o,a&&(a.style[s?"top":"left"]=`${o}px`)}})}this.label.attr({zIndex:8}).shadow(o.shadow??!o.fixed).add()}return a&&!a.parentElement&&E.doc.body.appendChild(a),this.label}getPlayingField(){let{body:t,documentElement:e}=ie,{chart:i,distance:s,outside:o}=this;return{width:o?Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)-2*s-2:i.chartWidth,height:o?Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight):i.chartHeight}}getPosition(t,e,i){let{distance:s,chart:o,outside:r,pointer:a}=this,{inverted:n,plotLeft:h,plotTop:l,polar:d}=o,{plotX:c=0,plotY:p=0}=i,g={},u=n&&i.h||0,{height:f,width:m}=this.getPlayingField(),x=a.getChartPosition(),y=i=>{let a="x"===i;return[i,a?m:f,a?t:e].concat(r?[a?t*x.scaleX:e*x.scaleY,a?x.left-s+(c+h)*x.scaleX:x.top-s+(p+l)*x.scaleY,0,a?m:f]:[a?t:e,a?c+h:p+l,a?h:l,a?h+o.plotWidth:l+o.plotHeight])},b=y("y"),v=y("x"),k,w=!!i.negative;!d&&o.hoverSeries?.yAxis?.reversed&&(w=!w);let M=!this.followPointer&&tx(i.ttBelow,!d&&!n===w),C=function(t,e,i,o,a,n,h){let l=r?"y"===t?s*x.scaleY:s*x.scaleX:s,d=(i-o)/2,c=o<a-s,p=a+s+o<e,f=a-l-i+d,m=a+l-d;if(M&&p)g[t]=m;else if(!M&&c)g[t]=f;else if(c)g[t]=Math.min(h-o,f-u<0?f:f-u);else{if(!p)return g[t]=0,!1;g[t]=Math.max(n,m+u+i>e?m:m+u)}},S=function(t,e,i,o,r){if(r<s||r>e-s)return!1;r<i/2?g[t]=1:r>e-o/2?g[t]=e-o-2:g[t]=r-i/2},T=function(t){[b,v]=[v,b],k=t},A=()=>{!1!==C.apply(0,b)?!1!==S.apply(0,v)||k||(T(!0),A()):k?g.x=g.y=0:(T(!0),A())};return(n&&!d||this.len>1)&&T(),A(),r&&(g.x-=x.left,g.y-=x.top),g}getFixedPosition(t,e,i){let s=i.series,{chart:o,options:r,split:a}=this,n=r.position,h=n.relativeTo,l=r.shared||s?.yAxis?.isRadial&&("pane"===h||!h)?"plotBox":h,d="chart"===l?o.renderer:o[l]||o.getClipBox(s,!0);return{x:d.x+(d.width-t)*J(n.align)+n.x,y:d.y+(d.height-e)*J(n.verticalAlign)+(!a&&n.y||0)}}hide(t){let e=this;io(this),t=tx(t,this.options.hideDelay),this.isHidden||(this.hideTimer=tS(function(){let i=e.getLabel();e.getLabel().animate({opacity:0},{duration:t?150:t,complete:()=>{i.hide(),e.container&&e.container.remove()}}),e.isHidden=!0},t))}init(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=tx(e.outside,!!(t.scrollablePixelsX||t.scrollablePixelsY))}shouldStickOnContact(t){return!!(!this.followPointer&&this.options.stickOnContact&&(!t||this.pointer.inClass(t.target,"highcharts-tooltip")))}move(t,e,i,s){let{followPointer:o,options:r}=this,a=e4(!o&&!this.isHidden&&!r.fixed&&r.animation),n=o||(this.len||0)>1,h={x:t,y:e};n?h.anchorX=h.anchorY=NaN:(h.anchorX=i,h.anchorY=s),a.step=()=>this.drawTracker(),this.getLabel().animate(h,a)}refresh(t,e){let i=this,{chart:s,options:o,pointer:r,shared:a}=this,n=tM(t),h=n[0],l=o.format,d=o.formatter||i.defaultFormatter,c=s.styledMode,p=i.allowShared;if(!o.enabled||!h.series)return;io(this),i.allowShared=!(!tl(t)&&t.series&&t.series.noSharedTooltip),p=p&&!i.allowShared,i.followPointer=!i.split&&h.series.tooltipOptions.followPointer;let g=i.getAnchor(t,e),u=g[0],f=g[1];a&&i.allowShared&&(r.applyInactiveState(n),n.forEach(t=>t.setState("hover")),h.points=n),this.len=n.length;let m=th(l)?e8(l,h,s):d.call(h,i,h);h.points=void 0;let x=h.series;this.distance=tx(x.tooltipOptions.distance,16),!1===m?this.hide():this.showTimer=tS(()=>{if(i.split&&i.allowShared)i.renderSplit(m,n);else{let t=u,a=f;if(e&&r.isDirectTouch&&(t=e.chartX-s.plotLeft,a=e.chartY-s.plotTop),!(s.polar||!1===x.options.clip||n.some(e=>r.isDirectTouch||e.series.shouldShowTooltip(t,a))))return void i.hide();{let t=i.getLabel(p&&i.tt||{});(!o.style.width||c)&&t.css({width:(this.outside?this.getPlayingField():s.spacingBox).width-2*o.padding+"px"}),t.attr({class:i.getClassName(h),text:tl(m)?m.join(""):m}),this.outside&&t.attr({x:H(t.x||0,0,this.getPlayingField().width-(t.width||0)-1)}),c||t.attr({stroke:o.borderColor||h.color||x.color||"var(--highcharts-neutral-color-60)"}),i.updatePosition({plotX:u,plotY:f,negative:h.negative,ttBelow:h.ttBelow,series:x,h:g[2]||0})}}i.isHidden&&i.label&&i.label.attr({opacity:1}).show(),i.isHidden=!1},i.isHidden&&o.showDelay||0),q(this,"refresh")}renderSplit(t,e){let i=this,{chart:s,chart:{chartWidth:o,chartHeight:r,plotHeight:a,plotLeft:n,plotTop:h,scrollablePixelsY:l=0,scrollablePixelsX:d,styledMode:c},distance:p,options:g,options:{fixed:u,position:f,positioner:m},pointer:x}=i,{scrollLeft:y=0,scrollTop:b=0}=s.scrollablePlotArea?.scrollingContainer||{},v=i.outside&&"number"!=typeof d?ie.documentElement.getBoundingClientRect():{left:y,right:y+o,top:b,bottom:b+r},k=i.getLabel(),w=this.renderer||s.renderer,M=!!s.xAxis[0]?.opposite,{left:C,top:S}=x.getChartPosition(),T=m||u,A=h+b,P=0,L=a-l,O=function(t,e,s,o,r=[0,0],a=!0){let n,h;if(s.isHeader)h=M?0:L,n=H(r[0]-t/2,v.left,v.right-t-(i.outside?C:0));else if(u&&s){let o=i.getFixedPosition(t,e,s);n=o.x,h=o.y-A}else h=r[1]-A,n=H(n=a?r[0]-t-p:r[0]+p,a?n:v.left,v.right);return{x:n,y:h}};th(t)&&(t=[!1,t]);let E=t.slice(0,e.length+1).reduce(function(t,s,o){if(!1!==s&&""!==s){let r=e[o-1]||{isHeader:!0,plotX:e[0].plotX,plotY:a,series:{}},l=r.isHeader,d=l?i:r.series,f=d.tt=function(t,e,s){let o=t,{isHeader:r,series:a}=e,n=a.tooltipOptions||g,h=r?tp(n,n.header):n;if(!o){let t={padding:n.padding,r:n.borderRadius};c||(t.fill=h.backgroundColor,t["stroke-width"]=h.borderWidth??+!n.fixed),o=w.label("",0,0,h.shape||(u&&!r?"rect":"callout"),void 0,void 0,n.useHTML).addClass(i.getClassName(e,!0,r)).attr(t).add(k)}return o.isActive=!0,c||o.css(h.style),o.attr({text:s}),c||o.attr({stroke:h.borderColor||e.color||a.color||"var(--highcharts-neutral-color-80)"}),o}(d.tt,r,s.toString()),x=f.getBBox(),y=x.width+f.strokeWidth();l&&(P=x.height+g.header.distance,L+=P,M&&(A-=P));let{anchorX:b,anchorY:C}=function(t){let e,i,{isHeader:s,plotX:o=0,plotY:r=0,series:l}=t;if(s)e=Math.max(n+o,n),i=h+a/2;else{let{xAxis:t,yAxis:s}=l;e=t.pos+H(o,-p,t.len+p),l.shouldShowTooltip(0,s.pos-h+r,{ignoreX:!0})&&(i=s.pos+r)}return{anchorX:e=H(e,v.left-p,v.right+p),anchorY:i}}(r);if("number"==typeof C){let e=x.height+1,s=(m||O).call(i,y,e,r,i,[b,C]);t.push({align:T?0:void 0,anchorX:b,anchorY:C,boxWidth:y,point:r,rank:tx(s.rank,+!!l),size:e,target:s.y,tt:f,x:s.x})}else f.isActive=!1}return t},[]);!T&&E.some(t=>{let{outside:e}=i,s=(e?C:0)+t.anchorX;return s<v.left&&s+t.boxWidth<v.right||s<C-v.left+t.boxWidth&&v.right-s>s})&&(E=E.map(t=>{let{x:e,y:i}=O.call(this,t.boxWidth,t.size,t.point,void 0,[t.anchorX,t.anchorY],!1);return _(t,{target:i,x:e})})),i.cleanSplit(),is(E,L);let I={left:C,right:C};E.forEach(function(t){let{x:e,boxWidth:s,isHeader:o}=t;!o&&(i.outside&&C+e<I.left&&(I.left=C+e),i.outside&&I.left+s>I.right&&(I.right=C+e))}),E.forEach(function(t){let{x:e,anchorX:s,anchorY:o,pos:r,point:{isHeader:a}}=t,n={visibility:void 0===r?"hidden":"inherit",x:e,y:(r||0)+A+(u&&f.y||0),anchorX:s,anchorY:o};if(i.outside&&e<s){let t=C-I.left;t>0&&(n.x=a?(I.right-I.left)/2:e+t,n.anchorX=s+t)}t.tt.attr(n)});let{container:D,outside:B,renderer:N}=i;if(B&&D&&N){let{width:t,height:e,x:i,y:s}=k.getBBox();N.setSize(t+i,e+s,!1),D.style.left=I.left+"px",D.style.top=S+"px"}ii&&k.attr({opacity:1===k.opacity?.999:1})}drawTracker(){let t=this;if(!this.shouldStickOnContact()){t.tracker&&(t.tracker=t.tracker.destroy());return}let e=t.chart,i=t.label,s=t.shared?e.hoverPoints:e.hoverPoint;if(!i||!s)return;let o={x:0,y:0,width:0,height:0},r=this.getAnchor(s),a=i.getBBox();r[0]+=e.plotLeft-(i.translateX||0),r[1]+=e.plotTop-(i.translateY||0),o.x=Math.min(0,r[0]),o.y=Math.min(0,r[1]),o.width=r[0]<0?Math.max(Math.abs(r[0]),a.width-r[0]):Math.max(Math.abs(r[0]),a.width),o.height=r[1]<0?Math.max(Math.abs(r[1]),a.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),a.height),t.tracker?t.tracker.attr(o):(t.tracker=i.renderer.rect(o).addClass("highcharts-tracker").add(i),N(t.tracker.element,"mouseenter",()=>io(t)),e.styledMode||t.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(t){return t.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}headerFooterFormatter(t,e){let i=t.series,s=i.tooltipOptions,o=i.xAxis,r=o?.dateTime,a={isFooter:e,point:t},n=s.xDateFormat||"",h=s[e?"footerFormat":"headerFormat"];return q(this,"headerFormatter",a,function(e){if(r&&!n&&tn(t.key)&&(n=r.getXDateFormat(t.key,s.dateTimeLabelFormats)),r&&n){if(tc(n)){let t=n;it[0]=e=>i.chart.time.dateFormat(t,e),n="%0"}(t.tooltipDateKeys||["key"]).forEach(t=>{h=h.replace(RegExp("point\\."+t+"([ \\)}])"),`(point.${t}:${n})$1`)})}i.chart.styledMode&&(h=this.styledModeFormat(h)),e.text=e8(h,t,this.chart)}),a.text||""}update(t){this.destroy(),this.init(this.chart,tp(!0,this.options,t))}updatePosition(t){let{chart:e,container:i,distance:s,options:o,pointer:r,renderer:a}=this,{height:n=0,width:h=0}=this.getLabel(),{fixed:l,positioner:d}=o,{left:c,top:p,scaleX:g,scaleY:u}=r.getChartPosition(),f=(d||l&&this.getFixedPosition||this.getPosition).call(this,h,n,t,this),m=E.doc,x=(t.plotX||0)+e.plotLeft,y=(t.plotY||0)+e.plotTop,b;if(a&&i){if(f.x+=c,f.y+=p,d||l){let{scrollLeft:t=0,scrollTop:i=0}=e.scrollablePlotArea?.scrollingContainer||{};f.x+=t,f.y+=i}b=(o.borderWidth??+!l)+2*s+2,a.setSize(H(h+b,0,m.documentElement.clientWidth)-1,n+b,!1),(1!==g||1!==u)&&(Y(i,{transform:`scale(${g}, ${u})`}),x*=g,y*=u),x+=c-f.x,y+=p-f.y}this.move(Math.round(f.x),Math.round(f.y||0),x,y)}}(n=ir||(ir={})).compose=function(t){tb(e7,"Core.Tooltip")&&N(t,"afterInit",function(){let t=this.chart;t.options.tooltip&&(t.tooltip=new n(t,t.options.tooltip,this))})};let ia=ir,{animObject:ih}=tq,{defaultOptions:il}=tX,{format:id}=ee;class ic{constructor(t,e,i){this.formatPrefix="point",this.visible=!0,this.point=this,this.series=t,this.applyOptions(e,i),this.id??(this.id=tI()),this.resolveColor(),this.dataLabelOnNull??(this.dataLabelOnNull=t.options.nullInteraction),t.chart.pointCount++,this.category=t.xAxis?.categories?.[this.x]??this.x,this.key=this.name??this.category,q(this,"afterInit")}applyOptions(t,e,i){let s=this.series,o=s.options.pointValKey||s.pointValKey;return _(this,t=ic.prototype.optionsToObject.call(this,t)),this.options?this.options=s.chart.options.chart.allowMutatingData?_(this.options,t):tp(this.options,t):this.options=t,o&&(this.y=ic.prototype.getNestedProperty.call(this,o)),tn(e)&&(this.x=e),i||(this.selected&&(this.state="select"),t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point"),this}getOrigin({x:t=0,y:e=0},i={}){let{graphic:s,series:o}=this;if(o.chart.inverted&&s?.parentGroup&&!s?.parentGroup?.rotation){let i=this.pos(!1,t,e);i&&(t=i[0],e=i[1])}t-=(i.width||0)/2,e-=(i.height||0)/2;let r={x:t};return o.is("column")||this.plotHigh||(r.y=e),r}destroy(){if(!this.condemned){let t=this,e=t.series,i=e.chart,s=i.hoverPoints,{duration:o}=ih(t.series.chart.renderer.globalAnimation),r=()=>{for(let e in(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(tw(t),t.destroyElements()),t)delete t[e]};t.legendItem&&i.legend.destroyItem(t),s&&(t.setState(),Z(s,t),s.length||(i.hoverPoints=void 0)),t===i.hoverPoint&&t.onMouseOut(),o&&e.condemnedPoints?(e.condemnedPoints.push(this),this.graphic?.addClass("highcharts-point-condemned"),setTimeout(r,o)):r(),i.pointCount--}this.condemned=!0}destroyElements(t={graphic:1,dataLabel:1}){let e,i,s=this,o=[];for(t.graphic&&o.push("graphic","connector"),t.dataLabel&&o.push("dataLabel","dataLabelPath","dataLabelUpper"),i=o.length;i--;)s[e=o[i]]&&(s[e]=s[e].destroy());["graphic","dataLabel"].forEach(e=>{let i=`${e}s`;t[e]&&s[i]&&(s[i].forEach(t=>{t?.element&&t.destroy()}),delete s[i])})}firePointEvent(t,e,i){let s=this,o=this.series.options;s.manageEvent(t),"click"===t&&o.allowPointSelect&&(i=function(t){!s.condemned&&s.select&&s.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),q(s,t,e,i)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative&&!1!==this.series.options.negativeColor?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone?.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getNestedProperty(t){if(t)return 0===t.indexOf("custom.")?te(t,this.options):this[t]}getZone(){let t=this.series,e=t.zones,i=t.zoneAxis||"y",s,o=0;for(s=e[0];this[i]>=s.value;)s=e[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),s?.color&&!this.options.color?this.color=s.color:this.color=this.nonZonedColor,s}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}isValid(){return(tn(this.x)||this.x instanceof Date)&&tn(this.y)}optionsToObject(t){let e=this.series,i=e.options.keys,s=i||e.pointArrayMap||["y"],o=s.length,r={},a,n=0,h=0;if(tn(t)||null===t)r[s[0]]=t;else if(tl(t))for(!i&&t.length>o&&("string"==(a=typeof t[0])?e.xAxis?.dateTime?r.x=e.chart.time.parse(t[0]):r[e.tupleKey||"name"]=t[0]:"number"===a&&(r.x=t[0]),n++);h<o;)i&&void 0===t[n]||(r[s[h]]=t[n]),n++,h++;else"object"==typeof t&&(r=t,t.dataLabels&&(e.hasDataLabels=()=>!0),t.marker&&(e._hasPointMarkers=!0));return(i||!e.options.data)&&Object.keys(r).forEach(t=>{t.indexOf(".")>0&&(ic.prototype.setNestedProperty(r,r[t],t),delete r[t])}),r}pos(t,e=this.plotX,i=this.plotY){let{series:s}=this,{chart:o,xAxis:r,yAxis:a}=s||{},n=0,h=0;if(o&&tn(e)&&tn(i))return t&&(n=r?r.pos:o.plotLeft,h=a?a.pos:o.plotTop),o.inverted&&r&&a?[a.len-i+h,r.len-e+n]:[e+n,i+h]}resolveColor(){let{options:t,series:e}=this,i=e.chart,s=i.options.chart,o=i.styledMode,r,a=s.colorCount,n;if(delete this.nonZonedColor,e.options.colorByPoint){if(!o){let t=e.options.colors||i.options.colors;r=t?.[e.colorCounter],a=t?.length}n=e.colorCounter,e.colorCounter++,e.colorCounter===a&&(e.colorCounter=0)}else o||(r=e.color),n=e.colorIndex;this.colorIndex=t.colorIndex??n,this.color=t.color??r}setNestedProperty(t,e,i){return i.split(".").reduce(function(t,i,s,o){let r=o.length-1===s;return t[i]=r?e:tc(t[i],!0)?t[i]:{},t[i]},t),t}shouldDraw(){return!this.isNull}tooltipFormatter(t){let{chart:e,pointArrayMap:i=["y"],tooltipOptions:s}=this.series,{valueDecimals:o="",valuePrefix:r="",valueSuffix:a=""}=s;return e.styledMode&&(t=e.tooltip?.styledModeFormat(t)||t),i.forEach(e=>{e="{point."+e,(r||a)&&(t=t.replace(RegExp(e+"}","g"),r+e+"}"+a)),t=t.replace(RegExp(e+"}","g"),e+":,."+o+"f}")}),id(t,this,e)}update(t,e=!0,i,s){let o=this,r=o.series,a=o.graphic,n=r.chart,h=r.options,l=h.data;function d(){o.applyOptions(t);let s=a&&o.hasMockGraphic,d=o.index,c=null===o.y?!s:s;a&&c&&(o.graphic=a.destroy(),delete o.hasMockGraphic),tc(t,!0)&&(a?.element&&t?.marker&&void 0!==t.marker.symbol&&(o.graphic=a.destroy()),t?.dataLabels&&o.dataLabel&&(o.dataLabel=o.dataLabel.destroy()));let p=o.optionsToObject(t);!r.hasProcessedDataTable&&(r.dataTable.setRow(p,d),l&&(l[d]=tc(l[d],!0)||tc(t,!0)?o.options:t??l[d])),r.isDirty=r.isDirtyData=!0,"x"in p&&(th(p.x)&&(r.xColumnIsNumbers=void 0),o.x=r.getX(p.x),o.isNull=o.isValid&&!o.isValid(),r.xColumn&&(r.xColumn[d]=o.x)),!r.fixedBox&&r.hasCartesianSeries&&(n.isDirtyBox=!0),"point"===h.legendType&&(n.isDirtyLegend=!0),e&&n.redraw(i)}!1===s?d():o.firePointEvent("update",{options:t},d)}remove(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)}select(t,e){let i=this,s=i.series,o=s.chart;t=tx(t,!i.selected),this.selectedStaging=t,i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,s.options.data&&(s.options.data[s.data.indexOf(i)]=i.options),i.setState(t&&"select"),e||o.getSelectedPoints().forEach(function(t){let e=t.series,s=e.options;t.selected&&t!==i&&(t.selected=t.options.selected=!1,s.data&&(s.data[e.data.indexOf(t)]=t.options),t.setState(o.hoverPoints&&s.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(t){let{inverted:e,pointer:i}=this.series.chart;i&&(t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e),i.runPointActions(t,this))}onMouseOut(){if(!this.series)return;let t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null}manageEvent(t){let e=tp(this.series.options.point,this.options),i=e.events?.[t];td(i)&&(!this.hcEvents?.[t]||this.hcEvents?.[t]?.map(t=>t.fn).indexOf(i)===-1)?(this.importedUserEvent?.(),this.importedUserEvent=N(this,t,i),this.hcEvents&&(this.hcEvents[t].userEvent=!0)):this.importedUserEvent&&!i&&this.hcEvents?.[t]&&this.hcEvents?.[t].userEvent&&(tw(this,t),delete this.hcEvents[t],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(t,e){let i=this.series,s=this.state,o=i.options.states[t||"normal"]||{},r=il.plotOptions[i.type].marker&&i.options.marker,a=r&&!1===r.enabled,n=r?.states?.[t||"normal"]||{},h=!1===n.enabled,l=this.marker||{},d=i.chart,c=r&&i.markerAttribs,p=i.halo,g,u,f,m=i.stateMarkerGraphic,x;if((t=t||"")===this.state&&!e||this.selected&&"select"!==t||!1===o.enabled||t&&(h||a&&!1===n.enabled)||t&&l.states&&l.states[t]&&!1===l.states[t].enabled)return;if(this.state=t,c&&(g=i.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(s&&this.graphic.removeClass("highcharts-point-"+s),t&&this.graphic.addClass("highcharts-point-"+t),!d.styledMode){u=i.pointAttribs(this,t),f=tx(d.options.chart.animation,o.animation);let e=u.opacity;i.options.inactiveOtherPoints&&tn(e)&&(this.dataLabels||[]).forEach(function(t){t&&!t.hasClass("highcharts-data-label-hidden")&&(t.animate({opacity:e},f),t.connector&&t.connector.animate({opacity:e},f))}),this.graphic.animate(u,f)}g&&this.graphic.animate(g,tx(d.options.chart.animation,n.animation,r.animation)),m&&m.hide()}else t&&n&&(x=l.symbol||i.symbol,m&&m.currentSymbol!==x&&(m=m.destroy()),g&&(m?m[e?"animate":"attr"]({x:g.x,y:g.y}):x&&(i.stateMarkerGraphic=m=d.renderer.symbol(x,g.x,g.y,g.width,g.height,tp(r,n)).add(i.markerGroup),m.currentSymbol=x)),!d.styledMode&&m&&"inactive"!==this.state&&m.attr(i.pointAttribs(this,t))),m&&(m[t&&this.isInside?"show":"hide"](),m.element.point=this,m.addClass(this.getClassName(),!0));let y=o.halo,b=this.graphic||m,v=b?.visibility||"inherit";y?.size&&b&&"hidden"!==v&&!this.isCluster?(p||(i.halo=p=d.renderer.path().add(b.parentGroup)),p.show()[e?"animate":"attr"]({d:this.haloPath(y.size)}),p.attr({class:"highcharts-halo highcharts-color-"+tx(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:v,zIndex:-1}),p.point=this,d.styledMode||p.attr(_({fill:this.color||i.color,"fill-opacity":y.opacity},t5.filterUserAttributes(y.attributes||{})))):p?.point?.haloPath&&!p.point.destroyed&&p.animate({d:p.point.haloPath(0)},null,p.hide),q(this,"afterSetState",{state:t})}haloPath(t){let e=this.pos();return e?this.series.chart.renderer.symbols.circle(F(e[0],1)-t,e[1]-t,2*t,2*t):[]}}let ip=ic,{charts:ig,composed:iu,isTouchDevice:im}=E,ix=(t,e)=>!j(e)||t[`${e}Key`];class iy{applyInactiveState(t=[]){let e=[];for(let i of(t.forEach(t=>{let i=t.series;e.push(i),i.linkedParent&&e.push(i.linkedParent),i.linkedSeries&&e.push.apply(e,i.linkedSeries),i.navigatorSeries&&e.push(i.navigatorSeries),i.boosted&&i.markerGroup&&e.push.apply(e,this.chart.series.filter(t=>t.markerGroup===i.markerGroup))}),this.chart.series)){let t=i.options;t.states?.inactive?.enabled!==!1&&(-1===e.indexOf(i)?i.setState("inactive",!0):t.inactiveOtherPoints&&i.setAllPointsToState("inactive"))}}destroy(){let t=this;this.eventsToUnbind.forEach(t=>t()),this.eventsToUnbind=[],!E.chartCount&&(iy.unbindDocumentMouseUp.forEach(t=>t.unbind()),iy.unbindDocumentMouseUp.length=0,iy.unbindDocumentTouchEnd&&(iy.unbindDocumentTouchEnd=iy.unbindDocumentTouchEnd())),tu(t,function(e,i){t[i]=void 0})}getSelectionMarkerAttrs(t,e){let i={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return q(this,"getSelectionMarkerAttrs",i,i=>{let s,{chart:o,zoomHor:r,zoomVert:a}=this,{mouseDownX:n=0,mouseDownY:h=0}=o,l=i.attrs;l.x=o.plotLeft,l.y=o.plotTop,l.width=r?1:o.plotWidth,l.height=a?1:o.plotHeight,r&&(l.width=Math.max(1,Math.abs(s=t-n)),l.x=(s>0?0:s)+n),a&&(l.height=Math.max(1,Math.abs(s=e-h)),l.y=(s>0?0:s)+h)}),i}drag(t){let{chart:e}=this,{mouseDownX:i=0,mouseDownY:s=0}=e,{panning:o,panKey:r,selectionMarkerFill:a}=e.options.chart,n=e.plotLeft,h=e.plotTop,l=e.plotWidth,d=e.plotHeight,c=tc(o)?o.enabled:o,p=r&&t[`${r}Key`],g=t.chartX,u=t.chartY,f,m=this.selectionMarker;if((!m||!m.touch)&&(g<n?g=n:g>n+l&&(g=n+l),u<h?u=h:u>h+d&&(u=h+d),this.hasDragged=Math.sqrt(Math.pow(i-g,2)+Math.pow(s-u,2)),this.hasDragged>10)){f=e.isInsidePlot(i-n,s-h,{visiblePlotOnly:!0});let{shapeType:l,attrs:d}=this.getSelectionMarkerAttrs(g,u);this.hasZoom&&f&&!p&&!m&&(this.selectionMarker=m=e.renderer[l](),m.attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||m.attr({fill:a})),m&&m.attr(d),f&&!m&&c&&ix(t,r)&&e.pan(t,o)}}dragStart(t){let e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=t.chartX,e.mouseDownY=t.chartY}getSelectionBox(t){let e={args:{marker:t},result:t.getBBox()};return q(this,"getSelectionBox",e),e.result}drop(t){let e,{chart:i,selectionMarker:s}=this;for(let t of i.axes)t.isPanning&&(t.isPanning=!1,(t.options.startOnTick||t.options.endOnTick||t.series.some(t=>t.boosted))&&(t.forceRedraw=!0,t.setExtremes(t.userMin,t.userMax,!1),e=!0));if(e&&i.redraw(),s&&t){if(this.hasDragged){let e=this.getSelectionBox(s);i.transform({axes:i.axes.filter(t=>t.zoomEnabled&&("xAxis"===t.coll&&this.zoomX||"yAxis"===t.coll&&this.zoomY)),selection:{originalEvent:t,xAxis:[],yAxis:[],...e},from:e})}tn(i.index)&&(this.selectionMarker=s.destroy())}i&&tn(i.index)&&(Y(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[],this.hasPinchMoved=!1)}findNearestKDPoint(t,e,i){let s;return t.forEach(function(t){var o;let r,a,n,h=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y"),l=t.searchPoint(i,h);tc(l,!0)&&l.series&&(!tc(s,!0)||(r=(o=s).distX-l.distX,a=o.dist-l.dist,n=l.series.group?.zIndex-o.series.group?.zIndex,(0!==r&&e?r:0!==a?a:0!==n?n:o.series.index>l.series.index?-1:1)>0))&&(s=l)}),s}getChartCoordinatesFromPoint(t,e){let{xAxis:i,yAxis:s}=t.series,o=t.shapeArgs;if(i&&s){let r=t.clientX??t.plotX??0,a=t.plotY||0;return t.isNode&&o&&tn(o.x)&&tn(o.y)&&(r=o.x,a=o.y),e?{chartX:s.len+s.pos-a,chartY:i.len+i.pos-r}:{chartX:r+i.pos,chartY:a+s.pos}}if(o?.x&&o.y)return{chartX:o.x,chartY:o.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:t}=this.chart,e=tf(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};let{offsetHeight:i,offsetWidth:s}=t;return s>2&&i>2&&(this.chartPosition.scaleX=e.width/s,this.chartPosition.scaleY=e.height/i),this.chartPosition}getCoordinates(t){let e={xAxis:[],yAxis:[]};for(let i of this.chart.axes)e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])});return e}getHoverData(t,e,i,s,o,r){let a=[],n=function(t){return t.visible&&!(!o&&t.directTouch)&&tx(t.options.enableMouseTracking,!0)},h=e,l,d={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:o};q(this,"beforeGetHoverData",d),l=h&&!h.stickyTracking?[h]:i.filter(t=>t.stickyTracking&&(d.filter||n)(t));let c=s&&t||!r?t:this.findNearestKDPoint(l,o,r);return h=c?.series,c&&(o&&!h.noSharedTooltip?(l=i.filter(function(t){return d.filter?d.filter(t):n(t)&&!t.noSharedTooltip})).forEach(function(t){let e=t.options?.nullInteraction,i=ts(t.points,function(t){return t.x===c.x&&(!t.isNull||!!e)});tc(i)&&(t.boosted&&t.boost&&(i=t.boost.getPoint(i)),a.push(i))}):a.push(c)),q(this,"afterGetHoverData",d={hoverPoint:c}),{hoverPoint:d.hoverPoint,hoverSeries:h,hoverPoints:a}}getPointFromEvent(t){let e=t.target,i;for(;e&&!i;)i=e.point,e=e.parentNode;return i}onTrackerMouseOut(t){let e=this.chart,i=t.relatedTarget,s=e.hoverSeries;this.isDirectTouch=!1,!s||!i||s.stickyTracking||this.inClass(i,"highcharts-tooltip")||this.inClass(i,"highcharts-series-"+s.index)&&this.inClass(i,"highcharts-tracker")||s.onMouseOut()}inClass(t,e){let i=t,s;for(;i;){if(s=W(i,"class")){if(-1!==s.indexOf(e))return!0;if(-1!==s.indexOf("highcharts-container"))return!1}i=i.parentElement}}constructor(t,e){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=e,this.chart=t,this.runChartClick=!!e.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),q(this,"afterInit")}normalize(t,e){let i=t.touches,s=i?i.length?i.item(0):tx(i.changedTouches,t.changedTouches)[0]:t;e||(e=this.getChartPosition());let o=s.pageX-e.left,r=s.pageY-e.top;return _(t,{chartX:Math.round(o/=e.scaleX),chartY:Math.round(r/=e.scaleY)})}onContainerClick(t){let e=this.chart,i=e.hoverPoint,s=this.normalize(t),o=e.plotLeft,r=e.plotTop;!e.cancelClick&&(i&&this.inClass(s.target,"highcharts-tracker")?(q(i.series,"click",_(s,{point:i})),e.hoverPoint&&i.firePointEvent("click",s)):(_(s,this.getCoordinates(s)),e.isInsidePlot(s.chartX-o,s.chartY-r,{visiblePlotOnly:!0})&&q(e,"click",s)))}onContainerMouseDown(t){let e=(1&(t.buttons||t.button))==1;t=this.normalize(t),E.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||e)&&(this.zoomOption(t),e&&t.preventDefault?.(),this.dragStart(t))}onContainerMouseLeave(t){let{pointer:e}=ig[tx(iy.hoverChartIndex,-1)]||{};t=this.normalize(t),this.onContainerMouseMove(t),e&&!this.inClass(t.relatedTarget,"highcharts-tooltip")&&(e.reset(),e.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(t){let e=this.chart,i=e.tooltip,s=this.normalize(t);this.setHoverChartIndex(t),("mousedown"===e.mouseIsDown||this.touchSelect(s))&&this.drag(s),!e.exporting?.openMenu&&(this.inClass(s.target,"highcharts-tracker")||e.isInsidePlot(s.chartX-e.plotLeft,s.chartY-e.plotTop,{visiblePlotOnly:!0}))&&!i?.shouldStickOnContact(s)&&(this.inClass(s.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(s))}onDocumentTouchEnd(t){this.onDocumentMouseUp(t)}onContainerTouchMove(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)}onContainerTouchStart(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))}onDocumentMouseMove(t){let e=this.chart,i=e.tooltip,s=this.chartPosition,o=this.normalize(t,s);!s||e.isInsidePlot(o.chartX-e.plotLeft,o.chartY-e.plotTop,{visiblePlotOnly:!0})||i?.shouldStickOnContact(o)||o.target!==e.container.ownerDocument&&this.inClass(o.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(t){t?.touches&&this.hasPinchMoved&&t?.preventDefault?.(),ig[tx(iy.hoverChartIndex,-1)]?.pointer?.drop(t)}pinch(t){let e=this,{chart:i,hasZoom:s,lastTouches:o}=e,r=[].map.call(t.touches||[],t=>e.normalize(t)),a=r.length,n=1===a&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),h=1===a&&(i.tooltip?.options.followTouchMove??!0);a>1?e.initiated=!0:h&&(e.initiated=!1),s&&e.initiated&&!n&&!1!==t.cancelable&&t.preventDefault(),"touchstart"===t.type?(e.pinchDown=r,e.res=!0,i.mouseDownX=t.chartX):h?this.runPointActions(e.normalize(t)):o&&(q(i,"touchpan",{originalEvent:t,touches:r},()=>{let e=t=>{let e=t[0],i=t[1]||e;return{x:e.chartX,y:e.chartY,width:i.chartX-e.chartX,height:i.chartY-e.chartY}};i.transform({axes:i.axes.filter(t=>t.zoomEnabled&&(this.zoomHor&&t.horiz||this.zoomVert&&!t.horiz)),to:e(r),from:e(o),trigger:t.type})}),e.res&&(e.res=!1,this.reset(!1,0))),e.lastTouches=r}reset(t,e){let i=this.chart,s=i.hoverSeries,o=i.hoverPoint,r=i.hoverPoints,a=i.tooltip,n=a?.shared?r:o;t&&n&&tM(n).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?a&&n&&tM(n).length&&(a.refresh(n),a.shared&&r?r.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))}):o&&(o.setState(o.state,!0),i.axes.forEach(function(t){t.crosshair&&o.series[t.coll]===t&&t.drawCrosshair(null,o)}))):(o&&o.onMouseOut(),r&&r.forEach(function(t){t.setState()}),s&&s.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),i.hoverPoints=i.hoverPoint=void 0)}runPointActions(t,e,i){let s=this.chart,o=s.series,r=s.tooltip?.options.enabled?s.tooltip:void 0,a=!!r&&r.shared,n=e||s.hoverPoint,h=n?.series||s.hoverSeries,l=(!t||"touchmove"!==t.type)&&(!!e||h?.directTouch&&this.isDirectTouch),d=this.getHoverData(n,h,o,l,a,t);n=d.hoverPoint,h=d.hoverSeries;let c=d.hoverPoints,p=h?.tooltipOptions.followPointer&&!h.tooltipOptions.split,g=a&&h&&!h.noSharedTooltip;if(n&&(i||n!==s.hoverPoint||r?.isHidden)){if((s.hoverPoints||[]).forEach(function(t){-1===c.indexOf(t)&&t.setState()}),s.hoverSeries!==h&&h.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach(function(t){t.setState("hover")}),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!n.series)return;s.hoverPoints=c,s.hoverPoint=n,n.firePointEvent("mouseOver",void 0,()=>{r&&n&&r.refresh(g?c:n,t)})}else if(p&&r&&!r.isHidden){let e=r.getAnchor([{}],t);s.isInsidePlot(e[0],e[1],{visiblePlotOnly:!0})&&r.updatePosition({plotX:e[0],plotY:e[1]})}this.unDocMouseMove||(this.unDocMouseMove=N(s.container.ownerDocument,"mousemove",t=>ig[iy.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(t)),this.eventsToUnbind.push(this.unDocMouseMove)),s.axes.forEach(function(e){let i,o=e.crosshair?.snap??!0;o&&((i=s.hoverPoint)&&i.series[e.coll]===e||(i=ts(c,t=>t.series?.[e.coll]===e))),i||!o?e.drawCrosshair(t,i):e.hideCrosshair()})}setDOMEvents(){let t=this.chart.container,e=t.ownerDocument,i=t=>t.parentElement||t.getRootNode()?.host?.parentElement;t.onmousedown=this.onContainerMouseDown.bind(this),t.onmousemove=this.onContainerMouseMove.bind(this),t.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(N(t,"mouseenter",this.onContainerMouseEnter.bind(this)),N(t,"mouseleave",this.onContainerMouseLeave.bind(this))),iy.unbindDocumentMouseUp.some(t=>t.doc===e)||iy.unbindDocumentMouseUp.push({doc:e,unbind:N(e,"mouseup",this.onDocumentMouseUp.bind(this))});let s=i(this.chart.renderTo);for(;s&&"BODY"!==s.tagName;)this.eventsToUnbind.push(N(s,"scroll",()=>{delete this.chartPosition})),s=i(s);this.eventsToUnbind.push(N(t,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),N(t,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),iy.unbindDocumentTouchEnd||(iy.unbindDocumentTouchEnd=N(e,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),N(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!im)return;let t=this.pointerCaptureEventsToUnbind,e=this.chart,i=e.container,s=(e.options.tooltip?.followTouchMove??!0)&&e.series.some(t=>t.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&s?(t.push(N(i,"pointerdown",t=>{t.target?.hasPointerCapture(t.pointerId)&&t.target?.releasePointerCapture(t.pointerId)}),N(i,"pointermove",t=>{e.pointer?.getPointFromEvent(t)?.onMouseOver(t)})),this.hasPointerCapture=!0):this.hasPointerCapture&&!s&&(t.forEach(t=>t()),t.length=0,this.hasPointerCapture=!1)}setHoverChartIndex(t){let e=this.chart,i=E.charts[tx(iy.hoverChartIndex,-1)];if(i&&i!==e){let s={relatedTarget:e.container};t&&!t?.relatedTarget&&Object.assign({},t,s),i.pointer?.onContainerMouseLeave(t||s)}i?.mouseIsDown||(iy.hoverChartIndex=e.index)}touch(t,e){let i,s,{chart:o,pinchDown:r=[]}=this;this.setHoverChartIndex(),1===(t=this.normalize(t)).touches.length?((s=o.isInsidePlot(t.chartX-o.plotLeft,t.chartY-o.plotTop,{visiblePlotOnly:!0}))&&!o.exporting?.openMenu?(e&&this.runPointActions(t),"touchmove"===t.type&&(this.hasPinchMoved=i=!!r[0]&&Math.pow(r[0].chartX-t.chartX,2)+Math.pow(r[0].chartY-t.chartY,2)>=16),tx(i,!0)&&this.pinch(t)):e&&this.reset(),(o.tooltip?.options.followTouchMove??!0)&&s&&t.preventDefault()):2===t.touches.length&&this.pinch(t)}touchSelect(t){return!!(this.chart.zooming.singleTouch&&t.touches&&1===t.touches.length)}zoomOption(t){let e=this.chart,i=e.inverted,s=e.zooming.type||"",o,r;/touch/.test(t.type)&&(s=tx(e.zooming.pinchType,s)),this.zoomX=o=/x/.test(s),this.zoomY=r=/y/.test(s),this.zoomHor=o&&!i||r&&i,this.zoomVert=r&&!i||o&&i,this.hasZoom=(o||r)&&ix(t,e.zooming.key)}}iy.unbindDocumentMouseUp=[],(h=iy||(iy={})).compose=function(t){tb(iu,"Core.Pointer")&&N(t,"beforeRender",function(){this.pointer=new h(this,this.options)})};let ib=iy,{setLength:iv,splice:ik}={convertToNumber:function(t,e){switch(typeof t){case"boolean":return+!!t;case"number":return isNaN(t)&&!e?null:t;default:return isNaN(t=parseFloat(`${t??""}`))&&!e?null:t}},setLength:function(t,e,i){return Array.isArray(t)?(t.length=e,t):t[i?"subarray":"slice"](0,e)},splice:function(t,e,i,s,o=[]){if(Array.isArray(t))return Array.isArray(o)||(o=Array.from(o)),{removed:t.splice(e,i,...o),array:t};let r=Object.getPrototypeOf(t).constructor,a=t[s?"subarray":"slice"](e,e+i),n=new r(t.length-i+o.length);return n.set(t.subarray(0,e),0),n.set(o,e),n.set(t.subarray(e+i),e+o.length),{removed:a,array:n}}},iw=class{constructor(t={}){this.isDataTable=!0,this.autoId=!t.id,this.columns={},this.id=t.id||tI(),this.rowCount=0,this.versionTag=tI();let e=0;tu(t.columns||{},(t,i)=>{this.columns[i]=t.slice(),e=Math.max(e,t.length)}),this.applyRowCount(e)}applyRowCount(t){this.rowCount=t,tu(this.columns,(e,i)=>{e.length!==t&&(this.columns[i]=iv(e,t))})}deleteRows(t,e=1){if(e>0&&t<this.rowCount){let i=0;tu(this.columns,(s,o)=>{this.columns[o]=ik(s,t,e).array,i=s.length}),this.rowCount=i}q(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=tI()}getColumn(t,e){return this.columns[t]}getColumns(t,e){return(t||Object.keys(this.columns)).reduce((t,e)=>(t[e]=this.columns[e],t),{})}getRowObject(t,e){let i={},s=this.columns;for(let o of(e??(e=Object.keys(this.columns)),e))i[o]=s[o]?.[t];return i}setColumn(t,e=[],i=0,s){this.setColumns({[t]:e},i,s)}setColumns(t,e,i){let s=this.rowCount;tu(t,(t,e)=>{this.columns[e]=t.slice(),s=t.length}),this.applyRowCount(s),i?.silent||(q(this,"afterSetColumns"),this.versionTag=tI())}setRow(t,e=this.rowCount,i,s){var o;let{columns:r}=this,a=i?this.rowCount+1:e+1,n=Object.keys(t);if(s?.addColumns!==!1)for(let t=0,e=n.length;t<e;t++)r[o=n[t]]||(r[o]=Array(this.rowCount));tu(r,(s,o)=>{s&&(i?s=ik(s,e,0,!0,[t[o]]).array:s[e]=o in t?t[o]:s[e],r[o]=s)}),this.applyRowCount(Math.max(a,this.rowCount)),s?.silent||(q(this,"afterSetRows",{rowIndex:e}),this.versionTag=tI())}getModified(){return this.modified||this}};var iM=v||(v={});function iC(t,e,i){let s=this.legendItem=this.legendItem||{},{chart:o,options:r}=this,{baseline:a=0,symbolWidth:n,symbolHeight:h}=t,l=this.symbol||"circle",d=h/2,c=o.renderer,p=s.group,g=a-Math.round((t.fontMetrics?.b||h)*(i?.4:.3)),u={},f,m=r.marker,x=0;if(o.styledMode||(u["stroke-width"]=Math.min(r.lineWidth||0,24),r.dashStyle?u.dashstyle=r.dashStyle:"square"!==r.linecap&&(u["stroke-linecap"]="round")),s.line=c.path().addClass("highcharts-graph").attr(u).add(p),i&&(s.area=c.path().addClass("highcharts-area").add(p)),u["stroke-linecap"]&&(x=Math.min(s.line.strokeWidth(),n)/2),n){let t=[["M",x,g],["L",n-x,g]];s.line.attr({d:t}),s.area?.attr({d:[...t,["L",n-x,a],["L",x,a]]})}if(m&&!1!==m.enabled&&n){let t=Math.min(tx(m.radius,d),d);0===l.indexOf("url")&&(m=tp(m,{width:h,height:h}),t=0),s.symbol=f=c.symbol(l,n/2-t,g-t,2*t,2*t,_({context:"legend"},m)).addClass("highcharts-point").add(p),f.isMarker=!0}}iM.areaMarker=function(t,e){iC.call(this,t,e,!0)},iM.lineMarker=iC;let iS=v,{defaultOptions:iT}=tX;var iA=k||(k={});function iP(t,e){let i=iT.plotOptions||{},s=e.defaultOptions,o=e.prototype;return o.type=t,o.pointClass||(o.pointClass=ip),!iA.seriesTypes[t]&&(s&&(i[t]=s),iA.seriesTypes[t]=e,!0)}iA.seriesTypes=E.seriesTypes,iA.registerSeriesType=iP,iA.seriesType=function(t,e,i,s,o){let r=iT.plotOptions||{};if(e=e||"",r[t]=tp(r[e],i),delete iA.seriesTypes[t],iP(t,K(iA.seriesTypes[e]||E.Series,s)),iA.seriesTypes[t].prototype.type=t,o){class e extends ip{}_(e.prototype,o),iA.seriesTypes[t].prototype.pointClass=e}return iA.seriesTypes[t]};let iL=k,{animObject:iO,setAnimation:iE}=tq,{defaultOptions:iI}=tX,{registerEventOptions:iD}=e$,{svg:iB,win:iN}=E,{seriesTypes:iz}=iL,{format:iR}=ee;class iW{constructor(){this.zoneAxis="y"}init(t,e){let i;q(this,"init",{options:e});let s=t.series;this.eventsToUnbind=[],this.condemnedPoints||(this.condemnedPoints=[]),this.chart=t,this.options=this.setOptions(e);let o=this.options,r=!1!==o.visible;this.dataTable??(this.dataTable=o.dataTable?.isDataTable?o.dataTable:new iw(o.dataTable)),this.linkedSeries=[],this.bindAxes(),_(this,{name:o.name,state:"",visible:r,selected:!0===o.selected}),iD(this,o);let a=o.events;(a?.click||o.point?.events?.click||o.allowPointSelect)&&(t.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(i=s[s.length-1]),this._i=tx(i?._i,-1)+1,this.opacity=this.options.opacity,t.orderItems("series",tO(this,s)),this.points||this.data||this.setData(o.data,!1),q(this,"afterInit")}is(t){return iz[t]&&this instanceof iz[t]}bindAxes(){let t,e=this,i=e.options,s=e.chart;q(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(o){(s[o]||[]).forEach(function(s){t=s.options,(tx(i[o],0)===s.index||void 0!==i[o]&&i[o]===t.id)&&(tO(e,s.series),e[o]=s,s.isDirty=!0)}),e[o]||e.optionalAxis===o||tL(18,!0,s)})}),q(this,"afterBindAxes")}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(t,e){let i=t.marker,s=e.marker||{};return i&&(s.enabled&&!i.enabled||s.symbol!==i.symbol||s.height!==i.height||s.width!==i.width)}autoIncrement(t){let e,i=this.options,{pointIntervalUnit:s,relativeXValue:o}=this.options,r=this.chart.time,a=this.xIncrement??r.parse(i.pointStart)??0;if(this.pointInterval=e=tx(this.pointInterval,i.pointInterval,1),o&&tn(t)&&(e*=t),s){let t=r.toParts(a);"day"===s?t[2]+=e:"month"===s?t[1]+=e:"year"===s&&(t[0]+=e),e=r.makeTime.apply(r,t)-a}return o&&tn(t)?a+e:(this.xIncrement=a+e,a)}setOptions(t){let e,i=this.chart,s=i.options.plotOptions,o=i.userOptions||{},r=tp(t),a=i.styledMode,n={plotOptions:s,userOptions:r};q(this,"setOptions",n);let h=n.plotOptions[this.type],l=o.plotOptions||{},d=l.series||{},c=iI.plotOptions[this.type]||{},p=l[this.type]||{};h.dataLabels=this.mergeArrays(c.dataLabels,h.dataLabels),this.userOptions=n.userOptions;let g=tp(h,s.series,p,r),{negativeColor:u,negativeFillColor:f,zoneAxis:m="y",zones:x}=g,y=(x||[]).map(t=>({...t}));return this.tooltipOptions=tp(iI.tooltip,iI.plotOptions.series?.tooltip,c?.tooltip,i.userOptions.tooltip,l.series?.tooltip,p.tooltip,r.tooltip),this.stickyTracking=tx(r.stickyTracking,p.stickyTracking,d.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||g.stickyTracking),null===h.marker&&delete g.marker,this.zones||(this.zones=y),this.zoneAxis=m,(u||f)&&!x&&(e={value:g[m+"Threshold"]||g.threshold||0,className:"highcharts-negative"},a||("boolean"!=typeof u&&(e.color=u),e.fillColor=f),y.push(e)),y.length&&j(y[y.length-1].value)&&y.push(a?{}:{color:this.color,fillColor:this.fillColor}),q(this,"afterSetOptions",{options:g}),g}getName(){let{chart:t,options:e}=this,{dataMapping:i,name:s}=e,o=i?.y||i?.value,r=th(o)?o:o?.column;return s??(th(r)?r:iR(t.options.lang.seriesName,this,t))}getCyclic(t,e,i){let s,o,r=this.chart,a=`${t}Index`,n=`${t}Counter`,h=i?.length||r.options.chart.colorCount;!e&&(j(o=tx("color"===t?this.options.colorIndex:void 0,this[a]))?s=o:(r.series.length||(r[n]=0),s=r[n]%h,r[n]+=1),i&&(e=i[s])),void 0!==s&&(this[a]=s),this[t]=e}getColor(){let t=this.chart;t.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="var(--highcharts-neutral-color-20)":this.getCyclic("color",this.options.color||iI.plotOptions[this.type]?.color,t.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let t=this.options.marker;this.getCyclic("symbol",t.symbol,this.chart.options.symbols)}getColumn(t,e,i){let s=e?this.dataTable.getModified():this.dataTable,o=s.rowCount,r=this.dataTable!==s,a=s.getColumn(t,!0);if("x"===t&&!r){if(this.xColumn)return this.xColumn;let t=s.getColumn("name",!0),e=this.options,i=t=>{if(void 0!==this.xColumnIsNumbers)return this.xColumnIsNumbers;for(let e of t)if("number"!=typeof e)return this.xColumnIsNumbers=!1;return this.xColumnIsNumbers=!0};if(this.xIncrement=null,!a||this.xAxis?.hasNames||e.relativeXValue||a.length<(e.turboThreshold||1/0)&&!this.boosted&&!i(a)){let e=[];for(let i=0;i<o;i++){let s=a?.[i];j(s)||(this.xIncrement??(this.xIncrement=e[e.length-1]??null)),e.push(this.getX(s,t?.[i]))}return this.xColumn=e}}return a||Array(i?o:0)}getX(t,e){return this.xAxis?.hasNames&&this.dataTable.getColumn("name",!0)&&j(e)?this.xAxis.nameToX({name:e,series:this},t):void 0===t||tn(t)&&this.options.relativeXValue?this.autoIncrement(t):("string"==typeof t&&tn(t=this.chart.time.parse(t)),t)}matchPoints(t,e,i,s){let{dataTable:o,options:r,requireSorting:a}=this,n=r.dataSorting,h=this.data,l=[],d=[],c=o.rowCount===h.length,p,g,u,f=0,m=!0;this.xIncrement=null,delete this.xColumn;let x=o.getColumn("x"),y=o.getColumn("id"),b=n?.matchByName?o.getColumn("name"):void 0,v=o.getColumn("index");for(g=0;g<o.rowCount;g++){let r=x?.[g],u=y?.[g],m=b?.[g],k=v?.[g],[w,M]=u&&e?[u,e]:m&&i?[m,i]:j(k)&&s?[k,s]:j(r)&&t?[r,t]:[],C=-1;if(M){if(-1===(C=M.indexOf(w,f))){let e=x?.[g],i=t?.length??o.rowCount;for(;i&&t&&"number"==typeof e&&t[i-1]>e;)i--;l.push({newIndex:i,oldIndex:g})}else h[C]&&(d.push({newIndex:C,oldIndex:g}),h[C].touched=!0,a&&(f=C+1));(!c||g!==C||n?.enabled||this.hasDerivedData)&&(p=!0)}else l.push({newIndex:g,oldIndex:g})}if(p){for(d.forEach(t=>{h[t.newIndex].applyOptions(o.getRowObject(t.oldIndex))}),l.sort((t,e)=>e.newIndex-t.newIndex),l.forEach(t=>{h.splice(t.newIndex,0,void 0)}),g=h.length;g--;)(u=h[g])&&!u.touched&&(u.destroy(),h.splice(g,1));this.isDirtyData=this.isDirty=!0}else if(c&&!n?.enabled){for(g=0;g<o.rowCount;g++)if(!h[g].destroyed&&!h[g].condemned){let t=o.getRowObject(g);t&&(Object.keys(t).forEach(e=>{j(t[e])||delete t[e]}),Object.keys(t).length&&h[g].update(t,!1,void 0,!1))}}else m=!1;if(h.forEach(t=>{t&&(t.touched=!1)}),!m)return!1;let k=this.getColumn("x");return null===this.xIncrement&&k.length&&(this.xIncrement=R(k),this.autoIncrement()),!0}getDataColumnKeys(){return this.dataColumnKeys||["x",...this.pointArrayMap||["y"]]}setData(t,e=!0,i,s){let o,r,a,n=this.dataTable,h=this.options,l=this.points,d=l?.length||0,c=n.getColumn("x"),p=n.getColumn("id"),g=h.dataSorting?.matchByName&&l?.map(t=>t.name)||n.getColumn("name"),u=n.getColumn("index"),f=this.chart,m=this.xAxis;if(f.options.chart.allowMutatingData||(h.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,a=tp(!0,t)),t=a||t,this.xIncrement=null,delete this.xColumn,delete this.xColumnIsNumbers,n!==h.dataTable&&delete n.columns.x,this.colorCounter=0,tl(t)?this.setDataFromArray(t):this.setDataFromTable(t),!1===s||!d||this.cropped||this.hasGroupedData||!this.visible||this.boosted||(o=this.matchPoints(c,p,g,u)),!o){for(th(this.getColumn("y")[0])&&tL(14,!0,f),this.data=[],r=d;r--;)l[r]?.destroy();m&&(m.minRange=m.userMinRange),this.isDirty=f.isDirtyBox=!0,this.isDirtyData=!!l,i=!1}tl(t)&&(this.options.data=this.userOptions.data=t),"point"===h.legendType&&(this.processData(),this.generatePoints()),e&&f.redraw(i)}setDataFromArray(t){let e=t.length,{keys:i,turboThreshold:s}=this.options,{pointValKey:o="y",pointArrayMap:r=[]}=this,a=r.length,n=this.dataTable,h=this.getDataColumnKeys(),l=s&&e>s,d=0,c=1;if(l){let s=this.getFirstValidPoint(t),p=this.getFirstValidPoint(t,e-1,-1),g=t=>!!(tl(t)&&(i||tn(t[0])));if(tn(s)&&tn(p))n.setColumn(o,t);else if(g(s)&&g(p))if(a){let e=s.length===a,i=Array(s.length).fill(0).map(()=>[]);for(let e of t)for(let t=0;t<=a;t++)i[t]?.push(e[t]);n.setColumns((e?r:h).reduce((t,e,s)=>(t[e]=i[s],t),{}))}else{i&&(d=i.indexOf("x"),c=i.indexOf("y"),d=d>=0?d:0,c=c>=0?c:1),1===s.length&&(c=0);let e=[],r=[];if(d===c){for(let e of t)r.push(e[c]);n.setColumn(o,r)}else{for(let i of t)e.push(i[d]),r.push(i[c]);n.setColumns({x:e,[o]:r})}}else l=!1}if(!l){let i={};for(let s=0;s<e;s++){let o=this.pointClass.prototype.optionsToObject.call({series:this},t[s]);for(let t of Object.keys(o))i[t]||(i[t]=Array(e)),i[t][s]=o[t]}e?n.setColumns(i):n.deleteRows(0,n.rowCount)}}setDataFromTable(t){let{chart:e,options:i,dataTable:s}=this,o=e.getDataTable(i),r=t?[t]:o.length?o:e.dataTable,a=this.getDataColumnKeys(),n=i.dataMapping,h=a.slice();n&&(Object.keys(n).forEach(t=>{tb(h,t)}),this.dataColumnKeys=h),r.forEach((t,e)=>{let i=h.reduce((i,s)=>{let o=n?.[s],r=t.columns||{},a=t.id,h=th(o)?0===e&&r[o]:((o?.dataTable||0)===e||a&&o?.dataTable===a)&&(tn(o?.column)?Object.values(r)[o.column]:r[o?.column||s]);return h&&(i[s]=h),i},{});(n||t)&&s.setColumns(i),t.isDataTable&&this.bindDataTableEvents(t,i)})}bindDataTableEvents(t,e){if(this.hasBoundDataTableEvents)return;let{chart:i,eventsToUnbind:s}=this,o=()=>{clearTimeout(i.redrawTimeout),i.redrawTimeout=setTimeout(()=>i.renderer&&i.redraw(),0)};s.push(N(t,"afterSetRows",t=>{let i=t.rowIndex;if(tn(i)){let t=iw.prototype.getRowObject.call({columns:e},i),s=this.data[i];t&&(this.currentDataGrouping?this.setData():(s?s.update(t,!1):this.addPoint(t,!1),o()))}})),s.push(N(t,"afterDeleteRows",t=>{let{rowCount:e,rowIndex:i}=t;if(tn(i)){for(let t=i+e-1;t>=i;t--)this.removePoint(t,!1);o()}})),s.push(N(t,"afterSetColumns",t=>{this.setData(t.target)})),this.hasBoundDataTableEvents=!0}getProcessedData(t){let e=this,{dataTable:i,isCartesian:s,options:o,xAxis:r}=e,a=o.cropThreshold,n=t||e.getExtremesFromAll,h=r?.logarithmic,l=i.rowCount,d,c,p=0,g,u,f,m=e.getColumn("x"),x=i,y=!1;return r&&(u=(g=r.getExtremes()).min,f=g.max,y=!!(r.categories&&!r.names.length),s&&e.sorted&&!n&&(!a||l>a||e.forceCrop)&&(m[l-1]<u||m[0]>f?x=new iw:e.getColumn(e.pointValKey||"y").length&&(m[0]<u||m[l-1]>f)&&(x=(d=this.cropData(i,u,f)).modified,p=d.start,c=!0))),m=this.getColumn("x",!0),{modified:x,cropped:c,cropStart:p,closestPointRange:Q([h?m.map(h.log2lin):m],()=>e.requireSorting&&!y&&tL(15,!1,e.chart))}}processData(t){let e=this.xAxis,i=this.dataTable;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;let s=this.getProcessedData();i.modified=s.modified,this.cropped=s.cropped,this.cropStart=s.cropStart,this.closestPointRange=this.basePointRange=s.closestPointRange,q(this,"afterProcessData")}cropData(t,e,i){let s=t===this.dataTable?this.getColumn("x"):t.getColumn("x",!0),o=s.length,r,a,n=0,h=o;for(r=0;r<o;r++)if(s[r]>=e){n=Math.max(0,r-1);break}for(a=r;a<o;a++)if(s[a]>i){h=a+1;break}let l=Object.keys(t.columns).reduce((e,i)=>(e[i]=(t.getColumn(i,!0)||[]).slice(n,h),e),{});return l.x=s.slice(n,h),{modified:new iw({columns:l}),start:n,end:h}}generatePoints(){let t=this.options,e=this.hasProcessedDataTable?void 0:t.data,i=this.dataTable.getModified(),s=this.getColumn("x",!0),o=this.pointClass,r=i.rowCount,a=this.cropStart||0,n=this.hasGroupedData,h=t.keys,l=[],d=t.dataGrouping?.groupAll?a:0,c=this.getDataColumnKeys(),p,g,u,f,m=this.data,x;if(!m&&!n){let t=[];t.length=e?.length||0,m=this.data=t}for(h&&n&&(this.options.keys=!1),f=0;f<r;f++)g=a+f,n?((u=new o(this,i.getRowObject(f,c))).dataGroup=this.groupMap?.[d+f],u.dataGroup?.options&&(u.options=u.dataGroup.options,_(u,u.dataGroup.options),delete u.dataLabels,u.key=u.name??u.category)):(u=m[g],x=e?e[g]:i.getRowObject(f),u||void 0===x?u&&(u.category=this.xAxis?.categories?.[u.x]??u.x,u.key=u.name??u.category):m[g]=u=new o(this,x,s[f])),u&&(u.index=n?d+f:g,l[f]=u);if(this.options.keys=h,m&&(r!==(p=m.length)||n))for(f=0;f<p;f++)f!==a||n||(f+=r),m[f]&&(m[f].destroyElements(),m[f].plotX=void 0);this.data=m,this.points=l,q(this,"afterGeneratePoints")}getXExtremes(t){return{min:z(t),max:R(t)}}getExtremes(t,e){let{xAxis:i,yAxis:s}=this,o=e||this.getExtremesFromAll||this.options.getExtremesFromAll,r=o&&this.cropped?this.dataTable:this.dataTable.getModified(),a=r.rowCount,n=t||this.stackedYData,h=n?[n]:(this.keysAffectYAxis||this.pointArrayMap||["y"])?.map(t=>r.getColumn(t,!0)||[])||[],l=this.getColumn("x",!0),d=[],c=this.requireSorting&&!this.is("column")?1:0,p=!!s&&s.positiveValuesOnly,g=o||this.cropped||!i,u,f,m,x=0,y=0;for(i&&(x=(u=i.getExtremes()).min,y=u.max),m=0;m<a;m++)if(f=l[m],g||(l[m+c]||f)>=x&&(l[m-c]||f)<=y)for(let t of h){let e=t[m];tn(e)&&(e>0||!p)&&d.push(e)}let b={activeYData:d,dataMin:z(d),dataMax:R(d)};return q(this,"afterGetExtremes",{dataExtremes:b}),b}applyExtremes(){let t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t}getFirstValidPoint(t,e=0,i=1){let s=t.length,o=e;for(;o>=0&&o<s;){if(j(t[o]))return t[o];o+=i}}translate(){this.generatePoints();let{options:t,xAxis:e,yAxis:i}=this,{stacking:s,threshold:o}=t,{hasRendered:r,polar:a}=this.chart,n=this.points.concat(this.condemnedPoints),h=n.length,l=this.pointPlacementToXValue(),d=!!l,c=t.startFromThreshold?o:0,p=t?.nullInteraction&&i.len,g,u,f,m,x=Number.MAX_VALUE;function y(t){return H(t,-1e9,1e9)}let b=(t,i)=>{let s=e.translate(t,!1,!1,i,!0,l);return tn(s)?G(y(s)):void 0},v=(t,e,s)=>{if(tn(t)&&void 0!==e.plotX){let e=i.translate(t,!1,!0,s,!0);return tn(e)?y(e):void 0}if(!tn(t)&&p)return p};for(g=0;g<h;g++){let t=n[g],h=t.x,p,k,w=t.y,M=t.low,C=s&&i.stacking?.stacks[(this.negStacks&&w<(c?0:o)?"-":"")+this.stackKey];t.plotX=u=b(h),s&&this.visible&&C&&C[h]&&(m=this.getStackIndicator(m,h,this.index),!t.isNull&&m.key&&(k=(p=C[h]).points[m.key]),p&&tl(k)&&(M=k[0],w=k[1],M===c&&m.key===C[h].base&&(M=tx(tn(o)?o:i.min)),i.positiveValuesOnly&&j(M)&&M<=0&&(M=void 0),t.total=t.stackTotal=tx(p.total),t.percentage=j(t.y)&&p.total?t.y/p.total*100:void 0,t.stackY=w,this.irregularWidths||p.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),t.yBottom=j(M)?y(i.translate(M,!1,!0,!1,!0)):void 0,this.dataModify&&(w=this.dataModify.modifyValue(w,g)),t.plotY=v(w,t),t.origin=!r||t.graphic||a?void 0:{x:b(h,!0),y:v(w,t,!0)},t.isInside=this.isPointInside(t),t.clientX=d?G(e.translate(h,!1,!1,!1,!0,l)):u,t.negative=(t.y||0)<(o||0),!t.isNull&&!1!==t.visible&&tn(u)&&(tn(f)&&(x=Math.min(x,Math.abs(u-f))),f=u),t.zone=this.zones.length?t.getZone():void 0}this.closestPointRangePx=x,q(this,"afterTranslate")}getValidPoints(t,e,i){let s=this.chart;return(t||this.points||[]).filter(function(t){let{plotX:o,plotY:r}=t;return(!!i||!t.isNull&&!!tn(r))&&(!e||!!s.isInsidePlot(o,r,{inverted:s.inverted}))&&!1!==t.visible})}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:t,group:e,markerGroup:i,options:s,plotClipGroup:o}=this,r=t.sharedClips,a=t.renderer,n=t.getClipBox(this),h=s.clip??!0,l=this.getSharedClipKey(),d=r[l];d?d.animate(n):r[l]=d=a.clipRect(n),e?.clip(h?d:void 0),i?.clip(),o?.clip(h&&this.yAxis.clippable?t.plotClipInner:void 0)}animate(t){let{chart:e,group:i,markerGroup:s}=this,o=e.inverted,r=iO(this.options.animation),a=[this.getSharedClipKey(),r.duration,r.easing,r.defer].join(","),n=e.sharedClips[a],h=e.sharedClips[a+"m"];if(t&&i){let t=e.getClipBox(this);if(n)n.attr("height",t.height);else{t.width=0,o&&(t.x=e.plotHeight),n=e.renderer.clipRect(t),e.sharedClips[a]=n;let i={x:-99,y:-99,width:o?e.plotWidth+199:99,height:o?99:e.plotHeight+199};h=e.renderer.clipRect(i),e.sharedClips[a+"m"]=h}i.clip(n),s?.clip(h)}else if(n&&!n.hasClass("highcharts-animating")){let t=e.getClipBox(this),i=r.step;(s?.element.childNodes.length||e.series.length>1)&&(r.step=function(t,e){i&&i.apply(e,arguments),"width"===e.prop&&h?.element&&h.attr(o?"height":"width",t+99)}),n.addClass("highcharts-animating").animate(t,r)}}afterAnimate(){this.setClip(),tu(this.chart.sharedClips,(t,e,i)=>{t&&!this.chart.container.querySelector(`[clip-path="url(#${t.id})"]`)&&(t.destroy(),delete i[e])}),this.finishedAnimating=!0,q(this,"afterAnimate")}drawPoints(t){let e,i,s,o,r,a,n;t||(t=this.points.concat(this.condemnedPoints));let h=this.chart,l=h.styledMode,{colorAxis:d,options:c}=this,p=c.marker,g=c.nullInteraction,u=this[this.specialGroup||"markerGroup"],f=this.xAxis,m=tx(p.enabled,!f||!!f.isRadial||null,this.closestPointRangePx>=p.enabledThreshold*p.radius);if(!1!==p.enabled||this._hasPointMarkers)for(e=0;e<t.length;e++){o=(s=(i=t[e]).graphic)?"animate":"attr",r=i.marker||{},a=!!i.marker;let c=i.isNull;if((m&&!j(r.enabled)||r.enabled)&&(!c||g)&&!1!==i.visible){let t=tx(r.symbol,this.symbol,"rect");n=this.markerAttribs(i,i.selected&&"select");let e=!1!==i.isInside;if(!s&&e&&((n.width||0)>0||i.hasImage)&&(i.graphic=s=h.renderer.symbol(t,n.x,n.y,n.width,n.height,a?r:p).add(u),i.origin)){let t=i.getOrigin(i.origin,n);l||(t.opacity=0),s.attr(t),o="animate"}if(s){"animate"===o&&s?.animate(n);let t=this.pointAttribs(i,l||!i.selected?void 0:"select");l?d&&s.css({fill:t.fill}):s[o](t),s.addClass(i.getClassName(),!0)}}else s&&(i.graphic=s.destroy())}}markerAttribs(t,e){let i=this.options,s=i.marker,o=t.marker||{},r=o.symbol||s.symbol,a={},n,h,l=tx(o.radius,s?.radius);e&&(n=s?.states?.[e],h=o.states?.[e],l=tx(h?.radius,n?.radius,l&&l+(n?.radiusPlus||0))),t.hasImage=r&&0===r.indexOf("url"),t.hasImage&&(l=0);let d=t.pos();return tn(l)&&d&&(i.crisp&&(d[0]=F(d[0],t.hasImage?0:"rect"===r?s?.lineWidth||0:1)),a.x=d[0]-l,a.y=d[1]-l),l&&(a.width=a.height=2*l),a}pointAttribs(t,e){let i=this.options,s=i.marker,o=t?.options,r=o?.marker||{},a=o?.color,n=t?.color,h=t?.zone?.color,l,d,c=this.color,p,g,u=tx(r.lineWidth,s.lineWidth),f=t?.isNull&&i.nullInteraction?0:1;return c=a||h||n||c,p=r.fillColor||s.fillColor||c,g=r.lineColor||s.lineColor||c,e=e||"normal",l=s.states[e]||{},u=tx((d=r.states&&r.states[e]||{}).lineWidth,l.lineWidth,u+tx(d.lineWidthPlus,l.lineWidthPlus,0)),p=d.fillColor||l.fillColor||p,g=d.lineColor||l.lineColor||g,f=tx(d.opacity,l.opacity,f),{stroke:g,"stroke-width":u,fill:p,opacity:t?.condemned||t?.isInside===!1?0:f}}destroy(t){let e,i,s=this,o=s.chart,r=/AppleWebKit\/533/.test(iN.navigator.userAgent),a=s.data||[];for(q(s,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(s.axisTypes||[]).forEach(function(t){i=s[t],i?.series&&(Z(i.series,s),i.isDirty=i.forceRedraw=!0)}),s.legendItem&&s.chart.legend.destroyItem(s),e=a.length;e--;)a[e]?.destroy?.();for(let t of s.zones||[])$(t,void 0,!0);to(s.animationTimeout),tu(s,function(t,e){t instanceof eg&&!t.survive&&t[r&&"group"===e?"hide":"destroy"]()}),o.hoverSeries===s&&(o.hoverSeries=void 0),Z(o.series,s),o.orderItems("series"),tu(s,function(e,i){t&&"hcEvents"===i||delete s[i]})}applyZones(){let{area:t,chart:e,graph:i,zones:s,points:o,xAxis:r,yAxis:a,zoneAxis:n}=this,{inverted:h,renderer:l}=e,d=this[`${n}Axis`],{isXAxis:c,len:p=0,minPointOffset:g=0}=d||{},u=(i?.strokeWidth()||0)/2+1,f=(t,e=0,i=0)=>{h&&(i=p-i);let{translated:s=0,lineClip:o,value:r}=t,a=i-s;o?.push(["L",e,Math.abs(a)<u?i-u*(a<0||0===a&&j(r)?-1:1):s])};if(s.length&&(i||t)&&d&&tn(d.min)){let e=d.getExtremes().max+g,u=t=>{t.forEach((e,i)=>{("M"===e[0]||"L"===e[0])&&(t[i]=[e[0],c?p-e[1]:e[1],c?e[2]:p-e[2]])})};if(s.forEach(t=>{t.lineClip=[],t.translated=H(d.toPixels(tx(t.value,e),!0)||0,0,p)}),i&&!this.showLine&&i.hide(),t&&t.hide(),"y"===n&&o.length<r.len)for(let t of o){let{plotX:e,plotY:i,zone:o}=t,r=o&&s[s.indexOf(o)-1];o&&f(o,e,i),r&&f(r,e,i)}let m=[],x=d.toPixels(d.getExtremes().min-g,!0);s.forEach(e=>{let s=e.lineClip||[],o=Math.round(e.translated||0);r.reversed&&s.reverse();let{clip:n,simpleClip:d}=e,p=0,g=0,f=r.len,y=a.len;c?(p=o,f=x):(g=o,y=x);let b=[["M",p,g],["L",f,g],["L",f,y],["L",p,y],["Z"]],v=[b[0],...s,b[1],b[2],...m,b[3],b[4]];m=s.reverse(),x=o,h&&(u(v),t&&u(b)),n?(n.animate({d:v}),d?.animate({d:b})):(n=e.clip=l.path(v),t&&(d=e.simpleClip=l.path(b))),i&&e.graph?.clip(n),t&&e.area?.clip(d)})}else this.visible&&(i&&i.show(),t&&t.show())}plotGroup(t,e,i,s,o){let r=this[t],a=!r,n={visibility:i,zIndex:s||.1};return j(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(n.opacity=this.opacity),r||(this[t]=r=this.chart.renderer.g().add(o)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(j(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(n)[a?"attr":"animate"](this.getPlotBox(e)),r}getPlotBox(t){let e=this.xAxis,i=this.yAxis,s=this.chart,o=s.inverted&&!s.polar&&e&&this.invertible&&"series"===t;s.inverted&&(e=i,i=this.xAxis);let r={scale:1,translateX:e?e.left:s.plotLeft,translateY:i?i.top:s.plotTop,name:t};q(this,"getPlotBox",r);let{scale:a,translateX:n,translateY:h}=r;return{translateX:n,translateY:h,rotation:90*!!o,rotationOriginX:o?a*(e.len-i.len)/2:0,rotationOriginY:o?a*(e.len+i.len)/2:0,scaleX:o?-a:a,scaleY:a}}removeEvents(t){let{eventsToUnbind:e}=this;t||tw(this),e.length&&(e.forEach(t=>{t()}),e.length=0)}render(){let t=this,{chart:e,options:i,hasRendered:s}=t,o=iO(i.animation),r=t.visible?"inherit":"hidden",a=i.zIndex,n=e.seriesGroup,h=t.finishedAnimating?0:o.duration;q(this,"render"),e.plotClipInner&&(t.plotClipGroup||(t.plotClipGroup=e.renderer.g().add(n))),t.plotGroup("group","series",r,a,t.plotClipGroup||n),t.markerGroup=t.plotGroup("markerGroup","markers",r,a,n),!1!==i.clip&&t.setClip(),h&&t.animate?.(!0),t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels?.(),t.redrawPoints?.(),i.enableMouseTracking&&t.drawTracker?.(),h&&t.animate?.(),s||(h&&o.defer&&(h+=o.defer),t.animationTimeout=tS(()=>{t.afterAnimate()},h||0)),t.isDirty=!1,t.hasRendered=!0,q(t,"afterRender")}redraw(){let t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree,this.condemnedPoints.length=0}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(t,e){let{xAxis:i,yAxis:s}=this,o=this.chart.inverted;return this.searchKDTree({clientX:o?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:o?s.len-t.chartX+s.pos:t.chartY-s.pos},e,t)}buildKDTree(t){this.buildingKdTree=!0;let e=this,i=e.options,s=i.findNearestPointBy.indexOf("y")>-1?2:1;delete e.kdTree,tS(function(){e.kdTree=function t(i,s,o){let r,a,n=i?.length;if(n)return r=e.kdAxisArray[s%o],i.sort((t,e)=>(t[r]||0)-(e[r]||0)),{point:i[a=Math.floor(n/2)],left:t(i.slice(0,a),s+1,o),right:t(i.slice(a+1),s+1,o)}}(e.getValidPoints(void 0,!e.directTouch,i?.nullInteraction),s,s),e.buildingKdTree=!1},i.kdNow||t?.type==="touchstart"?0:1)}searchKDTree(t,e,i,s,o){let r=this,[a,n]=this.kdAxisArray,h=e?"distX":"dist",l=(r.options.findNearestPointBy||"").indexOf("y")>-1?2:1,d=!!r.isBubble,c=s||((t,e,i)=>{let s=t[i]||0,o=e[i]||0;return[s===o&&t.index>e.index||s<o?t:e,!1]}),p=o||((t,e)=>t<e);if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,s,o){let l,g,u,f,m,x,y,b=i.point,v=r.kdAxisArray[s%o],k=b,w=!1;l=e[a],g=b[a],u=j(l)&&j(g)?l-g:null,f=e[n],m=b[n],x=j(f)&&j(m)?f-m:0,y=d&&b.marker?.radius||0,b.dist=Math.sqrt((u&&u*u||0)+x*x)-y,b.distX=j(u)?Math.abs(u)-y:Number.MAX_VALUE;let M=(e[v]||0)-(b[v]||0)+(d&&b.marker?.radius||0),C=M<0?"left":"right",S=M<0?"right":"left";return i[C]&&([k,w]=c(b,t(e,i[C],s+1,o),h)),i[S]&&p(Math.sqrt(M*M),k[h],w)&&(k=c(k,t(e,i[S],s+1,o),h)[0]),k}(t,this.kdTree,l,l)}pointPlacementToXValue(){let{options:t,xAxis:e}=this,i=t.pointPlacement;return"between"===i&&(i=e.reversed?-.5:.5),tn(i)?i*(t.pointRange||e.pointRange):0}isPointInside(t){let{chart:e,xAxis:i,yAxis:s}=this,{plotX:o=-1,plotY:r=-1}=t;return r>=0&&r<=(s?s.len:e.plotHeight)&&o>=0&&o<=(i?i.len:e.plotWidth)}drawTracker(){let t=this,e=t.options,i=e.trackByArea,s=[].concat((i?t.areaPath:t.graphPath)||[]),o=t.chart,r=o.pointer,a=o.renderer,n=o.options.tooltip?.snap||0,h=()=>{e.enableMouseTracking&&o.hoverSeries!==t&&t.onMouseOver()},l="rgba(192,192,192,"+(iB?1e-4:.002)+")",d=t.tracker;d?d.attr({d:s}):t.graph&&(t.tracker=d=a.path(s).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),o.styledMode||d.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:l,fill:i?l:"none","stroke-width":t.graph.strokeWidth()+(i?0:2*n)}),[t.tracker,t.markerGroup,...t.dataLabelsGroups||[]].forEach(t=>{t&&(t.addClass("highcharts-tracker").on("mouseover",h).on("mouseout",t=>{r?.onTrackerMouseOut(t)}),e.cursor&&!o.styledMode&&t.css({cursor:e.cursor}),t.on("touchstart",h))})),q(this,"afterDrawTracker")}addPoint(t,e,i,s,o){let r,a,n=this.options,{chart:h,data:l,dataTable:d,xAxis:c}=this,p=c?.hasNames&&c.names,g=n.data,u=this.getColumn("x");e=tx(e,!0);let{applyOptions:f,optionsToObject:m}=this.pointClass.prototype,x={series:this},y=m.call(x,t);f.call(x,y,void 0,!1);let b=x.x;if(a=u.length,this.requireSorting&&b<u[a-1])for(r=!0;a&&u[a-1]>b;)a--;d.setRow(y,a,!0),this.xColumn?.splice(a,0,this.getX(b)),p&&x.name&&(p[b]=x.name),g?.splice(a,0,t),(r||this.hasProcessedDataTable)&&(this.data.splice(a,0,null),this.processData()),"point"===n.legendType&&this.generatePoints(),i&&(l[0]&&l[0].remove?l[0].remove(!1):([l,g,this.xColumn].filter(j).forEach(t=>{t.shift()}),d.deleteRows(0))),!1!==o&&q(this,"addPoint",{point:x}),this.isDirty=!0,this.isDirtyData=!0,e&&h.redraw(s)}removePoint(t,e,i){let s=this,{chart:o,data:r,points:a,dataTable:n}=s,h=r[t],l=function(){[a?.length===r.length?a:void 0,r,s.options.data,s.xColumn].filter(j).forEach(e=>{e.splice(t,1)}),n.deleteRows(t),n.modified=n,h?.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&o.redraw()};iE(i,o),e=tx(e,!0),h?h.firePointEvent("remove",null,l):l()}remove(t,e,i,s){let o=this,r=o.chart;function a(){o.destroy(s),r.isDirtyLegend=r.isDirtyBox=!0,r.linkSeries(s),tx(t,!0)&&r.redraw(e)}!1!==i?q(o,"remove",null,a):a()}update(t,e){q(this,"update",{options:t=U(t,this.userOptions)});let i=this,s=i.chart,o=i.userOptions,r=i.initialType||i.type,a=s.options.plotOptions,n=iz[r].prototype,h=i.finishedAnimating&&{animation:!1},l={},d=t.data||t.dataTable,c,p,g=iW.keepProps.slice(),u=t.type||o.type||s.options.chart.type,f=!(this.hasDerivedData||u&&u!==this.type||void 0!==t.keys||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(t=>i.hasOptionChanged(t)));u=u||r,f?(g.push.apply(g,iW.keepPropsForPoints),!1!==t.visible&&(g.push("area","graph"),"zones"in t||g.push("zones")),i.parallelArrays.forEach(function(t){g.push(t+"Data")}),d&&(t.dataSorting&&_(i.options.dataSorting,t.dataSorting),this.setData(d,!1))):this.dataTable.modified=this.dataTable,t.dataLabels&&o.dataLabels&&(t.dataLabels=this.mergeArrays(o.dataLabels,t.dataLabels)),t=tp(o,{index:void 0===o.index?i.index:o.index,pointStart:a?.series?.pointStart??o.pointStart},!f&&{data:i.options.data},t,h),f&&t.data&&(t.data=i.options.data),(g=["dataLabelsGroup","dataLabelsGroups","dataLabelsParentGroups","group","markerGroup","plotClipGroup","transformGroup"].concat(g)).forEach(function(t){g[t]=i[t],delete i[t]});let m=!1;if(iz[u]){if(m=u!==i.type,i.remove(!1,!1,!1,!0),m)if(s.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(i,iz[u].prototype);else{let t=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents;for(p in n)i[p]=void 0;_(i,iz[u].prototype),t?i.hcEvents=t:delete i.hcEvents}}else tL(17,!0,s,{missingModuleFor:u});if(g.forEach(function(t){i[t]=g[t]}),i.init(s,t),f&&this.points)for(let t of(!1===(c=i.options).visible?(l.graphic=1,l.dataLabel=1):(this.hasMarkerChanged(c,o)&&(l.graphic=1),i.hasDataLabels?.()||(l.dataLabel=1)),this.points))t?.series&&(t.resolveColor(),Object.keys(l).length&&t.destroyElements(l),!1===c.showInLegend&&t.legendItem&&s.legend.destroyItem(t));i.initialType=r,s.linkSeries(),m&&i.linkedSeries.length&&(i.isDirtyData=!0),q(this,"afterUpdate"),tx(e,!0)&&s.redraw(!!f&&void 0)}setName(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}hasOptionChanged(t){let e=this.chart,i=this.options[t],s=e.options.plotOptions,o=this.userOptions[t],r=tx(s?.[this.type]?.[t],s?.series?.[t]);return o&&!j(r)?i!==o:i!==tx(r,i)}onMouseOver(){let t=this.chart,e=t.hoverSeries,i=t.pointer;i?.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),q(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this}onMouseOut(){let t=this.chart,e=t.tooltip,i=t.hoverPoint;t.hoverSeries=null,i&&i.onMouseOut(),q(this,"mouseOut"),e&&!this.stickyTracking&&(!e.shared||this.noSharedTooltip)&&e.hide(),t.series.forEach(function(t){t.setState("",!0)})}setState(t,e){let i=this,{graph:s,options:o}=i,{inactiveOtherPoints:r,states:a}=o,n=tx(a?.[t||"normal"]?.animation,i.chart.options.chart.animation),{lineWidth:h,opacity:l}=o;if(t=t||"",i.state!==t&&([i.group,i.markerGroup,...i.dataLabelsGroups||[]].forEach(function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))}),i.state=t,!i.chart.styledMode)){if(a[t]?.enabled===!1)return;if(t&&(h=a[t].lineWidth||h+(a[t].lineWidthPlus||0),l=tx(a[t].opacity,l)),s&&!s.dashstyle&&tn(h))for(let t of[s,...this.zones.map(t=>t.graph)])t?.animate({"stroke-width":h},n);r||[i.group,i.markerGroup,...i.dataLabelsGroups||[],i.labelBySeries].forEach(function(t){t?.animate({opacity:l},n)})}e&&r&&i.points&&i.setAllPointsToState(t||void 0)}setAllPointsToState(t){this.points.forEach(function(e){e.setState&&e.setState(t)})}setVisible(t,e){let i=this,s=i.chart,o=s.options.chart.ignoreHiddenSeries,r=i.visible;i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!r:t;let a=t?"show":"hide";["group","markerGroup","tracker","tt"].forEach(t=>{i[t]?.[a]()}),i.dataLabelsGroups?.forEach(t=>{t?.[a]()}),(s.hoverSeries===i||s.hoverPoint?.series===i)&&i.onMouseOut(),i.legendItem&&s.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&s.series.forEach(t=>{t.options.stacking&&t.visible&&(t.isDirty=!0)}),i.linkedSeries.forEach(e=>{e.setVisible(t,!1)}),o&&(s.isDirtyBox=!0),q(i,a),!1!==e&&s.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),q(this,t?"select":"unselect")}shouldShowTooltip(t,e,i={}){return i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)}drawLegendSymbol(t,e){let i=this.chart.renderer,s=this.options.legendSymbol||"rectangle",o=e.legendItem||{},{options:r,symbolHeight:a,symbolWidth:n}=t,h=r.squareSymbol,l=h?a:n,d=h?(n-a)/2:0,c=(t.baseline||0)-a+1,p=r.symbolRadius??a,g="rectangle"===s?i.rect(d,c,l,a,p):i.symbols[s]&&i.symbol(s,d,c,l,a,{r:p});g?o.symbol=g.addClass("highcharts-point").attr({zIndex:3}).add(o.group):iS[s]?.call(this,t,e)}}iW.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"var(--highcharts-background-color)",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"var(--highcharts-neutral-color-20)",lineColor:"var(--highcharts-neutral-color-100)",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,distance:4,formatter:function(){let{numberFormatter:t}=this.series.chart;return"number"!=typeof this.y?"":t(this.y,-1)},padding:[1,3],style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},iW.types=iL.seriesTypes,iW.registerType=iL.registerSeriesType,iW.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],iW.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","condemnedPoints","dataTable","hasProcessedDataTable","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],_(iW.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:ip,requireSorting:!0,sorted:!0}),iL.series=iW;let iH=iW,{animObject:iG,setAnimation:iX}=tq,{registerEventOptions:iF}=e$,{composed:iY,marginNames:ij}=E,{distribute:i$}=ei,{format:iV}=ee;class iU{constructor(t,e){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.setOptions(e),e.enabled&&(this.render(),iF(this,e),N(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),N(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(t){let e=tx(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=tp(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop,this.itemMarginBottom=t.itemMarginBottom,this.padding=e,this.initialItemY=e-5,this.symbolWidth=tx(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0}update(t,e){let i=this.chart;this.setOptions(tp(!0,this.options,t)),"events"in this.options&&iF(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,tx(e,!0)&&i.redraw(),q(this,"afterUpdate",{redraw:e})}colorizeItem(t,e){let i=t.color,{area:s,group:o,label:r,line:a,symbol:n}=t.legendItem||{};if((t instanceof iH||t instanceof ip)&&(t.color=t.options?.legendSymbolColor||i),o?.[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:i={}}=this,o=i.color,{fillColor:h,lineColor:l}=t.options,d=t=>(!e&&(t.fill&&(t.fill=o),t.stroke&&(t.stroke=o)),t);r?.css(tp(e?this.itemStyle:i)),a?.attr(d({stroke:l||t.color})),n?.attr(d(t.series?t.series.pointAttribs?.(t):t.pointAttribs?.()||{fill:t.color})),s?.attr(d({fill:h||t.color,"fill-opacity":h?1:t.options.fillOpacity??.75}))}t.color=i,q(this,"afterColorizeItem",{item:t,visible:e})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(t){let{group:e,x:i=0,y:s=0}=t.legendItem||{},o=this.options,r=o.symbolPadding,a=!o.rtl,n=t.checkbox;if(e?.element){let o={translateX:a?i:this.legendWidth-i-2*r-4,translateY:s},n=()=>{q(this,"afterPositionItem",{item:t})};e[j(e.translateY)?"animate":"attr"](o,void 0,n)}n&&(n.x=i,n.y=s)}destroyItem(t){let e=t.legendItem||{};for(let t of["group","label","line","symbol"])e[t]&&(e[t]=e[t].destroy());t.checkbox=V(t.checkbox),t.legendItem=void 0}destroy(){for(let t of this.getAllItems())this.destroyItem(t);for(let t of["clipRect","up","down","pager","nav","box","title","group"])this[t]&&(this[t]=this[t].destroy());this.display=null}positionCheckboxes(){let t,e=this.group?.alignAttr,i=this.clipHeight||this.legendHeight,s=this.titleHeight;e&&(t=e.translateY,this.allItems.forEach(function(o){let r,a=o.checkbox;a&&(r=t+s+a.y+(this.scrollOffset||0)+3,Y(a,{left:e.translateX+o.checkboxOffset+a.x-20+"px",top:r+"px",display:this.proximate||r>t-6&&r<t+i-6?"":"none"}))},this))}renderTitle(){let t=this.options,e=this.padding,i=t.title,s,o=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),o=(s=this.title.getBBox()).height,this.offsetWidth=s.width,this.contentGroup.attr({translateY:o})),this.titleHeight=o}setText(t){let e=this.options;t.legendItem.label.attr({text:e.labelFormat?iV(e.labelFormat,t,this.chart):e.labelFormatter.call(t,t)})}renderItem(t){let e=t.legendItem=t.legendItem||{},i=this.chart,s=i.renderer,o=this.options,r="horizontal"===o.layout,a=this.symbolWidth,n=o.symbolPadding||0,h=this.itemStyle,l=this.itemHiddenStyle,d=r?tx(o.itemDistance,20):0,c=!o.rtl,p=!t.series,g=!p&&t.series.drawLegendSymbol?t.series:t,u=g.options,f=!!this.createCheckboxForItem&&u&&u.showCheckbox,m=o.useHTML,x=t.options.className,y=e.label,b=a+n+d+20*!!f;!y&&(e.group=s.g("legend-item").addClass("highcharts-"+g.type+"-series highcharts-color-"+t.colorIndex+(x?" "+x:"")+(p?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.label=y=s.text("",c?a+n:-n,this.baseline||0,m),i.styledMode||y.css(tp(t.visible?h:l)),y.attr({align:c?"left":"right",zIndex:2}).add(e.group),!this.baseline&&(this.fontMetrics=s.fontMetrics(y),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,y.attr("y",this.baseline),this.symbolHeight=tx(o.symbolHeight,this.fontMetrics.f),o.squareSymbol&&(this.symbolWidth=tx(o.symbolWidth,Math.max(this.symbolHeight,16)),b=this.symbolWidth+n+d+20*!!f,c&&y.attr("x",this.symbolWidth+n))),g.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,y,m)),f&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),(i.styledMode||!h.width)&&y.css({width:Math.min(o.itemWidth||this.widthOption||i.spacingBox.width,o.maxWidth?tv(o.maxWidth,i.chartWidth):1/0)-b+"px"}),this.setText(t);let v=y.getBBox(),k=this.fontMetrics?.h||0;t.itemWidth=t.checkboxOffset=o.itemWidth||e.labelWidth||v.width+b,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(v.height>1.5*k?v.height:k))}layoutItem(t){let e=this.options,i=this.padding,s="horizontal"===e.layout,o=t.itemHeight,r=this.itemMarginBottom,a=this.itemMarginTop,n=s?tx(e.itemDistance,20):0,h=this.maxLegendWidth,l=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth,d=t.legendItem||{};s&&this.itemX-i+l>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=a+this.itemY+r,this.lastLineHeight=Math.max(o,this.lastLineHeight),d.x=this.itemX,d.y=this.itemY,s?this.itemX+=l:(this.itemY+=a+o+r,this.lastLineHeight=o),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:n):l)+i,this.offsetWidth)}getAllItems(){let t=[];return this.chart.series.forEach(function(e){let i=e?.options;e&&tx(i.showInLegend,!j(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItem?.labels||("point"===i.legendType?e.data:e)))}),q(this,"afterGetAllItems",{allItems:t}),t}getAlignment(){let t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)}adjustMargins(t,e){let i=this.chart,s=this.options,o=this.getAlignment();o&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((r,a)=>{r.test(o)&&!j(t[a])&&(i[ij[a]]=Math.max(i[ij[a]],i.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*s[a%2?"x":"y"]+(s.margin??12)+e[a]+(i.titleOffset[a]||0)))})}proximatePositions(){let t,e=this.chart,i=[],s="left"===this.options.align;for(let o of(this.allItems.forEach(function(t){let o,r,a=s,n,h;t.yAxis&&(t.xAxis.options.reversed&&(a=!a),t.points&&(o=ts(a?t.points:t.points.slice(0).reverse(),function(t){return tn(t.plotY)})),r=this.itemMarginTop+t.legendItem.label.getBBox().height+this.itemMarginBottom,h=t.yAxis.top-e.plotTop,n=t.visible?(o?o.plotY:t.yAxis.height)+(h-.3*r):h+t.yAxis.height,i.push({target:n,size:r,item:t}))},this),i$(i,e.plotHeight)))t=o.item.legendItem||{},tn(o.pos)&&(t.y=e.plotTop-e.spacing[0]+o.pos)}render(){let t=this.chart,e=t.spacingBox.width,i=t.renderer,s=this.options,o=this.padding,r=this.getAllItems(),a,n,h,l=this.group,d,c=this.box;this.itemX=o,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=tv(s.width,e-o),d=e-2*o-s.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(d/=2),this.maxLegendWidth=this.widthOption||d,l||(this.group=l=i.g("legend").addClass(s.className||"").attr({zIndex:7}).add(),this.contentGroup=i.g().attr({zIndex:1}).add(l),this.scrollGroup=i.g().add(this.contentGroup)),this.renderTitle(),tC(r,(t,e)=>(t.options?.legendIndex||0)-(e.options?.legendIndex||0)),s.reversed&&r.reverse(),this.allItems=r,this.display=a=!!r.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,r.forEach(this.renderItem,this),r.forEach(this.layoutItem,this),n=(s.maxWidth?Math.min(this.widthOption||this.offsetWidth,d,tv(s.maxWidth,t.chartWidth)||1/0):this.widthOption||this.offsetWidth)+o,h=this.lastItemY+this.lastLineHeight+this.titleHeight,h=this.handleOverflow(h)+o,c||(this.box=c=i.rect().addClass("highcharts-legend-box").attr({r:s.borderRadius}).add(l)),t.styledMode||c.attr({stroke:s.borderColor,"stroke-width":s.borderWidth||0,fill:s.backgroundColor||"none"}).shadow(s.shadow),n>0&&h>0&&c[c.placed?"animate":"attr"](c.crisp.call({},{x:0,y:0,width:n,height:h},c.strokeWidth())),l[a?"show":"hide"](),t.styledMode&&"none"===l.getStyle("display")&&(n=h=0),this.legendWidth=n,this.legendHeight=h,a&&this.align(),this.proximate||this.positionItems(),q(this,"afterRender")}align(t=this.chart.spacingBox){let e=this.chart,i=this.options,s=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&e.titleOffset[0]>0?s+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&e.titleOffset[2]>0&&(s-=e.titleOffset[2]),s!==t.y&&(t=tp(t,{y:s})),e.hasRendered||(this.group.placed=!1),this.group.align(tp(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)}handleOverflow(t){let e=this,i=this.chart,s=i.renderer,o=this.options,r=o.y,a="top"===o.verticalAlign,n=this.padding,h=o.maxHeight,l=o.navigation,d=tx(l.animation,!0),c=l.arrowSize||12,p=this.pages,g=this.allItems,u=function(t){"number"==typeof t?w.attr({height:t}):w&&(e.clipRect=w.destroy(),e.contentGroup.clip()),e.contentGroup.div&&(e.contentGroup.div.style.clip=t?"rect("+n+"px,9999px,"+(n+t)+"px,0)":"auto")},f=function(t){return e[t]=s.circle(0,0,1.3*c).translate(c/2,c/2).add(k),i.styledMode||e[t].attr("fill","rgba(0,0,0,0.0001)"),e[t]},m,x,y,b,v=i.spacingBox.height+(a?-r:r)-n,k=this.nav,w=this.clipRect;return"horizontal"!==o.layout||"middle"===o.verticalAlign||o.floating||(v/=2),h&&(v=Math.min(v,h)),p.length=0,t&&v>0&&t>v&&!1!==l.enabled?(this.clipHeight=m=Math.max(v-20-this.titleHeight-n,0),this.currentPage=tx(this.currentPage,1),this.fullHeight=t,g.forEach((t,e)=>{let i=(y=t.legendItem||{}).y||0,s=Math.round(y.label.getBBox().height),o=p.length;(!o||i-p[o-1]>m&&(x||i)!==p[o-1])&&(p.push(x||i),o++),y.pageIx=o-1,x&&b&&(b.pageIx=o-1),e===g.length-1&&i+s-p[o-1]>m&&i>p[o-1]&&(p.push(i),y.pageIx=o),i!==x&&(x=i),b=y}),w||(w=e.clipRect=s.clipRect(0,n-2,9999,0),e.contentGroup.clip(w)),u(m),k||(this.nav=k=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,c,c).add(k),f("upTracker").on("click",function(){e.scroll(-1,d)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&l.style&&this.pager.css(l.style),this.pager.add(k),this.down=s.symbol("triangle-down",0,0,c,c).add(k),f("downTracker").on("click",function(){e.scroll(1,d)})),e.scroll(0),t=v):k&&(u(),this.nav=k.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t}scroll(t,e){let i=this.chart,s=this.pages,o=s.length,r=this.clipHeight,a=this.options.navigation,n=this.pager,h=this.padding,l=this.currentPage+t;l>o&&(l=o),l>0&&(void 0!==e&&iX(e,i),this.nav.attr({translateX:h,translateY:r+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===l?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),n.attr({text:l+"/"+o}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:l===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:1===l?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:1===l?"default":"pointer"}),this.down.attr({fill:l===o?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:l===o?"default":"pointer"})),this.scrollOffset=-s[l-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=l,this.positionCheckboxes(),tS(()=>{q(this,"afterScroll",{currentPage:l})},iG(tx(e,i.renderer.globalAnimation,!0)).duration))}setItemEvents(t,e,i){let s=this,o=t.legendItem||{},r=s.chart.renderer.boxWrapper,a=t instanceof ip,n=t instanceof iH,h="highcharts-legend-"+(a?"point":"series")+"-active",l=s.chart.styledMode,d=i?[e,o.symbol]:[o.group],c=e=>{s.allItems.forEach(i=>{t!==i&&[i].concat(i.linkedSeries||[]).forEach(t=>{t.setState(e,!a)})})};for(let i of d)i&&i.on("mouseover",function(){t.visible&&c("inactive"),t.setState("hover"),t.visible&&r.addClass(h),l||e.css(s.options.itemHoverStyle)}).on("mouseout",function(){s.chart.styledMode||e.css(tp(t.visible?s.itemStyle:s.itemHiddenStyle)),c(""),r.removeClass(h),t.setState()}).on("click",function(e){let i=function(){t.setVisible&&t.setVisible(),c(t.visible?"inactive":"")};r.removeClass(h),q(s,"itemClick",{browserEvent:e,legendItem:t,context:s},i),a?t.firePointEvent("legendItemClick",{browserEvent:e}):n&&q(t,"legendItemClick",{browserEvent:e})})}createCheckboxForItem(t){t.checkbox=X("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),N(t.checkbox,"click",function(e){let i=e.target;q(t.series||t,"checkboxClick",{checked:i.checked,item:t},function(){t.select()})})}}(l=iU||(iU={})).compose=function(t){tb(iY,"Core.Legend")&&N(t,"beforeMargins",function(){this.legend=new l(this,this.options.legend)})};let iZ=iU,{animate:i_,animObject:iK,setAnimation:iq}=tq,{defaultOptions:iJ}=tX,{numberFormat:iQ}=ee,{registerEventOptions:i0}=e$,{charts:i1,doc:i2,marginNames:i5,win:i3}=E,{seriesTypes:i6}=iL;class i9{static chart(t,e,i){let s=new i9(t,e,i);return s.promise||s}constructor(t,e,i){if(this.sharedClips={},!i2)return void tL(36,!1,this);const s=[...arguments];(th(t)||t.nodeName)&&(this.renderTo=s.shift()),this.init(s[0],s[1])}setZoomOptions(){let t=this.options.chart,e=t.zooming;this.zooming={...e,type:tx(t.zoomType,e.type),key:tx(t.zoomKey,e.key),pinchType:tx(t.pinchType,e.pinchType),singleTouch:tx(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:tp(e.resetButton,t.resetZoomButton)}}init(t,e){q(this,"init",{args:arguments},function(){let i=tp(iJ,t),s=i.chart,o=this.renderTo||s.renderTo;this.userOptions=_({},t),(this.renderTo=th(o)?i2.getElementById(o):o)||tL(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],!0===e?this.promise=new Promise(t=>{this.callback=t}):this.callback=e,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.locale=i.lang.locale??this.renderTo.closest("[lang]")?.lang,this.time=new tR(_(i.time||{},{locale:this.locale}),i.lang),i.time=this.time.options,this.numberFormatter=(s.numberFormatter||iQ).bind(this),this.styledMode=s.styledMode,this.hasCartesianSeries=s.showAxes,this.index=i1.length,this.dataTable=this.getDataTable(i),i1.push(this),E.chartCount++,i0(this,s),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),q(this,"afterInit"),this.firstRender()})}getDataTable(t){return(t.dataTable?tM(t.dataTable):[]).map(t=>t.isDataTable?t:new iw(t))}initSeries(t){let e=this.options.chart,i=t.type||e.type,s=i6[i];s||tL(17,!0,this,{missingModuleFor:i});let o=new s;return"function"==typeof o.init&&o.init(this,t),o}orderItems(t,e=0){let i=this[t],s=this.options[t]=tM(this.options[t]).slice(),o=this.userOptions[t]=this.userOptions[t]?tM(this.userOptions[t]).slice():[];if(this.hasRendered&&(s.splice(e),o.splice(e)),i)for(let t=e,r=i.length;t<r;++t){let e=i[t];e&&(e.index=t,e instanceof iH&&(e.name=e.getName()),e.options.isInternal||(s[t]=e.options,o[t]=e.userOptions))}}getClipBox(t,e){let i=this.inverted,{xAxis:s,yAxis:o}=t||{},{x:r,y:a,width:n,height:h}=tp(this.clipBox);return t&&(s&&s.len!==this.plotSizeX&&!s.isRadial&&(n=s.len),o&&o.len!==this.plotSizeY&&!o.isRadial&&(h=o.len),i&&!t.invertible&&([n,h]=[h,n])),e&&(r+=(i?o:s)?.pos??this.plotLeft,a+=(i?s:o)?.pos??this.plotTop),{x:r,y:a,width:n,height:h}}isInsidePlot(t,e,i={}){let{inverted:s,plotBox:o,plotLeft:r,plotTop:a,scrollablePlotBox:n}=this,{scrollLeft:h=0,scrollTop:l=0}=i.visiblePlotOnly&&this.scrollablePlotArea?.scrollingContainer||{},d=i.series,c=i.visiblePlotOnly&&n||o,p=i.inverted?e:t,g=i.inverted?t:e,u={x:p,y:g,isInsidePlot:!0,options:i};if(!i.ignoreX){let t=d&&(s&&!this.polar?d.yAxis:d.xAxis)||{pos:r,len:1/0},e=i.paneCoordinates?t.pos+p:r+p;e>=Math.max(h+r,t.pos)&&e<=Math.min(h+r+c.width,t.pos+t.len)||(u.isInsidePlot=!1)}if(!i.ignoreY&&u.isInsidePlot){let t=!s&&i.axis&&!i.axis.isXAxis&&i.axis||d&&(s?d.xAxis:d.yAxis)||{pos:a,len:1/0},e=i.paneCoordinates?t.pos+g:a+g;e>=Math.max(l+a,t.pos)&&e<=Math.min(l+a+c.height,t.pos+t.len)||(u.isInsidePlot=!1)}return q(this,"afterIsInsidePlot",u),u.isInsidePlot}redraw(t){q(this,"beforeRedraw");let e=this.hasCartesianSeries?this.axes:this.colorAxis||[],i=this.series,s=this.pointer,o=this.legend,r=this.userOptions.legend,a=this.renderer,n=a.isHidden(),h=[],l,d,c,p=this.isDirtyBox,g=this.isDirtyLegend,u;for(a.rootFontSize=a.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),iq(!!this.hasRendered&&t,this),n&&this.temporaryDisplay(),this.layOutTitles(!1),c=i.length;c--;)if(((u=i[c]).options.stacking||u.options.centerInCategory)&&(d=!0,u.isDirty)){l=!0;break}if(l)for(c=i.length;c--;)(u=i[c]).options.stacking&&(u.isDirty=!0);i.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),g=!0):r&&(r.labelFormatter||r.labelFormat)&&(g=!0)),t.isDirtyData&&q(t,"updatedData")}),g&&o&&o.options.enabled&&(o.render(),this.isDirtyLegend=!1),d&&this.getStacks(),e.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),e.forEach(function(t){t.isDirty&&(p=!0)}),e.forEach(function(t){let e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,h.push(function(){q(t,"afterSetExtremes",_(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(p||d)&&t.redraw()}),p&&this.drawChartBox(),q(this,"predraw"),i.forEach(function(t){(p||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),s&&s.reset(!0),a.draw(),e.forEach(t=>{t.saveOld()}),q(this,"redraw"),q(this,"render"),n&&this.temporaryDisplay(!0),h.forEach(function(t){t.call()})}get(t){let e=this.series;function i(e){return e.id===t||e.options&&e.options.id===t}let s=ts(this.axes,i)||ts(this.series,i);for(let t=0;!s&&t<e.length;t++)s=ts(e[t].points||[],i);return s}createAxes(){let t=this.userOptions;for(let e of(q(this,"createAxes"),["xAxis","yAxis"]))for(let i of t[e]=tM(t[e]||{}))new e2(this,i,e);q(this,"afterCreateAxes")}getSelectedPoints(){return this.series.reduce((t,e)=>(e.getPointsCollection().forEach(e=>{tx(e.selectedStaging,e.selected)&&t.push(e)}),t),[])}getSelectedSeries(){return this.series.filter(t=>t.selected)}setTitle(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)}applyDescription(t,e){let i=this,s=this.options[t]=tp(this.options[t],e),o=this[t];o&&e&&(this[t]=o=o.destroy()),s&&!o&&((o=this.renderer.text(s.text,0,0,s.useHTML).attr({align:s.align,class:"highcharts-"+t,zIndex:s.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(e,s){i.applyDescription(t,e),i.layOutTitles(s)},this.styledMode||o.css(_("title"===t?{fontSize:this.options.isStock?"1em":"1.2em"}:{},s.style)),o.textPxLength=o.getBBox().width,o.css({whiteSpace:s.style?.whiteSpace}),this[t]=o)}layOutTitles(t=!0){let e=[0,0,0],{options:i,renderer:s,spacingBox:o}=this;["title","subtitle","caption"].forEach(t=>{let i=this[t],r=this.options[t],a=tp(o),n=i?.textPxLength||0;if(i&&r){q(this,"layOutTitle",{alignTo:a,key:t,textPxLength:n});let o=s.fontMetrics(i),h=o.b,l=o.h,d=r.verticalAlign||"top",c="top"===d,p=c&&r.minScale||1,g="title"===t?c?-3:0:c?e[0]+2:0,u=Math.min(a.width/n,1),f=Math.max(p,u),m=tp({y:"bottom"===d?h:g+h},r),x=(r.width||(u>p?this.chartWidth:a.width)/f)+"px";m.align??(m.align="title"===t?u<p?"left":"center":this.title?.alignValue),i.alignValue!==m.align&&(i.placed=!1);let y=Math.round(i.css({width:x}).getBBox(r.useHTML).height);if(m.height=y,i.align(m,!1,a).attr({align:m.align,scaleX:f,scaleY:f,"transform-origin":`${a.x+n*f*J(m.align)} ${l}`}),!r.floating){let t=y*(y<1.2*l?1:f);"top"===d?e[0]=Math.ceil(e[0]+t):"bottom"===d&&(e[2]=Math.ceil(e[2]+t))}}},this),e[0]&&"top"===(i.title?.verticalAlign||"top")&&(e[0]+=i.title?.margin||0),e[2]&&i.caption?.verticalAlign==="bottom"&&(e[2]+=i.caption?.margin||0);let r=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,q(this,"afterLayOutTitles"),!this.isDirtyBox&&r&&(this.isDirtyBox=this.isDirtyLegend=r,this.hasRendered&&t&&this.isDirtyBox&&this.redraw())}getContainerBox(){let t=[].map.call(this.renderTo.children,t=>{if(t!==this.container){let e=t.style.display;return t.style.display="none",[t,e]}}),e={width:ti(this.renderTo,"width",!0)||0,height:ti(this.renderTo,"height",!0)||0};return t.filter(Boolean).forEach(([t,e])=>{t.style.display=e}),e}getChartSize(){let t=this.options.chart,e=t.width,i=t.height,s=this.getContainerBox(),o=s.height<=1||!this.renderTo.parentElement?.style.height&&"100%"===this.renderTo.style.height;this.chartWidth=Math.max(0,e||s.width||600),this.chartHeight=Math.max(0,tv(i,this.chartWidth)||(o?400:s.height)),this.containerBox=s}temporaryDisplay(t){let e=this.renderTo,i;if(t)for(;e?.style;)e.hcOrigStyle&&(Y(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(i2.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e?.style&&(i2.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,i2.body.appendChild(e)),("none"===ti(e,"display",!1)||e.hcOrigDetached)&&(e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},i={display:"block",overflow:"hidden"},e!==this.renderTo&&(i.height=0),Y(e,i),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==i2.body););}setClassName(t){this.container.className="highcharts-container "+(t||"")}getContainer(){let t,e=this.options,i=e.chart,s="data-highcharts-chart",o=tI(),r=this.renderTo,a=ty(W(r,s));tn(a)&&i1[a]&&i1[a].hasRendered&&i1[a].destroy(),W(r,s,this.index),r.innerHTML=t5.emptyHTML,i.skipClone||r.offsetWidth||this.temporaryDisplay(),this.getChartSize();let n=this.chartHeight,h=this.chartWidth;this.styledMode||Y(r,{overflow:"hidden"}),this.styledMode||(t=_({position:"relative",overflow:"hidden",width:h+"px",height:n+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},i.style||{}));let l=X("div",{id:o},t,r);if(this.container=l,this.getChartSize(),h!==this.chartWidth&&(h=this.chartWidth,this.styledMode||Y(l,{width:tx(i.style?.width,h+"px")})),this._cursor=l.style.cursor,this.renderer=new eH(l,h,n,void 0,i.forExport,e.exporting?.allowHTML,this.styledMode,e.palette,this.index),this.containerBox=this.getContainerBox(),iq(void 0,this),this.setClassName(i.className),this.styledMode)for(let t in e.defs)this.renderer.definition(e.defs[t]);else this.renderer.setStyle(i.style),this.palette=this.renderer.palette;q(this,"afterGetContainer")}getMargins(t){let{spacing:e,margin:i,titleOffset:s}=this;this.resetMargins(),s[0]&&!j(i[0])&&(this.plotTop=Math.max(this.plotTop,s[0]+e[0])),s[2]&&!j(i[2])&&(this.marginBottom=Math.max(this.marginBottom,s[2]+e[2])),this.legend?.display&&this.legend.adjustMargins(i,e),q(this,"getMargins"),t||this.getAxisMargins()}getAxisMargins(){let t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,s=t.margin,o=t=>{t.forEach(t=>{t.visible&&t.getOffset()})};t.hasCartesianSeries?o(t.axes):i?.length&&o(i),i5.forEach((i,o)=>{j(s[o])||(t[i]+=e[o])}),t.setChartSize()}getOptions(){return U(this.userOptions,iJ)}reflow(t){let e=this,i=e.containerBox,s=e.getContainerBox();delete e.pointer?.chartPosition,!e.exporting?.isPrinting&&!e.isResizing&&i&&s.width&&((s.width!==i.width||s.height!==i.height)&&(to(e.reflowTimeout),e.reflowTimeout=tS(function(){if(e.container){e.setSize(void 0,void 0,!1);let t=e.containerBox;t&&(t.height=e.chartHeight)}},100*!!t)),e.containerBox=s)}setReflow(){let t=this,e=e=>{t.options?.chart.reflow&&t.hasLoaded&&t.reflow(e)};if("function"==typeof ResizeObserver)new ResizeObserver(e).observe(t.renderTo);else{let t=N(i3,"resize",e);N(this,"destroy",t)}}setSize(t,e,i){let s=this,o=s.renderer;s.isResizing+=1,iq(i,s);let r=o.globalAnimation;s.oldChartHeight=s.chartHeight,s.oldChartWidth=s.chartWidth,void 0!==t&&(s.options.chart.width=t),void 0!==e&&(s.options.chart.height=e),s.getChartSize();let{chartWidth:a,chartHeight:n,scrollablePixelsX:h=0,scrollablePixelsY:l=0}=s;(s.isDirtyBox||a!==s.oldChartWidth||n!==s.oldChartHeight)&&(s.styledMode||(r?i_:Y)(s.container,{width:`${a+h}px`,height:`${n+l}px`},r),s.setChartSize(!0),o.setSize(a,n,r),s.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),s.isDirtyLegend=!0,s.isDirtyBox=!0,s.layOutTitles(),s.getMargins(),s.redraw(r),s.oldChartHeight=void 0,q(s,"resize"),setTimeout(()=>{s&&q(s,"endResize")},iK(r).duration)),s.isResizing-=1}setChartSize(t){let e,i,s,o,{chartHeight:r,chartWidth:a,clipOffset:n,inverted:h,spacing:l,renderer:d}=this,c=Math[h?"floor":"round"];if(this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=s=Math.max(0,Math.round(a-e-(this.marginRight??0))),this.plotHeight=o=Math.max(0,Math.round(r-i-(this.marginBottom??0))),this.plotSizeX=h?o:s,this.plotSizeY=h?s:o,this.spacingBox=d.spacingBox={x:l[3],y:l[0],width:a-l[3]-l[1],height:r-l[0]-l[2]},this.plotBox=d.plotBox={x:e,y:i,width:s,height:o},n&&(this.clipBox={x:c(n[h?2:3]),y:c(n[+!!h]),width:c(this.plotSizeX-n[+!h]-n[h?2:3]),height:c(this.plotSizeY-n[+!!h]-n[h?3:2])}),!t){for(let t of this.axes)t.setAxisSize(),t.setAxisTranslation();d.alignElements()}q(this,"afterSetChartSize",{skipAxes:t})}resetMargins(){q(this,"resetMargins");let t=this,e=t.options.chart,i=e.plotBorderWidth||0,s=Math.round(i)/2;["margin","spacing"].forEach(i=>{let s=e[i],o=tc(s)?s:[s,s,s,s];["Top","Right","Bottom","Left"].forEach((s,r)=>{t[i][r]=e[`${i}${s}`]??o[r]})}),i5.forEach((e,i)=>{t[e]=t.margin[i]??t.spacing[i]}),t.axisOffset=[0,0,0,0],t.clipOffset=[s,s,s,s],t.plotBorderWidth=i}drawChartBox(){let t=this,e=t.options.chart,{backgroundColor:i,plotBackgroundColor:s,plotBackgroundImage:o,plotBorderRadius:r=0,shadow:a}=e,{chartWidth:n,chartHeight:h,clipBox:l,clipOffset:d,clipRect:c,plotBGImage:p,plotBox:g,plotLeft:u,plotTop:f,plotWidth:m,plotHeight:x,renderer:y,styledMode:b}=t,v=t.chartBackground,k=t.plotBackground,w=t.plotBorder,M,C,S,T="animate";v||(t.chartBackground=v=y.rect().addClass("highcharts-background").add(),T="attr"),b?M=C=v.strokeWidth():(C=(M=e.borderWidth||0)+8*!!a,S={fill:i||"none"},(M||v["stroke-width"])&&(S.stroke=e.borderColor,S["stroke-width"]=M),v.attr(S).shadow(a)),v[T]({x:C/2,y:C/2,width:n-C-M%2,height:h-C-M%2,r:e.borderRadius}),T="animate",k||(T="attr",t.plotBackground=k=y.rect().addClass("highcharts-plot-background").add()),k[T]({...g,r:r}),!b&&(k.attr({fill:s||"none"}).shadow(e.plotShadow),o&&(p?(o!==p.attr("href")&&p.attr("href",o),p.animate(g)):t.plotBGImage=y.image(o,u,f,m,x).add())),c?c.animate({width:l.width,height:l.height}):t.clipRect=y.clipRect(l),T="animate",w||(T="attr",t.plotBorder=w=y.rect().addClass("highcharts-plot-border").attr({zIndex:1.5}).add()),w.attr(b?void 0:{stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"})[T]({r:r});let A=w.strokeWidth(),P=tp(w.crisp(g,-A));if(d&&!b){let t=d[0]-A/2,e=d[3]-A/2;P.x-=e,P.y-=t,P.width+=e+d[1]-A/2,P.height+=t+d[2]-A/2}w[T](P),["plotClipOuter","plotClipInner"].forEach((e,i)=>{let s=t[e],o=i?-A:A;s?.[r?T:"attr"]({x:P.x-o/2,y:P.y-o/2,width:P.width+o,height:P.height+o,r:r?r+o/2:0}),s?.parentGroup?.attr({display:r?"":"none"})}),t.isDirtyBox=!1,q(this,"afterDrawChartBox")}propFromSeries(){let t,e,i,s=this,o=s.options.chart,r=s.options.series;["inverted","angular","polar"].forEach(function(a){for(e=i6[o.type],i=o[a]||e&&e.prototype[a],t=r?.length;!i&&t--;)(e=i6[r[t].type])&&e.prototype[a]&&(i=!0);s[a]=i})}linkSeries(t){let e=this,i=e.series;i.forEach(function(t){t.linkedSeries.length=0}),i.forEach(function(t){let{linkedTo:s}=t.options,o=th(s)&&(":previous"===s?i[t.index-1]:e.get(s));o&&o.linkedParent!==t&&(o.linkedSeries.push(t),t.linkedParent=o,t.visible=t.options.visible??o.options.visible??t.visible)}),q(this,"afterLinkSeries",{isUpdating:t})}renderSeries(){this.series.forEach(function(t){t.translate(),t.render()})}render(){let t=this.axes,e=this.colorAxis,i=this.renderer,{axisLayoutRuns:s=2,plotBorderRadius:o}=this.options.chart,r=t=>{t.forEach(t=>{t.visible&&t.render()})},a=0,n=!0,h,l=0;for(let e of(o&&(this.plotClipOuter||(this.plotClipOuter=i.clipRect()),this.plotClipInner||(this.plotClipInner=i.clipRect())),this.setTitle(),q(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),t)){let{options:t}=e,{labels:i,offset:s}=t;if(this.hasCartesianSeries&&e.horiz&&e.visible&&i.enabled&&e.series.length&&"colorAxis"!==e.coll&&!e.isRadial){a=t.tickLength,e.createGroups();let o=new eU(e,0,"",!0),r=o.createLabel("x",i);if(o.destroy(),r&&tx(i.reserveSpace,!tn(t.crossing))&&(a=r.getBBox().height+i.distance+Math.max(tn(s)?s:0,0)),a){r?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-a,0);(n||h||s>1)&&l<s;){let e=this.plotWidth,i=this.plotHeight,s=[1.05,1.1];for(let e of t){let t=+(e.horiz||0);if(0===l){e.setScale();let i=e.tickPositions?.info?.match;i&&(s[t]=Math.min(i,s[t]))}else(t&&n||!t&&h)&&e.setTickInterval(!0)}0===l?this.getAxisMargins():this.getMargins(),n=e/this.plotWidth>(l?1:s[1]),h=i/this.plotHeight>(l?1:s[0]),l++}this.drawChartBox(),this.hasCartesianSeries?r(t):e?.length&&r(e),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(t){let e=this,i=tp(!0,this.options.credits,t);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0,i.useHTML).addClass("highcharts-credits").on("click",function(t){q(e,"creditsClick",t,()=>{i.href&&(i3.location.href=i.href)})}).attr({align:i.position.align,zIndex:8}),i.events?.click&&N(e,"creditsClick",i.events.click),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})}destroy(){let t,e=this,i=e.axes,s=e.series,o=e.container,r=o?.parentNode;for(q(e,"destroy"),e.renderer.forExport?Z(i1,e):i1[e.index]=void 0,E.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),tw(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller?.destroy?.(),t=s.length;t--;)s[t]=s[t].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(t=>{e[t]=e[t]?.destroy?.()}),o&&(o.innerHTML=t5.emptyHTML,tw(o),r&&V(o)),tu(e,function(t,i){delete e[i]})}firstRender(){let t=this,e=t.options;t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.createAxes();let i=tl(e.series)?e.series:[];e.series=[],i.forEach(function(e){t.initSeries(e)}),t.linkSeries(),q(t,"beforeRender"),t.render(),t.pointer?.getChartPosition(),t.renderer.asyncCounter||t.hasLoaded||t.onload(),t.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),q(this,"load"),q(this,"render"),j(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.warnIfCSSNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:t,title:e}=this;t&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(e?.element.textContent||"").replace(/</g,"<")}),t.accessibility&&!1===t.accessibility.enabled||tL('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}warnIfCSSNotLoaded(){this.styledMode&&"0"!==i3.getComputedStyle(this.container).zIndex&&tL(35,!1,this)}addSeries(t,e,i){let s,o=this;return t&&(e=tx(e,!0),q(o,"addSeries",{options:t},function(){s=o.initSeries(t),o.isDirtyLegend=!0,o.linkSeries(),q(o,"afterAddSeries",{series:s}),e&&o.redraw(i)})),s}addAxis(t,e,i,s){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:s})}addColorAxis(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})}createAxis(t,e){let i=new e2(this,e.axis,t);return tx(e.redraw,!0)&&this.redraw(e.animation),i}showLoading(t){let e=this,i=e.options,s=i.loading,o=s?.style??{},r=function(){a&&Y(a,{left:o.left??e.plotLeft+"px",top:o.top??e.plotTop+"px",width:o.width??e.plotWidth+"px",height:o.height??e.plotHeight+"px"})},a=e.loadingDiv,n=e.loadingSpan;a||(e.loadingDiv=a=X("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),n||(e.loadingSpan=n=X("span",{className:"highcharts-loading-inner"},null,a),N(e,"redraw",r)),a.className="highcharts-loading",t5.setElementHTML(n,tx(t,i.lang.loading,"")),!e.styledMode&&(Y(a,_(o,{zIndex:10})),Y(n,s?.labelStyle??{}),e.loadingShown||(Y(a,{opacity:0,display:""}),i_(a,{opacity:o.opacity??.5},{duration:s?.showDuration??0}))),e.loadingShown=!0,r()}hideLoading(){let t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||i_(e,{opacity:0},{duration:t.loading?.hideDuration??100,complete:function(){Y(e,{display:"none"})}})),this.loadingShown=!1}update(t,e,i,s){let o,r,a,n=this,h={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},l=t.isResponsiveOptions,d=[];q(n,"update",{options:t}),l||n.setResponsive(!1,!0),t=U(t,n.options),n.userOptions=tp(n.userOptions,t);let c=t.chart;c&&(tp(!0,n.options.chart,c),this.setZoomOptions(),"className"in c&&n.setClassName(c.className),("inverted"in c||"polar"in c||"type"in c)&&(n.propFromSeries(),o=!0),"alignTicks"in c&&(o=!0),"events"in c&&i0(this,c),tu(c,function(t,e){-1!==n.propsRequireUpdateSeries.indexOf("chart."+e)&&(r=!0),-1!==n.propsRequireDirtyBox.indexOf(e)&&(n.isDirtyBox=!0),-1!==n.propsRequireReflow.indexOf(e)&&(n.isDirtyBox=!0,l||(a=!0))}),!n.styledMode&&c.style&&n.renderer.setStyle(n.options.chart.style||{})),!n.styledMode&&t.colors&&(this.options.colors=t.colors),tu(t,function(e,i){n[i]&&"function"==typeof n[i].update?n[i].update(e,!1):"function"==typeof n[h[i]]?n[h[i]](e):"colors"!==i&&-1===n.collectionsWithUpdate.indexOf(i)&&tp(!0,n.options[i],t[i]),"chart"!==i&&-1!==n.propsRequireUpdateSeries.indexOf(i)&&(r=!0)}),this.collectionsWithUpdate.forEach(e=>{t[e]&&(tM(t[e]).forEach((t,s)=>{let o;if(!t)return;let r=j(t.id);r&&(o=n.get(t.id)),!o&&n[e]&&(o=n[e][tx(t.index,s)])&&(r&&j(o.options.id)||o.options.isInternal)&&(o=void 0),o&&o.coll===e&&(o.update(t,!1),i&&(o.touched=!0)),!o&&i&&n.collectionsWithInit[e]&&(n.collectionsWithInit[e][0].apply(n,[t].concat(n.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}),i&&n[e].forEach(t=>{t.touched||t.options.isInternal?delete t.touched:d.push(t)}))}),d.forEach(t=>{t.chart&&t.remove&&t.remove(!1)}),o&&n.axes.forEach(function(t){t.update({},!1)}),r&&n.series.forEach(t=>{t.chart&&t.update({},!1)});let p=c?.width,g=c&&(th(c.height)?tv(c.height,p||n.chartWidth):c.height);a||tn(p)&&p!==n.chartWidth||tn(g)&&g!==n.chartHeight?n.setSize(p,g,s):tx(e,!0)&&n.redraw(s),q(n,"afterUpdate",{options:t,redraw:e,animation:s})}setSubtitle(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)}setCaption(t,e){this.applyDescription("caption",t),this.layOutTitles(e)}showResetZoom(){let t=this,e=t.options.lang,i=t.zooming.resetButton,s=i.theme,o="chart"===i.relativeTo||"spacingBox"===i.relativeTo?null:"plotBox";function r(){t.zoomOut()}q(this,"beforeShowResetZoom",null,function(){t.resetZoomButton=t.renderer.button(e.resetZoom,null,null,r,s).attr({align:i.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,o)}),q(this,"afterShowResetZoom")}zoomOut(){q(this,"selection",{resetSelection:!0},()=>this.transform({reset:!0,trigger:"zoom"}))}pan(t,e){let i=this,s="object"==typeof e?e:{enabled:e,type:"x"},o=s.type,r=o&&i[({x:"xAxis",xy:"axes",y:"yAxis"})[o]].filter(t=>t.options.panningEnabled&&!t.options.isInternal),a=i.options.chart;a?.panning&&(a.panning=s),q(this,"pan",{originalEvent:t},()=>{i.transform({axes:r,event:t,to:{x:t.chartX-(i.mouseDownX||0),y:t.chartY-(i.mouseDownY||0)},trigger:"pan"}),Y(i.container,{cursor:"move"})})}transform(t){let{axes:e=this.axes,event:i,from:s={},reset:o,selection:r,to:a={},trigger:n,allowResetButton:h=!0}=t,{inverted:l,time:d}=this;this.hoverPoints?.forEach(t=>t.setState()),q(this,"transform",t);let c=t.hasZoomed||!1,p,g;for(let t of e){let{horiz:e,len:u,minPointOffset:f=0,options:m,reversed:x}=t,y=e?"width":"height",b=e?"x":"y",v=tx(a[y],t.len),k=tx(s[y],t.len),w=10>Math.abs(v)?1:v/k,M=(s[b]||0)+k/2-t.pos,C=M-((a[b]??t.pos)+v/2-t.pos)/w,S=x&&!l||!x&&l?-1:1;if(!o&&(M<0||M>t.len))continue;let T=t.chart.polar||t.isOrdinal&&w<=1?0:f*S||0,A=t.toValue(C,!0),P=t.toValue(C+u/w,!0),L=A+T,O=P-T,E=t.allExtremes;if(r&&r[t.coll].push({axis:t,min:Math.min(A,P),max:Math.max(A,P)}),L>O&&([L,O]=[O,L]),1===w&&!o&&"yAxis"===t.coll&&!E){for(let e of t.series){let t=e.getExtremes(e.getProcessedData(!0).modified.getColumn(e.pointValKey||"y")||[],!0);E??(E={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),tn(t.dataMin)&&tn(t.dataMax)&&(E.dataMin=Math.min(t.dataMin,E.dataMin),E.dataMax=Math.max(t.dataMax,E.dataMax))}t.allExtremes=E}let{dataMin:I,dataMax:D,min:B,max:N}=_(t.getExtremes(),E||{}),z=d.parse(m.min),R=d.parse(m.max),W=I??z,H=D??R,G=O-L,X=t.categories?0:Math.min(G,H-W),F=W-X*(j(z)?0:m.minPadding),Y=H+X*(j(R)?0:m.maxPadding),$=t.allowZoomOutside||1===w||"zoom"!==n&&w>1,V=Math.min(z??F,F,$?B:F),U=Math.max(R??Y,Y,$?N:Y);(!t.isOrdinal||1!==w||o)&&(L<V&&(L=V,w>=1&&(O=L+G)),O>U&&(O=U,w>=1&&(L=O-G)),(o||t.series.length&&(L!==B||O!==N)&&L>=V&&O<=U)&&(r?r[t.coll].push({axis:t,min:L,max:O}):(t.isPanning="zoom"!==n,t.isPanning&&"mousewheel"!==n&&(g=!0),t.setExtremes(o?void 0:L,o?void 0:O,!1,!1,{move:C,trigger:n,scale:w}),!o&&(L>V||O<U)&&(p=h)),c=!0),this.hasCartesianSeries||o||(p=h),i&&(this[e?"mouseDownX":"mouseDownY"]=i[e?"chartX":"chartY"]))}return c&&(r?q(this,"selection",r,()=>{delete t.selection,t.trigger="zoom",this.transform(t)}):(!p||g||this.resetZoomButton?!p&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===n&&(this.options.chart.animation??this.pointCount<100)))),c}}_(i9.prototype,{callbacks:[],collectionsWithInit:{xAxis:[i9.prototype.addAxis,[!0]],yAxis:[i9.prototype.addAxis,[!1]],series:[i9.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderRadius","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]});let{stop:i4}=tq,{composed:i8}=E;function i7(){(this.scrollablePixelsX||this.scrollablePixelsY)&&!this.scrollablePlotArea&&(this.scrollablePlotArea=new se(this)),this.scrollablePlotArea?.applyFixed()}function st(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class se{static compose(t,e,i){tb(i8,"ScrollablePlotArea")&&(N(t,"afterInit",st),N(e,"afterSetChartSize",t=>this.afterSetSize(t.target,t)),N(e,"render",i7),N(i,"show",st))}static afterSetSize(t,e){let i,s,o,{minWidth:r,minHeight:a}=t.options.chart.scrollablePlotArea||{},{clipBox:n,plotBox:h,inverted:l,renderer:d}=t;if(!d.forExport)if(r?(t.scrollablePixelsX=i=Math.max(0,r-t.chartWidth),i&&(t.scrollablePlotBox=tp(t.plotBox),h.width=t.plotWidth+=i,n[l?"height":"width"]+=i,o=!0)):a&&(t.scrollablePixelsY=s=Math.max(0,a-t.chartHeight),j(s)&&(t.scrollablePlotBox=tp(t.plotBox),h.height=t.plotHeight+=s,n[l?"width":"height"]+=s,o=!1)),j(o)){if(!e.skipAxes)for(let e of t.axes)(e.horiz===o||t.hasParallelCoordinates&&"yAxis"===e.coll)&&(e.setAxisSize(),e.setAxisTranslation())}else delete t.scrollablePlotBox}constructor(t){let e;const i=t.options.chart,s=i.scrollablePlotArea||{},o=this.moveFixedElements.bind(this),r={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};t.scrollablePixelsX&&(r.overflowX="auto"),t.scrollablePixelsY&&(r.overflowY="auto"),this.chart=t;const a=this.parentDiv=X("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t.renderTo),n=this.scrollingContainer=X("div",{className:"highcharts-scrolling"},r,a),h=this.innerContainer=X("div",{className:"highcharts-inner-container"},void 0,n),l=this.fixedDiv=X("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(i.style?.zIndex||0)+2,top:0},void 0,!0),d=this.fixedRenderer=new eH(l,t.chartWidth,t.chartHeight,i.style);this.mask=d.path().attr({fill:i.backgroundColor||"#fff","fill-opacity":s.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),n.parentNode.insertBefore(l,n),Y(t.renderTo,{overflow:"visible"}),N(t,"afterShowResetZoom",o),N(t,"afterApplyDrilldown",o),N(t,"afterLayOutTitles",o),N(n,"scroll",()=>{let{pointer:i,hoverPoint:s}=t;i&&(delete i.chartPosition,s&&(e=s),i.runPointActions(void 0,e,!0))}),h.appendChild(t.container)}applyFixed(){let{chart:t,fixedRenderer:e,isDirty:i,scrollingContainer:s}=this,{axisOffset:o,chartWidth:r,chartHeight:a,container:n,plotHeight:h,plotLeft:l,plotTop:d,plotWidth:c,scrollablePixelsX:p=0,scrollablePixelsY:g=0}=t,{scrollPositionX:u=0,scrollPositionY:f=0}=t.options.chart.scrollablePlotArea||{},m=r+p,x=a+g;e.setSize(r,a),(i??!0)&&(this.isDirty=!1,this.moveFixedElements()),i4(t.container),Y(n,{width:`${m}px`,height:`${x}px`}),t.renderer.boxWrapper.attr({width:m,height:x,viewBox:["0 0",m,x].join(" ")}),t.chartBackground?.attr({width:m,height:x}),Y(s,{width:`${r}px`,height:`${a}px`}),j(i)||(s.scrollLeft=p*u,s.scrollTop=g*f);let y=d-o[0]-1,b=l-o[3]-1,v=d+h+o[2]+1,k=l+c+o[1]+1,w=l+c-p,M=d+h-g,C=[["M",0,0]];p?C=[["M",0,y],["L",l-1,y],["L",l-1,v],["L",0,v],["Z"],["M",w,y],["L",r,y],["L",r,v],["L",w,v],["Z"]]:g&&(C=[["M",b,0],["L",b,d-1],["L",k,d-1],["L",k,0],["Z"],["M",b,M],["L",b,a],["L",k,a],["L",k,M],["Z"]]),"adjustHeight"!==t.redrawTrigger&&this.mask.attr({d:C})}moveFixedElements(){let t,{container:e,inverted:i,scrollablePixelsX:s,scrollablePixelsY:o}=this.chart,r=this.fixedRenderer,a=se.fixedSelectors.slice();if(s&&!i?t=".highcharts-yaxis":s&&i||o&&!i?t=".highcharts-xaxis":o&&i&&(t=".highcharts-yaxis"),t&&!(this.chart.hasParallelCoordinates&&".highcharts-yaxis"===t))for(let e of[`${t}:not(.highcharts-radial-axis)`,`${t}-labels:not(.highcharts-radial-axis-labels)`])tb(a,e);else for(let t of[".highcharts-xaxis",".highcharts-yaxis"])for(let e of[`${t}:not(.highcharts-radial-axis)`,`${t}-labels:not(.highcharts-radial-axis-labels)`])Z(a,e);for(let t of a)[].forEach.call(e.querySelectorAll(t),t=>{(t.namespaceURI===r.SVG_NS?r.box:r.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})}}se.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"];let{format:si}=ee,{series:ss}=iL,so=class{constructor(t,e,i,s,o){const r=t.chart.inverted,a=t.reversed;this.axis=t;const n=this.isNegative=!!i!=!!a;this.options=e=e||{},this.x=s,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=o,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:e.align||(r?n?"left":"right":"center"),verticalAlign:e.verticalAlign||(r?"middle":n?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(r?n?"right":"left":"center")}destroy(){$(this,this.axis)}render(t){let e=this.axis.chart,i=this.options,s=i.format,o=(s?si(s,this,e):i.formatter?.call(this,this))||"";if(this.label)this.label.attr({text:o,visibility:"hidden"});else{this.label=e.renderer.label(o,null,void 0,i.shape,void 0,void 0,i.useHTML,!1,"stack-labels");let s={r:i.borderRadius||0,text:o,padding:tx(i.padding,5),visibility:"hidden"};e.styledMode||(s.fill=i.backgroundColor,s.stroke=i.borderColor,s["stroke-width"]=i.borderWidth,this.label.css(i.style||{})),this.label.attr(s),this.label.added||this.label.add(t)}this.label.labelrank=e.plotSizeY,q(this,"afterRender")}setOffset(t,e,i,s,o,r){let{alignOptions:a,axis:n,label:h,options:l,textAlign:d}=this,c=n.chart,p=this.getStackBox({xOffset:t,width:e,boxBottom:i,boxTop:s,defaultX:o,xAxis:r}),{verticalAlign:g}=a;if(h&&p){let t=h.getBBox(void 0,0),e=h.padding,i="justify"===tx(l.overflow,"justify"),s;a.x=l.x||0,a.y=l.y||0;let{x:o,y:r}=this.adjustStackPosition({labelBox:t,verticalAlign:g,textAlign:d});p.x-=o,p.y-=r,h.align(a,!1,p),(s=c.isInsidePlot(h.alignAttr.x+a.x+o,h.alignAttr.y+a.y+r))||(i=!1),i&&ss.prototype.justifyDataLabel.call(n,h,a,h.alignAttr,t,p),h.attr({x:h.alignAttr.x,y:h.alignAttr.y,rotation:l.rotation,rotationOriginX:t.width*J(l.textAlign||"center"),rotationOriginY:t.height/2}),tx(!i&&l.crop,!0)&&(s=tn(h.x)&&tn(h.y)&&c.isInsidePlot(h.x-e+(h.width||0),h.y)&&c.isInsidePlot(h.x+e,h.y)),h[s?"show":"hide"]()}q(this,"afterSetOffset",{xOffset:t,width:e})}adjustStackPosition({labelBox:t,verticalAlign:e,textAlign:i}){return{x:t.width/2+t.width/2*(2*J(i)-1),y:t.height/2*2*(1-J(e))}}getStackBox(t){let e=this.axis,i=e.chart,{boxTop:s,defaultX:o,xOffset:r,width:a,boxBottom:n}=t,h=e.stacking.usePercentage?100:tx(s,this.total,0),l=e.toPixels(h),d=t.xAxis||i.xAxis[0],c=tx(o,d.translate(this.x))+r,p=Math.abs(l-e.toPixels(n||tn(e.min)&&e.logarithmic&&e.logarithmic.lin2log(e.min)||0)),g=i.inverted,u=this.isNegative;return g?{x:(u?l:l-p)-i.plotLeft,y:d.height-c-a+d.top-i.plotTop,width:p,height:a}:{x:c+d.transB-i.plotLeft,y:(u?l-p:l)-i.plotTop,width:a,height:p}}},{getDeferredAnimation:sr}=tq,{series:{prototype:sa}}=iL;function sn(){let t=this.inverted;this.axes.forEach(t=>{t.stacking?.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),this.series.forEach(e=>{let i=e.xAxis?.options||{};e.options.stacking&&e.reserveSpace()&&(e.stackKey=[e.type,tx(e.options.stack,""),t?i.top:i.left,t?i.height:i.width].join(","))})}function sh(){let t=this.stacking;if(t){let e=t.stacks;tu(e,(t,i)=>{$(t),delete e[i]}),t.stackTotalGroup?.destroy()}}function sl(){this.stacking||(this.stacking=new sf(this))}function sd(t,e,i,s){return!j(t)||t.x!==e||s&&t.stackKey!==s?t={x:e,index:0,key:s,stackKey:s}:t.index++,t.key=[i,e,t.index].join(","),t}function sc(){let t,e=this,i=e.yAxis,s=e.stackKey||"",o=i.stacking.stacks,r=e.getColumn("x",!0),a=e.options.stacking,n=e[a+"Stacker"];n&&[s,"-"+s].forEach(i=>{let s=r.length,a,h,l;for(;s--;)a=r[s],t=e.getStackIndicator(t,a,e.index,i),h=o[i]?.[a],(l=h?.points[t.key||""])&&n.call(e,l,h,s)})}function sp(t,e,i){let s=e.total?100/e.total:0;t[0]=G(t[0]*s),t[1]=G(t[1]*s),this.stackedYData[i]=t[1]}function sg(t){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?sa.setStackedPoints.call(this,t,"group"):t.stacking.resetStacks())}function su(t,e){let i,s,o,r,a,n,h,l=e||this.options.stacking;if(!l||!this.reserveSpace()||(({group:"xAxis"})[l]||"yAxis")!==t.coll)return;let d=this.getColumn("x",!0),c=this.getColumn(this.pointValKey||"y",!0),p=[],g=c.length,u=this.options,f=u.threshold||0,m=u.startFromThreshold?f:0,x=u.stack,y=e?`${this.type},${l}`:this.stackKey||"",b="-"+y,v=this.negStacks,k=t.stacking,w=k.stacks,M=k.oldStacks;for(k.stacksTouched+=1,h=0;h<g;h++){let e=d[h]||0,g=c[h],u=tn(g)&&g||0;n=(i=this.getStackIndicator(i,e,this.index)).key||"",w[a=(s=v&&u<(m?0:f))?b:y]||(w[a]={}),w[a][e]||(M[a]?.[e]?(w[a][e]=M[a][e],w[a][e].total=null):w[a][e]=new so(t,t.options.stackLabels,!!s,e,x)),o=w[a][e],null!==g?(o.points[n]=o.points[this.index]=[tx(o.cumulative,m)],j(o.cumulative)||(o.base=n),o.touched=k.stacksTouched,i.index>0&&!1===this.singleStacks&&(o.points[n][0]=o.points[this.index+","+e+",0"][0])):(delete o.points[n],delete o.points[this.index]);let C=o.total||0;"percent"===l?(r=s?y:b,C=v&&w[r]?.[e]?(r=w[r][e]).total=Math.max(r.total||0,C)+Math.abs(u):G(C+Math.abs(u))):"group"===l?tn(g)&&C++:C=G(C+u),"group"===l?o.cumulative=(C||1)-1:o.cumulative=G(tx(o.cumulative,m)+u),o.total=C,null!==g&&(o.points[n].push(o.cumulative),p[h]=o.cumulative,o.hasValidPoints=!0)}"percent"===l&&(k.usePercentage=!0),"group"!==l&&(this.stackedYData=p),k.oldStacks={}}class sf{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){let t,e,i=this.axis,s=i.series,o="xAxis"===i.coll,r=i.options.reversedStacks,a=s.length;for(this.resetStacks(),this.usePercentage=!1,e=a;e--;)t=s[r?e:a-e-1],o&&t.setGroupedPoints(i),t.setStackedPoints(i);if(!o)for(e=0;e<a;e++)s[e].modifyStacks();q(i,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,tu(this.stacks,t=>{tu(t,t=>{t.cumulative=t.total})}))}resetStacks(){tu(this.stacks,t=>{tu(t,(e,i)=>{tn(e.touched)&&e.touched<this.stacksTouched?(e.destroy(),delete t[i]):(e.total=null,e.cumulative=null)})})}renderStackTotals(){let t=this.axis,e=t.chart,i=e.renderer,s=this.stacks,o=sr(e,t.options.stackLabels?.animation||!1),r=this.stackTotalGroup=this.stackTotalGroup||i.g("stack-labels").attr({zIndex:6,opacity:0}).add();r.translate(e.plotLeft,e.plotTop),tu(s,t=>{tu(t,t=>{t.render(r)})}),r.animate({opacity:1},o)}}(w||(w={})).compose=function(t,e,i){let s=e.prototype,o=i.prototype;s.getStacks||(N(t,"init",sl),N(t,"destroy",sh),s.getStacks=sn,o.getStackIndicator=sd,o.modifyStacks=sc,o.percentStacker=sp,o.setGroupedPoints=sg,o.setStackedPoints=su)};let sm=w;class sx extends iH{drawGraph(){let t=this.options,e=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode;[this,...this.zones].forEach((s,o)=>{let r,a=s.graph,n=a?"animate":"attr",h=s.dashStyle||t.dashStyle;if(a?(a.endX=this.preventGraphAnimation?null:e.xMap,a.animate({d:e})):e.length&&(s.graph=a=this.chart.renderer.path(e).addClass("highcharts-graph"+(o?` highcharts-zone-graph-${o-1} `:" ")+(o&&s.className||"")).attr({zIndex:1}).add(this.group)),a&&!i&&(r={stroke:!o&&t.lineColor||s.color||this.color||"var(--highcharts-neutral-color-20)","stroke-width":t.lineWidth||0,fill:this.fillGraph&&this.color||"none"},h?r.dashstyle=h:"square"!==t.linecap&&(r["stroke-linecap"]=r["stroke-linejoin"]="round"),a[n](r),t.shadow)){let e=this.chart.inverted,i={filterUnits:"userSpaceOnUse"},s=tc(t.shadow)?tp(e?{}:i,t.shadow):!!e||i;a.shadow(s)}a&&(a.startX=e.xMap,a.isArea=e.isArea)})}getGraphPath(t,e,i){let s=this,o=s.options,r=[],a=[],n,h=o.step,l=(t=t||s.points).reversed;return l&&t.reverse(),(h=({right:1,center:2})[h]||h&&3)&&l&&(h=4-h),(t=this.getValidPoints(t,!1,o.nullInteraction||!(o.connectNulls&&!e&&!i))).forEach(function(l,d){let c,p=l.plotX,g=l.plotY,u=t[d-1],f=l.isNull||"number"!=typeof g;(l.leftCliff||u?.rightCliff)&&!i&&(n=!0),f&&!j(e)&&d>0?n=!o.connectNulls:f&&!e?n=!0:(0===d||n?c=[["M",l.plotX,l.plotY]]:s.getPointSpline?c=[s.getPointSpline(t,l,d)]:h?(c=1===h?[["L",u.plotX,g]]:2===h?[["L",(u.plotX+p)/2,u.plotY],["L",(u.plotX+p)/2,g]]:[["L",p,u.plotY]]).push(["L",p,g]):c=[["L",p,g]],a.push(l.x),h&&(a.push(l.x),2===h&&a.push(l.x)),r.push.apply(r,c),n=!1)}),r.xMap=a,s.graphPath=r,r}}sx.defaultOptions=tp(iH.defaultOptions,{legendSymbol:"lineMarker"}),iL.registerSeriesType("line",sx);let{seriesTypes:{line:sy}}=iL;class sb extends sy{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:t,options:e}=this;[this,...this.zones].forEach((i,s)=>{let o={},r=i.fillColor||e.fillColor,a=i.area,n=a?"animate":"attr";a?(a.endX=this.preventGraphAnimation?null:t.xMap,a.animate({d:t})):(o.zIndex=0,(a=i.area=this.chart.renderer.path(t).addClass("highcharts-area"+(s?` highcharts-zone-area-${s-1} `:" ")+(s&&i.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(o.fill=r||i.color||this.color,o["fill-opacity"]=r?1:e.fillOpacity??.75,a.css({pointerEvents:this.stickyTracking?"none":"auto"})),a[n](o),a.startX=t.xMap,a.shiftUnit=e.step?2:1})}getGraphPath(t){let e,i,s,o=sy.prototype.getGraphPath,r=this.options,a=r.stacking,n=this.yAxis,h=[],l=[],d=this.index,c=n.stacking.stacks[this.stackKey],p=r.threshold,g=Math.round(n.getThreshold(r.threshold)),u=tx(r.connectNulls,"percent"===a),f=function(i,s,o){let r=t[i],u=t[s],f=a&&c[r.x].points[d],m=r[o+"Null"]||0,x=r[o+"Cliff"]||0,y,b,v=!0;f&&(x||m)?(y=(m?f[0]:f[1])+x,b=f[0]+x,v=!!m):!a&&u&&(u.isNull||!j(u.plotY))&&(y=b=p),void 0!==y&&(l.push({plotX:e,plotY:null===y?g:n.getThreshold(y),isNull:v,isCliff:!0}),h.push({plotX:e,plotY:null===b?g:n.getThreshold(b),doCurve:!1}))};t=t||this.points,a&&(t=this.getStackPoints(t));for(let o=0,r=t.length;o<r;++o)a||(t[o].leftCliff=t[o].rightCliff=t[o].leftNull=t[o].rightNull=void 0),i=t[o].isNull||!j(t[o].plotY),e=tx(t[o].rectPlotX,t[o].plotX),s=a?tx(t[o].yBottom,g):g,(!i||u)&&(u||f(o,o-1,"left"),i&&!a&&u||(l.push(t[o]),h.push({x:o,plotX:e,plotY:s})),u||f(o,o+1,"right"));let m=o.call(this,l,!0,!0);h.reversed=!0;let x=o.call(this,h,!0,!0),y=x[0];y&&"M"===y[0]&&(x[0]=["L",y[1],y[2]]);let b=m.concat(x);b.length&&b.push(["Z"]);let v=o.call(this,l,!1,u);return this.chart.series.length>1&&a&&l.some(t=>t.isCliff)&&(b.hasStackedCliffs=v.hasStackedCliffs=!0),b.xMap=m.xMap,this.areaPath=b,v}getStackPoints(t){let e=this,i=[],s=[],o=this.xAxis,r=this.yAxis,a=r.stacking.stacks[this.stackKey],n={},h=r.series,l=h.length,d=r.options.reversedStacks?1:-1,c=h.indexOf(e),p=r.getThreshold(e.options.threshold||0);if(t=t||this.points,this.options.stacking){for(let e=0;e<t.length;e++)t[e].leftNull=t[e].rightNull=void 0,n[t[e].x]=t[e];tu(a,function(t,e){null!==t.total&&s.push(e)}),s.sort(function(t,e){return t-e});let g=h.map(t=>t.visible);s.forEach(function(t,u){let f=0,m,x;if(n[t]&&!n[t].isNull)i.push(n[t]),[-1,1].forEach(function(i){let o=1===i?"rightNull":"leftNull",r=a[s[u+i]],p=0;if(r){let i=c;for(;i>=0&&i<l;){let s=h[i].index;!(m=r.points[s])&&(s===e.index?n[t][o]=!0:g[i]&&(x=a[t].points[s])&&(p-=x[1]-x[0])),i+=d}}n[t][1===i?"rightCliff":"leftCliff"]=p});else{let e=c;for(;e>=0&&e<l;){let i=h[e].index;if(m=a[t].points[i]){f=m[1];break}e+=d}f||(f=0);let s=r.positiveValuesOnly&&f<=0?p:r.translate(f,!1,!0,!1,!0);i.push({isNull:!0,plotX:o.translate(t,!1,!1,!1,!0),x:t,plotY:s,yBottom:s})}})}return i}}sb.defaultOptions=tp(sy.defaultOptions,{threshold:0,legendSymbol:"areaMarker"}),_(sb.prototype,{singleStacks:!1}),iL.registerSeriesType("area",sb);let{line:sv}=iL.seriesTypes;class sk extends sv{getPointSpline(t,e,i){let s,o,r,a,n=e.plotX||0,h=e.plotY||0,l=t[i-1],d=t[i+1];function c(t){return t&&!t.isNull&&!1!==t.doCurve&&!e.isCliff}if(c(l)&&c(d)){let t=l.plotX||0,i=l.plotY||0,c=d.plotX||0,p=d.plotY||0,g=0;s=(1.5*n+t)/2.5,o=(1.5*h+i)/2.5,r=(1.5*n+c)/2.5,a=(1.5*h+p)/2.5,r!==s&&(g=(a-o)*(r-n)/(r-s)+h-a),o+=g,a+=g,o>i&&o>h?(o=Math.max(i,h),a=2*h-o):o<i&&o<h&&(o=Math.min(i,h),a=2*h-o),a>p&&a>h?(a=Math.max(p,h),o=2*h-a):a<p&&a<h&&(a=Math.min(p,h),o=2*h-a),e.rightContX=r,e.rightContY=a,e.controlPoints={low:[s,o],high:[r,a]}}let p=["C",tx(l.rightContX,l.plotX,0),tx(l.rightContY,l.plotY,0),tx(s,n,0),tx(o,h,0),n,h];return l.rightContX=l.rightContY=void 0,p}}sk.defaultOptions=tp(sv.defaultOptions),iL.registerSeriesType("spline",sk);let sw=sk,{area:sM,area:{prototype:sC}}=iL.seriesTypes;class sS extends sw{}sS.defaultOptions=tp(sw.defaultOptions,sM.defaultOptions),_(sS.prototype,{getGraphPath:sC.getGraphPath,getStackPoints:sC.getStackPoints,drawGraph:sC.drawGraph}),iL.registerSeriesType("areaspline",sS);let{animObject:sT}=tq,{parse:sA}=t$,{noop:sP}=E;class sL extends iH{animate(t){let e,i,s=this,o=this.yAxis,r=o.pos,a=o.reversed,n=s.options,{clipOffset:h,inverted:l}=this.chart,d={},c=l?"translateX":"translateY";t&&h?(d.scaleY=.001,i=H(o.toPixels(n.threshold||0),r,r+o.len),l?d.translateX=(i+=a?-Math.floor(h[+!!l]):Math.ceil(h[l?3:2]))-o.len:d.translateY=i+=a?Math.ceil(h[+!!l]):-Math.floor(h[l?3:2]),s.clipBox&&s.setClip(),s.group.attr(d)):(e=Number(s.group.attr(c)),s.group.animate({scaleY:1},_(sT(s.options.animation),{step:function(t,i){s.group&&(d[c]=e+i.pos*(r-e),s.group.attr(d))}})))}init(t,e){super.init.apply(this,arguments);let i=this;(t=i.chart).hasRendered&&t.series.forEach(function(t){t.type===i.type&&(t.isDirty=!0)})}getColumnMetrics(){let t=this,e=t.options,i=t.xAxis,s=t.yAxis,o=i.options.reversedStacks,r=i.reversed&&!o||!i.reversed&&o,a={},n,h=0;!1===e.grouping?h=1:t.chart.series.forEach(function(e){let i,o=e.yAxis,r=e.options;e.type===t.type&&e.reserveSpace()&&s.len===o.len&&s.pos===o.pos&&(r.stacking&&"group"!==r.stacking?(void 0===a[n=e.stackKey]&&(a[n]=h++),i=a[n]):!1!==r.grouping&&(i=h++),e.columnIndex=i)});let l=Math.min(Math.abs(i.transA)*(!i.brokenAxis?.hasBreaks&&i.ordinal?.slope||e.pointRange||i.closestPointRange||i.tickInterval||1),i.len),d=l*e.groupPadding,c=(l-2*d)/(h||1),p=Math.min(e.maxPointWidth||i.len,tx(e.pointWidth,c*(1-2*e.pointPadding))),g=(t.columnIndex||0)+ +!!r;return t.columnMetrics={width:p,offset:(c-p)/2+(d+g*c-l/2)*(r?-1:1),paddedWidth:c,columnCount:h},t.columnMetrics}crispCol(t,e,i,s){let o=this.borderWidth,r=this.chart.inverted;return s=F(e+s,o,r)-(e=F(e,o,r)),this.options.crisp&&(i=F(t+i,o)-(t=F(t,o))),{x:t,y:e,width:i,height:s}}adjustForMissingColumns(t,e,i,s){if(!i.isNull&&s.columnCount>1){let o=this.xAxis.series.filter(t=>t.visible).map(t=>t.index),r=0,a=0;tu(this.xAxis.stacking?.stacks,t=>{let e="number"==typeof i.x?t[i.x.toString()]?.points:void 0,s=e?.[this.index],n={};if(e&&tl(s)){let t=this.index,i=Object.keys(e).filter(t=>!t.match(",")&&e[t]&&e[t].length>1).map(parseFloat).filter(t=>-1!==o.indexOf(t)).filter(e=>{let i=this.chart.series[e].options,s=i.stacking&&i.stack;if(j(s)){if(tn(n[s]))return t===e&&(t=n[s]),!1;n[s]=e}return!0}).sort((t,e)=>e-t);r=i.indexOf(t),a=i.length}}),r=this.xAxis.reversed?a-1-r:r;let n=(a-1)*s.paddedWidth+e;t=(i.plotX||0)+n/2-e-r*s.paddedWidth}return t}translate(){let t=this,e=t.chart,i=t.options,s=t.dense=t.closestPointRange*t.xAxis.transA<2,o=t.borderWidth=i.borderWidth??+!s,r=t.xAxis,a=t.yAxis,n=i.threshold,h=i.minPointLength??5,l=t.getColumnMetrics(),d=l.width,c=t.pointXOffset=l.offset,p=t.dataMin,g=t.dataMax,u=t.translatedThreshold=a.getThreshold(n),f=t.barW=Math.max(d,1+2*o);i.pointPadding&&i.crisp&&(f=Math.ceil(f)),iH.prototype.translate.apply(t),t.points.concat(t.condemnedPoints).forEach(function(s){let o=s.yBottom??u,m=999+Math.abs(o),x=s.plotX||0,y=H(s.plotY,-m,a.len+m),b,v=Math.min(y,o),k=Math.max(y,o)-v,w=d,M=x+c,C=f;h&&Math.abs(k)<h&&(k=h,b=!a.reversed&&!s.negative||a.reversed&&s.negative,tn(n)&&tn(g)&&s.y===n&&g<=n&&(a.min||0)<n&&(p!==g||(a.max||0)<=n)&&(b=!b,s.negative=!s.negative),v=Math.abs(v-u)>h?o-(b?h:0):u-(b?h:0)),j(s.options.pointWidth)&&(M-=Math.round(((w=C=Math.ceil(s.options.pointWidth))-d)/2)),i.centerInCategory&&(M=t.adjustForMissingColumns(M,w,s,l)),s.barX=M,s.pointWidth=w,s.tooltipPos=e.inverted?[H(a.len+a.pos-e.plotLeft-y,a.pos-e.plotLeft,a.len+a.pos-e.plotLeft),r.len+r.pos-e.plotTop-M-C/2,k]:[r.left-e.plotLeft+M+C/2,H(y+a.pos-e.plotTop,a.pos-e.plotTop,a.len+a.pos-e.plotTop),k],s.shapeType=t.pointClass.prototype.shapeType||"roundedRect",s.shapeArgs=t.crispCol(M,v,C,s.isNull?0:k)}),q(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(t,e){let i=this.options,s=this.pointAttrToOptions||{},o=s.stroke||"borderColor",r=s["stroke-width"]||"borderWidth",a,n,h,l=t&&t.color||this.color,d=t&&t[o]||i[o]||l,c=t&&t.options.dashStyle||i.dashStyle,p=t?.[r]??i[r]??this[r]??1,g=t?.isNull&&i.nullInteraction?0:t?.opacity??i.opacity??1;t&&this.zones.length&&(n=t.getZone(),l=t.options.color||n&&(n.color||t.nonZonedColor)||this.color,n&&(d=n.borderColor||d,c=n.dashStyle||c,p=n.borderWidth||p)),e&&t&&(h=(a=tp(i.states[e],t.options.states?.[e]||{})).brightness,l=a.color||void 0!==h&&sA(l).brighten(a.brightness).get()||l,d=a[o]||d,p=a[r]||p,c=a.dashStyle||c,g=tx(a.opacity,g));let u={fill:l,stroke:d,"stroke-width":p,opacity:t?.condemned?0:g};return c&&(u.dashstyle=c),u}drawPoints(t){let e;t||(t=this.points.concat(this.condemnedPoints));let i=this,s=this.chart,o=i.options,r=o.nullInteraction,{styledMode:a,renderer:n}=s,h=o.animationLimit||250;t.forEach(function(t){let l=t.plotY,d=t.graphic,c=!!d,p=d&&s.pointCount<h?"animate":"attr";if(tn(l)&&(null!==t.y||r)){if(e=t.shapeArgs,d&&t.hasNewShapeType()&&(d=d.destroy()),!d){let o=e;t.origin&&s.pointCount<h&&(o=tp(e,t.getOrigin(t.origin,e)),a||(o.opacity=0),c=!0,p="animate"),t.graphic=d=n[t.shapeType](o).add(t.group||i.group)}c&&d[p](tp(e)),a||d[p](i.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&o.shadow),d.addClass(t.getClassName(),!0).attr({visibility:t.visible?"inherit":"hidden"})}else d&&(t.graphic=d.destroy())})}drawTracker(t=this.points){let e,i=this,s=i.chart,o=s.pointer,r=function(t){o?.normalize(t);let e=o?.getPointFromEvent(t);o&&e&&i.options.enableMouseTracking&&(s.isInsidePlot(t.chartX-s.plotLeft,t.chartY-s.plotTop,{visiblePlotOnly:!0})||i.allowOutsidePlotInteraction&&o?.inClass(t.target,"highcharts-point")||o?.inClass(t.target,"highcharts-data-label"))&&(o.isDirectTouch=!0,e.onMouseOver(t))};t.forEach(function(t){e=tl(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),e.forEach(function(e){(e.div||e.element).point=t})}),i._hasTracking||(i.trackerGroups?.reduce((t,e)=>("dataLabelsGroup"===e?t.push(...i.dataLabelsGroups||[]):t.push(i[e]),t),[]).forEach(t=>{t&&(t.addClass("highcharts-tracker").on("mouseover",r).on("mouseout",function(t){o?.onTrackerMouseOut(t)}).on("touchstart",r),!s.styledMode&&i.options.cursor&&t.css({cursor:i.options.cursor}))}),i._hasTracking=!0),q(this,"afterDrawTracker")}remove(){let t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),iH.prototype.remove.apply(t,arguments)}}sL.defaultOptions=tp(iH.defaultOptions,{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.2},select:{color:"var(--highcharts-neutral-color-20)",borderColor:"var(--highcharts-neutral-color-100)"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"var(--highcharts-background-color)"}),_(sL.prototype,{directTouch:!0,getSymbol:sP,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),iL.registerSeriesType("column",sL);let sO=sL,{getDeferredAnimation:sE}=tq,{format:sI}=ee;!function(t){function e(){return h(this).some(t=>t?.enabled)}function i(t,e,i,s,o){let{chart:r}=this,a=this.isCartesian&&r.inverted,{condemned:n,origin:h,plotX:l,plotY:d}=t,{crop:c=!0,distance:p,overflow:g="justify",rotation:u=0}=i,f=J(i.align),m=J(i.verticalAlign),x=t.pos(),y=j(l)&&j(d)&&r.isInsidePlot(l,Math.round(d),{inverted:a,paneCoordinates:!0,series:this}),b=this.visible&&t.visible&&j(l)&&(this.forceDL||n||y||tx(i.inside,!!this.options.stacking)&&s&&r.isInsidePlot(l,a?s.x+1:s.y+s.height-1,{inverted:a,paneCoordinates:!0,series:this}));if(x){let l=e.getBBox(),d=e.getBBox(void 0,0);s=_({x:x[0],y:Math.round(x[1]),width:0,height:0},s||{}),"plotEdges"===i.alignTo&&this.isCartesian&&(s[a?"x":"y"]=0,s[a?"width":"height"]=this.yAxis?.len||0),_(i,{width:l.width,height:l.height});let y=0,v=0;tn(p)&&!i.inside&&(y=p*(1-2*f),v=p*(1-2*m)),e.align(tp(i,{x:(i.x||0)+y,y:(i.y||0)+v,width:d.width,height:d.height}),!1,s,!1),e.distX=y,e.distY=v,e.alignAttr.x+=f*(d.width-l.width),e.alignAttr.y+=m*(d.height-l.height);let k=e.alignAttr.x+(l.width-d.width)/2,w=e.alignAttr.y+(l.height-d.height)/2;if(h){let i=t.pos(!1,h.x,h.y);if(i){let s=[i[0]-x[0],i[1]-x[1]];(this.is("column")||t.plotHigh)&&(s[+!a]=0),e.attr({x:k+s[0],y:w+s[1],opacity:.01}),e.placed=!0,o=!1}}let M={"text-align":e.alignAttr["text-align"]||"center",x:k,y:w,rotationOriginX:(e.width||0)/2,rotationOriginY:(e.height||0)/2};if((n||!b)&&(M.opacity=0),e[e.placed?"animate":"attr"](M),0===u&&!n&&"justify"===g&&b&&s.height>=0)this.justifyDataLabel(e,i,e.alignAttr,l,s,o);else if(c&&!n){let{x:t,y:i}=e.alignAttr;b=r.isInsidePlot(t,i,{paneCoordinates:!0,series:this})&&r.isInsidePlot(t+l.width-1,i+l.height-1,{paneCoordinates:!0,series:this})}i.shape&&!u&&e[o?"attr":"animate"]({anchorX:x[0],anchorY:x[1]})}e[o?"attr":"animate"]({visibility:b?"inherit":"hidden"}),e.placed=b}function s(t,e){q(this,"initDataLabelsGroup",{index:t,zIndex:e?.zIndex}),this.dataLabelsGroup=this.dataLabelsGroups?.[t];let i=this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",e?.zIndex??6,this.dataLabelsParentGroups?.[t]);return this.dataLabelsGroups||(this.dataLabelsGroups=[]),this.dataLabelsGroups[t]=i,this.dataLabelsGroup=this.dataLabelsGroups[0],i}function o(t,e,i){let s=!!this.hasRendered,o=this.initDataLabelsGroup(t,i).attr({opacity:+s});return!s&&o&&(this.visible&&o.show(),this.options.animation?o.animate({opacity:1},e):o.attr({opacity:1})),o}function r(t){t=t||this.points;let e=this,i=e.chart,s=e.options,o=i.renderer,{backgroundColor:r,plotBackgroundColor:a}=i.options.chart,l=o.getContrast(th(a)&&a||th(r)&&r||"var(--highcharts-background-color)"),d=[],c=h(e),{animation:p,defer:g}=c[0],u=g?sE(i,p,e):{defer:0,duration:0};q(this,"drawDataLabels"),e.hasDataLabels?.()&&t.concat(e.condemnedPoints).forEach(t=>{let r=t.dataLabels||[],a=t.color||e.color;tM(n(c,t.dlOptions||t.options?.dataLabels)).forEach((n,h)=>{let c=n.enabled&&(t.visible||t.dataLabelOnHidden)&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){let i=e.filter;if(i){let e=i.operator,s=t[i.property],o=i.value;return">"===e&&s>o||"<"===e&&s<o||">="===e&&s>=o||"<="===e&&s<=o||"=="===e&&s==o||"==="===e&&s===o||"!="===e&&s!=o||"!=="===e&&s!==o||!1}return!0}(t,n),{backgroundColor:p,borderColor:g,distance:f,style:m={}}=n,x=tM(n.padding||0),y,b,v,k={},w=r[h],M=!w,C;if(c&&(b=j(y=tx(n[t.formatPrefix+"Format"],n.format))?sI(y,t,i):(n[t.formatPrefix+"Formatter"]||n.formatter).call(t,n,t),v=n.rotation,!i.styledMode&&(m.color=tx(n.color,m.color,th(e.color)?e.color:void 0,"var(--highcharts-neutral-color-100)"),"contrast"===m.color?("none"!==p&&(C=p),t.contrastColor=o.getContrast("auto"!==C&&"contrast"!==C&&th(C)&&C||(th(a)?a:"")),m.color=C&&"contrast"!==C||n.inside||0>ty(f||0)||s.stacking?t.contrastColor:l):delete t.contrastColor,s.cursor&&(m.cursor=s.cursor)),k={r:n.borderRadius??3,rotation:v,padding:x[0],paddingLeft:x[3%x.length],paddingRight:x[1%x.length],zIndex:1},i.styledMode||(k.fill="auto"===p?t.color:p,k.stroke="auto"===g?t.color:g,k["stroke-width"]=n.borderWidth),tu(k,(t,e)=>{void 0===t&&delete k[e]})),!w||c&&j(b)&&!!(w.div||w.text?.foreignObject)==!!n.useHTML&&(w.rotation&&n.rotation||w.rotation===n.rotation)||(w=void 0,M=!0),c&&j(b)&&""!==b&&(w?k.text=b:(w=o.label(b,0,0,n.shape,void 0,void 0,n.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(n.className||"")+(n.useHTML?" highcharts-tracker":"")),w)){w.options=n,w.attr(k),i.styledMode?m.width&&w.css({width:m.width,textOverflow:m.textOverflow,whiteSpace:m.whiteSpace}):w.css(m).shadow(n.shadow),q(w,"beforeAddingDataLabel",{labelOptions:n,point:t});let s=d[h]=d[h]||this.initDataLabels(h,u,n);w.added||w.add(s),e.alignDataLabel(t,w,n,void 0,M),w.isActive=!0,r[h]&&r[h]!==w&&r[h].destroy(),r[h]=w}});let h=r.length;for(;h--;)r[h]?.isActive?r[h].isActive=!1:(r[h]?.destroy(),r.splice(h,1));t.dataLabel=r[0],t.dataLabels=r}),q(this,"afterDrawDataLabels")}function a(t,e,i,s,o,r){let a=this.chart,{align:n,verticalAlign:h}=e,{distX:l=0,distY:d=0}=t,c=t.box?0:t.padding||0,p=a.inverted?this.yAxis:this.xAxis,g=p?p.left-a.plotLeft:0,u=a.inverted?this.xAxis:this.yAxis,f=u?u.top-a.plotTop:0,{x:m=0,y:x=0}=e,y,b,v;return(y=(i.x||0)-l+c+g)<0&&("right"===n&&m>=0?(e.align="left",e.inside=!0,m-=l):m-=y,b=!0),(y=(i.x||0)+s.width-l-c+g)>a.plotWidth&&("left"===n&&m<=0?(e.align="right",e.inside=!0,m-=l):m+=a.plotWidth-y,b=!0),(y=(i.y||0)-d+c+f)<0&&("bottom"===h&&x>=0?(e.verticalAlign="top",e.inside=!0,x-=d):x-=y,v=!0),(y=(i.y||0)+s.height-d-c+f)>a.plotHeight&&("top"===h&&x<=0?(e.verticalAlign="bottom",e.inside=!0,x-=d):x+=a.plotHeight-y,v=!0),(b||v)&&(e.x=b?m:m+l,e.y=v?x:x+d,t.placed=!r,t.align(e,void 0,o)),b||v}function n(t,e){let i=[],s;if(tl(t)&&!tl(e))i=t.map(function(t){return tp(t,e)});else if(tl(e)&&!tl(t))i=e.map(function(e){return tp(t,e)});else if(tl(t)||tl(e)){if(tl(t)&&tl(e))for(s=Math.max(t.length,e.length);s--;)i[s]=tp(t[s],e[s])}else i=tp(t,e);return i}function h(t){let e=t.chart.options.plotOptions;return tM(n(n(e?.series?.dataLabels,e?.[t.type]?.dataLabels),t.options.dataLabels))}t.compose=function(t){let h=t.prototype;h.initDataLabels||(h.initDataLabels=o,h.initDataLabelsGroup=s,h.alignDataLabel=i,h.drawDataLabels=r,h.justifyDataLabel=a,h.mergeArrays=n,h.hasDataLabels=e)}}(M||(M={}));let sD=M,{composed:sB}=E,{series:sN}=iL;function sz(t,e,i,s,o){let{chart:r,options:a}=this,n=r.inverted,h=this.xAxis?.len||r.plotSizeX||0,l=this.yAxis?.len||r.plotSizeY||0,d=t.dlBox||t.shapeArgs,c=t.below??(t.plotY||0)>(this.translatedThreshold??l),p=i.inside??!!a.stacking;if(d){if(s=tp(d),"allow"!==i.overflow||!1!==i.crop||!1!==a.clip){s.y<0&&(s.height+=s.y,s.y=0);let t=s.y+s.height-l;t>0&&t<s.height-1&&(s.height-=t)}n&&(s={x:l-s.y-s.height,y:h-s.x-s.width,width:s.height,height:s.width}),p||(n?(s.x+=c?0:s.width,s.width=0):(s.y+=c?s.height:0,s.height=0))}i.align??(i.align=!n||p?"center":c?"right":"left"),i.verticalAlign??(i.verticalAlign=n||p?"middle":c?"top":"bottom"),sN.prototype.alignDataLabel.call(this,t,e,i,s,o),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}(C||(C={})).compose=function(t){sD.compose(sN),tb(sB,"ColumnDataLabel")&&(t.prototype.alignDataLabel=sz)};let sR=C;class sW extends sO{}sW.defaultOptions=tp(sO.defaultOptions,{}),_(sW.prototype,{inverted:!0}),iL.registerSeriesType("bar",sW);let{column:sH,line:sG}=iL.seriesTypes;class sX extends sG{applyJitter(){let t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(s,o){["x","y"].forEach(function(r,a){if(e[r]&&!s.isNull){let n=`plot${r.toUpperCase()}`,h=t[`${r}Axis`],l=e[r]*h.transA;if(h&&!h.logarithmic){let t,e=Math.max(0,(s[n]||0)-l),d=Math.min(h.len,(s[n]||0)+l);s[n]=e+(d-e)*((t=1e4*Math.sin(o+a*i))-Math.floor(t)),"x"===r&&(s.clientX=s.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}sX.defaultOptions=tp(sG.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),_(sX.prototype,{allowOutsidePlotInteraction:!0,drawTracker:sH.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),N(sX,"afterTranslate",function(){this.applyJitter()}),iL.registerSeriesType("scatter",sX);let{deg2rad:sF}=E;(d=S||(S={})).getCenter=function(){let t=this.options,e=this.chart,i=2*(t.slicedOffset||0),s=e.plotWidth-2*i,o=e.plotHeight-2*i,r=t.center,a=Math.min(s,o),n=t.thickness,h,l=t.size,d=t.innerSize||0,c,p;"string"==typeof l&&(l=parseFloat(l)),"string"==typeof d&&(d=parseFloat(d));let g=[tx(r?.[0],"50%"),tx(r?.[1],"50%"),tx(l&&l<0?void 0:t.size,"100%"),tx(d&&d<0?void 0:t.innerSize||0,"0%")];for(c=0;c<4;++c)p=g[c],h=c<2||2===c&&/%$/.test(p),g[c]=tv(p,[s,o,a,g[2]][c])+(h?i:0);return g[3]>g[2]&&(g[3]=g[2]),tn(n)&&2*n<g[2]&&n>0&&(g[3]=g[2]-2*n),q(this,"afterGetCenter",{positions:g}),g},d.getStartAndEndRadians=function(t,e){let i=tn(t)?t:0,s=tn(e)&&e>i&&e-i<360?e:i+360;return{start:sF*(i+-90),end:sF*(s+-90)}};let sY=S,{setAnimation:sj}=tq;class s$ extends ip{getConnectorPath(t){let e=t.dataLabelPosition,i=t.options||{},s=i.connectorShape,o=this.connectorShapes[s]||s;return e&&o.call(this,{...e.computed,alignment:e.alignment},e.connectorPosition,i)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(t){let e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end,borderRadius:e.borderRadius})}constructor(t,e,i){super(t,e,i),this.half=0,this.name??(this.name=t.chart.options.lang.pieSliceName);const s=t=>{this.slice("select"===t.type)};N(this,"select",s),N(this,"unselect",s)}isValid(){return tn(this.y)&&this.y>=0}setVisible(t,e=!0){t!==this.visible&&this.update({visible:t??!this.visible},e,void 0,!1)}slice(t,e,i){let s=this.series;sj(i,s.chart),e=tx(e,!0),this.sliced=this.options.sliced=t??!this.sliced,s.options.data&&(s.options.data[s.data.indexOf(this)]=this.options),this.graphic?.animate(this.getTranslate())}}_(s$.prototype,{connectorShapes:{fixedOffset:function(t,e,i){let s=e.breakAt,o=e.touchingSliceAt,r=i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*s.x-o.x,2*s.y-o.y,s.x,s.y]:["L",s.x,s.y];return[["M",t.x,t.y],r,["L",o.x,o.y]]},straight:function(t,e){let i=e.touchingSliceAt;return[["M",t.x,t.y],["L",i.x,i.y]]},crookedLine:function(t,e,i){let{angle:s=this.angle||0,breakAt:o,touchingSliceAt:r}=e,{series:a}=this,[n,h,l]=a.center,d=l/2,{plotLeft:c,plotWidth:p}=a.chart,g="left"===t.alignment,{x:u,y:f}=t,m=o.x;if(i.crookDistance){let t=tv(i.crookDistance,1);m=g?n+d+(p+c-n-d)*(1-t):c+(n-d)*t}else m=n+(h-f)*Math.tan(s-Math.PI/2);let x=[["M",u,f]];return(g?m<=u&&m>=o.x:m>=u&&m<=o.x)&&x.push(["L",m,f]),x.push(["L",o.x,o.y],["L",r.x,r.y]),x}}});let{getStartAndEndRadians:sV}=sY,{noop:sU}=E;class sZ extends iH{animate(t){let e=this,i=e.points,s=e.startAngleRad;t||i.forEach(function(t){let i=t.graphic,o=t.shapeArgs;i&&o&&(i.attr({r:tx(t.startR,e.center&&e.center[3]/2),start:s,end:s}),i.animate({r:o.r,start:o.start,end:o.end},e.options.animation))})}drawEmpty(){let t,e,i=this.startAngleRad,s=this.endAngleRad,o=this.options;0===this.total&&this.center?(t=this.center[0],e=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(t,e,this.center[1]/2,0,i,s).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:ew.arc(t,e,this.center[2]/2,0,{start:i,end:s,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":o.borderWidth,fill:o.fillColor||"none",stroke:o.color||"var(--highcharts-neutral-color-20)"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let t=this.chart.renderer;this.points.forEach(function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getXPos(t,e,i,s){let o=this.center,r=this.radii?this.radii[i.index]||0:o[2]/2,a=s.dataLabelPosition,n=a?.distance||0,h=Math.asin(H((t-o[1])/(r+n),-1,1));return o[0]+Math.cos(h)*(r+n)*(e?-1:1)+(n>0?e?-5:5:0)}hasData(){return this.points.some(t=>t.visible)}redrawPoints(){let t,e,i,s,o=this,r=o.chart;this.drawEmpty(),o.group&&!r.styledMode&&o.group.shadow(o.options.shadow),o.points.forEach(function(a){let n={};e=a.graphic,!a.isNull&&e?(s=a.shapeArgs,t=a.getTranslate(),r.styledMode||(i=o.pointAttribs(a,a.selected&&"select")),a.delayedRendering?(e.setRadialReference(o.center).attr(s).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}),a.delayedRendering=!1):(e.setRadialReference(o.center),r.styledMode||tp(!0,n,i),tp(!0,n,s,t),e.animate(n)),e.attr({visibility:a.visible?"inherit":"hidden"}),e.addClass(a.getClassName(),!0)):e&&(a.graphic=e.destroy())})}sortByAngle(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})}translate(t){q(this,"translate"),this.generatePoints();let e=this.options,i=e.slicedOffset,s=sV(e.startAngle,e.endAngle),o=this.startAngleRad=s.start,r=(this.endAngleRad=s.end)-o,a=this.points,n=e.ignoreHiddenPoint,h=a.length,l,d,c,p,g,u,f,m=0;for(t||(this.center=t=this.getCenter()),u=0;u<h;u++){f=a[u],l=o+m*r,f.isValid()&&(!n||f.visible)&&(m+=f.percentage/100),d=o+m*r;let e={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:l,end:d};f.shapeType="arc",f.shapeArgs=e,(c=(d+l)/2)>1.5*Math.PI?c-=2*Math.PI:c<-Math.PI/2&&(c+=2*Math.PI),f.slicedTranslation={translateX:Math.round(Math.cos(c)*i),translateY:Math.round(Math.sin(c)*i)},p=Math.cos(c)*t[2]/2,g=Math.sin(c)*t[2]/2,f.tooltipPos=[t[0]+.7*p,t[1]+.7*g],f.half=+(c<-Math.PI/2||c>Math.PI/2),f.angle=c}q(this,"afterTranslate")}updateTotals(){let t=this.points,e=t.length,i=this.options.ignoreHiddenPoint,s,o,r=0;for(s=0;s<e;s++)(o=t[s]).isValid()&&(!i||o.visible)&&(r+=o.y);for(s=0,this.total=r;s<e;s++)(o=t[s]).percentage=r>0&&(o.visible||!i)?o.y/r*100:0,o.total=r}}sZ.defaultOptions=tp(iH.defaultOptions,{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.isNull?void 0:this.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"var(--highcharts-background-color)",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),_(sZ.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:sO.prototype.drawTracker,getCenter:sY.getCenter,getSymbol:sU,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:sO.prototype.pointAttribs,pointClass:s$,requireSorting:!1,searchPoint:sU,trackerGroups:["group","dataLabelsGroup"]}),iL.registerSeriesType("pie",sZ);let{composed:s_,noop:sK}=E,{distribute:sq}=ei,{series:sJ}=iL;!function(t){let e={radialDistributionY:function(t,e){return(e.dataLabelPosition?.top||0)+t.distributeBox.pos},radialDistributionX:function(t,e,i,s,o){let r=o.dataLabelPosition;return t.getXPos(i<(r?.top||0)+2||i>(r?.bottom||0)-2?s:i,e.half,e,o)},justify:function(t,e,i,s){return s[0]+(t.half?-1:1)*(i+(e.dataLabelPosition?.distance||0))},alignToPlotEdges:function(t,e,i,s){let o=t.getBBox().width;return e?o+s:i-o-s},alignToConnectors:function(t,e,i,s){let o=0,r;return t.forEach(function(t){(r=t.dataLabel.getBBox().width)>o&&(o=r)}),e?o+s:i-o-s}};function i(t,e){let i=Math.PI/2,{start:s=0,end:o=0}=t.shapeArgs||{},r=t.angle||0;e>0&&s<i&&o>i&&r>i/2&&r<1.5*i&&(r=r<=i?Math.max(i/2,(s+i)/2):Math.min(1.5*i,(i+o)/2));let{center:a,options:n}=this,h=a[2]/2,l=Math.cos(r),d=Math.sin(r),c=a[0]+l*h,p=a[1]+d*h,g=Math.min((n.slicedOffset||0)+(n.borderWidth||0),e/5);return{natural:{x:c+l*e,y:p+d*e},computed:{},alignment:e<0?"center":t.half?"right":"left",connectorPosition:{angle:r,breakAt:{x:c+l*g,y:p+d*g},touchingSliceAt:{x:c,y:p}},distance:e}}function s(){let t=this,e=t.points,i=t.chart,s=i.plotWidth,o=i.plotHeight,r=i.plotLeft,a=Math.round(i.chartWidth/3),n=t.center,h=n[2]/2,l=n[1],d=[[],[]],c=[0,0,0,0],p=t.dataLabelPositioners,g,u,f,m=0;t.visible&&t.hasDataLabels?.()&&(e.forEach(t=>{(t.dataLabels||[]).forEach(t=>{t.shortened&&(t.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.shortened=!1)})}),sJ.prototype.drawDataLabels.apply(t),e.forEach(t=>{(t.dataLabels||[]).forEach((e,i)=>{let s=n[2]/2,o=e.options,r=tv(o?.distance||0,s);0===i&&d[t.half].push(t),!j(o?.style?.width)&&e.getBBox().width>a&&(e.css({width:Math.round(.7*a)+"px"}),e.shortened=!0),e.dataLabelPosition=this.getDataLabelPosition(t,r),m=Math.max(m,r)})}),d.forEach((e,a)=>{let d=e.length,g=[],x,y,b=0,v;d&&(t.sortByAngle(e,a-.5),m>0&&(x=Math.max(0,l-h-m),y=Math.min(l+h+m,i.plotHeight),e.forEach(t=>{(t.dataLabels||[]).forEach(e=>{let s=e.dataLabelPosition;s&&s.distance>0&&(s.top=Math.max(0,l-h-s.distance),s.bottom=Math.min(l+h+s.distance,i.plotHeight),b=e.getBBox().height||21,e.lineHeight=i.renderer.fontMetrics(e.text||e).h+2*e.padding,t.distributeBox={target:(e.dataLabelPosition?.natural.y||0)-s.top+e.lineHeight/2,size:b,rank:t.y},g.push(t.distributeBox))})}),sq(g,v=y+b-x,v/5)),e.forEach(i=>{(i.dataLabels||[]).forEach(l=>{let d=l.options||{},m=i.distributeBox,x=l.dataLabelPosition,y=x?.natural.y||0,b=d.connectorPadding||0,v=l.lineHeight||21,k=(v-l.getBBox().height)/2,w=0,M=y,C="inherit";if(x){if(g&&j(m)&&x.distance>0&&(void 0===m.pos?C="hidden":(f=m.size,M=p.radialDistributionY(i,l))),d.justify)w=p.justify(i,l,h,n);else switch(d.alignTo){case"connectors":w=p.alignToConnectors(e,a,s,r);break;case"plotEdges":w=p.alignToPlotEdges(l,a,s,r);break;default:w=p.radialDistributionX(t,i,M-k,y,l)}if(x.attribs={visibility:C,align:x.alignment},x.posAttribs={x:w+(d.x||0)+(({left:b,right:-b})[x.alignment]||0),y:M+(d.y||0)-v/2},x.computed.x=w,x.computed.y=M-k,tx(d.crop,!0)){let t;w-(u=l.getBBox().width)<b&&1===a?(t=Math.round(u-w+b),c[3]=Math.max(t,c[3])):w+u>s-b&&0===a&&(t=Math.round(w+u-s+b),c[1]=Math.max(t,c[1])),M-f/2<0?c[0]=Math.max(Math.round(-M+f/2),c[0]):M+f/2>o&&(c[2]=Math.max(Math.round(M+f/2-o),c[2])),x.sideOverflow=t}}})}))}),(0===R(c)||this.verifyDataLabelOverflow(c))&&(this.placeDataLabels(),this.points.forEach(e=>{e.dataLabels?.forEach((s,o)=>{let{connectorColor:r,connectorWidth:a=1}=s.options||{},n=s.dataLabelPosition;if(tn(a)){let h;g=s.connector,n&&n.distance>0?(h=!g,g||(s.connector=g=i.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+e.colorIndex+(e.className?" "+e.className:"")).add(t.dataLabelsGroups?.[o])),i.styledMode||g.attr({"stroke-width":a,stroke:r||e.color||"var(--highcharts-neutral-color-60)"}),g[h?"attr":"animate"]({d:e.getConnectorPath(s)}),g.attr({visibility:n.attribs?.visibility})):g&&(s.connector=g.destroy())}})})))}function o(){this.points.forEach(t=>{(t.dataLabels||[]).forEach(t=>{let e=t.dataLabelPosition;e?(e.sideOverflow&&(t.css({width:Math.max(t.getBBox().width-e.sideOverflow,0)+"px",textOverflow:t.options?.style?.textOverflow||"ellipsis"}),t.shortened=!0),t.attr(e.attribs),t[t.moved?"animate":"attr"](e.posAttribs),t.moved=!0):t&&t.attr({y:-9999})}),delete t.distributeBox},this)}function r(t){let e=this.center,i=this.options,s=i.center,o=i.minSize||80,r=o,a=null!==i.size;return!a&&(null!==s[0]?r=Math.max(e[2]-Math.max(t[1],t[3]),o):(r=Math.max(e[2]-t[1]-t[3],o),e[0]+=(t[3]-t[1])/2),null!==s[1]?r=H(r,o,e[2]-Math.max(t[0],t[2])):(r=H(r,o,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),r<e[2]?(e[2]=r,e[3]=Math.min(i.thickness?Math.max(0,r-2*i.thickness):Math.max(0,tv(i.innerSize||0,r)),r),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):a=!0),a}t.compose=function(t){if(sD.compose(sJ),tb(s_,"PieDataLabel")){let a=t.prototype;a.dataLabelPositioners=e,a.alignDataLabel=sK,a.drawDataLabels=s,a.getDataLabelPosition=i,a.placeDataLabels=o,a.verifyDataLabelOverflow=r}}}(T||(T={}));let sQ=T;(c=A||(A={})).getCenterOfPoints=function(t){let e=t.reduce((t,e)=>(t.x+=e.x,t.y+=e.y,t),{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},c.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},c.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},c.pointInPolygon=function({x:t,y:e},i){let s=i.length,o,r,a=!1;for(o=0,r=s-1;o<s;r=o++){let[s,n]=i[o],[h,l]=i[r];n>e!=l>e&&t<(h-s)*(e-n)/(l-n)+s&&(a=!a)}return a};let{pointInPolygon:s0}=A;function s1(t,e){let i,s=!1;return t&&(i=t.newOpacity,t.oldOpacity!==i&&(t.hasClass("highcharts-data-label")?(t[i?"removeClass":"addClass"]("highcharts-data-label-hidden"),s=!0,t[t.isOld||t.placed?"animate":"attr"]({opacity:i},void 0,function(){e.styledMode||t.css({pointerEvents:i?"auto":"none"})}),q(e,"afterHideOverlappingLabel")):t.attr({opacity:i})),t.isOld=!0),s}let{defaultOptions:s2}=tX,{noop:s5}=E,s3={radius:0,scope:"stack",where:void 0},s6=s5,s9=s5;function s4(t,e,i,s,o={}){let r=s6(t,e,i,s,o),{brStart:a=!0,brEnd:n=!0,innerR:h=0,r:l=i,start:d=0,end:c=0}=o;if(o.open||!o.borderRadius)return r;let p=c-d,g=Math.sin(p/2),u=Math.max(Math.min(tv(o.borderRadius||0,l-h),(l-h)/2,l*g/(1+g)),0),f=Math.min(u,p/Math.PI*2*h),m=r.length-1;for(;m--;)(a||0!==m&&3!==m)&&(n||1!==m&&2!==m)&&!function(t,e,i){let s,o,r,a=t[e],n=t[e+1];if("Z"===n[0]&&(n=t[0]),("M"===a[0]||"L"===a[0])&&"A"===n[0]?(s=a,o=n,r=!0):"A"===a[0]&&("M"===n[0]||"L"===n[0])&&(s=n,o=a),s&&o&&o.params){let a=o[1],n=o[5],h=o.params,{start:l,end:d,cx:c,cy:p}=h,g=n?a-i:a+i,u=g?Math.asin(i/g):0,f=n?u:-u,m=Math.cos(u)*g;r?(h.start=l+f,s[1]=c+m*Math.cos(l),s[2]=p+m*Math.sin(l),t.splice(e+1,0,["A",i,i,0,0,1,c+a*Math.cos(h.start),p+a*Math.sin(h.start)])):(h.end=d-f,o[6]=c+a*Math.cos(h.end),o[7]=p+a*Math.sin(h.end),t.splice(e+1,0,["A",i,i,0,0,1,c+m*Math.cos(d),p+m*Math.sin(d)])),o[4]=Math.abs(h.end-h.start)<Math.PI?0:1}}(r,m,m>1?f:u);return r}function s8(){if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:t,yAxis:e}=this,i="percent"===t.stacking,s=s2.plotOptions?.[this.type]?.borderRadius,o=s7(t.borderRadius,tc(s)?s:{}),r=e.options.reversed;for(let s of this.points){let{shapeArgs:a}=s;if("roundedRect"===s.shapeType&&a){let{width:n=0,height:h=0,y:l=0}=a,d=l,c=h;if("stack"===o.scope&&s.stackTotal){let o=e.translate(i?100:s.stackTotal,!1,!0,!1,!0),r=e.translate(t.threshold||0,!1,!0,!1,!0),a=this.crispCol(0,Math.min(o,r),0,Math.abs(o-r));d=a.y,c=a.height}let p=(s.negative?-1:1)*(r?-1:1)==-1,g=o.where;!g&&this.is("waterfall")&&Math.abs((s.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(g="all"),g||(g="end");let u=Math.min(tv(o.radius,n),n/2,"all"===g?c/2:1/0)||0;"end"===g&&(p&&(d-=u),c+=u),_(a,{brBoxHeight:c,brBoxY:d,r:u})}}}}function s7(t,e){return tc(t)||(t={radius:t||0}),tp(s3,e,t)}function ot(){let t=s7(this.options.borderRadius);for(let e of this.points){let i=e.shapeArgs;i&&(i.borderRadius=tv(t.radius,(i.r||0)-(i.innerR||0)))}}function oe(t,e,i,s,o={}){let r=s9(t,e,i,s,o),{r:a=0,brBoxHeight:n=s,brBoxY:h=e}=o,l=e-h,d=h+n-(e+s),c=l-a>-.1?0:a,p=d-a>-.1?0:a,g=Math.max(c&&l,0),u=Math.max(p&&d,0),f=[t+c,e],m=[t+i-c,e],x=[t+i,e+c],y=[t+i,e+s-p],b=[t+i-p,e+s],v=[t+p,e+s],k=[t,e+s-p],w=[t,e+c],M=(t,e)=>Math.sqrt(Math.pow(t,2)-Math.pow(e,2));if(g){let t=M(c,c-g);f[0]-=t,m[0]+=t,x[1]=w[1]=e+c-g}if(s<c-g){let o=M(c,c-g-s);x[0]=y[0]=t+i-c+o,b[0]=Math.min(x[0],b[0]),v[0]=Math.max(y[0],v[0]),k[0]=w[0]=t+c-o,x[1]=w[1]=e+s}if(u){let t=M(p,p-u);b[0]+=t,v[0]-=t,y[1]=k[1]=e+s-p+u}if(s<p-u){let o=M(p,p-u-s);x[0]=y[0]=t+i-p+o,m[0]=Math.min(x[0],m[0]),f[0]=Math.max(y[0],f[0]),k[0]=w[0]=t+p-o,y[1]=k[1]=e}return r.length=0,r.push(["M",...f],["L",...m],["A",c,c,0,0,1,...x],["L",...y],["A",p,p,0,0,1,...b],["L",...v],["A",p,p,0,0,1,...k],["L",...w],["A",c,c,0,0,1,...f],["Z"]),r}function oi(t,e){let i=t.condition;(i.callback||function(){return this.chartWidth<=tx(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=tx(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=tx(i.minWidth,0)&&this.chartHeight>=tx(i.minHeight,0)}).call(this,this)&&e.push(t._id)}function os(t,e){let i=this.options.responsive,s=this.currentResponsive,o=[],r;!e&&i&&i.rules&&i.rules.forEach(t=>{void 0===t._id&&(t._id=tI()),this.matchResponsiveRule(t,o)},this);let a=tp(...o.map(t=>ts(i?.rules||[],e=>e._id===t)).map(t=>t?.chartOptions));a.isResponsiveOptions=!0,o=o.toString()||void 0;let n=s?.ruleIds;o!==n&&(s&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(s.undoOptions,t,!0),this.updatingResponsive=!1),o?((r=U(a,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:o,mergedOptions:a,undoOptions:r},this.updatingResponsive||this.update(a,t,!0)):this.currentResponsive=void 0)}(P||(P={})).compose=function(t){let e=t.prototype;return e.matchResponsiveRule||_(e,{matchResponsiveRule:oi,setResponsive:os}),t};let oo=P;E.AST=t5,E.Axis=e2,E.Chart=i9,E.Color=t$,E.DataLabel=sD,E.DataTable=iw,E.DataTableCore=iw,E.Fx=tZ,E.HTMLElement=eF,E.Legend=iZ,E.LegendSymbol=iS,E.PlotLineOrBand=e9,E.Point=ip,E.Pointer=ib,E.Series=iH,E.SeriesRegistry=iL,E.StackItem=so,E.SVGElement=eg,E.SVGRenderer=eH,E.Templating=ee,E.Tick=eU,E.Time=tR,E.Tooltip=ia,E.addEvent=N,E.animObject=tq.animObject,E.animate=tq.animate,E.arrayMax=R,E.arrayMin=z,E.attr=W,E.chart=i9.chart,E.clamp=H,E.color=t$.parse,E.correctFloat=G,E.createElement=X,E.css=Y,E.crisp=F,E.dateFormat=ee.dateFormat,E.defaultOptions=tX.defaultOptions,E.defined=j,E.destroyObjectProperties=$,E.diffObjects=U,E.discardElement=V,E.distribute=ei.distribute,E.erase=Z,E.error=tL,E.extend=_,E.extendClass=K,E.find=ts,E.fireEvent=q,E.format=ee.format,E.getAlignFactor=J,E.getClosestDistance=Q,E.getDeferredAnimation=tq.getDeferredAnimation,E.getMagnitude=tt,E.getNestedProperty=te,E.getOptions=tX.getOptions,E.getStyle=ti,E.insertItem=tO,E.isArray=tl,E.isClass=ta,E.isDOMElement=tr,E.isFunction=td,E.isNumber=tn,E.isObject=tc,E.isString=th,E.internalClearTimeout=to,E.merge=tp,E.normalizeTickInterval=tg,E.numberFormat=ee.numberFormat,E.objectEach=tu,E.offset=tf,E.pad=tm,E.pick=tx,E.pushUnique=tb,E.pInt=ty,E.relativeLength=tv,E.removeEvent=tw,E.replaceNested=tk,E.seriesType=iL.seriesType,E.setAnimation=tq.setAnimation,E.setOptions=tX.setOptions,E.splat=tM,E.stableSort=tC,E.stop=tq.stop,E.syncTimeout=tS,E.time=tX.defaultTime,E.ucfirst=tT,E.timers=tZ.timers,E.timeUnits=tE,E.uniqueKey=tI,E.useSerialIds=function(e){return t=tx(e,t)},E.wrap=function(t,e,i){let s=t[e];t[e]=function(){let t=arguments,e=this;return i.apply(this,[function(){return s.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}},function(t,e,i){let s=t.types.pie;if(!e.symbolCustomAttribs.includes("borderRadius")){let o=i.prototype.symbols;N(t,"afterColumnTranslate",s8,{order:9}),N(s,"afterTranslate",ot),e.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),s6=o.arc,s9=o.roundedRect,o.arc=s4,o.roundedRect=oe}}(E.Series,E.SVGElement,E.SVGRenderer),sR.compose(E.Series.types.column),sD.compose(E.Series),e5.compose(E.Axis),eF.compose(E.SVGRenderer),iZ.compose(E.Chart),e3.compose(E.Axis),(o=(p=E.Chart).prototype).hideOverlappingLabels||(o.hideOverlappingLabels=function(t){let e=t.length,i=(t,e)=>!(e.x>=t.x+t.width||e.x+e.width<=t.x||e.y>=t.y+t.height||e.y+e.height<=t.y),s=(t,e)=>{for(let i of t)if(s0({x:i[0],y:i[1]},e))return!0;return!1},o,r,a,n,h,l=!1;for(let i=0;i<e;i++)(o=t[i])&&(o.oldOpacity=o.opacity,o.newOpacity=1,o.absoluteBox=function(t){if(t&&(!t.alignAttr||t.placed)){let e=t.box?0:t.padding||0,i=t.dataLabelPosition?.posAttribs||t.alignAttr||{x:t.attr("x"),y:t.attr("y")},{height:s,polygon:o,width:r}=t.getBBox(),a=J(t.alignValue)*r;return t.width=r,t.height=s,{x:i.x+(t.parentGroup?.translateX||0)+e-a,y:i.y+(t.parentGroup?.translateY||0)+e,width:r-2*e,height:s-2*e,polygon:o}}}(o));t.sort((t,e)=>(e?.labelrank||0)-(t?.labelrank||0));for(let o=0;o<e;++o){n=(r=t[o])&&r.absoluteBox;let l=n?.polygon;for(let d=o+1;d<e;++d){h=(a=t[d])&&a.absoluteBox;let e=!1;if(n&&h&&r!==a&&r?.newOpacity!==0&&a?.newOpacity!==0&&r?.visibility!=="hidden"&&a?.visibility!=="hidden"){let t=h.polygon;if(l&&t&&l!==t?s(l,t)&&(e=!0):i(n,h)&&(e=!0),e){let t=r?.labelrank<a?.labelrank?r:a,e=t?.text;t&&(t.newOpacity=0),e?.element.querySelector("textPath")&&e.hide()}}}}for(let e of t)e&&s1(e,this)&&(l=!0);l&&q(this,"afterHideAllOverlappingLabels")},N(p,"render",function(){let t=this,e=[];for(let i of t.labelCollectors||[])e=e.concat(i());for(let i of t.yAxis||[])i.stacking&&i.options.stackLabels&&!i.options.stackLabels.allowOverlap&&tu(i.stacking.stacks,t=>{tu(t,t=>{t.label&&e.push(t.label)})});for(let i of t.series||[])if(i.visible&&i.hasDataLabels?.()){let s=s=>{for(let o of s)o.visible&&(o.dataLabels||[]).forEach(s=>{let r=s.options||{};s.labelrank=tx(r.labelrank,o.labelrank,o.shapeArgs?.height),r.allowOverlap??(i.is("pie")&&Number(r.distance)>0)?(s.oldOpacity=s.opacity,s.newOpacity=1,s1(s,t)):e.push(s)})};s(i.nodes||[]),s(i.points)}this.hideOverlappingLabels(e)})),sQ.compose(E.Series.types.pie),e9.compose(E.Chart,E.Axis),ib.compose(E.Chart),oo.compose(E.Chart),se.compose(E.Axis,E.Chart,E.Series),sm.compose(E.Axis,E.Chart,E.Series),ia.compose(E.Pointer);let or=E;return O.default})());
|